* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

.background {
  background-image: url(../assets/images/background.png);
  width: 100dvw;
  height: 100dvh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.login {
  width: 100dvw;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0px 160px;
}

.login-box {
  width: 600px;
  background: rgba(255, 255, 255, 0.25);
  padding: 40px;
  border: 1px solid rgba(58, 69, 95, 0.25);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
}

.logo-img {
  width: 100%;
  display: grid;
  place-content: center;
  margin-bottom: 20px;
}

.logo-img img {
  width: 360px;
  height: 210px;
  object-fit: cover;
  object-position: center;
}

.login-box h2 {
  text-align: left;
  color: #111111;
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
}

.form-input {
  border: 1px solid rgba(102, 102, 102, 0.349);
  width: 100%;
  height: 46px;
  border-radius: 12px;
  padding: 0px;
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  height: 100%;
  font-weight: 400;
  font-size: 14px;
  border: none;
  background: transparent;
}

.form-control:focus {
  background: transparent;
  border: none;
  box-shadow: none;
}

.login-btn {
  width: fit-content;
  padding: 10px 20px;
  background-color: #ec1b24;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 22px;
  font-size: 500;
  transition: all 0.3s ease-in-out;
}

.login-btn:nth-child(2) {
  background: #181a1e;
}

.login-btn:nth-child(3) {
  background-color: #1baf48;
}

.login-btn:hover {
  width: fit-content;
  padding: 10px 20px;
  background-color: transparent;
  border-radius: 30px;
  border: 1px solid #ec1b24;
  transition: all 0.3s ease-in-out;
}

.login-btn:hover a {
  color: #ec1b24;
}

.login-type {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  /* max-width: 380px; */
  width: 100%;
  margin: 40px auto;
  /* padding: 20px; */
  background: #f8f9fb;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
}
.login-type h2 {
  /* margin: 0 0 16px; */
  font-size: 20px;
  color: #222;
  /* text-align: center; */
  align-items: center;
}

/* Option card */
.login-option {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  margin: 10px 0;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 180ms ease;
  background: #fff;
  gap: 10px;
  user-select: none;
}

/* tiny label text */
.login-option span {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

/* Hide native radio visual but keep it accessible */
.login-option input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #bdbdbd;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}
.login-option input[type="radio"]::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 4px;
  left: 4px;
  transform: scale(0);
  transition: transform 140ms ease;
  background: white;
}
/* when checked, fill the circle and show inner dot */
.login-option input[type="radio"]:checked {
  background: #007bff;
  border-color: #007bff;
}
.login-option input[type="radio"]:checked::after {
  transform: scale(1);
}

/* Hover */
.login-option:hover {
  border-color: #9fd3ff;
  background: #fbfdff;
}

/* Selected visual via class (JS will toggle this) */
.login-option.selected {
  border-color: #007bff;
  background: #f0f8ff;
}
.login-option.selected span {
  color: #007bff;
}

/* Make label clickable area (input already inside label) */
label.login-option {
  display: flex;
  align-items: center;
}

/* User box */
.user-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ccc;   /* soft border */
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-info:hover {
  border-color: #007bff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Avatar icon */
.user-info .user-avatar {
  font-size: 16px;
  color: #007bff;
}

/* Dropdown arrow */
.user-info .arrow {
  font-size: 12px;
  margin-left: 6px;
  color: #444;
}

/* Dropdown menu */
.role-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  list-style: none;
  padding: 6px 0;
  min-width: 160px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  z-index: 100;
}

.role-menu li {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  width: 200px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease;
}

.role-menu li:hover {
  background: #f0f8ff;
  color: #007bff;
}

/* Show menu */
.role-menu.show {
  display: block;
}


/*######################### LEAD MASTER DESIGN ###############################*/

.header_container {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0px 4px 14px #00000017;
}

.header-container-box {
  width: 100%;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-tab-section {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-img-1 {
  width: 130px;
  height: 80px;
}

.logo-img-1 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.profile-box {
  display: flex;
  align-items: center;
  gap: 20px;
}

.arrow-down-icon {
  width: 12px;
  height: 6px;
}

.arrow-down-icon img {
  width: 100%;
  height: 100%;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name-box {
  display: flex;
  align-items: start;
  gap: 6px;
}

.profile-name-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.profile-name-box h6 {
  color: #2c2c2c;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0px;
}

.profile-name-box p {
  color: #6a6a6a;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 0px;
}

/********  Tabs  ********/

.nav-tabs {
  border-bottom: none !important;
}

.nav-tabs .nav-link {
  border: none !important;
  background-color: transparent;
  border-radius: 0;
  color: #181a1e;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 20px;
  position: relative;
  display: inline-block;  
  min-width: 120px;         
  text-align: center; 
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 40px;
  background-color: #ec1b24;
}

.main-conatiner {
  width: 100%;
  padding: 40px 20px;
  background-image: url(../assets/images/main-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 80px);
}

.heading-search-container {
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.heading-search-container h4 {
  color: #181a1e;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0px;
}

.search-button-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border-radius: 40px;
  background-color: #ffffff;
  border: 1px solid #dfdbdb;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-box img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.search-box .input-box {
  display: flex;
  flex: 1;
  border: none !important;
}

.search-box .input-box:focus {
  outline: none;
}

.button-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 40px;
  background-color: #62ac00;
  box-shadow: 0px 0px 20px #0000001a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: none !important;
}

.button-box img {
  width: 20px;
  height: 22px;
  object-fit: contain;
}

.button-box:nth-child(2) {
  background-color: #ec1b24;
}

.button-box:nth-child(2) img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.table-container {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: 0px 2px 24px #00000040;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

table.recomendation-table {
  min-width: 100%;
}

thead {
  background: #8a98b8;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #868c99;
}

th {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

td {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

td a {
  color: #3968e2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

.action-btn-box {
  width: 160px;
  background-color: #3968e2;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn-box:hover,
.action-btn-box-2:hover,
.action-btn-box-3:hover,
.action-btn-box-4:hover {
  color: #ffffff;
}

.action-btn-box-1 {
  border: none;
  width: 160px;
  background-color: #69b306;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 10px 0px !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.action-btn-box-1 img {
  width: 20px;
  height: 10px;
  object-fit: contain;
}

.action-btn-box-2 {
  border: none;
  width: 160px;
  background-color: #ec1b24;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn-box-3 {
  border: none;
  width: 160px;
  background-color: #ffa600;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn-box-4 {
  border: none;
  width: 160px;
  background-color: #9747ff;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #ffffff;
  border-radius: 50px;
  border: 1px solid #ec1b24;
  text-decoration: none;
}

.back-button img {
  width: 16px;
  height: 11px;
  object-fit: contain;
}

.back-button span {
  color: #181a1e !important;
  font-size: 14px;
  font-weight: 500;
}

.details-button-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 40px;
  background-color: #3968e2;
  box-shadow: 0px 0px 20px #0000001a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: none !important;
  text-decoration: none;
}

.details-button-box:hover {
  color: #ffffff;
}

.details-button-box img {
  width: 19px;
  height: 22px;
  object-fit: contain;
}

.details-button-box:nth-child(2) {
  background-color: #ec1b24;
}

.details-button-box:nth-child(2) img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.details-page-container {
  width: 100%;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 20px;
}

.details-page-container img {
  width: 100%;
  height: 1200px;
  object-fit: fill;
}

.modal-content {
  border-radius: 20px !important;
}

.modal-close-btn {
  background-color: #ffffff !important;
  border: 2px solid #8a98b8 !important;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn img {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.modal-header {
  border-bottom: none !important;
  padding: 30px !important;
}

.modal-title {
  color: #181a1e;
  font-size: 20px;
  font-weight: 500;
}

.modal-body {
  width: 100%;
  padding: 0px 30px !important;
}

.modal-content-box {
  border-top: 1px solid #c3cada;
  width: 100%;
  padding: 30px 0px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-radio-box {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.input-radio-box .input-radio-button {
  width: 20px;
  height: 20px;
  accent-color: #ec1b24;
  cursor: pointer;
  border: 2px solid #b4b4b4;
}

.input-radio-box span,
.input-box-container span {
  color: #181a1e;
  font-size: 16px;
  font-weight: 600;
}

.input-box-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0px 0px;
}

.input-box-container .input-box {
  width: 100%;
  border: 1px solid #c3cada !important;
  border-radius: 10px !important;
  padding: 10px;
}

.input-box-container .input-box:focus {
  outline: none;
}

.update-button {
  width: fit-content;
  border: none !important;
  padding: 10px 20px;
  background-color: #ec1b24;
  box-shadow: 0px 0px 20px #0000001a;
  border-radius: 80px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.filter-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.filter-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-box label {
  color: #181a1e;
  font-size: 16px;
  font-weight: 600;
}

.date-input-box {
  position: relative;
  width: 100%;
  border: 1px solid #c3cada;
  border-radius: 10px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.date-input-box.unique {
  padding: 0;
  border: none;
  border-radius: none;
}

.date-input-box p {
  color: #868c99;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0;
  pointer-events: none;
}

.date-input-box img {
  width: 26px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
}

.date-input {
  /* width: 100%; */
  height: 100%;
  z-index: 1;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #c3cada;
  border-radius: 10px;
}

.select-box {
  width: 100%;
  border: none;
  padding: 4px 0px;
}

.select-box:focus {
  border: none !important;
  outline: none;
}

.table-input-box {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 8px;
}

.table-input-box.recomendation {
  width: 100%;
}

.table-input-box-select {
  min-width: 200px;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0;
  position: relative;
  background: #fff;
  overflow: hidden;
}

.unique {
  max-width: 160px;
  min-width: 16px;
  width: 25%;
}

.unique .table-input-box-select.serving_location_select {
  max-width: 160px;
  min-width: 160px;
}

.table-select-box {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 8px 40px 8px 12px;
  border: none !important;
  outline: none;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  font-size: 14px;
  cursor: pointer;
}

.status-btn-box {
  width: 160px;
  background-color: #33b9de;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.status-btn-box-1 {
  width: 160px;
  background-color: #c5cdcf;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

#status-btn-id {
  width: 110px;
  background-color: #33b9de;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-btn-box:hover {
  color: #ffffff;
}

.update-button-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-button {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: none;
  background-color: #287aeb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.action-btn-box {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.unique-no-link {
  color: #0d6efd;
  text-decoration: none;
}

.unique-no-link:hover {
  text-decoration: underline;
}

/********************* EDIT RECOMENDATION ********************/

.cancle-update-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.update-cancle-button {
  padding: 10px 20px;
  border-radius: 80px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  background-color: #ec1b24;
  box-shadow: 0px 0px 20px #0000001a;
  text-decoration: none;
  border: none;
}

.update-cancle-button:hover {
  color: #ffffff;
}

.update-cancle-button:nth-child(2) {
  background-color: #3968e2;
}

.table-container span {
  font-weight: 700;
}

.edit-recomendation-table-body tr:hover td {
  background-color: #edf2ff !important;
  color: #868c99;
}

/*********** SEND EMAIL ********************/

.email-main-conatiner {
  width: 100%;
  padding: 40px 20px;
  background-image: url(../assets/images/send-email-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 20px;
  min-height: calc(100vh - 80px);
}

.email-send-conatiner h4 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 0px;
}

.email-send-conatiner {
  width: 30%;
  margin-left: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  border-radius: 20px;
  background-color: #0a132a5c;
  filter: blur(4);
  box-shadow: inset 0px 14px 50px #ffffff85;
}

.input-field-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}

.input-field-box label {
  color: #ffffff;
  font-size: 18px;
  font-weight: 400;
}

.send-email-box-input-section {
  width: 100%;
  background-color: transparent;
  border: 1px solid #ffffff59;
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.send-email-box-input-section::placeholder {
  color: #ffffff;
}

.send-email-box-textarea-section {
  width: 100%;
  background-color: transparent;
  border: 1px solid #ffffff59;
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.send-email-box-textarea-section::placeholder {
  color: #ffffff;
}

.send-email-button-section {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.send-email-button-section img {
  width: 140px;
  height: 90px;
  object-fit: contain;
}

/*********** SEND EMAIL SUCCESSFULLY ********************/

.successfully-container {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.successfully-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.successfully-box img {
  width: 280px;
  height: 290px;
  object-fit: contain;
}

.successfully-box h2 {
  color: #181a1e;
  font-size: 28px;
  font-weight: 600px;
  margin-top: 20px;
}

.successfully-box p {
  text-align: center;
  width: 60%;
  color: #5e5e5e;
  font-size: 16px;
  font-weight: 400px;
  margin-bottom: 20px;
}

thead th:first-child {
  position: sticky;
  left: 0;
  background: #8a98b8;
  z-index: 3;
}

tbody td:first-child {
  position: sticky;
  left: 0;
  background-color: #fff;
  z-index: 3;
}

/* Extra z-index for header so it appears above left-sticky */
thead th:first-child {
  z-index: 4;
}

/*************** PAGINATION DESIGN *****************/
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

#firstPage,
#lastPage {
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #f9f9f9;
  border: 1px solid #f44336;
  display: grid;
  place-items: center;
  color: #323232;
  font-size: 14px;
  /* opacity: 0.6; */
}

#firstPage:disabled,
#lastPage:disabled {
  cursor: not-allowed;
  background-color: #f9f9f9;
  border: 1px solid #c3c3c3;
  display: grid;
  place-items: center;
  color: #323232;
  font-size: 14px;
}

#prevPage,
#nextPage {
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #f9f9f9;
  border: 1px solid #f44336;
  display: grid;
  place-items: center;
  color: #323232;
  font-size: 14px;
}

#prevPage:disabled,
#nextPage:disabled {
  cursor: not-allowed;
  background-color: #f9f9f9;
  border: 1px solid #c3c3c3;
  display: grid;
  place-items: center;
  color: #323232;
  font-size: 14px;
}

#currentPage,
#totalPages {
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #f44336;
  border: 1px solid #f44336;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
}

#pageSize {
  padding: 4px 8px;
  border-radius: 4px;
  background-color: #f9f9f9;
  border: 1px solid #f44336;
  display: grid;
  place-items: center;
  color: #323232;
  font-size: 14px;
  margin-left: 20px;
}

.table-input {
  /* width: 100%; */
  border: none;
  outline: 1px solid #cccccc;
  background: transparent;
  padding: 4px;
  font-size: 14px;
}

.table-input:focus {
  outline: 1px solid #007bff;
  background-color: #eef6ff;
}

.text-danger {
  font-size: 12px;
  color: #dc3545;
}

.is-invalid {
  border: 1px solid red !important;
}

.table-select-input {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 8px;
  width: 200px;
}

/************** Generate Lead Style ************/
.lead-type {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  margin-bottom: 20px; /* more breathing space */
}

/* --- Radio Buttons Group --- */
.custom-form .lead-type span {
  display: flex;
  gap: 14px; /* even spacing */
  align-items: center;
  flex-wrap: wrap;
  justify-content: center; /* center align radio group */
}

.custom-form .lead-type input[type="radio"] {
  margin-right: 6px;
  transform: scale(1.15);
  cursor: pointer;
}

.custom-form .lead-type label {
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
}

/* --- Custom Form Wrapper --- */
.custom-form {
  max-width: 1000px; /* slightly wider for balance */
  margin: 40px auto;
  background: #ffffff;
  padding: 40px 45px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  border: 1px solid #e2e8f0;
}

/* --- Headings --- */
.custom-form h5 {
  margin-bottom: 22px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  border-left: 5px solid #2563eb;
  padding-left: 12px;
  letter-spacing: 0.3px;
}

/* --- Section Wrapper --- */
.custom-form .main-form-class {
  margin-bottom: 32px;
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
  transition: background 0.25s, transform 0.15s;
}

.custom-form .main-form-class:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* --- Labels --- */
.custom-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px; /* more compact */
  color: #334155;
}

/* --- Inputs / Select / Textarea --- */
.custom-form input[type="date"],
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="number"],
.custom-form textarea,
.custom-form select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}

.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* --- Textarea Resize --- */
.custom-form textarea {
  resize: vertical;
  min-height: 120px;
  grid-column: span 2; /* textarea spans full width */
}

/* --- Buttons --- */
.custom-form .btn-primary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}

.custom-form .btn-primary:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.custom-form .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
}

.custom-form .btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.custom-form .ex-worklist-class {
  display: block;
}

.btn-div {
  display: flex;
  gap: 15px;
  justify-content: flex-end; /* align right */
  margin-top: 20px;
}

/* --- Grid Fix: Even 2-column layout --- */
.main-form-class > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* smoother balance */
  gap: 10px 20px; /* row-gap & col-gap */
  align-items: start;
}

.new-lead-class {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 10px 20px !important; /* row-gap & col-gap */
  align-items: start !important;
}

.aac-block {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 10px 20px !important; /* row-gap & col-gap */
  align-items: start !important;
  margin-bottom: 10px !important;
}

#sold_kunnr, #ship_kunnr  {
  cursor: not-allowed;
  background: #d9d9d920;
}

.segment-and-other {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.disable-style {
  background: #d9d9d920 !important;
  cursor: not-allowed;
}

.select2-container--default .select2-selection--single{
  border: none !important;
  background-color: transparent !important;
  border-radius: 0px !important;
  margin-bottom: 30px !important;
}

.select2 .select2-selection__rendered{
  background-color: #fff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  min-height: 50px !important; 
} 

.select2 .select2-selection__arrow {
  top: 6px !important;
  right: 7px !important;
   position: absolute !important;
   height: 36px !important;
}
.select2.select2-container.select2-container--default{
  width: 100% !important;
}

#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 6px solid #f3f3f3; /* Light grey */
  border-top: 6px solid #007BFF; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



