/* Custom CSS for PlainAdmin Template */
  html, body {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    height: 100%;
  }

  body {
    overflow-x: hidden; 
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
  }

  .payment-methods-page-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .payment-methods-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    flex-wrap: wrap;
  }
  
  .method-column {
    flex: 1 1 45%;
    min-width: 350px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
  }
  
  #savedMethodsContainer .card {
    text-align: center; /* center saved card content */
  }
  
  @media (max-width: 900px) {
    .payment-methods-wrapper {
      flex-direction: column;
      align-items: center;
    }
  
    .method-column {
      width: 100%;
      max-width: 500px;
    }
  }
  

  .onboarding-wrapper {
    padding-top: 4%; /* Adjust based on your header height */
    text-align: center;
  }

  @media (max-width: 768px) {
    .progress-wrapper {
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .progress-wrapper::-webkit-scrollbar {
      display: none;
    }
    
    .onboarding-progress {
      display: flex;
      width: max-content;
      list-style: none;
      margin: 0;
      padding: 0;
    }
    
    .onboarding-progress li {
      flex: 0 0 auto;
      padding: 10px;
      border-bottom: 3px solid #ccc;
      min-width: 120px;
      text-align: center;
    }
    
    .onboarding-progress li.active {
      border-bottom: 3px solid red;
      font-weight: bold;
    }
    .onboarding-wrapper {
      padding-top: 20%; /* Adjust based on your header height */
      text-align: center;
    }
    
  }
  

  /* Chrome, Safari, and Opera */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}
  
  @media (max-width: 768px) {
    .client-header-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      z-index: 10;
    }
  
    .client-tabs {
      width: 100%;
      justify-content: center;
      flex-wrap: wrap;
      top: 50%;
    }
  
    .tab-container {
      width: 100%;
      margin-top: 10px;
    }
  }
  #review-company-info p,
#review-client-info p {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

#review-company-info strong,
#review-client-info strong {
  color: #000;
}


  button.submit-onboard {
    background: red !important;
    color: white !important;
    padding: 1% 3%;
  }
  button.submit-onboard:hover {
    background: rgb(143, 0, 0) !important;
    color: white !important;
    padding: 1% 3%;
  }
  button.submit-onboard:active {
    background: rgb(0, 0, 0) !important;
    color: white !important;
    padding: 1% 3%;
  }

  button.prev-step {
    background: red !important;
    color: white !important;
    padding: 1% 3%;
  }
  button.prev-step:hover {
    background: rgb(143, 0, 0) !important;
    color: white !important;
    padding: 1% 3%;
  }
  button.prev-step:active {
    background: rgb(0, 0, 0) !important;
    color: white !important;
    padding: 1% 3%;
  }

  button.notesbtn {
    background: red !important;
    color: white !important;
    padding: 1% 3%;
  }
  button.notesbtn:hover {
    background: rgb(143, 0, 0) !important;
    color: white !important;
    padding: 1% 3%;
  }
  button.notesbtn:active {
    background: rgb(0, 0, 0) !important;
    color: white !important;
    padding: 1% 3%;
  }

  button.next-step {
    background: red !important;
    color: white !important;
    padding: 1% 3%;
  }
  button.next-step:hover {
    background: rgb(143, 0, 0) !important;
    color: white !important;
    padding: 1% 3%;
  }
  button.next-step:active {
    background: rgb(0, 0, 0) !important;
    color: white !important;
    padding: 1% 3%;
  }

  /* =========================
   ONBOARDING FORM STYLING
   ========================= */
   .review-field {
    margin-bottom: 20px;
  }
  
  .review-field label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }
  
  .review-editable {
    display: flex;
    align-items: center;
  }
  
  .review-editable input[type="text"] {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  
  .review-editable .edit-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
  }
  
form#onboardingForm.onboarding-form {
  text-align: left; /* <-- change text to left align */
}
   
.onboarding-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  text-align: left; /* <-- change text to left align */
}

.onboarding-form input[type="text"],
.onboarding-form input[type="email"],
.onboarding-form input[type="password"],
.onboarding-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.onboarding-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.onboarding-form .checkbox-group {
  margin-top: 10px;
  margin-bottom: 20px;
}

.onboarding-form .checkbox-group label {
  display: inline-block;
  margin-right: 20px;
  font-weight: 400;
}

.onboarding-form .form-section {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.onboarding-form .form-section h3 {
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
}

.progress-wrapper {
  position: relative;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.progress-wrapper::-webkit-scrollbar {
  display: none;
}

/* Remove the old separator */
.progress-wrapper::before {
  display: none; /* completely remove it */
}

.onboarding-progress {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%; /* Full width */
  max-width: 800px; /* You can limit it for big screens */
  position: relative;
  z-index: 2;
  gap: 0;
  color: #555;
}

.onboarding-progress li {
  flex: 0 0 20%;
  text-align: center;
  font-size: 14px;
  padding: 10px 5px;
  font-weight: 400;
  color: #555;
  white-space: nowrap;
  position: relative;
}

.onboarding-progress li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background-color: #ccc; /* default grey line */
  transition: background-color 0.3s ease, width 0.3s ease;
}

.onboarding-progress li.active {
  color: red;
  font-weight: bold;
}

.onboarding-progress li.active::after {
  background-color: red; /* current active = red line */
}


/* Completed Step */
.onboarding-progress li.completed {
  color: green;
  font-weight: bold;
}

/* Step underline */
.onboarding-progress li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

/* Completed Step underline */
.onboarding-progress li.completed::after {
  background-color: green;
}

.signature-wrapper {
  position: relative;
  display: inline-block;
  text-align: center !important;
}

#signature-pad {
  border: 1px solid #ccc;
  width: 100%;
  max-width: 400px;
  height: 200px;
  display: block;
  margin: 0 auto;
}

.form-step label {
  display: block; /* makes each label take full width */
  margin-top: 5%; /* <-- this adds clean spacing ABOVE each label */
}

.form-step label.checkbox-label {
  margin-top: 0%; /* <-- this adds clean spacing ABOVE each label */
}

button.edit-btn {
  background: none !important;
  border: 0;
  color: black !important;
  font-size: 20px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  align-content: center;
  display: flex;
  transition: transform 0.2s ease, color 0.2s ease;
  outline: none;
  margin-top: -2.5%; /* <- THIS centers the icon better */

}
button.edit-btn:hover {
  margin-top: -2.5%; /* <- THIS centers the icon better */
  background: none !important;
  border: 0;
  color: rgb(110, 110, 110) !important;
  font-size: 21px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  align-content: center;
  display: flex;
  transition: transform 0.2s ease, color 0.2s ease;
  outline: none;

}

button.edit-btn:active {
  margin-top: -2.5%; /* <- THIS centers the icon better */
  background: none !important;
  border: 0;
  color: rgb(255, 0, 0) !important;
  font-size: 20px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  align-content: center;
  display: flex;
  transition: transform 0.2s ease, color 0.2s ease;
  outline: none;

}

button.clear-signature-btn,
.clear-signature-btn.button,
.elementor-button.clear-signature-btn {
  all: unset;
  position: absolute;
  top: 3%;
  right: 1%;
  background: none !important;
  border: 0;
  color: black !important;
  font-size: 19px;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  align-content: center;
  display: flex;
  transition: transform 0.2s ease, color 0.2s ease;
  outline: none;
}

/* Hover just changes color of the icon, no all:unset */
button.clear-signature-btn:hover i,
.clear-signature-btn.button:hover i,
.elementor-button.clear-signature-btn:hover i {
  color: rgb(88, 88, 88) !important;
  font-size: 20px;
}

/* Active (click) changes color of the icon */
button.clear-signature-btn:active i,
.clear-signature-btn.button:active i,
.elementor-button.clear-signature-btn:active i {
  color: rgb(255, 0, 0) !important;
}

/* Optional: animation shake */
.clear-signature-btn.shaking {
  animation: shake 0.5s;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Button group for Back / Submit */
.button-group {
  display: flex;
  justify-content: center !important;
  gap: 20px;
  margin-top: 20px;
  text-align: center !important;
}

.button-group button {
  min-width: 140px;
  text-align: center;
}

.tos-scrollbox {
  max-height: 300px; /* limit the height */
  overflow-y: auto; /* allow scrolling inside */
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
  margin-bottom: 20px; /* space before signature */
}

/* Optional: Make it a little prettier */
.tos-scrollbox::-webkit-scrollbar {
  width: 6px;
}
.tos-scrollbox::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}


/* MOBILE adjustments */
@media (max-width: 768px) {
  .tos-scrollbox {
    -webkit-overflow-scrolling: touch; /* smooth scrolling for iOS/Android */
  }
  
  body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh; /* Take full screen height */
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1; /* Push content to take available space */

}

footer {
  flex-shrink: 0;
  padding: 20px 0;
  text-align: center;
}
  .onboarding-progress {
    min-width: 600px; /* stretch longer so scrolling works on phones */
    justify-content: flex-start;
  }

  .signature-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
  }
  
  
  #signature-pad {
    border: 1px solid #ccc;
    width: 100%;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  button.clear-signature-btn,
  .clear-signature-btn.button,
  .elementor-button.clear-signature-btn {
    all: unset;
    position: absolute;
    top: 3%;
    right: 1%;
    background: none !important;
    border: 0;
    color: black !important;
    font-size: 19px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }
  
  /* Hover just changes color of the icon, no all:unset */
  button.clear-signature-btn:hover i,
  .clear-signature-btn.button:hover i,
  .elementor-button.clear-signature-btn:hover i {
    color: rgb(88, 88, 88) !important;
  }
  
  /* Active (click) changes color of the icon */
  button.clear-signature-btn:active i,
  .clear-signature-btn.button:active i,
  .elementor-button.clear-signature-btn:active i {
    color: rgb(255, 0, 0) !important;
  }
  /* Button group for Back / Submit */
/* Button group for Back / Submit */
.button-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}


.button-group button {
  min-width: 140px;
  text-align: center;
}


  .onboarding-progress li {
    position: relative;
    z-index: 1;
  }

  .onboarding-progress li.completed::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: green;
    z-index: 2;
  }

  .onboarding-progress li.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: red;
    z-index: 3;
  }

  .onboarding-progress li::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ccc; /* gray line */
    z-index: 0;
  }

  .onboarding-progress {
    border-bottom: none !important; /* Remove any inherited border that overlaps */
  }
}

  .form-step {
    display: none;
  }
  .form-step.active {
    display: block;
  }
  .client-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding: 0 30px;
    background: #fafafa;
    z-index: 5;
    position: relative;
  }
  
  .client-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: #222;
    align-self: center;
  }
  
  .client-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: -2%;
  }
  
  .tab-link {
    padding: 8px 16px;
    border: none;
    background: #d4d4d4;
    color: #000;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
  }

  .tab-link:hover {
    background: #aaa;
  }
  
  .tab-link.active {
    background: #aaa;
  }
  
  .tab-container {
    background: #d4d4d4;
    margin-top: -5px;
    padding: 30px;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    justify-content: flex-start; /* Push content to the top but with spacing */
    align-items: center; /* Keep content centered horizontally */
    text-align: left; /* ✅ Override center alignment */
  }
  .info-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
  }
  
  .info-section {
    flex: 1;
    text-align: left;
  }
  
  
  .tab-content {
    display: none;
    width: 100%;
  }
  
  .tab-content.active {
    display: block;
  }

  .pdf-viewer-wrapper {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .pdf-iframe {
    width: 100%;
    height: 500px;
    border: 1px solid #ccc;
    background: #fff;
  }
  
  .btn-outline-primary {
    color: red;
    border-color: red;
  }

  .btn-outline-primary:hover {
    background-color: red;
    border-color: red;
  }

  .plainadmin-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    overflow: hidden;
  }

  .sidebar-nav-wrapper {
    width: 220px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    padding-top: 20px;
    overflow-y: auto;
    z-index: 1000;
    position: relative;
  }

  .sidebar-nav .list-unstyled > li {
    padding: 12px 20px;
    font-weight: 700;
    font-size: 19px;
    color: #000;
    border-left: 3px solid transparent;
    transition: background-color 0.2s;
    position: relative;
  }

  .sidebar-nav .list-unstyled > li:hover {
    background-color: #f6f6f6;
    border-left: 3px solid red;
  }

  .sidebar-nav .list-unstyled > li > a {
    color: #000;
    text-decoration: none;
  }

  .sidebar-nav .list-unstyled li ul {
    display: none;
    padding-left: 14px;
    margin-top: 5px;
  }

  .sidebar-nav .list-unstyled li:hover ul {
    display: block;
  }

  .sidebar-nav .list-unstyled li ul li {
    font-weight: 400;
    font-size: 15px;
    padding: 4px 0 4px 20px;
    color: red;
  }

  .sidebar-nav .list-unstyled li ul li a {
    color: red;
    text-decoration: none;
  }
  .navbar-logo {
    top: -30px;
    position: relative;
  }
  .main-content {
    background-color: #fafafa;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: hidden; /* Allow vertical scrolling */
    position: relative;
  }

  .header {
    width: 100%;
    flex-shrink: 0;
    position: sticky;
    top: 0px;
    z-index: 900;
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .profile-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    gap: 10px;
  }

  .profile-popup {
    display: none;
    position: absolute;
    right: 10px;
    top: 60px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 999;
    min-width: 180px;
  }

  .profile-popup a {
    display: block;
    padding: 6px 10px;
    color: #333;
    text-decoration: none;
  }

  .profile-popup a:hover {
    background-color: #f5f5f5;
  }

  .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Start at the top, not center */
    justify-content: center;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 60px;
    position: relative;
    overflow-y: hidden;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox hide */
    -ms-overflow-style: none; /* IE/Edge hide */
  }

  .welcome-wrapper {
    margin-top: 20px;
  }

  .logo-top {
    margin-top: -40px;
    z-index: 10;
  }

  .footer {
    text-align: center;
    font-size: 0.875rem;
    background: transparent; /* Keep footer readable */
    width: 100%;
    position: relative;
    align-self: center;
    align-items: center;

    z-index: 2;
  }

  .footer p {
    margin-top: -2%;
    margin-bottom: 1%;
  }

  .footer a {
    color: #ff0000;
    text-decoration: none;
  }
  .footer a:hover {
    color: #910000;
  }

  .sidebar-toggle {
    display: none;
  }

  .modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
  }

  #settingsModal .modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
  }

  #settingsModal .modal-content::-webkit-scrollbar {
    width: 8px;
  }
  
  #settingsModal .modal-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
  }
  
  #settingsModal .modal-content::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 4px;
  }
  
  #settingsModal .modal-content::-webkit-scrollbar-thumb:hover {
    background: #c00000;
  }
  
  #settingsModal.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
  }

  #settingsModal[style*="display: none"] {
    opacity: 0 !important;
  }
  
  .icon-button {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
  }
  
  .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 20px;
  }
  .checkbox-row {
    display: flex;
    gap: 20px; /* spacing between checkboxes */
    flex-wrap: wrap; /* wraps on small screens */
  }
  
  .checkbox-row label {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .notification-popup {
    position: absolute;
    top: 40px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 250px;
    z-index: 9999;
  }
  
  .notification-popup ul {
    list-style: none;
    padding: 10px;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
  }
  
  .notification-popup li {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
  }
  
  .notification-popup li:hover {
    background: #f5f5f5;
  }
  

  .dropzone {
    position: relative;
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .dropzone.highlight {
    background-color: #f0f8ff;
  }
  
  #cropPreview {
    display: block;
    margin: 10px auto;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
  }
  
  #settingsModal button {
    background: #ff0004;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
  }

  #settingsModal button:hover {
    background: #b30003;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
  }

  .notification-wrapper button {
    background: none;
    color: rgb(75, 75, 75);
  }

  .notification-wrapper button:hover {
    background: none;
    color: rgb(0, 0, 0);
  }

  .notification-popup button {
    background: none;
    color: rgb(75, 75, 75);
  }

  .notification-popup button:hover {
    background: none;
    color: rgb(0, 0, 0);
  }

  .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
  }
  
  .notification-popup {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 12px;
    font-family: sans-serif;
  }
  
  .notification-popup .popup-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  
  .notification-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
  }
  
  .notification-popup li {
    padding: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .notification-popup li:last-child {
    border-bottom: none;
  }
  
  .notification-popup a {
    color: #007bff;
    text-decoration: none;
    word-break: break-word;
    display: inline-block;
    margin-top: 4px;
  }
  
  .notification-popup a:hover {
    text-decoration: underline;
  }
  
  #previewImage {
    display: none;
    width: 150px;
    height: auto;
    border-radius: 10px; /* Rounded, not circular */
    margin: 12px auto 0;
    transition: opacity 0.3s ease;
  }
  
  #previewImage.show {
    display: block;
    opacity: 1;
  }
  
  
  .spinner {
    width: 32px;
    height: 32px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top-color: #ff0000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .profile-pic {
    object-fit: cover;
    border-radius: 50%; /* keeps circle */
  }
  
  .disclaimer-toggle {
    background: none;
    color: #0073aa;
    text-decoration: underline;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
  }
  
  .disclaimer-text {
    background: #f7f7f7;
    padding: 1rem;
    font-size: 0.9rem;
    border: 1px solid #ccc;
    margin-top: 0.5rem;
  }
  

  .note-row {
    display: flex;
    align-items: flex-start;
    gap: 2%;
    padding: 2%;
    border-radius: 3%;
  }

  .note-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 9999;
  }
  #noteModal{
    z-index: 9999;
  }
  .note-modal-inner {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
  }
  textarea.note-editable {
    width: 100%;
    min-height: 30%;
    margin-bottom: 10px;
    resize: vertical;
  }
  .note-controls {
    display: flex;
    flex-direction: row; /* side-by-side buttons */
    align-items: center;
    gap: 8px;
  }
  
  button.edit-note-btn {
    background: none !important;
    border: 0;
    color: rgb(255, 0, 0) !important;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }
  
  button.edit-note-btn:hover {
    background: none !important;
    border: 0;
    color: rgb(112, 0, 0) !important;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }

  button.delete-note-btn {
    background: none !important;
    border: 0;
    color: rgb(255, 0, 0) !important;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }
  
  button.delete-note-btn:hover {
    background: none !important;
    border: 0;
    color: rgb(112, 0, 0) !important;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }

  button.save-note-btn {
    background: none !important;
    border: 0;
    color: rgb(255, 0, 0) !important;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }
  
  button.save-note-btn:hover {
    background: none !important;
    border: 0;
    color: rgb(112, 0, 0) !important;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }

  button.cancel-note-btn {
    background: none !important;
    border: 0;
    color: rgb(255, 0, 0) !important;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }
  
  button.cancel-note-btn:hover {
    background: none !important;
    border: 0;
    color: rgb(112, 0, 0) !important;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    align-content: center;
    display: flex;
    transition: transform 0.2s ease, color 0.2s ease;
    outline: none;
  }

  @media (max-width: 600px) {
    .note-row {
      flex-direction: column;
      flex-wrap: wrap; /* allow wrapping on smaller screens */
      align-items: stretch;
    }
  
    .note-controls {
      flex-direction: row;
      justify-content: flex-start;
    }
  
    .note-editable {
      width: 100%;
    }
  }

  #paginationControls {
    margin-top: 15px;
    text-align: center;
  }

  .pagination-btn, .pagination-arrow {
    margin: 0 3px;
    padding: 5px 10px;
    border: 1px solid #aaa;
    background: white;
    cursor: pointer;
    color: red;
}

.pagination-btn.active {
    background-color: #222;
    color: white;
}

.pagination-btn:hover,
.pagination-arrow:hover {
    background-color: #ce0000;
    color: white;
}

.status-paid {
  background-color: #d3f0da !important;
  color: #155724;
  font-weight: bold;
}

.status-open {
  background-color: #cddff3 !important;
  color: #004085;
  font-weight: bold;
}

.status-failed {
  background-color: #ecbabe !important;
  color: #721c24;
  font-weight: bold;
}

.status-void {
  background-color: #d1d1d1 !important;
  color: #383d41;
  font-weight: bold;
}


  .client-table-container {
    table-layout: fixed;
    width: 100%;
    overflow-x: auto; /* Enables horizontal scroll on mobile */
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }
  
  .client-table {
    width: 90%;
    min-width: 20%; /* Ensures proper spacing for columns */
    border-collapse: collapse;
    background-color: white;
    text-align: left;
    align-items: center;
    justify-content: center;
  }
  
  .client-table th,
  .client-table td {
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
  }
  
  .client-table thead {
    background-color: #222;
    color: white;
  }
  
  .client-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  .client-table tbody tr:hover {
    background-color: #f1f1f1;
  }

  .client-table th.actions,
.client-table td.actions {
  width: 40%; /* Adjust this fixed width as needed */
  text-align: center;
}

.client-table a {
  color: red;
}

  @media (max-width: 768px) {
    .note-modal {
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5);
      justify-content: center;
      align-items: center;
      display: none;
      z-index: 23;
    }
    
    td.actions {
      justify-content: center; /* optional: center-align the buttons */
      max-width: 70%;
    }

    .action-buttons {
      display: flex;
      gap: 1%; /* or 8px if you prefer tighter spacing */
      justify-content: center;
    }
    td button {
      padding: 6px 4px;
      font-size: 14px;
      white-space: nowrap;
    }
    .client-table {
      min-width: 100%; /* Prevents collapse on small screens */
    }
  
    .client-table th,
    .client-table td {
      font-size: 0.875rem;
      padding: 10px;
    }
    .sidebar-toggle {
      display: block;
      margin-left: 10px;
      color: red;
    }

    .sidebar-toggle.btn-outline-primary {
        color: red;
        border-color: red;
    }

    .sidebar-toggle.btn-outline-primary:hover {
        background-color: red;
        color: #fff;
    }


    .sidebar-nav-wrapper {
      display: none;
      position: absolute;
      width: 220px;
      height: 100vh;
      background: white;
      top: 0;
      left: 0;
      z-index: 999;
    }

    .sidebar-nav-wrapper.active {
      display: block;
    }

    .navbar-logo {
    top: -30px;
    position: relative;
  }

    .plainadmin-wrapper {
      overflow: hidden;
    }

    .main-content {
      height: auto;
      overflow-x: hidden;
    }

    .content {
        overflow-y: auto;
        scroll-behavior: smooth;
    }

    .header {
      padding-right: 20px;
      top: 0;
    }

    .footer {
      position: relative;
      top: -2%;
      margin-bottom: 5%;
    }
  }
  td.actions {
    justify-content: center; /* optional: center-align the buttons */
    max-width: 20%;
    white-space: nowrap;
  }
  .action-buttons {
    display: flex;
    gap: 5%; /* or 8px if you prefer tighter spacing */
    justify-content: center;
  }
  td button {
    padding: 10px 14px;
    font-size: 18px;
    white-space: nowrap;
  }
  
  
  
  .btn-primary:hover {
    --bs-btn-bg:  rgb(116, 0, 0);
    --bs-btn-border-color:  rgb(116, 0, 0);
  }

  @media (max-width: 1300px) {
    /* Strictly tablets */
    .pdf-viewer-wrapper {
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      justify-content: flex-end; /* Push button down */
      align-items: center;
    }
    .pdf-iframe {
      display: none
    }
    
    .client-tabs {
      display: flex;
      gap: 1%;
      margin-top: 2%;
      margin-left: 3%;
      align-items: center;
      align-self: center;
      justify-content: center;
    }
    .tab-container {
      background: #d4d4d4;
      padding: 30px;
      flex-grow: 1;
      width: 100%;
      box-sizing: border-box;
      z-index: 1;
    }
    .content {
      overflow-y: auto;
  }
  .footer {
    align-items: center;
  }
  .footer p {
    margin-top: -4%;
    margin-bottom: 2%;
  }

  }