/* ========================= */
/* GLOBAL */
/* ========================= */
* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
html, body {
  height: 100%;
  margin: 0;
}
html {
  overflow-y: scroll; /* always show scrollbar space */
}
body {
   margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}

/* ========================= */
/* TOP BAR */
/* ========================= */
.topbar {
  width: 100%;
  max-width: 3000px;   /* desktop max width */
  margin: 0 auto;       /* centers the topbar */
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #103057;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
  color: white;
}

.logo img {
    padding: 10px 16px;
  width: 120px;
  height: auto;
}

/* Parent wrapper */
.user-avatar-wrapper {
  position: relative; /* important! */
  display: inline-block;
  cursor: pointer;
}

/* Avatar image */
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%; /* below the avatar */
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: none; /* hidden by default */
  min-width: 120px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 100;
}

/* Links inside the menu */
.dropdown-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu a:hover {
  background: #0e2f55;
  color: white;
}

/* Reveal dropdown on hover */
.user-avatar-wrapper:hover .dropdown-menu {
  display: block;
}


.dropdown-menu #openProfileBtn  {
  all: unset;                 /* removes default button styles */
  display: block;
  width: 120px;
  padding: 10px ;
  color: #333;
  background: none;           /* transparent so it matches a tags */
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.dropdown-menu #openProfileBtn:hover {
  background: #0e2f55;
  color: white;
}

/* Reveal dropdown on hover */
.user-avatar-wrapper:hover .dropdown-menu {
  display: block;
}



/* ========================= */
/* LAYOUT */
/* ========================= */
.layout {
  display: flex;
}

/* ========================= */
/* SIDEBAR */
/* ========================= */

.sidebar {
 margin: 0;     /* remove any margin */
  padding: 0;    /* remove any padding */
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  padding: 18px;
  text-align: center;
  cursor: pointer;
  color: #666;
}

.sidebar li.active {
  background: #0e2f55;
  font-weight: bold;
  color: white;
  outline: 2px solid #f2f2f2;
  outline-offset: -2px;
}
main{
width: 100%;           /* stretch across the screen */
  max-width: 3840px;  
}
/* ========================= */
/* CONTENT */
/* ========================= */
.home-main,
#prospects-main,
#personalnotes-main,
#courtships-main,
#tasks-main,
#accounts-main,
#contacts-main,
#callreport-main {
  flex: 1 1 auto;
  min-width: 0; /* 🔑 important */
  padding: 12px;
  width: 100%;
  max-width: 4096px;

}
#mainContent.no-padding{
  padding-left: 0;
    padding-top: 0;
  padding-right: 2px; /* keep some right padding if needed */
}
/* ========================= */
/* SEARCH */
/* ========================= */
.search-bar {
  display: flex;
  margin-bottom: 10px;
    min-width: 0; /* 🔑 allow children to shrink */
}

.search-bar input,
#contactsSearchInput{
  flex: 1;
  min-width: 0; /* 🔑 THIS is the main fix */
  padding: 14px;
  border: 1px solid #aaa;
  border-radius: 0;
}

.search-bar button,
#filterbtn,
#searchbtn,
#create-account-btn,
#create-task-btn,
#create-prospect-btn,
#create-wkentry-btn,
#create-tasks-btn,
#transfer-prospect-btn,
#transfer-tasks-btn,
#transfer-accounts-btn,
#importprospectsBtn,
#importaccountsBtn,
#exportcallreportsBtn,
#create-contact-btn,
#create-entries-btn,
#create-call-report-btn {
  padding: 14px 26px;
  border: none;
  background: #777;
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}
/* Mobile view */
@media (max-width: 768px) {
  .filter-container {
    width: 100%;
  }

  #filterBtn {
    width: 100%;
    display: block;
  }
}
#contactsSearchBtn
 {
  padding: 14px 26px;
  border: none;
  background: #777;
  color: white;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}





/* ========================= */
/* ACTIVE / CONVERTED TABS */
/* ========================= */
.panel.split {
  display: flex;
  height: 48px;
  border-bottom: 1px solid #999;
}

.panel.split .tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background: #f6f6f6;
  color: #555;
  border-right: 1px solid #ddd;
  padding: 0;
}

.panel.split .tab:last-child {
  border-right: none;
}

.panel.split .tab.active {
  background: #0e2f55;
  color: white;
}

.panel.split .tab.inactive:hover {
  background: #e5e7eb;
  cursor: pointer;
}

/* ========================= */
/* TABLES 1 */
/* ========================= */
.tables {
  display: grid;
  gap: 20px;
}

.table-box {
  background: white;
  border: 1px solid #999;
}

.table-title {
  font-size: 20px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  background-color: #0e2f55;
  color: white;
  padding: 8px 12px;
}

.table-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  font-weight: bold;
  padding-bottom: 8px;
  padding-left: 8px;
  border-bottom: 1px solid #ccc;
}

.table-box ol {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
  gap: 20px;
  padding-left: 8px;
}

.table-box li {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: left;
  padding-bottom: 20px;
}

.table-box button {
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #999;
  background: white;
  cursor: pointer;
}

/* ========================= */
/* TABLES 2 3 */
/* ========================= */
.tables3 { 
  margin-top: 20px;
    border: 1px solid #999;
}
.table-box3 {
  background: white;
  margin-top: 10px;
  border: 1px solid #999;
}
.table-title3 {
  font-size: 20px;
  font-weight: bold;
  background-color: #0e2f55;
  color: white;
  padding: 8px 12px;
}


.table-header3 {
  display: grid;
  grid-template-columns: 1.17fr 1fr 1fr 1fr 1fr;
  font-weight: bold;
  padding-bottom: 8px;
  padding-left: 8px;
  border-bottom: 1px solid #ccc;
}

.table-box3 ol {
   max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
  gap: 20px;
  padding-left: 8px;
}

.table-box3 li {
  display: grid;
  grid-template-columns: 1.2fr 1.02fr 1.02fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 20px;
}

.table-box3 button {
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #999;
  background: white;
  cursor: pointer;
}


.tables2 {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr;
  gap: 20px;
}

.table-box2 {
  background: white;
  margin-top: 10px;
  
  border: 1px solid #999;
}

.table-title2 {
  font-size: 20px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  background-color: #0e2f55;
  color: white;
  padding: 8px 12px;
}

.table-header2 {
  display: grid;
  grid-template-columns: 1.17fr 1fr 1fr 1fr 1fr;
  font-weight: bold;
  padding-bottom: 8px;
  padding-left: 8px;
  border-bottom: 1px solid #ccc;
}

.table-box2 ol {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
  gap: 30px;
  padding-left: 8px;
}

.table-box2 li {
  display: grid;
  grid-template-columns: 1.2fr 1.02fr 1.02fr 1fr 1fr;
  gap: 20px;
  padding-bottom: 20px;
}

.table-box2 button {
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid #999;
  background: white;
  cursor: pointer;
}

/* ========================= */
/* TABLES MOBILE UPDATES */
/* ========================= */
@media (max-width: 768px) {
  .table-box li,
  .table-box2 li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
    
  .table-box li span,
  .table-box2 li span {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .table-box li span::before,
  .table-box2 li span::before {
    content: attr(data-label);
    font-weight: bold;
    margin-right: 6px;
    color: #555;
    width: 120px;
    flex-shrink: 0;
  }

  .table-box li .col-view,
  .table-box2 li .col-view {
    justify-content: flex-start;
  }

  .table-box li button,
  .table-box2 li button {
    align-self: flex-start;
    margin-top: 4px;
    padding: 6px 14px;
    font-size: 14px;
  }
    .search-bar input {
  flex: 1;
  min-width: 100%;
}
}

/* ========================= */
/* 📱 TABLET (≤ 1024px) */
/* ========================= */
@media (max-width: 1024px) {

    .home-main,
#prospects-main,
  #personalnotes-main,
  #courtships-main,
  #tasks-main,
#contacts-main,
  #accounts-main,
  #callreport-main {
 max-width: 100%;
    width: 100%;
}
.search-bar button,
#searchbtn,
#filterbtn,
#create-account-btn,
#create-prospect-btn,
#create-wkentry-btn,
#create-wkentry-btn,
#create-tasks-btn,
#create-task-btn,
#create-followup-btn,
#assign-Followup-btn,
#importcallreports-btn,
#transfer-prospect-btn,
#transfer-tasks-btn,
#transfer-accounts-btn,
#importprospectsBtn,
#importaccountsBtn,
#exportcallreportsBtn,
#create-contact-btn,
#create-entries-btn,
#create-call-report-btn {
    padding: 10px 16px;
    font-size: 14px;
    }
    
  .sidebar {
    width: 120px;
  }


 


  .tables {
    grid-template-columns: 1fr;
  }
  


/* ========here========== */
/* 📱 MOBILE (≤ 768px) OTHER UPDATES */
/* ========================= */
@media (max-width: 768px) {

  .layout {
    flex-direction: column;
  }
  
  .search-box {
    flex-direction: column;
  }

  .search-box input,
  .search-box button {
    width: 100%; /* full width */
    border-radius: 6px; /* optional: rounded on all corners */
  }

  .search-box button {
    padding: 10px 16px; /* shrink padding for tablet */
    font-size: 14px;
  }
    
  .sidebar {
    width: 100%;
    min-height: auto;
  }

  .sidebar ul {
    display: flex;
    justify-content: space-around;
  }

  .sidebar li {
    padding: 12px 6px;
    font-size: 12px;
      width: 100%;
  }

  .search-bar {
   flex-direction: column;
    align-items: stretch; /* full-width buttons if desired */
  }
#create-account-btn,
#assign-Followup-btn,
    #importcallreports-btn,
#create-followup-btn,
#create-prospect-btn,
    #create-wkentry-btn,
  #create-tasks-btn,
  #create-task-btn,
#transfer-prospect-btn,
  #transfer-tasks-btn,
#transfer-accounts-btn,
#importprospectsBtn,
#importaccountsBtn,
#exportcallreportsBtn,
#create-contact-btn,
#create-entries-btn,
#create-call-report-btn  {
    width: 100%;        /* optional: full width */
    font-size: 12px;
    padding: 6px 10px;
  }
  
}
  
  .tables {
    grid-template-columns: 1fr;
  }
}

/* ========================= */
/* DARK MODE TOGGLE & STYLES */
/* ========================= */
.dark-mode-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  z-index: 999;
}

.dark-mode-toggle input[type="checkbox"] {
  display: none;
}

.dark-mode-toggle .switch {
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}

.dark-mode-toggle .switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.dark-mode-toggle input[type="checkbox"]:checked + .switch::before {
  transform: translateX(26px);
}

.dark-mode-toggle input[type="checkbox"]:checked + .switch {
  background: #555;
}










/* ========================= */
/* PROFILE MODAL (LOGIN STYLE) */
/* ========================= */

.profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

.profile-overlay.hidden {
  display: none;
}

.profile-modal {
   background: #fff;
  width: 100%;
  max-width: 900px;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    position: relative;
}

.modal-header {
  padding: 16px;
  background: #f0f0f0;
  flex-shrink: 0; /* stay fixed */
}

.modal-body {
  padding: 16px;
  overflow-y: auto; /* scrollable */
  flex-grow: 1; /* fill remaining height */
}

/* LEFT SIDEBAR */
.profile-sidebar input[type="password"] {
width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #aaa;
  font-size: 14px;
  box-sizing: border-box;
  margin-bottom: 12px; /* spacing between inputs */
}

.profile-sidebar {
  flex: 1; /* smaller column */
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
    margin-top: 20px;
  object-fit: cover;  /* ensures image covers container without distortion */
}

.profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}
.profile-sidebar-passwords{
    margin-top: 20px;
}
.profile-sidebar-passwords .profile-btn {
margin-bottom: 20px;  padding: 8px 16px; /* optional: adjust button padding */
  width: 100%;       /* optional: full width */
}
/* RIGHT CONTENT */
.profile-content {
  padding: 32px;
  flex: 2;
}

.profile-content h2 {
  margin-bottom: 6px;
  color: #0e2f55;
}

.profile-subtext {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
}

.profile-content h3 {
  color: #0e2f55;
    margin-bottom: 10px;
}

/* FORM GRID */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 10px;
}

.profile-content label {
  font-size: 13px;
  color: #555;
}

/* INPUTS — MATCH LOGIN */
.profile-content input,
.profile-content select,
.profile-content textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #aaa;
  font-size: 14px;
  box-sizing: border-box;
}


/* BUTTONS — MATCH LOGIN */
.profile-btn {
  width: 100%;
  padding: 14px;
  background: #888;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 12px;
}
.permissions {
  width: 100%;
  padding: 14px;
  background: #103057;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 12px;
}
#uploadPhotoBtn {
  width: 100%;
  padding: 14px;
  background: #103057;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
  margin-top: 12px;
}
.profile-btn:hover, #uploadPhotoBtn:hover {
  background: #103057;
}
#uploadPhotoBtn:hover {
  background: #888;
}
.profile-btn.secondary {
  background: #e5e5e5;
  color: #333;
}

.profile-btn.secondary:hover {
  background: #ccc;
}

.profile-btn.save {
  margin-top: 24px;
}



.profile-close-right {
  position: absolute;
  top: 16px;          /* align to top of right column */
  right: 16px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 1020;
}

.profile-close-right:hover {
  background: rgba(0,0,0,0.8);
}
.profile-content {
  padding: 32px;
  position: relative;  /* add this if not already */
}

/* ========================= */
/* CONTACT PAGE - LIGHT MODE */
/* ========================= */
.contacts-page,
.journal-page,
.users-page,
.courtships-page,
.prospects-page,
.personalnotes-page,
.tasks-page,
.accounts-page,
.callreport-page{
  display: flex;
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f5f6f8;
  color: #333;
}

/* SIDEBAR */
.contacts-sidebar,
.courting-sidebar,
.personalnotes-sidebar,
.prospects-sidebar,
.tasks-sidebar,
.accounts-sidebar,
.callreport-sidebar{
  width: 240px;
  background: #eee;
  border-right: 1px solid #ccc;
  min-height: calc(100vh - 70px);
}

.contacts-sidebar ul,
.courting-sidebar ul,
.tasks-sidebar ul,
.personalnotes-sidebar ul,
.prospects-sidebar ul,
.accounts-sidebar ul,
.callreport-sidebar ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacts-sidebar li,
.courting-sidebar li,
.prospects-sidebar li,
.personalnotes-sidebar li,
.tasks-sidebar li,
.accounts-sidebar li,
.callreport-sidebar li{
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: background 0.2s, color 0.2s;
}

.contacts-sidebar li:hover,
.courting-sidebar li:hover,
.prospects-sidebar li:hover,
.personalnotes-sidebar li:hover,
.tasks-sidebar li:active,
.accounts-sidebar li:hover,
.callreport-sidebar li:hover {
  background: #e2e2e2;
}

.contacts-sidebar li.active,
.courting-sidebar li.active,
.prospects-sidebar li.active,
.personalnotes-sidebar li.active,
.tasks-sidebar li.active,
.accounts-sidebar li.active,
.callreport-sidebar li.active {
  background: #fff;
  border-left: 4px solid #2b6cff;
  font-weight: bold;
}


/* MAIN */
.home-main,
.users-main,
.contacts-main,
.prospects-main,
.courtships-main,
.personalnotes-main,
.tasks-main,
.accounts-main,
.callreport-main {
  flex: 1;
  padding: 16px;
  background: #f5f6f8;
}



/* TOOLBAR */
.contacts-toolbar,
.prospects-toolbar{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #0b2c4d;
  color: #fff;
}

.btn.secondary {
  background: #e0e0e0;
  color: #333;
}

.search-box {
  display: flex;
  width: 100%;
  align-items: center; /* vertically align button with input */
}

.search-box input {
  flex: 1 1 0%;
  min-width: 0;
  padding: 14px;
  border: 1px solid #aaa;
  border-radius: 6px 0 0 6px; /* optional */
}

.search-box button {
  padding: 14px 26px;
  border: none;
  background: #777;
  color: white;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  flex-shrink: 0; /* allows button to shrink later */
}

#searchBtn {
  background: #666;
  color: #fff;
  border-radius: 0 6px 6px 0;
}

#filterBtn {
  background: #666;
  color: #fff;
  border-radius: 6px 0 0 6px;
  height: 100%;
}

/* TABLE */
.contacts-table-wrapper,
.courtships-table-wrapper,
.prospects-table-wrapper,
.tasks-table-wrapper,
.accounts-table-wrapper,
.callreport-table-wrapper {
  max-height: 750px;      /* Adjust height as needed */
  overflow-y: auto;       /* Enable vertical scrolling */
  border: 1px solid #ccc; /* Optional: nice border around table */
  border-radius: 6px;     /* Optional: rounded corners */
}

.contacts-table,
.courtships-table,
.prospects-table,
.tasks-table,
.accounts-table,
.callreport-table {
  background: #fff;
  border: 1px solid #ccc;
   width: 100%;
  border-collapse: collapse;
}

.contacts-table thead th,
.courtships-table thead th,
.prospects-table thead th,
.tasks-table thead th,
.accounts-table thead th,
callreport-table thead th{
  top: 0;                  /* Top offset */
  z-index: 2;              /* Make sure it’s above the table body */
  /* Optional: header background color */
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f0f0f0;
}

th, td {
  padding: 10px;
  font-size: 13px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

td.empty {
  color: #999;
    
}




/* ========================= */
/* CONTACTS – TABLET (≤1024px) */
/* ========================= */
@media (max-width: 1024px) {
  .contacts-page,
  .journal-page,
  .users-page,
  .courtships-page,
  .prospects-page,
  .personalnotes-page,
  .tasks-page,
  .accounts-page,
  .callreport-page {
    flex-direction: column;
  }
 
  .contacts-sidebar,
  .courting-sidebar,
.personalnotes-sidebar,
  .prospects-sidebar,
  .tasks-sidebar,
  .accounts-sidebar,
  .callreport-sidebar
  {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

  .contacts-sidebar ul,
  .courting-sidebar ul,
  .personalnotes-sidebar ul,
  .prospects-sidebar ul,
  .tasks-sidebar ul,
  .accounts-sidebar ul,
  .callreport-sidebar ul {
    display: flex;
    justify-content: space-around;
  }

  .contacts-sidebar li,
  .courting-sidebar li,
  .prospects-sidebar li,
  .personalnotes-sidebar li,
  .tasks-sidebar li,
  .accounts-sidebar li,
  .callreport-sidebar li{
    padding: 12px 8px;
    font-size: 13px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .contacts-sidebar li.active,
  .courting-sidebar li-active,
  .personalnotes-sidebar li.active,
  .prospects-sidebar li.active,
  .tasks-sidebar li.active,
  .accounts-sidebar li.active,
   .callreport-sidebar li.active {
    border-bottom: 3px solid #2b6cff;
    background: none;
  }
  
  .search-box {
    width: 100%;
    margin-left: 0;
  }

  .search-box input {
    width: 100%;
  }
    #searchBtn,
  #filterBtn {
    flex-shrink: 1;          /* allow shrinking */
    padding: 10px 16px;      /* smaller buttons */
    font-size: 14px;
  }
}

/* ========================= */
/* CONTACTS – MOBILE (≤768px) */
/* ========================= */
@media (max-width: 768px) {

    
 
  
  .contacts-toolbar,
  .prospects-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
  }

  /* TABLE → CARD LAYOUT */

  

  .contacts-table tr {
    border-bottom: 1px solid #ddd;
    padding: 12px;
  }

  .contacts-table td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border: none;
    font-size: 13px;
  }

  .contacts-table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #666;
    margin-right: 10px;
    flex-shrink: 0;
  }
}



/* ========================= */
/* ADD CONTACT MODAL STYLES */
/* ========================= */
#addContactOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#addContactOverlay.hidden {
  display: none;
}

#addContactOverlay .profile-modal {
  max-height: 90vh;
  width: 90%;
  max-width: 1000px; /* ensures modal isn't too wide */
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}

/* Modal header & footer */
#addContactOverlay .modal-header,
#addContactOverlay .modal-footer {
  padding: 16px 24px;

  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
 
}

#addContactOverlay .modal-footer {
  
  border-bottom: none;
  gap: 12px;
}

/* Close buttons */
#addContactOverlay .profile-close-right {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 1020;
}

#addContactOverlay .profile-close-right:hover {
  background: rgba(0,0,0,0.8);
}

/* Modal body */
#addContactOverlay .modal-body {
  padding: 24px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Grid layout for form */
#addContactOverlay .profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* Labels */
#addContactOverlay label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

/* Inputs, selects, textarea */
#addContactOverlay input,
#addContactOverlay select,
#addContactOverlay textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #aaa;
  font-size: 14px;
  box-sizing: border-box;
}

#addContactOverlay textarea {
  resize: vertical;
}

/* Multi-options (checkbox-like buttons) */
#addContactOverlay .multi-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

#addContactOverlay .multi-options .option {
  padding: 6px 12px;
  background: #eee;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #ccc;
  font-size: 13px;
}

#addContactOverlay .multi-options .option.selected {
  background: #888;
  color: white;
  border-color: #888;
}

/* Buttons */
#addContactOverlay .profile-btn {
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
}

#addContactOverlay .profile-btn.save {
  background-color: #103057;
  color: white;
}

#addContactOverlay .profile-btn.save:hover {
  background-color: #0e2f55;
}

#addContactOverlay .profile-btn.close {
  background-color: #ccc;
  color: #333;
}

#addContactOverlay .profile-btn.close:hover {
  background-color: #aaa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #addContactOverlay .profile-modal {
    width: 95%;
    padding: 16px;
  }

  #addContactOverlay .profile-grid {
    grid-template-columns: 1fr;
  }

  #addContactOverlay .modal-footer {
    flex-direction: column;
  }
}
/* ========================= */
/* FIX DARK MODE SIDEBAR GAP ON TABLET & MOBILE */
/* ========================= */
@media (max-width: 1024px) {
  body{
    overflow-x: hidden;
  }
}

/* MOBILE FIX: STACK PROFILE MODAL COLUMNS */
@media (max-width: 768px) {
  .profile-modal {
    flex-direction: column; /* stack columns vertically */
    width: 95%;             /* modal fits most of screen */
    margin: 20px auto;
    max-height: 90vh;       /* prevent modal from exceeding viewport */
    overflow-y: auto;       /* allow scrolling if content is too tall */
  }

  .profile-sidebar,
  .profile-content {
    flex: unset;            /* remove desktop flex sizing */
    width: 100%;            /* take full width */
    padding: 15px;
  }

  .profile-sidebar {
    order: 1;               /* left column on top */
  }

  .profile-content {
    order: 2;               /* right column below */
  }

  /* Resize profile image for mobile */
  .profile-image-wrapper img {
    width: 80px;
    height: 80px;
  }

  /* Adjust close buttons for mobile */
  .profile-close, 
  .profile-close-right {
    top: 10px;
    right: 10px;
  }

  /* Make inputs and selects full width */
  .profile-grid input,
  .profile-grid select,
  .profile-content textarea {
    width: 100%;
    box-sizing: border-box;
  }
}
.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.active {
  max-height: 2000px; /* big enough to fit content */
}




/* =========================
   ADD CONTACTS PAGE CONTAINER
========================= */
#add-contacts-page {
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

/* Grid wrapper for columns */
#add-contacts-page .grid-wrapper {
    display: grid;
}

/* Column layout */
#add-contacts-page .column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Collapsible container styling */
#add-contacts-page .container {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
}

/* Collapsible content area */
#add-contacts-page .container .content {
    overflow-y: auto;
    flex: 1;
    max-height: 0;
    padding: 0 15px;
    border-top: 1px solid #ccc;
    background-color: #f9f9f9;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#add-contacts-page .content {
    max-height: 300px; /* smaller default height */
    overflow-y: auto;  /* scroll if too tall */
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

#add-contacts-page .content.show {
    max-height: 400px; /* slightly larger when expanded */
    padding: 10px 15px;
}

/* Header styling */
#add-contacts-page .header {
    padding: 15px;
    cursor: pointer;
    background-color: #103057;
    color: white;
    font-weight: bold;
    user-select: none;
   font-size: 14px;
    border-radius: 4px;
}

#add-contacts-page .header.active {
    background-color: #0056b3;
}

/* Inputs, selects, textareas */
#add-contacts-page input[type="text"],
#add-contacts-page input[type="email"],
#add-contacts-page input[type="tel"],
#add-contacts-page input[type="date"],
#add-contacts-page select,
#add-contacts-page textarea {
    width: 100%;
    padding: 10px 12px;
    margin: 6px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

#add-contacts-page input,
#add-contacts-page select,
#add-contacts-page textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
#add-contacts-page textarea {
    min-height: 60px;   /* smaller default */
    max-height: 150px;  /* prevent huge textareas */
    resize: vertical;
}
/* Buttons */
#add-contacts-page button {
  
    background-color: #007BFF;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#add-contacts-page button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

#add-contacts-page button:active {
    transform: translateY(0);
}

/* Multi-option boxes */
#add-contacts-page .multi-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

#add-contacts-page .multi-options .option {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    font-size: 13px;
}

#add-contacts-page .multi-options .option:hover {
    border-color: #007BFF;
    background-color: #e6f0ff;
}

#add-contacts-page .multi-options .option.selected {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}

/* Form rows */
#add-contacts-page .add-contact-form .form-row {
    display: flex;
    gap: 15 px;
}

#add-contacts-page .add-contact-form .form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#add-contacts-page .add-contact-form label {
    font-weight: 500;
}

/* Prospecting form fields side-by-side */
#add-contacts-page #prospectingForm {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#add-contacts-page #prospectingForm > div {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

/* Multi-select and textarea full width */
#add-contacts-page #prospectingForm select[multiple],
#add-contacts-page #prospectingForm textarea {
    width: 100%;
    min-height: 120px;
}
/* =========================
   Dark Mode for Add Contacts Page
========================= */
#add-contacts-page.dark-mode {
    background-color: #121212; /* page background */
    color: #eee; /* default text color */
}

/* Header */
#add-contacts-page.dark-mode .header {
    background-color: #555;
    color: #eee;
}

#add-contacts-page.dark-mode .header.active {
    background-color: #333;
    color: #fff;
}

/* Collapsible content areas */
#add-contacts-page.dark-mode .content {
    background-color: #1e1e1e;
    color: #ddd;
    border-top: 1px solid #444;
}

/* Forms inside prospect section and weekly entries */
#add-contacts-page.dark-mode input,
#add-contacts-page.dark-mode select,
#add-contacts-page.dark-mode textarea {
    background-color: #1a1a1a;
    color: #eee;
    border: 1px solid #555;
}

#add-contacts-page.dark-mode input:focus,
#add-contacts-page.dark-mode select:focus,
#add-contacts-page.dark-mode textarea:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Multi-option boxes */
#add-contacts-page.dark-mode .multi-options .option {
    background-color: #2a2a2a;
    color: #ddd;
    border: 1px solid #555;
}

#add-contacts-page.dark-mode .multi-options .option:hover {
    border-color: #007BFF;
    background-color: #333;
}

#add-contacts-page.dark-mode .multi-options .option.selected {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}
#decisionReason .multi-options .option.selected {
    background-color: #007BFF;
    color: white;
    border-color: #007BFF;
}

/* Textareas in weekly entries larger text */
#add-contacts-page.dark-mode textarea.column-2-large-text {
    background-color: #1a1a1a;
    color: #eee;
    border: 1px solid #555;
}

/* Buttons */
#add-contacts-page.dark-mode button {
    background-color: #007BFF;
    color: white;
}

#add-contacts-page.dark-mode button:hover {
    background-color: #0056b3;
}
.add-contacts-container {
    max-width: 900px; /* keeps everything from getting too wide */
    margin: 0 auto;   /* center on the page */
    padding: 15px;
    box-sizing: border-box;
}
/* Dark mode for the Add Contacts grid wrapper */
#add-contacts-page.dark-mode .grid-wrapper {
    background-color: #1b1b1b; /* dark background for the grid */
    gap: 15px; /* keep spacing consistent */
    padding: 15px; /* keep padding */
    border-radius: 6px; /* optional rounded corners */
}
#add-contacts-page.dark-mode {
   
    color: #f1f1f1; /* default text color */
}

/* --- Section layout --- */
.button-section {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 10px;
  flex-wrap: wrap;
}

/* --- Base button styles --- */
#create-account-btn,
#create-prospect-btn,
#create-wkentry-btn,
#create-tasks-btn,
#create-task-btn,
#create-followup-btn,
#assign-Followup-btn,
#importcallreports-btn,
#transfer-prospect-btn,
#transfer-tasks-btn,
  #transfer-accounts-btn,
#importprospectsBtn,
#importaccountsBtn,
#exportcallreportsBtn,
#create-contact-btn,
#create-entries-btn,
#create-call-report-btn  {
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #103057;
  color: #ffffff;
   margin-right: 2px;
}

.table-footer2,
.table-footer1,
.table-footer3 {
  padding: 0; /* remove extra padding */
  background-color: #f9f9f9;
  border-top: 1px solid #ccc;
}

/* Make button full width */
#add-task-btn,
#viewTodoBtn,
#add-contacts-btn,
add-callreports-btn{
  width: 100%;
  padding: 12px 0; /* vertical padding only */
  font-size: 14px;
  font-weight: 600;
  border-radius: 0; /* button spans full footer width */
  border: none;
  cursor: pointer;
  background: #1a4378;
  color: #ffffff;
}

#viewallprospects {
  width: 100%;
  padding: 12px 0; /* vertical padding only */
  font-size: 14px;
  font-weight: 600;
  border-radius: 0; /* button spans full footer width */
  border: none;
  cursor: pointer;
  background: #1a4378;
  color: #ffffff;
}

#viewallprospects2 {
    display: block;          /* makes width:100% work */
  width: 100%;
  padding: 12px 0;         /* vertical padding only */
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;        /* full footer width */
  border: none;
  cursor: pointer;
  background: #1a4378;
  color: #ffffff;
  text-align: center;      /* center text like a button */
  text-decoration: none;  /* remove underline */
}



#add-task-btn,
#viewTodoBtn,
#add-contacts-btn,
#add-callreports-btn{
    display: block;          /* makes width:100% work */
  width: 100%;
  padding: 12px 0;         /* vertical padding only */
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;        /* full footer width */
  border: none;
  cursor: pointer;
  background: #1a4378;
  color: #ffffff;
  text-align: center;      /* center text like a button */
  text-decoration: none;  /* remove underline */
}



@media (max-width: 480px) {
  .search-bar button,
    #filterbtn,
    #searchbtn,
    #create-account-btn,
#create-prospect-btn,
#create-wkentry-btn,
  #create-task-btn,
#create-call-report-btn,
  #create-entries-btn,
#create-followup-btn,
#assign-Followup-btn,
#importcallreports-btn,
#transfer-prospect-btn,
  #transfer-tasks-btn,
#transfer-accounts-btn,
#importprospectsBtn,
  #importaccountsBtn,
  #exportcallreportsBtn,
#create-contact-btn,
#create-followup-btn,
#assign-Followup-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
/* Target only addcontacts form top fields not prospect or weeklyentryies */
#addContactForm .form-row {
  display: flex;
  gap: 12px;             /* space between fields */
  flex-wrap: wrap;        /* wrap on smaller screens */
}

/* Each field in this form */
#addContactForm .form-field {
  flex: 1 1 200px;       /* grow/shrink, min width 200px */
  display: flex;
  flex-direction: column;
}

/* Inputs/selects inside this form */
#addContactForm .form-field input,
#addContactForm .form-field select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Optional: stack completely on mobile */
@media (max-width: 480px) {
  #addContactForm .form-row {
    flex-direction: column;
  }
}

.button-container {
  display: flex;
  justify-content: flex-end; /* pushes content to the right */
  gap: 10px; /* optional spacing between buttons */
  margin-top: 10px; /* optional spacing from other content */
}

.button-container #saveContactBtn
{
 all: unset;                 /* removes default button styles */
  display: block;
  width: 60px;
  padding: 10px ;
  color: #fff;
  background: #103057;           /* transparent so it matches a tags */
  border: none;
    border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}
.button-container #cancelContactBtn
{
 all: unset;                 /* removes default button styles */
  display: block;
  width: 80px;
  padding: 10px ;
  color: #fff;
  background: #888;           /* transparent so it matches a tags */
  border: none;
    border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}





/* Container for filter button and dropdown */
.filter-container {
 display: flex;
  gap: 8px;        /* space between buttons */
  position: relative;
}

#filterBtn,
#clearFilterBtn {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;   /* prevents text from wrapping */
}

#filterBtn {
  background: #2563eb;
  color: #fff;
  flex-shrink: 0;        /* prevents shrinking when text changes */
}

#clearFilterBtn {
  background: #ef4444;
  color: #fff;
  flex-shrink: 0;
}

#filterBtn:hover { background: #1d4ed8; }
#clearFilterBtn:hover { background: #b91c1c; }
/* Dropdown menu */
.dropdown {
  display: none; /* hidden by default */
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
}
/* Mobile: Clear button full width */
@media (max-width: 599px) {
  #clearFilterBtn {
    width: 100% !important;   /* full width on mobile */
    display: block !important;
  }

  /* Optional: stack both buttons vertically */
  .filter-container {
    flex-direction: column;
    gap: 8px;   /* spacing between buttons */
  }
}
/* Tablet: make Clear button full width */
@media (min-width: 600px) and (max-width: 1024px) {
  .filter-container {
    flex-direction: column;  /* stack buttons vertically */
    gap: 8px;                /* spacing between buttons */
    width: 100%;             /* make container full width */
  }

  #filterBtn,
  #clearFilterBtn {
    width: 100% !important;  /* both buttons full width on tablet */
    display: block !important;
    box-sizing: border-box;
  }
}
/* Individual dropdown items */
.dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}



/* Search Results Styling */
.search-results {
  margin-top: 24px;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Title */
.search-results h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Query text */
.search-results p {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Table styling */
.search-results table {
  width: 100%;
  border-collapse: collapse;
}

/* Header */
.search-results th {
  background: #103057;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* Cells */
.search-results th,
.search-results td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
}

/* Row hover */
.search-results tbody tr:hover {
  background: #f3f4f6;
}

/* View link button */
.search-results .view-link {
  display: inline-block;
  padding: 6px 12px;
  background: #1a4378;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

.search-results .view-link:hover {
  background: #1d4ed8;
}

/* FILTER CONTAINER */
.filter-container {
  position: relative;
}

/* FILTER BUTTON */
#filterBtn {
  padding: 10px 14px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}



#filterBtn:hover {
  background: #1d4ed8;
}

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid #e5e7eb;
  display: none;
  z-index: 1000;
  overflow: hidden;
}

/* DROPDOWN ITEM */
.dropdown-item {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #111827;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

/* HOVER */
.dropdown-item:hover {
  background: #f3f4f6;
}

/* ACTIVE FILTER */
.dropdown-item.active {
  background: #e0e7ff;
  color: #1e3a8a;
  font-weight: 500;
}

/* SEARCH INPUT */
.search-bar input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.search-bar input::placeholder {
  color: #9ca3af;
}

.search-bar input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* SEARCH BUTTON */
#searchBtn {
  padding: 11px 18px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

#searchBtn:hover {
  background: #059669;
}
@media (max-width: 1024px) and (min-width: 600px) {
  /* Reset search-bar layout */
  .search-bar {
    display: flex !important;         /* override any previous display */
    flex-direction: column !important; /* stack vertically */
    gap: 10px;
    width: 100% !important;
  }

  /* Make the filter container span full width */
  .filter-container {
    width: 100% !important;
    display: block !important;
  }

  /* Make the filter button fill its container */
  #filterBtn {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
  }

  /* Make the search button full width */
  #searchBtn {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
  }

  /* Make the search input full width */
  .search-bar input {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
  }

  /* Optional: bigger buttons for tablet touch */
  #filterBtn,
  #searchBtn {
    padding: 14px;
    font-size: 1rem;
  }
  .filter-container {
    width: 100% !important; /* ensure parent fills container */
  }

  #filterDropdown {
    position: static !important; /* remove absolute positioning */
    width: 100% !important;      /* full width of parent */
    box-sizing: border-box;
    margin-top: 6px;             /* spacing below button */
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-align: center;
  }

  .dropdown-item {
    padding: 12px 16px;
  }
}
/* ----------------------------------- */
/* Mobile: below 600px */
/* ----------------------------------- */
@media (max-width: 599px) {
  .search-bar {
    display: flex !important;
    flex-direction: column !important; /* stack everything */
    gap: 8px;
    width: 100% !important;
    padding: 10px;
  }
  
#filterDropdown {
    position: static !important; /* remove absolute positioning */
    width: 100% !important;      /* full width of parent */
    box-sizing: border-box;
    margin-top: 6px;             /* spacing below button */
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    text-align: center;
  }
  .filter-container,
  #filterBtn,
  #searchBtn,
  .search-bar input {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
  }

  #filterBtn,
  #searchBtn {
    padding: 16px;
    font-size: 1.05rem; /* slightly bigger for touch */
  }

  .search-bar input {
    padding: 14px;
    font-size: 1rem;
  }
}

@media (max-width: 599px) {
  #importprospectsInput {
    display: none !important;
  }
}
/* Styles specific to taskForm */
#taskForm.task-form {
 background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: auto;
  color: #333;
}

/* Grid layout for top fields */
#taskForm .task-form-grid {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; /* increased gap between fields */
  margin-bottom: 12px; /* space below the grid */
}

/* Form Groups */
#taskForm .form-group {
  display: flex;
  flex-direction: column;
}

/* Inputs & Selects */
#taskForm input[type="text"],
#taskForm input[type="date"],
#taskForm input[type="time"],
#taskForm select,
#taskForm textarea,
#taskForm input[list] {
  padding: 0.75rem 1rem; /* slightly larger padding inside fields */
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.2s all;
  width: 100%;
  box-sizing: border-box;
}

#taskForm input:focus,
#taskForm select:focus,
#taskForm textarea:focus {
    outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 6px rgba(74, 144, 226, 0.3);
}

/* Textarea */
#taskForm textarea {
resize: vertical;
}

/* Radio Groups */
#taskForm .radio-group div {
  display: flex;
  gap: 2rem; /* larger gap between radio options */
  margin-top: 8px;
}

#taskForm .radio-group input[type="radio"] {
margin-right: 0.3rem;}

/* Save Button */
#taskForm .btn-save {
  background: #103057;
  color: #fff;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s all;
  margin-top: 1rem; /* space above the button */
}
#taskForm .btn-save:hover {
  background: #357abd;
}

/* Container for the two radio groups side by side */
#taskForm .radio-groups-container {
  display: flex;
  gap: 2rem;           /* space between the two radio sections */
  flex-wrap: wrap;      /* stack on small screens */
  margin-top: 2rem;     /* top spacing from previous fields */
  margin-bottom: 2rem;  /* spacing below */
}

/* Individual radio group flex for horizontal options */
#taskForm .form-group.radio-group div {
  display: flex;
  gap: 1.5rem; /* space between Yes / No options */
  margin-top: 0.5rem;
}

/* Responsive for smaller screens */
@media (max-width: 480px) {
  #taskForm .task-form-grid {
    grid-template-columns: 1fr;
  }
}
/* Container for filters above tasks table */
.tasks-table-filters {
  display: flex;
  flex-wrap: wrap; /* stack on small screens */
  gap: 1.5rem; /* space between filter groups */
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* Individual filter groups */
.tasks-table-filters .filter-group {
  display: flex;
  flex-direction: column;
  min-width: 150px;
  flex: 1; /* allows flex-grow */
}

.tasks-table-filters .filter-group label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

/* Inputs and Selects */
.tasks-table-filters input,
.tasks-table-filters select,
.tasks-table-filters input[list] {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
  transition: 0.2s all;
}

.tasks-table-filters input:focus,
.tasks-table-filters select:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 6px rgba(74,144,226,0.3);
  outline: none;
}

/* Search group gets slightly more width */
.tasks-table-filters .search-group {
  flex: 2; /* wider than other filters */
  min-width: 250px;
}

/* Responsive: stack on small screens */
@media (max-width: 480px) {
  .tasks-table-filters {
    flex-direction: column;
  }

  .tasks-table-filters .search-group {
    min-width: 100%;
  }
}

.feature-coming-soon {
  display: none;
}

.hidden {
    display: none;
}
.role-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-block;
  margin-bottom: 10px;
}

/* Role colors */
.role-admin {
  background: #ffe5e5;
  color: #b30000;
}

.role-manager {
  background: #e6f0ff;
  color: #003d99;
}

.role-user {
  background: #e9f7ef;
  color: #1e7e34;
}

/* Scoped exclusively to the role card */
.role-card-wrapper {
  background: #f4f6f8;
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.role-card-wrapper .card {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 25px;
}

.role-card-wrapper .card h2 {
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
}

.role-card-wrapper .role-descriptions {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

.role-card-wrapper .role-descriptions h4 {
  margin-top: 0;
}

.role-card-wrapper .role-form .form-group {
  margin-bottom: 15px;
}

.role-card-wrapper .role-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.role-card-wrapper .role-form input,
.role-card-wrapper .role-form select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 5px;
}

.role-card-wrapper .btn-primary {
  width: 100%;
  padding: 10px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.role-card-wrapper .btn-primary:hover {
  background: #1e40af;
}

