:root {
  --saff-primary-color: #002613 !important; /* Darker foundation */
  --saff-secondary-color: #009606 !important; /* Bright SAFF green */
  --saff-success-color: #106736 !important;  /* Medium SAFF Green */
  --saff-info-color: #43BBC2 !important;     /* Aqua Secondary */
  --saff-gold-color: #F8AA33 !important;  /* Gold Highlight */
  --saff-yellow-color: #FFBC34 !important;  /* Yellow for charts */
  --saff-danger-color: #E32B36 !important;   /* Red Alert */
  --saff-dark-color: #143536 !important;     /* Charcoal */
  --saff-light-color: #F8F9FA !important;
  --saff-gray-color: #6C757D !important;
  --saff-shadow-light: 0 6px 16px rgba(0, 0, 0, 0.08) !important; 
  --saff-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15) !important;

    /* new pallet colors  */
    --saff-new-primary-color: #0E372E !important;
    --saff-new-secondary-color: #007255 !important;
    --saff-new-success-color: #007A57 !important;
    --saff-new-info-color: #394979 !important;
    --saff-new-warning-color: #FFA239 !important;
    --saff-new-gold-color: #EACB74 !important;
    --saff-new-orange-color: #FF8236 !important;
    --saff-new-purple-color: #A00E5B !important;
    --saff-new-danger-color: #C30720 !important;
}

/* Modern letter action buttons ("Write your letter" / "Write Fast letter") */
.saff-letter-actions-wrapper {
  text-align: center;
}

.saff-letter-actions {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
}

.saff-letter-actions a.btn.btn-sm.btn-primary {
  /* display: inline-flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 44px;
  border-radius: 40px;
  background: linear-gradient(25deg, #0e372ec1, #007A57);
  border: none;
  box-shadow: 0 14px 30px rgba(0, 122, 87, 0.25);
}

.saff-letter-actions a.btn.btn-sm.btn-primary i.fa-envelope {
  font-size: 20px;
  margin-bottom: 2px;
}

.saff-letter-actions a.btn.btn-sm.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* ============================= */
/* 🌞 Header & Sidebar Styles */
/* ============================= */
.header {
  /* linear-gradient(to right, rgb(26, 112, 69) 10%, rgb(2, 65, 34) 100%); */
/* new header style color  */
/* background: #024122; */
background: -moz-linear-gradient(to right, rgb(26, 112, 69) 10%, rgb(2, 65, 34) 100%) !important;
background: -webkit-linear-gradient(to right, rgb(26, 112, 69) 10%, rgb(2, 65, 34) 100%) !important;
background: -ms-linear-gradient(to right, rgb(26, 112, 69) 10%, rgb(2, 65, 34) 100%) !important;
background: linear-gradient(to right, rgb(26, 112, 69) 10%, rgb(2, 65, 34) 100%) !important;
}

.sidebar {
  background: #0d5f3a !important;
}

/* Sidebar menu: more space between icon and text (LTR / English) */
.sidebar .sidebar-menu > ul > li > a > span:not(.badge):not(.fav-star):not(.menu-arrow) {
  margin-left: 14px !important;
}
.sidebar-menu ul ul li a > span:not(.badge):not(.fav-star):not(.menu-arrow) {
  margin-left: 14px !important;
}

/* Sidebar search (saff-prefixed) */
.saff-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}
.saff-custom-search-input {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-color: #0d5f3a !important;
  color: #fff !important;
  border: 1px solid #0d5f3a !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s, color 0.2s;
  padding-left: 34px !important; /* space for icon on left */
}
.saff-custom-search-input::placeholder {
  color: #fff !important;
  opacity: 0.7;
}
.saff-custom-search-input:focus {
  background-color: #fff !important;
  color: #888 !important;
  border-color: #0d5f3a !important;
  outline: none !important;
  box-shadow: none !important;
}
.saff-custom-search-input:focus::placeholder {
  color: #aaa !important;
}


/* ============================= */
/* 🌞 Dashboard Cards */
/* ============================= */

@media (max-width: 1024px) {
  .saff-welcome-flex {
      flex-direction: column !important;
  }
  
  .saff-welcome-img-container {
      margin-bottom: 15px;
      text-align: center;
  }
}

@media screen and (max-width: 600px) {
.saff-welcome-responsive-container {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.mobile-padding-10 {
  padding: 10px !important;
}
}

/* الجوال فقط */
@media (max-width: 600px) {
/* التحية + الاسم + الأيقونة بسطر واحد ومركّزة */
.saff-mobile-greeting-one-line{
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 8px !important;
white-space: nowrap !important;     /* يمنع الانقسام */
overflow: hidden !important;
text-overflow: ellipsis !important; /* درء الانكسار الطويل */
font-size: clamp(20px, 5vw, 28px) !important;
width: 100% !important;
}
.saff-mobile-greeting-one-line .las{ flex: 0 0 auto; }

/* تاريخ بالنص */
.saff-mobile-center-meta{
display: block !important;
text-align: center !important;
margin: 4px 0 !important;
width: 100% !important;
}

/* صف الطقس + الصلاة بالنص */
.saff-mobile-center-row{
display: flex !important;
justify-content: center !important;
align-items: center !important;
gap: 15px !important;
width: 100% !important;
text-align: center !important;
}
}

.saff-hover-a-black {
  text-decoration: none !important;
}

.saff-hover-a-black:hover {
  text-decoration: none !important;
  color: black !important;
}


.saff_card {
    background: #fff;
    border: 0;
    /* border-radius: 14px; */
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0,0,0,.06);
    height: 100%;
    width: 100%;
  }
  
  .saff_card_body { padding: 16px; }
  
  .saff_section_header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      background: #fff;
      /* شيلنا الخط */
      /* border-bottom: 1px solid #eef2f7; */
      user-select: none;
    }
  
  .saff_section_title {
    display:flex;
    align-items:center;
    gap:10px;
    position: relative;
    cursor: pointer;
  }
  .saff_section_text {
    font-weight:800;
    font-size:20px;
    color:#111827;
  }
  
  .saff_toggle_icon {
    opacity: 0;
    transform: translateX(5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    font-size: 18px;
    color: #64748b;
  }
  .saff_section_title:hover .saff_toggle_icon {
    opacity: 1;
    transform: translateX(0);
  }
  
  .saff_caret_link {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 10px;
      text-decoration: none;
      color: #334155;
      font-weight:600;
      font-size: 14px;
      background: #f1f5f9;
      border: 1px solid transparent;
      transition: all .15s ease;
    }
    
    /* الهفر الأبيض */
    .saff_caret_link:hover {
      background: #fff;
      color: #0b2239;
      border-color: #e5e7eb;
    }
  
  /* البلاطات */
  .saff_tiles_wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  @media (max-width: 1199.98px) { .saff_tiles_wrap { grid-template-columns: repeat(2,1fr); } }
  @media (max-width: 575.98px)  { .saff_tiles_wrap { grid-template-columns: 1fr; } }
  
  .saff_tile {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 16px 14px; border-radius: 16px;
    text-decoration: none !important; color: #0b2239;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.03);
    transition: transform .15s ease, filter .15s ease;
  }
  .saff_tile:hover { transform: translateY(-1px); }
  
  /* Optional hover color effect - add this class to tiles that need it */
  .saff_tile_hover_effect:hover { filter: brightness(.98); }
  
  .saff_tile_label { font-weight:700; font-size:16px; }
  .saff_tile_count { font-weight:800; font-size:18px; }
  .saff_tile_icon {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: grid; place-items: center;
    color: #1f3b65;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
  }
  
  /* .saff_tile_blue  { background: #84c2f1; }
  .saff_tile_purple{ background: #efe1ff; }
  .saff_tile_sand  { background: #fff0d5; }
  .saff_tile_green { background: #a8d5a2; }
  .saff_tile_lilac { background: #f0e7fb; }
  .saff_tile_cyan  { background: #bfe8e6; } */

.saff_tile_blue  { background: #CFE9F5; }   /* مستوحاة من Aqua #43BBC2 */
.saff_tile_purple{ background: #E9E4F7; }   /* بنفسجي فاتح مائل للرمادي */
.saff_tile_sand  { background: #FFF3D9; }   /* ذهبي فاتح مستوحى من #F8AA33 */
.saff_tile_green { background: #CBE9C5; }   /* أخضر فاتح من براند #106736 */
.saff_tile_lilac { background: #F2EAFB; }   /* ليلكي ناعم متناسق */
.saff_tile_cyan  { background: #D6F2EE; }   /* أخضر مزرق فاتح قريب من #8ACCC2 */

  
/* ============================= */
/* 🌞 Team Animations */
/* ============================= */
@keyframes saff-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes saff-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes saff-wind {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

/* ============================= */
/* 📊 Team Profile Completion Card */
/* ============================= */

/* Container for the profile completion section */
.saff-profile-completion-card {
    background-color: #ffffff; /* White or light background */
    border-radius: 12px; /* Soft rounded corners */
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Subtle lift effect */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between info and progress bar */
}

/* Flex container for the label and percentage */
.saff-completion-info {
    display: flex;
    justify-content: space-between; /* Label left, percentage right */
    align-items: center;
}

.saff-percentage-label {
    font-size: 14px;
    color: #6c757d; /* Muted text color */
    margin: 0;
    font-weight: 500;
}

.saff-percentage-value {
    font-size: 24px;
    color: #343a40; /* Darker text for emphasis */
    margin: 0;
}

.saff-percentage-value small {
    font-size: 60%; /* Make the '%' smaller */
    font-weight: normal;
    opacity: 0.8;
}

/* Progress Bar Container */
.saff-progress-container {
    height: 8px; /* Slim progress bar */
    background-color: #e9ecef; /* Light track color */
    border-radius: 4px;
    overflow: hidden;
}

/* Actual Progress Bar */
.saff-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #0e372ec1,#007A57); /* Subtle gradient */
    background-color: #28a745; /* Fallback color */
    transition: width 0.4s ease-in-out; /* Smooth animation */
    border-radius: 4px;
}


/* ============================= */
/* tickets inside */
/* ============================= */

/* Remove border from info block */
#TemplatesMenuInfoBlock {
  border: none !important;
  background: transparent !important;
  padding: 10px 0 !important;
}

#TemplatesMenuInfoBlock p {
  border: none !important;
  padding: 0 !important;
}

.TemplatesMenuBodyModal {
  position: relative;
}
.TemplatesMenuBodyModal .TemplateItem {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
}
.TemplatesMenuBodyModal .TemplateItem:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* Override green hover color to match btn-primary */
.TemplatesMenuBox:hover {
  background-color: #024122 !important;
  box-shadow: 1px 1px 2px #b2b2b2b8 !important;
}

.TemplatesMenuBox:hover .BoxOperations {
  background-color: #024122 !important;
}

.TemplatesMenuBox:hover .TemplatesMenuBoxBTN:hover {
  background-color: #024122  !important;
}

/* Change color when delete box is shown - Remove ALL green colors */
.TemplatesMenuBox.TemplateDeleting {
  background-color: #f5f5f5 !important;
  border-color: #d0d0d0 !important;
}

.TemplatesMenuBox.TemplateDeleting:hover {
  background-color: #f5f5f5 !important;
  box-shadow: 1px 1px 2px #b2b2b2b8 !important;
}

.TemplatesMenuBox.TemplateDeleting .BoxOperations {
  background-color: #cccccc !important;
  opacity: 1 !important;
}

.TemplatesMenuBox.TemplateDeleting .TemplatesMenuBoxBTN {
  background-color: transparent !important;
}

.TemplatesMenuBox.TemplateDeleting .TemplatesMenuBoxBTN:hover {
  background-color: #bbbbbb !important;
}

.TemplatesMenuBox.TemplateDeleting .TemplatesMenuBoxTxt {
  background-color: #ffffff !important;
}

.TemplatesMenuBox.TemplateDeleting .TemplatesMenuBoxTxt:hover {
  color: #1b1b1b !important;
}

.TemplatesMenuBox .DeleteBox {
  background-color: rgba(2, 65, 34, 0.85) !important; /* #024122 with opacity */
}

.TemplatesMenuBox.TemplateDeleting .DeleteBox {
  background-color: rgba(204, 204, 204, 0.85) !important;
}

/* Remove all borders from delete buttons */
.DeleteBoxBTN {
  border: none !important;
  box-shadow: none !important;
}

.DeleteBoxBTN:hover {
  box-shadow: none !important;
  opacity: 0.9;
}

.DeleteBoxBTNRed {
  border: none !important;
}

/* Override green hover on delete state */
.TemplatesMenuBox.TemplateDeleting:hover {
  background-color: #f5f5f5 !important;
}

.TemplatesMenuBox.TemplateDeleting:hover .BoxOperations {
  background-color: #cccccc !important;
}

/* EditBox inside Modal - not as popup */
#FMEditBoxWrap {
  display: none;
}

#FMEditBox {
  display: none;
}

#FMEditBox.OpenEditBox {
  display: block !important;
  position: relative;
  background: transparent;
  padding: 20px;
  border-radius: 0;
  border: none;
}

#FMEditBox.OpenEditBox #EditBoxTextArea {
  min-height: 300px;
  font-size: 14px;
}

/* Green color for Save button - like the old system */
#FMEditBox #EBSave {
  background-color: #024122  !important;
  border-color: #024122  !important;
  color: #fff !important;
}

#FMEditBox #EBSave:hover,
#FMEditBox #EBSave:focus {
  background-color: #024122 !important;
  border-color: #024122 !important;
  color: #fff !important;
}

#FMFailureMenu {
  display: none;
}

#FMFailureMenu.ShowWindow {
  display: block !important;
}


/* ================================================================= */
/* CSS Saff Cards */
/* ================================================================= */

/* ============================= */
/* Profile Page Styles */
/* ============================= */

/* Allowance Stats Cards Hover Effects - Only for clickable stats cards, not allowance type cards */
#saff-allowance > .card > .card-body > .row:first-child a .stats-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Explicitly disable hover effects on allowance type cards (انواع البدلات) */
#saff-allowance .row:not(:first-child) .stats-info,
#saff-allowance .row:not(:first-child) .stats-info:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Make allowance type cards equal height */
#saff-allowance .row:not(:first-child) > .col-md-4 {
    display: flex;
}
#saff-allowance .row:not(:first-child) > .col-md-4 .stats-info {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
#saff-allowance .row:not(:first-child) > .col-md-4 .stats-info .submit-section {
    margin-top: auto;
}

/* Adjust button height in allowance section - keep original width */
#saff-allowance .submit-section .saff-class-btn {
    min-height: auto;
    height: auto;
    padding: 8px 16px;
    width: auto;
}

/* modal_data2: Add Leave, Add Ticket, etc - keep submit button text white on hover */
#modal_data2 .modal-content .submit-section input[type="submit"]:hover,
#modal_data2 .modal-content .submit-section input.mysaff2:hover,
#modal_data2 .modal-content .submit-section input.saff-class-btn:hover,
#modal_data2 .modal-content .submit-section .saff-class-btn:hover,
#modal_data2 .modal-content .submit-section .mysaff2:hover,
#modal_data2 .modal-content .submit-section .saff-class-btn:hover *,
#modal_data2 .modal-content .submit-section .mysaff2:hover * {
    color: #fff !important;
}
#modal_data2 .modal-content .submit-section .mysaff2:hover::after,
#modal_data2 .modal-content .submit-section input.mysaff2:hover::after {
    transform: skewX(-45deg) scale(0, 1) !important;
}

/* modal_data: أجازاتي page modals - keep submit button text white on hover */
#modal_data .modal-content .submit-section input[type="submit"]:hover,
#modal_data .modal-content .submit-section input.mysaff2:hover,
#modal_data .modal-content .submit-section input.saff-class-btn:hover,
#modal_data .modal-content .submit-section .saff-class-btn:hover,
#modal_data .modal-content .submit-section .mysaff2:hover,
#modal_data .modal-content .submit-section .saff-class-btn:hover *,
#modal_data .modal-content .submit-section .mysaff2:hover * {
    color: #fff !important;
}
#modal_data .modal-content .submit-section .mysaff2:hover::after,
#modal_data .modal-content .submit-section input.mysaff2:hover::after {
    transform: skewX(-45deg) scale(0, 1) !important;
}

/* Forms Card Buttons Hover Effects */
#saff-forms .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #007A57 !important;
}

.saff-cards {
  flex-wrap: wrap !important;
  gap: 16px !important; 
  justify-content: start !important;
}

.saff-cards > .card {
  flex: 1 1 calc(20% - 16px) !important; 
  min-width: 200px !important;
}

@media (max-width: 1200px) { 
  .saff-cards > .card { 
    flex: 1 1 calc(33.333% - 16px) !important; 
  } 
}

@media (max-width: 768px)  { 
  .saff-cards > .card { 
    flex: 1 1 calc(50% - 16px) !important; 
  } 
}

@media (max-width: 480px)  { 
  .saff-cards > .card { 
    flex: 1 1 100% !important; 
  } 
}

/* ================== Card Base Style (.saff-card) ================== */
.saff-cards .saff-card {
  background: #ffffff !important;
  padding: 0 !important; 
  position: relative !important;
  transition: all 0.25s ease !important;
  overflow: hidden !important;
  color: #000 !important;
  border: 1px solid #f0f0f0 !important; 
}
.saff-cards .saff-card:hover {
  transform: translateY(-4px) !important; 
}

.saff-cards .saff-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important; 
  left: 0 !important; 
  right: 0 !important;
  width: 100% !important; 
  height: 4px !important;
  border-radius: 12px 12px 0 0 !important; 
  background: var(--saff-yellow-color) !important;
  z-index: 1 !important;
}

.saff-cards .saff-card .card-body {
  padding: 16px !important; 
}

/* ================== Typography and Content ================== */
.saff-cards .saff-card-title,
.saff-cards .saff-card-text {
  margin-bottom: 0 !important; 
}

.saff-cards .saff-card-title a,
.saff-cards .saff-card-text a {
  color: #666 !important; 
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 14px !important; 
  display: block !important;
  line-height: 1.3 !important;
  transition: color 0.2s ease !important;
}

.saff-cards .saff-card-title a:hover,
.saff-cards .saff-card-text a:hover {
  color: var(--saff-primary-color) !important;
}

.saff-cards .saff-card-count {
  color: var(--saff-primary-color) !important;
  font-weight: 800 !important;
  font-size: 28px !important; 
  margin-top: 4px !important; 
  margin-bottom: 8px !important; 
  line-height: 1 !important; 
}

.saff-cards .saff-card-divider {
  border: none !important;
  border-top: 1px solid #f5f5f5 !important; 
  margin: 8px 0 !important; 
}

/* Chart cards equal height - ensure all chart cards in a row have the same height */
.saff-chart-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.saff-chart-row > [class*='col-'] {
  display: flex !important;
  flex-direction: column !important;
}

.saff-chart-row > [class*='col-'] > .card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 100% !important;
}

/* Ensure chart card body and collapse sections grow to fill available space */
.saff-chart-row > [class*='col-'] > .card > .card-header {
  flex-shrink: 0 !important;
}

.saff-chart-row > [class*='col-'] > .card > .collapse {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

.saff-chart-row > [class*='col-'] > .card > .collapse.show {
  display: flex !important;
  flex-direction: column !important;
}

.saff-chart-row > [class*='col-'] > .card > .collapse:not(.show) {
  display: none !important;
}

.saff-chart-row > [class*='col-'] > .card > .collapse > .card-body {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Make sales-chart smaller in English */
#overviewChart .card-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}

#sales-chart {
  max-width: 220px !important;
  max-height: 220px !important;
  width: 220px !important;
  height: 220px !important;
}

#overviewChart .card-body canvas#sales-chart {
  max-width: 220px !important;
  max-height: 220px !important;
  width: 220px !important;
  height: 220px !important;
}

/* English version - statistics chart text alignment and color */
.stats-list {
  text-align: left !important;
  direction: ltr !important;
}

.stats-list .saff-stats-info {
  text-align: left !important;
  direction: ltr !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.stats-list .saff-stats-info p {
  text-align: left !important;
  direction: ltr !important;
  color: #000000 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

.stats-list .saff-stats-info p,
.stats-list .saff-stats-info p strong {
  color: #000000 !important;
}

.stats-list .saff-stats-info-link {
  color: #000000 !important;
}

/* ============================= */

/* SAFF Services Buttons Styling */
/* Author: Custom Styling for Services Section */

/* Wrapper for services with arrows */
.saff-services-wrapper {
  position: relative;
  margin: 20px 0;
  padding: 0 55px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

/* Hide wrapper when there are no buttons */
.saff-services-wrapper:not(:has(.saff-service-btn)) {
  display: none;
  margin: 0;
  padding: 0;
}

/* Navigation arrows - Fixed position outside scroll area */
.saff-scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s ease;
}

.saff-scroll-arrow:hover {
  opacity: 0.7;
}

.saff-scroll-arrow:active {
  opacity: 0.7;
}

.saff-scroll-arrow:focus {
  outline: none;
}

.saff-scroll-left {
  left: 10px;
}

.saff-scroll-right {
  right: 10px;
}

.saff-scroll-arrow i {
  color: #4B5563;
  font-size: 18px;
}

/* Services Buttons Container Styling - Horizontal Scroller */
.saff-services-buttons-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #E5E7EB #F9FAFB;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Hide container when empty */
.saff-services-buttons-container:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.saff-services-buttons-container:not(:has(.saff-service-btn)) {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

/* Custom Scrollbar for Webkit browsers */
.saff-services-buttons-container::-webkit-scrollbar {
  height: 8px;
}

.saff-services-buttons-container::-webkit-scrollbar-track {
  background: #F9FAFB;
  border-radius: 10px;
}

.saff-services-buttons-container::-webkit-scrollbar-thumb {
  background: #E5E7EB;
  border-radius: 10px;
}

.saff-services-buttons-container::-webkit-scrollbar-thumb:hover {
  background: #D1D5DB;
}

/* Individual Service Button Styling */
.saff-service-btn {
  position: relative;
  background: #FFFFFF;
  color: #6B7280;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: none;
  border: 1px solid #E5E7EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  white-space: nowrap;
  flex-shrink: 0;
}

.saff-service-btn:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
  color: #4B5563;
  text-decoration: none;
}

.saff-service-btn:active {
  background: #E5E7EB;
}

.saff-service-name {
  font-weight: 600;
}

/* Bell icon wrapper */
.saff-service-count-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
}

.saff-service-count-wrapper .fa-envelope-o {
  font-size: 18px;
  color: #ffbc34;
}

/* Count badge on bell */
.saff-service-count {
  position: absolute;
  top: -8px;
  right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffbc34;
  color: #FFFFFF;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  padding: 2px 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  animation: pulse-alert 2s ease-in-out infinite;
}

/* Hide wrapper when count is empty */
.saff-service-count:empty {
  display: none;
}

.saff-service-count-wrapper:has(.saff-service-count:empty) {
  display: none;
}

/* Pulse animation for alert */
@keyframes pulse-alert {
  0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(255, 188, 52, 0.7);
  }
  50% {
      transform: scale(1.05);
      box-shadow: 0 0 0 4px rgba(255, 188, 52, 0);
  }
  100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(255, 188, 52, 0);
  }
}

/* Dropdown width - Match ticket/employee input width */
/* On large screens, set dropdown container width */
@media (min-width: 769px) {
  .saff-dropdown {
      width: 215px;
      display: inline-block;
      margin-top: 15px;
  }
}

.saff-dropdown .select-focus .selectx {
  width: 215px !important;
}

.saff-dropdown .selectx {
  width: 215px !important;
}

.saff-dropdown .select2-container {
  width: 215px !important;
}

.saff-dropdown .select2-container .select2-selection--single {
  width: 215px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Reorder page header - title first, settings second, dropdown third */
  .page-header .row.align-items-center {
      display: flex;
      flex-direction: column;
  }
  
  .page-header .row.align-items-center .col {
      order: 1;
      width: 100%;
  }
  
  .page-header .row.align-items-center .col-auto {
      order: 2;
      width: 100%;
      margin-bottom: 15px;
  }
  
  .page-header .row.align-items-center .saff-dropdown-wrapper {
      order: 3;
      width: 100%;
  }
  
  .saff-services-wrapper {
      padding: 0 !important;
      margin: 10px 0;
  }
  
  .saff-services-buttons-container {
      gap: 8px;
      padding: 10px 5px;
  }
  
  .saff-service-btn {
      padding: 10px 12px;
      font-size: 13px;
      min-width: 100px;
  }
  
  /* Make dropdown responsive on mobile */
  .saff-dropdown {
      max-width: 400px !important;
  }
  
  .saff-dropdown .select-focus .selectx,
  .saff-dropdown .selectx,
  .saff-dropdown .select2-container,
  .saff-dropdown .select2-container .select2-selection--single {
      width: 400px !important;
      max-width: 100% !important;
      height: 50px !important;
      line-height: 50px !important;
  }
  
  .saff-dropdown .select2-container .select2-selection--single .select2-selection__rendered {
      line-height: 50px !important;
  }
  
  .saff-dropdown .select2-container .select2-selection--single .select2-selection__arrow {
      height: 50px !important;
  }
  
  /* Make settings button 400x50 on mobile */
  .page-header .col-auto {
      margin-top: 20px;
  }
  
  .page-header .col-auto .btn {
      width: 400px !important;
      max-width: 100% !important;
      height: 50px !important;
      line-height: 30px !important;
      padding: 10px 15px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
  }
  
  /* Hide scroll arrows on mobile */
  .saff-scroll-arrow {
      display: none !important;
  }
}



/* Attendance Cards Styles */

/* Row with equal height cards */
.saff-attendance-row {
  display: flex;
  align-items: stretch;
}

/* Column flexbox */
.saff-attendance-col {
  display: flex;
}

/* Card base styles */
.saff-attendance-card {
  width: 100%;
  height: 330px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

/* Card body padding */
.saff-attendance-card-body {
  padding: 18px 20px;
}

/* Card title */
.saff-attendance-card-title {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-size: 15px;
  text-align: center;
}

/* Date text */
.saff-attendance-date-text {
  text-align: center;
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 10px;
}

/* Gauge container */
.saff-gauge-container {
  position: relative;
  width: 180px;
  height: 130px;
  margin: 0 auto 16px;
}

/* Card body styling */
.saff-attendance-card-body {
  padding: 18px 20px;
}

/* Gauge container centered */
.saff-gauge-button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.saff-gauge-button-row .saff-gauge-container {
  margin: 0;
}

/* Button appears below attendance info */
.punch-btn-section {
  text-align: center;
  margin-top: 10px;
}

.punch-btn-section .btn {
  width: auto;
  padding: 10px 32px;
  display: inline-block;
}

.saff-gauge-svg {
  width: 100%;
  height: 100%;
}

/* Gauge text styles */
.saff-gauge-value {
  font-size: 36px;
  font-weight: 700;
  fill: #1f2937;
}

.saff-gauge-value-gray {
  font-size: 36px;
  font-weight: 700;
  fill: #cbd5e1;
}

.saff-gauge-unit {
  font-size: 14px;
  fill: #6b7280;
}

.saff-gauge-label {
  font-size: 14px;
  fill: #28a7468d !important;
}

/* Background circles for gauge labels */
.saff-gauge-label-bg {
  fill: #ffffff00 !important;
  stroke: none;
}

/* Override any badge gray backgrounds */
.badge-secondary {
  background-color: #b8d4b7 !important;
}

/* Progress arcs */
.saff-gauge-arc-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 20;
  stroke-linecap: round;
}

.saff-gauge-arc-progress {
  fill: none;
  stroke: #599659;
  stroke-width: 20;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1s ease;
}

/* Info box */
.saff-attendance-info-box {
  text-align: center;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 10px;
}

.saff-attendance-info-small-box {
  text-align: center;
  padding: 6px 8px;
  background: #f9fafb;
  border-radius: 6px;
}

.saff-attendance-info-label {
  color: #6b7280;
  font-size: 11px;
  margin: 0 0 3px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.saff-attendance-info-label-small {
  color: #6b7280;
  font-size: 10px;
  margin: 0 0 3px 0;
  text-transform: uppercase;
}

.saff-attendance-info-value {
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.saff-attendance-info-value-small {
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

/* Button styles */
.saff-attendance-btn {
  width: auto;
  padding: 7px 28px;
  font-weight: 500;
  font-size: 13px;
  margin: 0 auto;
  display: block;
}

.saff-attendance-btn-full {
  width: 100%;
  padding: 10px;
  font-weight: 600;
}

/* Statistics card specific styles */
.saff-stats-card-title {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.saff-stats-item {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.saff-stats-item-blue {
  border-right: 4px solid #009EFB;
}

.saff-stats-item-purple {
  border-right: 4px solid #8b5cf6;
}

.saff-stats-item-green {
  border-right: 4px solid #b8d4b7;
}

.saff-stats-item-orange {
  border-right: 4px solid #FFBC34;
}

.saff-stats-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.saff-stats-item-label {
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.saff-stats-item-value {
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
}

.saff-stats-item-value-small {
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
}

.saff-stats-progress {
  height: 5px;
  background-color: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.saff-stats-progress-bar {
  border-radius: 3px;
}

.saff-stats-progress-bar-blue {
  background: #009EFB;
}

.saff-stats-progress-bar-purple {
  background: #8b5cf6;
}

.saff-stats-progress-bar-green {
  background: #b8d4b7;
}

.saff-stats-row-spacing {
  margin-bottom: 10px;
}

/* No decoration link */
.saff-no-decoration-link {
  text-decoration: none;
}

/* Dropdown Menu Custom Styling */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  background-color: #2A8360 !important;
  color: #ffffff !important;
}

/* Select dropdown styling */
select:focus,
select.form-control:focus,
select.select:focus,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #2A8360 !important;
  border-color: #2A8360 !important;
  color: #ffffff !important;
}

/* Option hover state */
option:hover,
option:checked {
  background-color: #2A8360 !important;
  color: #ffffff !important;
}



/* Button styles matching home page Add Ticket button */
.saff-class-btn {
  /* width: 100%; */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none !important;
  border-radius: 10px;
  font-size: 13.5px;
  color: #fff !important; /* White text */
  background: linear-gradient(25deg, #0e372ec1,#007A57) !important; /* Gray to green gradient */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, filter 0.15s ease;
  text-wrap: balance;
}

.saff-class-btn:hover {
  filter: brightness(1.05);
  color: #000 !important; /* Black text on hover */
}

.saff-class-btn:hover * {
  color: #000 !important; /* Make all text content black on hover */
}

.saff-class-btn.dropdown-toggle:hover::after {
  color: #fff !important; /* Keep dropdown arrow white on hover */
}

.saff-class-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}


/* Dropdown menu matching button width */
.btn-group .saff-dropdown-menu-match-width {
  min-width: 100%;
  max-width: 100%;
  width: 100%;
  left: 0 !important;
  right: auto !important;
}


/* lock page styles */

/* Lock Screen Custom Styles */

.saff-lock-user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
  border: 3px solid #4CAF50;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.saff-lock-user-name {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.saff-logout-btn-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.saff-logout-btn {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.saff-logout-btn:hover {
  background-color: #45a049;
}


/* lock page styles */




/* MySAFF Login Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

/* Base Styles - Scoped to login pages only */
.saff-login-page * {
  font-family: 'Tajawal', sans-serif;
}

.saff-login-page body,
body.saff-login-page {
  font-family: 'Tajawal', sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('../login_assets/images/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: left; 
  direction: ltr;
}

/* Layout Components */
.saff-login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

.saff-login-card {
  border-radius: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  max-width: 1200px;
  width: 100%;
  overflow: hidden;
}

.saff-login-form-section {
  padding: 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.saff-login-image-section {
  flex: 1;
  overflow: hidden;
  display: none;
  padding: 1rem;
  background-color: white;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}

/* Glass Effect */
.saff-glass-effect {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* OTP Input Styles */
.saff-otp-input {
  width: 3rem;
  height: 4rem;
  text-align: center;
  font-size: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background-color: #f3f4f6;
  transition: all 0.3s ease-in-out;
  margin: 0 0.25rem 0.5rem 0.25rem;
  font-family: 'Tajawal', sans-serif;
  box-sizing: border-box;
}

.saff-otp-input:focus {
  outline: none;
  border-color: #A2C7BA;
  box-shadow: 0 0 0 2px #A2C7BA;
}

.saff-otp-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

/* Typography */
.saff-verification-code-large {
  font-size: 2rem;
  font-weight: bold;
  color: #0B7B55;
  letter-spacing: 0.5rem;
  text-align: center;
}

.saff-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.saff-logo {
  height: 6rem;
  width: 6rem;
  object-fit: contain;
}

.saff-text-container {
  text-align: center;
}

.saff-text-3xl {
  font-size: 1.875rem;
  font-weight: 700;
  color: #ffffff;
}

.saff-text-xl {
  font-size: 1.25rem;
  color: #d1d5db;
}

/* Form Styles */
.saff-form-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin: 0 auto;
}

.saff-input-group {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* RTL alignment */
}

.saff-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  display: block;
  text-align: left; /* LTR alignment */
}

.saff-input-field {
  margin-top: 0.25rem;
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  transition-property: border-color, box-shadow;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Tajawal', sans-serif;
  box-sizing: border-box;
  text-align: left; /* LTR alignment */
}

.saff-input-field:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 1px #10b981;
}

.saff-input-field::placeholder {
  font-family: 'Tajawal', sans-serif;
  text-align: left; /* LTR alignment */
}

/* Link Styles */
.saff-forgot-password-link {
  font-size: 0.875rem;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: left; /* LTR alignment for English */
}

/* Specific styling for forgot password container in LTR */
.saff-input-group[style*="align-items: flex-end"] {
  text-align: left !important;
}

.saff-input-group[style*="align-items: flex-end"] .saff-forgot-password-link {
  text-align: left !important;
  display: block;
  width: 100%;
}

.saff-forgot-password-link:hover {
  text-decoration: underline;
}

.saff-back-link {
  font-size: 0.875rem;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: 1rem;
}

.saff-back-link:hover {
  text-decoration: underline;
}

/* Button Styles */
.saff-submit-btn {
  width: 100%;
  background-color: #066535;
  color: white;
  padding: 0.75rem;
  border-radius: 1rem;
  font-weight: 600;
  transition-property: background-color;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  box-sizing: border-box;
}

.saff-submit-btn:hover {
  background-color: #044b28;
}

.saff-resend-btn {
  width: 100%;
  background-color: #066535;
  color: white;
  padding: 0.75rem;
  border-radius: 1rem;
  font-weight: 600;
  transition-property: background-color;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: none;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  box-sizing: border-box;
}

.saff-resend-btn:hover {
  background-color: #044b28;
}

.saff-resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Divider */
.saff-section-divider {
  width: 100%;
  border-top: 1px solid #d1d5db;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Message Box */
.saff-message-box {
  position: fixed;
  bottom: 1rem;
  right: 50%;
  transform: translateX(50%) scale(0);
  width: 100%;
  max-width: 24rem;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: left; /* RTL alignment */
}

.saff-message-box-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row; /* RTL alignment - content flows right to left */
}

.saff-message-box-text {
  font-weight: 500;
  color: white;
}

.saff-message-box-close {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
}

/* Alert Message Styling */
.saff-alert-message-container {
  margin-bottom: 1.5rem;
  animation: slideDown 0.4s ease-out;
  width: 100%;
  max-width: 400px;
}

.saff-alert-message-container:empty {
  display: none;
  margin: 0;
}

.saff-alert-message-container .alert {
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInScale 0.4s ease-out;
  position: relative;
  overflow: visible;
  text-align: center;
}

[dir="ltr"] .saff-alert-message-container .alert {
  text-align: center;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
}

.saff-alert-message-container .alert::before {
  display: none;
}

.saff-alert-message-container .alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.saff-alert-message-container .alert-success::before {
  background: #10b981;
}

.saff-alert-message-container .alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.saff-alert-message-container .alert-danger::before {
  background: #ef4444;
}

.saff-alert-message-container .alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  color: #92400e;
}

.saff-alert-message-container .alert-warning::before {
  background: #f59e0b;
}

.saff-alert-message-container .alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.saff-alert-message-container .alert-info::before {
  background: #3b82f6;
}

.saff-alert-message-container .alert strong {
  font-weight: 700;
  display: inline;
  margin: 0;
}

.saff-alert-message-container .close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  transition: opacity 0.2s;
}

[dir="rtl"] .saff-alert-message-container .close {
  left: auto;
  right: 0.5rem;
}

.saff-alert-message-container .close:hover {
  opacity: 1;
}

@keyframes slideDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
      opacity: 0;
      transform: scale(0.95);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
      opacity: 1;
      transform: scale(1);
  }
  to {
      opacity: 0;
      transform: scale(0.95);
  }
}

/* Desktop Media Query */
@media (min-width: 768px) {
  .saff-login-image-section {
      display: flex;
      justify-content: center;
      align-items: center;
  }
  .saff-login-card {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      direction: rtl; /* RTL layout */
  }
  .saff-login-form-section {
      order: 2; /* Form section on the right */
  }
  .saff-login-image-section {
      order: 1; /* Image section on the left */
  }
}

/* Language Switcher Styles */
.language-switcher {
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  right: auto !important;
  z-index: 999999 !important;
  display: block !important;
}

/* Simple button style */
.language-switcher .apply-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  padding: 10px 20px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none;
  display: inline-block !important;
}

.language-switcher .apply-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Dropdown menu styles */
.language-switcher .nav.user-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.language-switcher .flag-nav {
  position: relative !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.language-switcher .nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  color: #333 !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.language-switcher .nav-link:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* Dropdown positioning - aligned with button */
.language-switcher .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  background: white !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  padding: 8px 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  display: none !important;
  list-style: none !important;
  border: none !important;
  margin: 0 !important;
  margin-top: 8px !important;
  z-index: 999999 !important;
  box-sizing: border-box !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

/* Show dropdown when visible */
.language-switcher .dropdown-menu[style*="display: block"],
.language-switcher .dropdown-menu.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* RTL: Align dropdown to right edge of button */
[dir="rtl"] .language-switcher .dropdown-menu {
  right: 0 !important;
  left: auto !important;
}

/* LTR: Align dropdown to left edge of button */
[dir="ltr"] .language-switcher .dropdown-menu {
  left: 0 !important;
  right: auto !important;
}

/* Keep dropdown visible when hovering button or dropdown itself (Desktop only) */
@media (min-width: 768px) {
  .language-switcher .flag-nav:hover .dropdown-menu,
  .language-switcher .dropdown-menu:hover {
      display: block !important;
      opacity: 1 !important;
      visibility: visible !important;
      transform: translateY(0) !important;
      transition: opacity 0.3s ease, transform 0.3s ease;
  }
}

/* Create invisible bridge between button and dropdown */
.language-switcher .flag-nav::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  z-index: 999998;
}

.language-switcher .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  color: #333 !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.language-switcher .dropdown-item:hover {
  background: #f8f9fa !important;
  color: #007452 !important;
}

/* Hide languages other than Arabic and English */
.language-switcher .dropdown-item:not([href*="Lang=ar"]):not([href*="Lang=en"]) {
  display: none !important;
}

/* Body Visibility */
body { 
  visibility: visible; 
}

/* Language-specific text alignment */
[dir="rtl"] .saff-forgot-password-link {
  text-align: right !important;
}

[dir="ltr"] .saff-forgot-password-link {
  text-align: left !important;
}

/* Ensure proper alignment for Arabic */
.saff-input-group[style*="align-items: flex-end"] {
  text-align: right;
}

[dir="ltr"] .saff-input-group[style*="align-items: flex-end"] {
  text-align: left;
}

/* Mobile Responsive Styles */
@media (max-width: 767px) {
  .login-container {
      padding: 1rem;
  }
  .saff-login-card {
      flex-direction: column;
      border-radius: 1.5rem;
      padding: 0;
  }
  .saff-login-form-section, .saff-login-image-section {
      border-radius: 1.5rem;
      border-top-left-radius: 1.5rem;
      border-top-right-radius: 1.5rem;
      border-bottom-left-radius: 1.5rem;
      border-bottom-right-radius: 1.5rem;
      margin-top: 60px;

  }
  .saff-login-image-section {
      display: none;
  }
  .saff-login-form-section {
      padding: 1.5rem;
  }
  .saff-form-container {
      gap: 1rem;
      max-width: 100%;
  }
  .saff-otp-container {
      gap: 0.25rem;
  }
  .saff-otp-input {
      width: 2.5rem;
      height: 3.5rem;
      font-size: 1.2rem;
      margin: 0;
  }
  .saff-verification-code-large {
      font-size: 1.5rem;
  }
  .saff-text-3xl {
      font-size: 1.5rem;
  }
  .saff-text-xl {
      font-size: 1rem;
  }
  .saff-input-field, .saff-submit-btn, .saff-resend-btn {
       padding: 0.875rem;
  }
}


/* MySAFF Login Styles */



/* ===== TICKET STYLES (UNIQUE) ===== */

/* ===== TICKET STYLES (UNIQUE) ===== */

/* Ticket Badge Styles */
.saff-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.bg-inverse-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #dc3545;
}

.bg-inverse-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.bg-inverse-success {
  background: rgba(16, 185, 129, 0.2);
  color: #28a745;
}

.bg-inverse-info {
  background: rgba(59, 130, 246, 0.2);
  color: #17a2b8;
}

/* Ticket Status Badge Colors */
.badge-danger {
  background: #dc3545;
  color: #ffffff;
}

.badge-warning {
  background: #ffc107;
  color: #000000;
}

.badge-success {
  background: #28a745;
  color: #ffffff;
}

.badge-info {
  background: #3b82f6;
  color: #ffffff;
}

/* Ticket Status Variants */
.badge-open {
  background: #3b82f6;
  color: #ffffff;
}

.badge-pending {
  background: #dc3545;
  color: #ffffff;
}

/* SAFF Badge variants */
.saff-badge-supervisor {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.saff-badge-urgent {
  background: #dc3545 !important;
  color: white !important;
}

.saff-badge-medium {
  background: #ffc107 !important;
  color: #000 !important;
}

.saff-badge-danger,
.saff-badge-urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #dc3545;
}

.saff-badge-warning,
.saff-badge-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.saff-badge-success,
.saff-badge-low {
  background: rgba(16, 185, 129, 0.2);
  color: #28a745;
}

.saff-badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #17a2b8;
}

/* Status Badges */
.saff-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
}

.saff-status-open {
  background: #3b82f6;
  color: #ffffff;
}

.saff-status-pending {
  background: #dc3545;
  color: #ffffff;
}

/* ===== TICKET TABLES ===== */
.saff-table-responsive {
  overflow-x: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin; /* Firefox */
  min-width: 100%;
}

.saff-data-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
}

/* Table header row: always show and clearly visible */
.saff-data-table thead {
  display: table-header-group;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 2px solid #dee2e6;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
}

.saff-data-table thead tr {
  display: table-row;
}

/* Header column lines: same style as data rows (#e9ecef) */
.saff-data-table th {
  padding: 0.95rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  /* border-right: 1px solid #e9ecef; */
}
.saff-data-table th:last-child {
  border-right: none;
}

.saff-data-table tbody tr {
  transition: all 0.2s ease;
  background: #ffffff;
  border-bottom: 1px solid #f1f3f5;
}

.saff-data-table tbody tr:hover {
  background: #f8f9fa;
}

.saff-data-table tbody tr:last-child {
  border-bottom: none;
}

.saff-data-table td {
  padding: 0.95rem 1rem;
  border: none;
  /* border-right: 1px solid #e9ecef; */
  vertical-align: middle;
  text-align: left;
}
.saff-data-table td:last-child {
  border-right: none;
}

/* Center align # column */
.saff-data-table th:first-child,
.saff-data-table td:first-child {
  text-align: center;
}

/* Ensure all table cells and content are left-aligned */
.saff-data-table tbody tr td,
.saff-data-table tbody tr td > *,
.saff-data-table tbody tr td .action-label {
  text-align: left;
  direction: ltr;
}

.saff-ticket-id {
  color: #2A8360;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.saff-ticket-id:hover {
  color: #36a085;
  text-decoration: none;
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(42, 131, 96, 0.3);
}

.saff-last-action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
}

.saff-action-date {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: left;
  direction: ltr;
  width: 100%;
}

.saff-action-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  direction: ltr;
  width: 100%;
  font-size: 0.875rem;
}

.saff-action-user a {
  color: #2A8360 !important;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.saff-action-user a:hover {
  color: #36a085 !important;
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(42, 131, 96, 0.3);
}

.saff-action-label {
  color: #000000;
  font-weight: 500;
  text-align: left;
  direction: ltr;
}

/* Status column alignment for LTR */
.action-label {
  text-align: left !important;
  direction: ltr;
  display: block;
  width: 100%;
}

.action-label .badge {
  text-align: center;
}

.saff-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #10b981;
}

/* ===== TICKET DEADLINES ===== */
.saff-deadline-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.saff-deadline-item {
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #f1f3f5;
  border-left: 4px solid #10b981;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 40px;
}

.saff-deadline-item:hover {
  background: #f8f9fa;
}

.saff-deadline-content {
  flex: 1;
}

.saff-deadline-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.saff-deadline-date {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.saff-deadline-date i,
.saff-deadline-date .fa {
  color: #f59e0b !important;
  font-size: 1em;
}

.saff-deadline-badges {
  display: flex;
  gap: 0.5rem;
}

/* ===== TICKET RESPONSIVE ===== */
@media (max-width: 768px) {
  .saff-deadline-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }

  .saff-table-responsive {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }
  
  .saff-data-table th,
  .saff-data-table td {
      padding: 0.75rem 0.5rem;
      min-width: 60px;
  }
}

@media (max-width: 480px) {
  .saff-table-responsive {
      font-size: 0.75rem;
  }

  .saff-data-table th,
  .saff-data-table td {
      padding: 0.5rem 0.75rem;
      font-size: 0.75rem;
      min-width: 80px;
      white-space: nowrap;
  }

  .saff-badge {
      font-size: 0.625rem;
      padding: 0.25rem 0.5rem;
  }

  .saff-status-badge {
      padding: 0.375rem 0.625rem;
      font-size: 0.75rem;
  }

  .saff-mini-avatar {
      width: 20px;
      height: 20px;
  }

  .saff-action-user {
      font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  .saff-badge {
      font-size: 0.625rem;
      padding: 0.2rem 0.5rem;
  }
  
  .saff-status-badge {
      padding: 0.375rem 0.625rem;
      font-size: 0.75rem;
  }
  
  .saff-mini-avatar {
      width: 20px;
      height: 20px;
  }
  
  .saff-action-user {
      font-size: 0.75rem;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
}















/* ===== TICKET STYLES (UNIQUE) ===== */



/* Leaves Requests Scroller Styling */
.saff-leaves-requests-container {
  max-height: 400px; /* Adjust this value to show exactly 2 items */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
}

/* Custom Scrollbar Styling */
.saff-leaves-requests-container::-webkit-scrollbar {
  width: 8px;
}

.saff-leaves-requests-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.saff-leaves-requests-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.saff-leaves-requests-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Firefox Scrollbar */
.saff-leaves-requests-container {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/* Leave info box spacing */
.saff-leaves-requests-container .saff-leave-info-box {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.saff-leaves-requests-container .saff-leave-info-box:last-child {
  border-bottom: none;
}
/* Leaves Requests Scroller Styling */


/* ===== TICKET  All Page STYLES (UNIQUE) ===== */


/* ===== TICKET STYLES (UNIQUE) ===== */

/* Ticket Badge Styles */
.saff-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.saff-bg-inverse-danger {
  background: rgba(239, 68, 68, 0.2);
  color: #dc3545;
}

.saff-bg-inverse-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.saff-bg-inverse-success {
  background: rgba(16, 185, 129, 0.2);
  color: #28a745;
}

.saff-bg-inverse-info {
  background: rgba(59, 130, 246, 0.2);
  color: #17a2b8;
}

/* Ticket Status Badge Colors */
.saff-badge-danger {
  background: #dc3545;
  color: #ffffff;
}

.saff-badge-warning {
  background: #ffc107;
  color: #000000;
}

.saff-badge-success {
  background: #28a745;
  color: #ffffff;
}

.saff-badge-info {
  background: #3b82f6;
  color: #ffffff;
}

/* Ticket Status Variants */
.saff-badge-open {
  background: #3b82f6;
  color: #ffffff;
}

.saff-badge-pending {
  background: #dc3545;
  color: #ffffff;
}

/* SAFF Badge variants */
.saff-badge-supervisor {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.saff-badge-urgent {
  background: #dc3545 !important;
  color: white !important;
}

.saff-badge-medium {
  background: #ffc107 !important;
  color: #000 !important;
}

.saff-badge-danger,
.saff-badge-urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #dc3545;
}

.saff-badge-warning,
.saff-badge-medium {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.saff-badge-success,
.saff-badge-low {
  background: rgba(16, 185, 129, 0.2);
  color: #28a745;
}

.saff-badge-info {
  background: rgba(59, 130, 246, 0.2);
  color: #17a2b8;
}

/* Status Badges */
.saff-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
}

.saff-status-open {
  background: #3b82f6;
  color: #ffffff;
}

.saff-status-pending {
  background: #dc3545;
  color: #ffffff;
}

/* ===== TICKET TABLES ===== */
.saff-table-responsive {
  overflow-x: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin; /* Firefox */
  min-width: 100%;
}

.saff-data-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
}

/* Table header row: always show and clearly visible */
.saff-data-table thead {
  display: table-header-group;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 2px solid #dee2e6;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.05);
}

.saff-data-table thead tr {
  display: table-row;
}

/* Header column lines: same style as data rows (#e9ecef) */
.saff-data-table th {
  padding: 0.95rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  /* border-right: 1px solid #e9ecef; */
}
.saff-data-table th:last-child {
  border-right: none;
}

.saff-data-table tbody tr {
  transition: all 0.2s ease;
  background: #ffffff;
  border-bottom: 1px solid #f1f3f5;
}

.saff-data-table tbody tr:hover {
  background: #f8f9fa;
}

.saff-data-table tbody tr:last-child {
  border-bottom: none;
}

/* Data rows: column lines same as header (#e9ecef) */
.saff-data-table td {
  padding: 0.95rem 1rem;
  border: none;
  /* border-right: 1px solid #e9ecef; */
  vertical-align: middle;
}
.saff-data-table td:last-child {
  border-right: none;
}

.saff-ticket-id {
  color: #2A8360;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.saff-ticket-id:hover {
  color: #36a085;
  text-decoration: none;
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(42, 131, 96, 0.3);
}

.saff-last-action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saff-action-date {
  font-size: 0.875rem;
  color: #6b7280;
}

.saff-action-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.saff-action-user a {
  color: #2A8360 !important;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.saff-action-user a:hover {
  color: #36a085 !important;
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(42, 131, 96, 0.3);
}

.saff-action-label {
  color: #000000;
  font-weight: 500;
}

.saff-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #10b981;
}

/* ===== TICKET DEADLINES ===== */
.saff-deadline-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.saff-deadline-item {
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid #f1f3f5;
  border-left: 4px solid #10b981;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 40px;
}

.saff-deadline-item:hover {
  background: #f8f9fa;
}

.saff-deadline-content {
  flex: 1;
}

.saff-deadline-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.saff-deadline-date {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.saff-deadline-date i,
.saff-deadline-date .fa {
  color: #f59e0b !important;
  font-size: 1em;
}

.saff-deadline-badges {
  display: flex;
  gap: 0.5rem;
}

/* ===== TICKET RESPONSIVE ===== */
@media (max-width: 768px) {
  .saff-deadline-item {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }

  .saff-table-responsive {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }
  
  .saff-data-table th,
  .saff-data-table td {
      padding: 0.75rem 0.5rem;
      min-width: 60px;
  }
}

@media (max-width: 480px) {
  .saff-table-responsive {
      font-size: 0.75rem;
  }

  .saff-data-table th,
  .saff-data-table td {
      padding: 0.5rem 0.75rem;
      font-size: 0.75rem;
      min-width: 80px;
      white-space: nowrap;
  }

  .saff-badge {
      font-size: 0.625rem;
      padding: 0.25rem 0.5rem;
  }

  .saff-status-badge {
      padding: 0.375rem 0.625rem;
      font-size: 0.75rem;
  }

  .saff-mini-avatar {
      width: 20px;
      height: 20px;
  }

  .saff-action-user {
      font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  .saff-badge {
      font-size: 0.625rem;
      padding: 0.2rem 0.5rem;
  }
  
  .saff-status-badge {
      padding: 0.375rem 0.625rem;
      font-size: 0.75rem;
  }
  
  .saff-mini-avatar {
      width: 20px;
      height: 20px;
  }
  
  .saff-action-user {
      font-size: 0.75rem;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  border-radius: 5px;
}

/* ===== TICKET  All Page STYLES (UNIQUE) ===== */


/* ===== my leave: archive container (UNIQUE) ===== */
.saff-archive-container {
  margin: 20px 0 !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  justify-content: end !important;
  align-items: center !important;
  align-content: center !important;
}

/* ===== my leave: archive container (UNIQUE) ===== */




/* ================================================== Notifications Enhanced Styles Start ================================================== */

    /* Enhanced Notifications Styles */
    .saff-notifications-enhanced {
      background: #f8f9fa !important;
      min-height: 100vh !important;
      padding: 20px;
  }
  
  .saff-notifications-header {
      background: white !important;
      padding: 25px !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
      margin-bottom: 25px !important;
  }
  
  .saff-notifications-header .page-title {
      font-size: 28px !important;
      font-weight: 700 !important;
      color: #333 !important;
      margin-bottom: 10px !important;
      display: flex !important;
      align-items: center !important;
  }
  
  .saff-notifications-header .badge {
      margin-left: 10px !important;
      padding: 6px 12px !important;
      border-radius: 20px !important;
  }
  
  .saff-notification-actions {
      display: flex !important;
      gap: 10px !important;
      flex-wrap: wrap !important;
      justify-content: flex-end !important;
  }
  
  .saff-filter-btn {
      border: 1px solid #ddd !important;
      border-radius: 8px !important;
      padding: 8px 16px !important;
      font-size: 14px !important;
      transition: all 0.3s ease !important;
  }
  
  .saff-filter-btn:hover {
      background: #f0f0f0 !important;
      border-color: #999 !important;
      transform: translateY(-2px) !important;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
  }
  
  /* Select All Section */
  .saff-notification-select-all {
      background: white !important;
      padding: 20px 25px !important;
      border-radius: 12px !important;
      margin-bottom: 20px !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      flex-wrap: wrap !important;
      gap: 15px !important;
  }
  
  .saff-select-all-left {
      display: flex !important;
      align-items: center !important;
  }
  
  .saff-select-all-right {
      display: flex !important;
      gap: 10px !important;
      flex-wrap: wrap !important;
      opacity: 1 !important;
      transition: opacity 0.3s ease, transform 0.3s ease !important;
      transform: scale(1) !important;
  }
  
  .saff-select-all-right.saff-hidden {
      display: none !important;
      opacity: 0 !important;
      transform: scale(0.95) !important;
  }
  
  .saff-custom-checkbox {
      display: flex !important;
      align-items: center !important;
      cursor: pointer !important;
      margin: 0 !important;
      color: #333 !important;
      font-weight: 600 !important;
      font-size: 16px !important;
  }
  
  .saff-custom-checkbox input[type="checkbox"] {
      display: none !important;
  }
  
  .saff-custom-checkbox .saff-checkmark {
      width: 24px !important;
      height: 24px !important;
      border: 2px solid #007A57 !important;
      border-radius: 6px !important;
      margin-right: 12px !important;
      position: relative;
      background: white !important;
      transition: all 0.3s ease !important;
  }
  
  .saff-custom-checkbox input:checked + .saff-checkmark {
      background: #007A57 !important;
      border-color: #007A57 !important;
  }
  
  .saff-custom-checkbox input:checked + .saff-checkmark:after {
      content: "✓" !important;
      position: absolute !important;
      top: 50% !important;
      left: 50% !important;
      transform: translate(-50%, -50%) !important;
      color: white !important;
      font-size: 16px !important;
      font-weight: bold !important;
  }
  
  .saff-action-btn {
      border-radius: 8px !important;
      padding: 10px 20px !important;
      font-weight: 600 !important;
      font-size: 14px !important;
      transition: all 0.3s ease !important;
      border: none !important;
  }
  
  .saff-action-btn:hover {
      transform: translateY(-2px) !important;
      box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
  }
  
  .saff-action-btn i {
      /* margin-right: 6px !important; */
  }
  
  /* Icon-only button styles */
  .saff-icon-btn {
      padding: 10px !important;
      border-radius: 50% !important;
      width: 42px !important;
      height: 42px !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      overflow: hidden !important;
      white-space: nowrap !important;
      position: relative !important;
  }
  
  .saff-icon-btn i {
      margin-right: 0 !important;
      transition: margin 0.3s ease !important;
      font-size: 16px !important;
  }
  
  .saff-icon-btn .saff-btn-text {
      max-width: 0 !important;
      opacity: 0 !important;
      overflow: hidden !important;
      transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease !important;
      display: inline-block !important;
      white-space: nowrap !important;
  }
  
  .saff-icon-btn:hover {
      border-radius: 8px !important;
      width: auto !important;
      padding: 10px 20px !important;
  }
  
  .saff-icon-btn:hover i {
      margin-right: 8px !important;
  }
  
  .saff-icon-btn:hover .saff-btn-text {
      max-width: 200px !important;
      opacity: 1 !important;
      margin-left: 0 !important;
  }
  
  /* Notification Cards */
  .saff-notifications-container {
      display: flex !important;
      flex-direction: column !important;
      gap: 15px !important;
  }
  
  .saff-notification-card {
      background: white !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
      transition: all 0.3s ease !important;
      border-left: 4px solid transparent !important;
      overflow: hidden !important;
  }
  
  .saff-notification-card:hover {
      box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
      transform: translateY(-3px) !important;
  }
  
  .saff-notification-card.active {
      background: #fff9f5 !important;
      border-left-color: #f9a751 !important;
  }
  
  .saff-notification-card.unread {
      border-left-color: #f9a751 !important;
  }
  
  .saff-notification-card-inner {
      display: flex !important;
      align-items: center !important;
      gap: 20px !important;
  }
  
  /* Avatar */
  .saff-notification-avatar {
      flex-shrink: 0 !important;
  }
  
  .saff-notification-avatar img {
      width: 55px !important;
      height: 55px !important;
      border-radius: 50% !important;
      object-fit: cover !important;
      border: 3px solid #f0f0f0 !important;
      transition: all 0.3s ease;
  }
  
  .saff-notification-card:hover .saff-notification-avatar img {
      border-color: #f9a751 !important;
      transform: scale(1.05) !important;
  }
  
  /* Content */
  .saff-notification-content {
      flex: 1 !important;
      min-width: 0 !important;
  }
  
  .saff-notification-header {
      margin-bottom: 8px !important;
      display: flex !important;
      align-items: center !important;
      gap: 10px !important;
  }
  
  .saff-notification-title {
      color: #333 !important;
      font-size: 16px !important;
      font-weight: 600 !important;
      text-decoration: none !important;
      display: block !important;
      line-height: 1.4 !important;
      transition: color 0.3s ease !important;
  }
  
  .saff-notification-title:hover {
      color: var(--saff-new-warning-color) !important;
      text-decoration: none !important;
  }
  
  /* NEW Badge */
  .saff-new-badge {
      display: none !important;
      background: linear-gradient(135deg, var(--saff-new-warning-color) 0%, var(--saff-new-orange-color) 100%) !important;
      color: white !important;
      font-size: 10px !important;
      font-weight: 700 !important;
      padding: 3px 8px !important;
      border-radius: 12px !important;
      text-transform: uppercase !important;
      letter-spacing: 0.5px !important;
      box-shadow: 0 2px 6px rgba(249, 167, 81, 0.4) !important;
      animation: pulseNew 2s ease-in-out infinite !important;
      white-space: nowrap !important;
  }
  
  .saff-notification-card.active .saff-new-badge {
      display: inline-block !important;
  }
  
  @keyframes pulseNew {
      0%, 100% {
          transform: scale(1);
          box-shadow: 0 2px 6px rgba(249, 167, 81, 0.4);
      }
      50% {
          transform: scale(1.05);
          box-shadow: 0 3px 8px rgba(249, 167, 81, 0.6);
      }
  }
  
  .saff-notification-meta {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 15px !important;
      font-size: 14px !important;
      color: #666 !important;
  }
  
  .saff-notification-sender,
  .saff-notification-time {
      display: flex !important;
      align-items: center !important;
  }
  
  .saff-sender-name {
      color: var(--saff-new-success-color) !important;
      font-weight: 600 !important;
      text-decoration: none !important;
      margin-left: 4px !important;
  }
  
  .saff-sender-name:hover {
      text-decoration: underline !important;
  }
  
  /* Actions */
  .saff-notification-actions-inner {
      display: flex !important;
      align-items: center !important;
      gap: 15px;
      flex-shrink: 0 !important;
  }
  
  .saff-notification-fav {
      width: 40px !important;
      height: 40px !important;
      border-radius: 50% !important;
      border: 2px solid #e0e0e0 !important;
      background: white !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: pointer !important;
      transition: all 0.3s ease !important;
      font-size: 18px !important;
      color: #999 !important;
  }
  
  .saff-notification-fav:hover {
      background: #fff5f5 !important;
      border-color: var(--saff-new-danger-color) !important;
      transform: scale(1.1) !important;
  }
  
  .saff-notification-fav.red {
      background: var(--saff-new-danger-color) !important;
      border-color: var(--saff-new-danger-color) !important;
      color: white !important;
  }
  
  .saff-notification-fav.red:hover {
      background: var(--saff-danger-color) !important;
      transform: scale(1.15) !important;
  }
  
  /* Custom Checkbox */
  .saff-notification-checkbox {
      position: relative !important;
      cursor: pointer !important;
      margin: 0 !important;
  }
  
  .saff-notification-checkbox input[type="checkbox"] {
      display: none !important;
  }
  
  .saff-checkbox-custom {
      width: 22px !important;
      height: 22px !important;
      border: 2px solid #ddd !important;
      border-radius: 6px !important;
      display: block !important;
      transition: all 0.3s ease !important;
      position: relative;
      background: white !important;
  }
  
  .saff-notification-checkbox input:checked + .saff-checkbox-custom {
      background: var(--saff-new-success-color) !important;
      border-color: var(--saff-new-success-color) !important;
  }
  
  .saff-notification-checkbox input:checked + .saff-checkbox-custom:after {
      content: "✓" !important;
      position: absolute !important;
      top: 50% !important;
      left: 50% !important;
      transform: translate(-50%, -50%) !important;
      color: white !important;
      font-size: 14px !important;
      font-weight: bold !important;
  }
  
  /* Submit Section */
  .saff-notifications-submit-section {
      background: white !important;
      padding: 20px 25px !important;
      border-radius: 12px !important;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      margin-top: 25px !important;
      display: flex !important;
      gap: 12px !important;
      flex-wrap: wrap !important;
  }
  
  .saff-notifications-submit-section .btn {
      border-radius: 8px !important;
      padding: 12px 24px !important;
      font-weight: 600 !important;
      font-size: 14px !important;
      transition: all 0.3s ease !important;
      border: none !important;
  }
  
  .saff-notifications-submit-section .btn:hover {
      transform: translateY(-2px) !important;
      box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
  }
  
  .saff-notifications-submit-section .btn i {
      margin-right: 8px !important;
  }
  
  /* Pagination */
  .saff-notifications-enhanced .pagination {
      /* background: white !important; */
      padding: 20px !important;
      /* border-radius: 12px !important; */
      /* box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important; */
      margin-top: 20px !important;
      display: flex !important;
      justify-content: end !important;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
      .saff-notification-card-inner {
          flex-wrap: wrap !important;
          gap: 15px !important;
      }
      
      .saff-notification-actions-inner {
          width: 100% !important;
          justify-content: space-between !important;
      }
      
      .saff-notification-actions-inner {
          order: 3 !important;
      }
      
      .saff-notification-avatar {
          order: 1 !important;
      }
      
      .saff-notification-content {
          order: 2 !important;
          width: 100% !important;
      }
      
      .saff-notifications-header .page-title {
          font-size: 22px !important;
      }
      
      .saff-notification-actions {
          justify-content: flex-start !important;
      }
      
      .saff-notification-select-all {
          flex-direction: column !important;
          align-items: flex-start !important;
      }
      
      .saff-select-all-left {
          width: 100% !important;
          margin-bottom: 15px !important;
      }
      
      .saff-select-all-right {
          width: 100% !important;
          flex-direction: column !important;
      }
      
      .saff-action-btn {
          width: 100% !important;
      }
      
      .saff-icon-btn {
          width: 100% !important;
          border-radius: 8px !important;
          justify-content: flex-start !important;
      }
      
      .saff-icon-btn .saff-btn-text {
          max-width: 200px !important;
          opacity: 1 !important;
      }
      
      .saff-icon-btn i {
          margin-right: 8px !important;
      }
  }
  
  /* Animation */
  @keyframes saffSlideIn {
      from {
          opacity: 0;
          transform: translateY(20px) !important;
      }
      to {
          opacity: 1;
          transform: translateY(0) !important;
      }
  }
  
  .saff-notification-card {
      animation: saffSlideIn 0.4s ease-out !important;
  }
  
  .saff-notification-card.saff-selected {
      border-left-color: var(--saff-new-success-color) !important;
      background: #f0f9f7 !important;
  }
  
  /* Scroll to top button */
  .saff-scroll-to-top {
      position: fixed !important;
      bottom: 30px !important;
      right: 30px !important;
      width: 50px !important;
      height: 50px !important;
      border-radius: 50% !important;
      background: linear-gradient(135deg, #007A57 0%, #005a40 100%);
      color: white !important;
      border: none !important;
      font-size: 20px !important;
      cursor: pointer !important;
      opacity: 0 !important;
      visibility: hidden !important;
      transition: all 0.3s ease !important;
      box-shadow: 0 4px 15px rgba(0, 122, 87, 0.4) !important;
      z-index: 999 !important;
  }
  
  .saff-scroll-to-top.saff-show {
      opacity: 1 !important;
      visibility: visible !important;
  }
  
  .saff-scroll-to-top:hover {
      transform: translateY(-5px) !important;
      box-shadow: 0 8px 20px rgba(0, 122, 87, 0.5) !important;
  }

  /* Bell dropdown: same card look, compact size */
  .saff-notifications-dropdown .notification-list {
      padding: 0 !important;
      list-style: none !important;
  }
  .saff-notifications-dropdown .notification-list li {
      list-style: none !important;
      margin: 0 !important;
      border-radius: 12px !important;
      margin-bottom: 6px !important;
  }
  .saff-notifications-dropdown .saff-notification-avatar img {
      width: 42px !important;
      height: 42px !important;
  }
  .saff-notifications-dropdown .saff-notification-card:hover {
      transform: none !important;
  }
  .saff-notifications-dropdown .saff-notification-title {
      font-size: 14px !important;
  }
  /* Remove green/grey background on hover for notification text and links */
  .notifications ul.notification-list > li a:hover,
  .notifications .media a:hover,
  .saff-notifications-dropdown a:hover,
  .saff-notifications-dropdown .saff-notification-title:hover {
      background-color: transparent !important;
      background: transparent !important;
  }
  .saff-notifications-dropdown .saff-notification-meta {
      font-size: 12px !important;
      gap: 10px !important;
  }

  /* Notification dropdown: remove green scrollbar (override global) */
  .notifications .noti-content::-webkit-scrollbar {
      width: 8px;
  }
  .notifications .noti-content::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 5px;
  }
  .notifications .noti-content::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 5px;
  }
  .notifications .noti-content::-webkit-scrollbar-thumb:hover {
      background: #a8a8a8;
  }
  .notifications .noti-content {
      scrollbar-width: thin;
      scrollbar-color: #c1c1c1 #f1f1f1;
  }

/* ================================================== Notifications Enhanced Styles End ================================================== */


/* ================================================== App Code Styles Start ================================================== */

/* ============================================ */
/* SAFF App Code Page Styles                   */
/* ============================================ */

.saff-appcode-container {
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  margin: 20px auto !important;
  max-width: 680px !important;
}

/* Illustration Section */
.saff-appcode-illustration {
  position: relative !important;
  height: 160px !important;
  background: linear-gradient(145deg, var(--saff-new-primary-color) 0%, var(--saff-new-secondary-color) 100%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.saff-appcode-circle {
  position: absolute !important;
  border-radius: 50% !important;
  opacity: 0.08 !important;
  background: #fff !important;
}

.saff-appcode-circle-1 {
  width: 300px !important;
  height: 300px !important;
  top: -150px !important;
  right: -100px !important;
}

.saff-appcode-circle-2 {
  width: 200px !important;
  height: 200px !important;
  bottom: -100px !important;
  left: -50px !important;
  opacity: 0.05 !important;
}

.saff-appcode-circle-3 {
  width: 80px !important;
  height: 80px !important;
  top: 20px !important;
  left: 30% !important;
  opacity: 0.04 !important;
}

.saff-appcode-icon-box {
  width: 80px !important;
  height: 80px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  z-index: 2 !important;
}

/* Content Section */
.saff-appcode-content {
  padding: 32px 28px 36px !important;
}

.saff-appcode-header {
  text-align: center !important;
  margin-bottom: 24px !important;
}

.saff-appcode-title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 6px 0 !important;
  letter-spacing: -0.3px !important;
}

.saff-appcode-subtitle {
  font-size: 14px !important;
  color: #888 !important;
  margin: 0 !important;
}

.saff-appcode-instruction {
  text-align: center !important;
  font-size: 15px !important;
  color: #555 !important;
  line-height: 1.7 !important;
  margin: 0 0 28px 0 !important;
  padding: 0 10px !important;
}

/* Code Digits */
.saff-appcode-code-section {
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

.saff-appcode-digits-row {
  display: inline-flex !important;
  gap: 10px !important;
  direction: ltr !important;
  margin-bottom: 20px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.saff-appcode-digit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 64px !important;
  background: #f7f8fa !important;
  border: 1.5px solid #e4e7ec !important;
  border-radius: 12px !important;
  font-size: 28px !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace !important;
  transition: all 0.2s ease !important;
}

.saff-appcode-digit:hover {
  border-color: #0a4d3a !important;
  background: #f0fdf4 !important;
  transform: translateY(-2px) !important;
}

.saff-appcode-digit.saff-appcode-expired {
  opacity: 0.4 !important;
  filter: blur(2px) !important;
}

/* Copy Button */
.saff-appcode-copy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 24px !important;
  background: #0a4d3a !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-bottom: 20px !important;
}

.saff-appcode-copy-btn:hover {
  background: #063528 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(10, 77, 58, 0.3) !important;
}

.saff-appcode-copy-btn:active {
  transform: translateY(0) !important;
}

.saff-appcode-copy-btn.saff-appcode-copied {
  background: #EACB74 !important;
}

.saff-appcode-copy-btn.saff-appcode-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.saff-appcode-copy-icon {
  transition: transform 0.2s ease !important;
}

.saff-appcode-copy-btn:hover .saff-appcode-copy-icon {
  transform: scale(1.1) !important;
}

/* Timer Wrapper */
.saff-appcode-timer-wrapper {
  display: flex !important;
  justify-content: center !important;
}

/* Timer Badge */
.saff-appcode-timer {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 24px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 100px !important;
}

.saff-appcode-timer.saff-appcode-timer-warning {
  background: #fef9c3 !important;
  border-color: #fde047 !important;
}

.saff-appcode-timer.saff-appcode-timer-warning .saff-appcode-timer-dot {
  background: #eab308 !important;
}

.saff-appcode-timer.saff-appcode-timer-warning .saff-appcode-timer-text {
  color: #a16207 !important;
}

.saff-appcode-timer.saff-appcode-hidden {
  display: none !important;
}

.saff-appcode-timer-dot {
  width: 10px !important;
  height: 10px !important;
  background: var(--saff-new-success-color) !important;
  border-radius: 50% !important;
  animation: saff-blink 1s ease-in-out infinite !important;
}

@keyframes saff-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

.saff-appcode-timer-text {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--saff-new-primary-color) !important;
  min-width: 36px !important;
}

/* Reload Button - Hidden by default, shown via class */
.saff-appcode-reload-btn {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 28px !important;
  background: linear-gradient(135deg, var(--saff-new-gold-color) 0%, var(--saff-new-gold-color) 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #000000 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  animation: saff-fadeIn 0.3s ease !important;
}

.saff-appcode-reload-btn.saff-appcode-show {
  display: inline-flex !important;
}

.saff-appcode-reload-btn:hover {
  background: linear-gradient(135deg, var(--saff-new-gold-color) 0%, var(--saff-new-gold-color) 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

@keyframes saff-fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Denied State */
.saff-appcode-denied {
  text-align: center !important;
  padding: 24px !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 16px !important;
  margin-top: 8px !important;
}

.saff-appcode-denied-icon {
  color: var(--saff-new-gold-color) !important;
  margin-bottom: 12px !important;
}

.saff-appcode-denied-text {
  font-size: 14px !important;
  color: #b91c1c !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* ============================================ */
/* Responsive Styles                           */
/* ============================================ */

@media (max-width: 480px) {
  .saff-appcode-container {
      margin: 10px !important;
      border-radius: 20px !important;
  }
  
  .saff-appcode-illustration {
      height: 130px !important;
  }
  
  .saff-appcode-icon-box {
      width: 64px !important;
      height: 64px !important;
      border-radius: 16px !important;
  }
  
  .saff-appcode-icon-box svg {
      width: 32px !important;
      height: 32px !important;
  }
  
  .saff-appcode-content {
      padding: 24px 20px 28px !important;
  }
  
  .saff-appcode-title {
      font-size: 22px !important;
  }
  
  .saff-appcode-digit {
      width: 44px !important;
      height: 54px !important;
      font-size: 22px !important;
      border-radius: 10px !important;
  }
  
  .saff-appcode-digits-row {
      gap: 8px !important;
  }
  
  .saff-appcode-copy-btn {
      padding: 10px 20px !important;
      font-size: 13px !important;
  }
  
  .saff-appcode-timer {
      padding: 10px 18px !important;
  }
  
  .saff-appcode-timer-text {
      font-size: 14px !important;
  }
}

/* RTL Support */
/* Download App Section */
.saff-appcode-download-section {
  margin-top: 32px !important;
  padding-top: 0 !important;
}

.saff-appcode-download-divider {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 28px !important;
}

.saff-appcode-download-divider::before,
.saff-appcode-download-divider::after {
  content: '' !important;
  flex: 1 !important;
  height: 1px !important;
  background: linear-gradient(90deg, transparent, #e4e7ec, transparent) !important;
}

.saff-appcode-download-divider span {
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #888 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.saff-appcode-download-content {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
  padding: 24px !important;
  background: linear-gradient(145deg, #f8faf9 0%, #f0f7f4 100%) !important;
  border-radius: 16px !important;
  border: 1px solid #e4ebe8 !important;
}

.saff-appcode-download-text {
  flex: 1 !important;
}

.saff-appcode-download-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin: 0 0 8px 0 !important;
}

.saff-appcode-download-desc {
  font-size: 14px !important;
  color: #666 !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.5 !important;
}

.saff-appcode-store-buttons {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.saff-appcode-store-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.saff-appcode-store-ios {
  background: #000 !important;
  color: #fff !important;
}

.saff-appcode-store-ios:hover {
  background: #333 !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.saff-appcode-store-android {
  background: #0a4d3a !important;
  color: #fff !important;
}

.saff-appcode-store-android:hover {
  background: #063528 !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(10, 77, 58, 0.3) !important;
}

.saff-appcode-qr-wrapper {
  text-align: center !important;
  flex-shrink: 0 !important;
}

.saff-appcode-qr-box {
  width: 120px !important;
  height: 120px !important;
  padding: 8px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid #e4e7ec !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 8px !important;
  transition: all 0.2s ease !important;
}

.saff-appcode-qr-box:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.saff-appcode-qr-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 6px !important;
}

.saff-appcode-qr-label {
  font-size: 12px !important;
  color: #888 !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

/* Responsive for download section */
@media (max-width: 580px) {
  .saff-appcode-download-content {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .saff-appcode-download-text {
    order: 2 !important;
  }
  
  .saff-appcode-qr-wrapper {
    order: 1 !important;
    margin-bottom: 16px !important;
  }
  
  .saff-appcode-store-buttons {
    justify-content: center !important;
  }
}

[dir="rtl"] .saff-appcode-digits-row {
  direction: ltr !important;
}

/* ================================================== App Code Styles End ================================================== */

/* ================================================== Approval Modal Styles Start ================================================== */

/* Modern Simple Approval Modal Styling */
.saff-simple-approval-modal .modal-body {
  padding: 0;
  background: #f9fafb;
}

.saff-simple-approval-header {
  background: #fff;
  color: #111827;
  padding: 28px;
  border-radius: 12px 12px 0 0;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.saff-simple-approval-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #111827;
}

.saff-simple-approval-header p {
  font-size: 15px;
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.saff-simple-approval-actions {
  padding: 24px 28px 28px;
  background: #fff;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.saff-simple-approval-actions .btn {
  min-width: 140px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.saff-simple-approval-actions .btn-approve {
  background: linear-gradient(25deg, var(--saff-new-primary-color), var(--saff-new-success-color));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 122, 87, 0.2);
}

.saff-simple-approval-actions .btn-approve:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 87, 0.3);
  filter: brightness(1.05);
}

.saff-simple-approval-actions .btn-approve:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.saff-simple-approval-actions .btn-cancel {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.saff-simple-approval-actions .btn-cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-1px);
}

/* Approve/Reject modal wrapper: white, rounded, shadow (match second image) */
.custom-modal .modal-content:has(.saff-simple-approval-modal),
.custom-modal .modal-content:has(.saff-reject-modal) {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* ================================================== Approval Modal Styles End ================================================== */

/* ================================================== Approval Letter Modal Styles Start ================================================== */

/* Modern Approval Modal Styling */
.saff-approval-modal .modal-body {
  padding: 0;
  background: #f9fafb;
}

.saff-approval-header {
  background: #fff;
  color: #111827;
  padding: 24px 28px;
  border-radius: 12px 12px 0 0;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.saff-approval-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #111827;
}

.saff-approval-header p {
  font-size: 15px;
  margin: 0;
  color: #6b7280;
}

.saff-approval-content {
  padding: 28px;
}

.saff-approval-form-group {
  margin-bottom: 24px;
}

.saff-approval-form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  font-size: 14px;
}

.saff-approval-form-group textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s ease;
  background: #fff;
}

.saff-approval-form-group textarea:focus {
  outline: none;
  border-color: var(--saff-new-success-color);
  box-shadow: 0 0 0 3px rgba(0, 122, 87, 0.1);
}

.saff-approval-toggle-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.saff-approval-toggle-section:hover {
  border-color: var(--saff-new-success-color);
  box-shadow: 0 2px 8px rgba(0, 122, 87, 0.08);
}

.saff-approval-toggle-label {
  flex: 1;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.saff-approval-toggle-label .date-highlight {
  color: var(--saff-new-success-color);
  font-weight: 600;
}

.saff-approval-toggle-wrapper {
  flex-shrink: 0;
}

.saff-approval-actions {
  padding: 20px 28px 28px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.saff-approval-actions .btn {
  flex: 1;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.saff-approval-actions .btn-submit {
  background: linear-gradient(25deg, var(--saff-new-primary-color), var(--saff-new-success-color));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 122, 87, 0.2);
}

.saff-approval-actions .btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 87, 0.3);
  filter: brightness(1.05);
}

.saff-approval-actions .btn-submit:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.saff-approval-actions .btn-stamp {
  background: linear-gradient(25deg, var(--saff-new-warning-color), var(--saff-new-orange-color));
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 130, 54, 0.2);
}

.saff-approval-actions .btn-stamp:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 130, 54, 0.3);
  filter: brightness(1.05);
}

.saff-approval-actions .btn-cancel {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.saff-approval-actions .btn-cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-1px);
}

/* Modern Toggle Switch */
.saff-modern-toggle {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.saff-modern-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.saff-modern-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 28px;
}

.saff-modern-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.saff-modern-toggle input:checked + .saff-modern-toggle-slider {
  background-color: var(--saff-new-success-color);
}

.saff-modern-toggle input:checked + .saff-modern-toggle-slider:before {
  transform: translateX(24px);
}

.saff-modern-toggle input:focus + .saff-modern-toggle-slider {
  box-shadow: 0 0 0 3px rgba(0, 122, 87, 0.2);
}

.saff-modern-toggle:hover .saff-modern-toggle-slider {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ================================================== Approval Letter Modal Styles End ================================================== */

/* ================================================== Decline Modal Styles Start ================================================== */

/* Modern Decline Modal Styling */
.saff-decline-modal .modal-body {
  padding: 0;
  background: #f9fafb;
}

.saff-decline-header {
  background: #fff;
  color: #111827;
  padding: 24px 28px;
  border-radius: 12px 12px 0 0;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.saff-decline-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #111827;
}

.saff-decline-header p {
  font-size: 15px;
  margin: 0;
  color: #6b7280;
}

.saff-decline-content {
  padding: 28px;
}

.saff-decline-form-group {
  margin-bottom: 24px;
}

.saff-decline-form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  font-size: 14px;
}

.saff-decline-form-group label .text-danger {
  color: var(--saff-new-danger-color);
  margin-left: 4px;
}

.saff-decline-form-group textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s ease;
  background: #fff;
}

.saff-decline-form-group textarea:focus {
  outline: none;
  border-color: var(--saff-new-danger-color);
  box-shadow: 0 0 0 3px rgba(195, 7, 32, 0.1);
}

.saff-decline-actions {
  padding: 20px 28px 28px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.saff-decline-actions .btn {
  flex: 1;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.saff-decline-actions .btn-decline {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #dc3545 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.saff-decline-actions .btn-decline:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #dc3545 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
  filter: brightness(1.05);
}

.saff-decline-actions .btn-decline:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.saff-decline-actions .btn-cancel {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.saff-decline-actions .btn-cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-1px);
}

/* ================================================== Decline Modal Styles End ================================================== */

/* ================================================== Reject Letter Modal Styles Start ================================================== */

/* Modern Reject Modal Styling */
.saff-reject-modal .modal-body {
  padding: 0;
  background: #f9fafb;
}

.saff-reject-header {
  background: #fff;
  color: #111827;
  padding: 24px 28px;
  border-radius: 12px 12px 0 0;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.saff-reject-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #111827;
}

.saff-reject-header p {
  font-size: 15px;
  margin: 0;
  color: #6b7280;
}

.saff-reject-content {
  padding: 28px;
}

.saff-reject-form-group {
  margin-bottom: 24px;
}

.saff-reject-form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 10px;
  font-size: 14px;
}

.saff-reject-form-group label .text-danger {
  color: var(--saff-new-danger-color);
  margin-left: 4px;
}

.saff-reject-form-group textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: all 0.2s ease;
  background: #fff;
}

.saff-reject-form-group textarea:focus {
  outline: none;
  border-color: var(--saff-new-danger-color);
  box-shadow: 0 0 0 3px rgba(195, 7, 32, 0.1);
}

.saff-reject-toggle-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.saff-reject-toggle-section:hover {
  border-color: var(--saff-new-danger-color);
  box-shadow: 0 2px 8px rgba(195, 7, 32, 0.08);
}

.saff-reject-toggle-label {
  flex: 1;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.saff-reject-toggle-wrapper {
  flex-shrink: 0;
}

.saff-reject-actions {
  padding: 20px 28px 28px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.saff-reject-actions .btn {
  flex: 1;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.saff-reject-actions .btn-reject {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #dc3545 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.saff-reject-actions .btn-reject:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #dc3545 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
  filter: brightness(1.05);
}

.saff-reject-actions .btn-reject:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.saff-reject-actions .btn-cancel {
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.saff-reject-actions .btn-cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
  transform: translateY(-1px);
}

/* Toggle Switch for Reject Modal - uses danger color */
.saff-reject-modal .saff-modern-toggle input:checked + .saff-modern-toggle-slider {
  background-color: var(--saff-new-danger-color);
}

.saff-reject-modal .saff-modern-toggle input:focus + .saff-modern-toggle-slider {
  box-shadow: 0 0 0 3px rgba(195, 7, 32, 0.2);
}

/* ================================================== Reject Letter Modal Styles End ================================================== */

/* ================================================== Modern Signature Box & Leaves Requests Styles Start ================================================== */

/* Remove height: 100% from signature and leaves cards only */
.saff-card-auto-height {
  height: auto !important;
}

.saff-modern-request-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.saff-modern-request-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.saff-modern-request-card:last-child {
  margin-bottom: 0;
}

.saff-modern-request-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.saff-modern-request-header .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.saff-modern-request-header .media-body {
  flex: 1;
}

.saff-modern-request-header .media-body a {
  color: #111827;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.saff-modern-request-header .media-body a:hover {
  color: var(--saff-new-success-color);
}

.saff-modern-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.saff-modern-request-meta .badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
}

.saff-modern-request-meta h6 {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.saff-modern-request-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.saff-modern-request-actions .btn {
  flex: 1;
  min-width: 100px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  border: none !important;
  transition: transform 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.saff-modern-request-actions .btn-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #dc3545 !important;
  border: none !important;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.saff-modern-request-actions .btn-danger:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #dc3545 !important;
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.saff-modern-request-actions .btn-danger:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.saff-modern-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
}

.saff-modern-card-title i {
  color: var(--saff-new-warning-color);
  font-size: 20px;
}

.saff-modern-card-title .badge {
  margin-right: 8px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.saff-leaves-requests-container {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.saff-leaves-requests-container::-webkit-scrollbar {
  width: 6px;
}

.saff-leaves-requests-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.saff-leaves-requests-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.saff-leaves-requests-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ================================================== Modern Signature Box & Leaves Requests Styles End ================================================== */

/* ================================================== Ticket Box Modal Styles Start ================================================== */

/* Modern Modal Styling */
.custom-modal .saff-modal-header {
  background: linear-gradient(25deg, #0e372ec1, #007A57);
  color: #fff;
  border: 0;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
}

.custom-modal .saff-modal-title {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.custom-modal .saff-close {
  color: #fff;
  opacity: 1;
  text-shadow: none;
  font-size: 24px;
  font-weight: 300;
}

.custom-modal .saff-close:hover {
  opacity: 0.8;
  filter: brightness(0.9);
}

.custom-modal .saff-modal-body {
  padding: 24px;
  background: #f9fafb;
}

.custom-modal .saff-form-group {
  margin-bottom: 20px;
}

.custom-modal .saff-form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
  display: block;
}

.custom-modal .saff-form-control {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #fff;
}

.custom-modal .saff-form-control:focus {
  border-color: #007A57;
  box-shadow: 0 0 0 3px rgba(0, 122, 87, 0.1);
  outline: none;
}

.custom-modal .select2-container--default .select2-selection--single {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  height: 42px;
  padding: 4px 8px;
}

.custom-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px;
  padding-left: 0;
}

.custom-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 8px;
}

.custom-modal .saff-notification-list {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.custom-modal .saff-status-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-modal .saff-submit-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.custom-modal .saff-submit-section .btn {
  min-width: 120px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.custom-modal .saff-submit-section .btn-success {
  background: linear-gradient(25deg, #0e372ec1, #007A57);
  border: none;
}

.custom-modal .saff-submit-section .btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 87, 0.3);
}

.saff-text-danger {
  color: #ef4444 !important;
  margin-left: 4px;
}

/* ================================================== Ticket Box Modal Styles End ================================================== */
/* Recall Message Custom Styles */
.saff-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

.saff-card-header {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-bottom: 1px solid #dee2e6;
  padding: 20px 25px;
  border-radius: 12px 12px 0 0;
}

.saff-card-title {
  margin: 0;
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.saff-card-body {
  padding: 25px;
  background: white;
}

/* Add spacing between search section and table */
.saff-card:first-of-type {
  margin-bottom: 30px;
}

.saff-recall-message-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

.recall-message-table thead th {
  background: #024122;
  color: white;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid #024122;
  position: relative;
}

.recall-message-table thead th:first-child {
  border-top-left-radius: 12px;
}

/* Remove border-top-left-radius for Arabic language */
html[dir="rtl"] .recall-message-table thead th:first-child,
html[lang="ar"] .recall-message-table thead th:first-child,
body[dir="rtl"] .recall-message-table thead th:first-child,
body[lang="ar"] .recall-message-table thead th:first-child {
  border-top-left-radius: 0 !important;
}

.recall-message-table thead th:last-child {
  border-top-right-radius: 12px;
}

.recall-message-table tbody td {
  padding: 20px;
  border-bottom: 1px solid #f1f3f4;
  background: white;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.recall-message-table tbody tr:hover td {
  background: #f8f9fa;
}

.recall-message-table tbody tr:last-child td {
  border-bottom: none;
}

.recall-message-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.recall-message-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.saff-employee-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.saff-employee-avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.saff-employee-details h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
}

.saff-employee-details p {
  margin: 0;
  color: #7f8c8d;
  font-size: 14px;
}

.saff-employee-id {
  font-weight: bold;
  color: #28a745;
  font-size: 16px;
}

.saff-recall-count {
  background: #FEEEDD;
  color: #E08B3D;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  font-size: 14px;
  z-index: 1;
}

.recall-count:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(224, 139, 61, 0.4);
}

/* Modal Styles */
.saff-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.saff-modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.show .saff-modal-content {
  transform: scale(1);
}

.saff-modal-header {
  background: transparent;
  color: black;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.saff-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: black;
}

.saff-modal-close {
  background: none;
  border: none;
  color: black;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.saff-modal-body {
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
}

.saff-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.modal-table th {
  background: #f8f9fa;
  color: #333;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-table td {
  padding: 15px;
  border-bottom: 1px solid #f1f3f4;
  vertical-align: top;
  line-height: 1.5;
}

.modal-table tr:hover td {
  background: #f8f9fa;
}

.modal-table tr:last-child td {
  border-bottom: none;
}

.message-content-cell {
  max-width: 300px;
  word-wrap: break-word;
  white-space: normal;
}

.ticket-id-cell {
  text-align: center;
}

.ticket-id-badge {
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #28a745;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #218838;
}

.saff-no-results {
  padding: 40px 20px;
  color: #7f8c8d;
}

.no-results i {
  font-size: 48px;
  margin-bottom: 20px;
  color: #bdc3c7;
}

.no-results h4 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.no-results p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .saff-employee-info {
      flex-direction: column;
      text-align: center;
      gap: 10px;
  }

  .saff-employee-avatar {
      width: 40px;
      height: 40px;
      font-size: 16px;
  }

  .saff-employee-details h4 {
      font-size: 14px;
  }

  .saff-employee-details p {
      font-size: 12px;
  }

  .saff-recall-count {
      padding: 6px 12px;
      font-size: 12px;
  }

  .saff-modal-content {
      width: 95%;
      max-width: 500px;
  }
}

@media (max-width: 480px) {
  .saff-employee-details h4 {
      font-size: 13px;
  }

  .saff-employee-details p {
      font-size: 11px;
  }

  .saff-employee-id {
      font-size: 14px;
  }

  .saff-recall-count {
      padding: 5px 10px;
      font-size: 11px;
  }

  .saff-modal-content {
      width: 98%;
      max-width: 450px;
  }
}

/* Animation for table rows */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.recall-message-table tbody tr {
  animation: fadeInUp 0.5s ease-out;
}
