/* ============================================================
   BASE RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.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: 0 160px;
}

/* FIX: was fixed 600px, now responsive */
.login-box {
  width: min(600px, 100%);
  background: rgba(255, 255, 255, 0.88);
  padding: 40px;
  border: 1px solid rgba(58, 69, 95, 0.2);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.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.3);
  width: 100%;
  height: 46px;
  border-radius: 12px;
  padding: 0 12px;
  margin-bottom: 20px;
}

/* FIX: added padding so text doesn't touch edge */
.form-control {
  width: 100%;
  height: 100%;
  font-weight: 400;
  font-size: 14px;
  border: none;
  background: transparent;
  padding: 0 12px;
}

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

/* FIX: swapped invalid font-weight/font-size values; fixed hover text color */
.login-btn {
  width: fit-content;
  padding: 10px 20px;
  background-color: #ec1b24;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.3s ease-in-out;
}

/* FIX: use explicit classes instead of fragile :nth-child selectors */
.login-btn.btn-dark {
  background-color: #181a1e;
}

.login-btn.btn-green {
  background-color: #1baf48;
}

.login-btn:hover {
  background-color: transparent;
  border-color: #ec1b24;
  color: #ec1b24;
}

.login-btn:focus-visible {
  outline: 2px solid #ec1b24;
  outline-offset: 2px;
}

/* ---- Login type radio selector ---- */
.login-type {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 40px auto;
  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 {
  font-size: 20px;
  color: #222;
  align-items: center;
}

.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;
}

.login-option span {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.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;
}

.login-option input[type="radio"]:checked {
  background: #007bff;
  border-color: #007bff;
}

.login-option input[type="radio"]:checked::after {
  transform: scale(1);
}

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

.login-option.selected {
  border-color: #007bff;
  background: #f0f8ff;
}

.login-option.selected span {
  color: #007bff;
}

label.login-option {
  display: flex;
  align-items: center;
}

/* ---- User info dropdown ---- */
.user-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ccc;
  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);
}

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

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

.role-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  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;
}

.role-menu.show {
  display: block;
}

/* ============================================================
   HEADER
   ============================================================ */
.header_container {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.header-container-box {
  width: 100%;
  padding: 0 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: 0;
}

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

/* ---- Nav 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 CONTAINER
   ============================================================ */
/* FIX: corrected typo "conatiner" -> "container" (keep old class for back-compat) */
.main-conatiner,
.main-container {
  width: 100%;
  padding: 20px 10px;
  background-image: url(../assets/images/main-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.heading-search-container {
  width: 100%;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  /* padding: 12px 0; */
  margin-bottom: 24px;
}

.heading-search-container h4 {
  color: #212121;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0;
}

.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;
}

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

/* ---- Buttons ---- */
.button-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 40px;
  background: linear-gradient(135deg, #62ac00 0%, #4a9200 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.button-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.button-box:focus-visible {
  outline: 2px solid #62ac00;
  outline-offset: 2px;
}

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

#leadMasterSearchBtn,
#leadInputSearchBtn {
  background: linear-gradient(135deg, #62ac00 0%, #4a9200 100%);
}

#exportVisibleCSVBtn,
#exportLeadInputCSVBtn {
  background: #ec1b24;
}

#exportVisibleCSVBtn img,
#exportLeadInputCSVBtn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-container {
  overflow-x: auto;
  border-radius: 20px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  margin: 24px 0;
}

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

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

thead {
  background: #8a98b8;
}

th {
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

td {
  text-align: left;
  padding: 10px 14px;
  background-color: #fff;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
  vertical-align: middle;
  color: #4b5563;
  font-size: 13.5px;
}

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

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

table.datatable tbody tr {
  background-color: #ffffff;
}

/* FIX: sticky columns — consolidated, no duplicate blocks */
thead th:first-child {
  position: sticky !important;
  left: 0;
  background-color: #8a98b8;
  z-index: 4;
}

thead th:last-child {
  position: sticky !important;
  right: 0;
  background-color: #8a98b8;
  z-index: 3;
  text-align: center !important;
}

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

tbody td:last-child {
  position: sticky !important;
  right: 0;
  background-color: #fff;
  z-index: 2;
  text-align: center !important;
}

/* FIX: action cell wrapper — use a div inside td for flex layout (td can't be flex) */
.action-cell {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
}

/* ---- Lead input table sticky columns ---- */
.leadinputtable thead th:first-child,
.leadinputtable tbody td:first-child {
  position: sticky !important;
  left: 0;
  z-index: 3;
}

.leadinputtable thead th:first-child {
  background: #8a98b8;
}

.leadinputtable tbody td:first-child {
  background-color: #fff;
}

.leadinputtable thead th:nth-last-child(1),
.leadinputtable tbody td:nth-last-child(1) {
  position: sticky !important;
  background-color: #8a98b8;
  right: 1px;
  z-index: 4;
  text-align: center !important;
}

.leadinputtable thead th:nth-last-child(2),
.leadinputtable tbody td:nth-last-child(2) {
  position: sticky !important;
  background-color: #8a98b8;
  right: 146px;
  z-index: 4;
  text-align: center !important;
}

.leadinputtable thead th:nth-last-child(3),
.leadinputtable tbody td:nth-last-child(3) {
  position: sticky !important;
  background-color: #8a98b8;
  right: 216px;
  z-index: 4;
  text-align: center !important;
}

.leadinputtable tbody td:nth-last-child(-n + 3) {
  background-color: #fff;
  text-align: center !important;
}

/* ---- Action buttons ---- */
/* FIX: single consolidated definition, no duplicate !important chains */
.action-btn-box,
.action-btn-box-1,
.action-btn-box-2,
.action-btn-box-3,
.action-btn-box-4 {
  display: inline-flex;
  align-items: center;
  justify-content: space-evenly;
  width: auto;
  min-width: 128px;
  height: 34px;
  padding: 8px 16px;
  color: #ffffff;
  /* border: none; */
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(98, 172, 0, 0.2);
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
  transition: filter 0.15s ease;
  flex-wrap: nowrap;
  flex-direction: row;
  align-content: center;
}

.action-btn-box-1:hover,
.action-btn-box-2:hover,
.action-btn-box-3:hover,
.action-btn-box-4:hover {
  filter: brightness(0.92);
}

.action-btn-box {
  background-color: transparent;
  color: #ec1b24;
  border: 1px solid #ec1b24;
  border-radius: 6px;
  transition: all 0.2s;
  min-width: 160px;
}

.action-btn-box:hover {
  background-color: #6c757d;
  color: #ffffff;
}

.action-btn-box:focus-visible {
  outline: 2px solid #6c757d;
  outline-offset: 2px;
}

.action-btn-box-1 {
  background-color: rgba(105, 179, 6, 0.12);
  color: #559105;
}

.action-btn-box-2 {
  background-color: rgba(236, 27, 36, 0.12);
  color: #ec1b24;
}

.action-btn-box-3 {
  background-color: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.action-btn-box-4 {
  background-color: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

/* FIX: single status-btn-box definition */
.status-btn-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 128px;
  height: 34px;
  padding: 8px 16px;
  background-color: #62ac00;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(98, 172, 0, 0.2);
  transition: background-color 0.2s, transform 0.1s;
}

.status-btn-box:hover:not(:disabled) {
  background-color: #508d00;
  transform: translateY(-1px);
  color: #ffffff;
}

.status-btn-box:active {
  transform: translateY(0);
}

.status-btn-box:disabled {
  background-color: #e0e0e0;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.status-btn-box:focus-visible {
  outline: 2px solid #62ac00;
  outline-offset: 2px;
}

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

/* ---- Edit / update buttons ---- */
.edit-button,
.update-btn {
  width: 34px;
  height: 34px;
  background-color: #62ac00;
  border: 1px solid #62ac00;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.edit-button.btn-danger,
.update-btn.btn-danger {
  background-color: #dc3545;
  border: 1px solid #dc3545;
}

.edit-button:hover,
.update-btn:hover {
  background-color: #e5e7eb;
  border-color: #d1d5db;
}

.edit-button img,
.update-btn img {
  width: 16px;
  height: 16px;
}

/* ---- Table inputs ---- */
.table-input-box,
.table-select-input {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #1f2937;
  background-color: #ffffff;
  height: 34px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.table-input-box:focus,
.table-select-input:focus {
  border-color: #ec1b24;
  box-shadow: 0 0 0 2px rgba(236, 27, 36, 0.15);
  outline: none;
}

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

.table-select-input {
  min-width: 200px;
  width: 100%;
}

.table-input-box-select {
  min-width: 200px;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  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;
  width: 100%;
  padding: 8px 40px 8px 12px;
  border: none;
  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;
}

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

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

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

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

#firstPage:disabled,
#lastPage:disabled,
#prevPage:disabled,
#nextPage:disabled {
  border-color: #c3c3c3;
  cursor: not-allowed;
  opacity: 0.6;
}

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

.page-item.active .page-link {
  background-color: #ec1b24 !important;
  border-color: #ec1b24 !important;
  color: #ffffff !important;
}

.page-link {
  color: #ec1b24 !important;
}

.page-link:hover {
  color: #bd131a !important;
}

#pageSize {
  height: 44px;
  border-radius: 40px;
  border: 1px solid #dfdbdb;
  background-color: #ffffff;
  padding: 0 35px 0 18px;
  font-size: 14px;
  font-weight: 500;
  color: #181a1e;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  outline: none;
  min-width: 140px;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23181a1e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 12px;
  -webkit-appearance: none;
  appearance: none;
}

#pageSize:hover {
  border-color: #62ac00;
  box-shadow: 0 0 20px rgba(98, 172, 0, 0.12);
}

#pageSize:focus {
  border-color: #ec1b24;
  box-shadow: 0 0 20px rgba(236, 27, 36, 0.12);
  outline: none;
}

/* ============================================================
   BUTTONS – NAV & DETAIL
   ============================================================ */
.back-button {
  display: inline-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;
  font-size: 14px;
  font-weight: 500;
}

.details-button-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 40px;
  background-color: #3968e2;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  text-decoration: none;
  transition: filter 0.2s;
}

.details-button-box:hover {
  color: #ffffff;
  filter: brightness(0.9);
}

.details-button-box.btn-red {
  background-color: #ec1b24;
}

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

/* ============================================================
   DETAILS PAGE
   ============================================================ */
.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
   ============================================================ */
.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;
  cursor: pointer;
}

.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: 0 30px !important;
}

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

/* ---- Form elements inside modal ---- */
.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;
}

.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 0 0;
}

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

.input-box-container .input-box:focus {
  outline: none;
  border-color: #ec1b24;
}

.update-button {
  width: fit-content;
  border: none;
  padding: 10px 20px;
  background-color: #ec1b24;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 80px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: filter 0.2s;
}

.update-button:hover:not(:disabled) {
  filter: brightness(0.9);
}

.update-button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

/* ============================================================
   FILTER
   ============================================================ */
.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: 0;
}

.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 {
  height: 100%;
  z-index: 1;
  cursor: pointer;
  padding: 10px;
  border: 1px solid #c3cada;
  border-radius: 10px;
}

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

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

/* ============================================================
   SEND EMAIL
   ============================================================ */
/* FIX: corrected typo "conatiner" -> keep old class for back-compat */
.email-main-conatiner,
.email-main-container {
  width: 100%;
  padding: 40px 20px;
  background-image: url(../assets/images/send-email-bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

/* FIX: removed invalid filter:blur(4), use backdrop-filter for glass effect */
.email-send-conatiner,
.email-send-container {
  width: 30%;
  margin-left: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  border-radius: 20px;
  background-color: rgba(10, 19, 42, 0.36);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 14px 50px rgba(255, 255, 255, 0.52);
}

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

.input-field-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-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 rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.send-email-box-input-section::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

.send-email-box-textarea-section::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.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;
}

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.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;
  /* FIX: removed invalid "px" unit from font-weight */
  font-weight: 600;
  margin-top: 20px;
}

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

/* ============================================================
   EDIT RECOMMENDATION
   ============================================================ */
.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: 0 0 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}

.update-cancle-button:hover {
  color: #ffffff;
  filter: brightness(0.9);
}

.update-cancle-button.btn-blue {
  background-color: #3968e2;
}

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

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

/* ============================================================
   GENERATE LEAD FORM
   ============================================================ */
.lead-type {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.custom-form .lead-type span {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.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 {
  max-width: 1000px;
  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;
}

.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;
}

.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);
}

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

.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.2);
}

.custom-form textarea {
  resize: vertical;
  min-height: 120px;
  grid-column: span 2;
}

.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;
  margin-top: 20px;
}

.main-form-class>div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 10px 20px;
  align-items: start;
}

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

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

#sold_kunnr,
#ship_kunnr {
  cursor: not-allowed;
  background: rgba(217, 217, 217, 0.12);
}

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

.disable-style {
  background: rgba(217, 217, 217, 0.12);
  cursor: not-allowed;
}

/* ============================================================
   SELECT2 OVERRIDES
   ============================================================ */
.select2-container--default .select2-selection--single {
  border: none !important;
  background-color: transparent !important;
  border-radius: 0 !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
   ============================================================ */
#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;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* ============================================================
   VALIDATION
   ============================================================ */
.text-danger {
  font-size: 12px;
  color: #dc3545;
}

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

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

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

.hide-logo-1 {
  display: none;
}

.update-button-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-direction: row;
  align-content: center;
  justify-content: center;
}

/* ============================================================
   DATATABLE SORT ICONS
   ============================================================ */
/* table.dataTable thead>tr>th.sorting::before,
table.dataTable thead>tr>th.sorting_asc::before,
table.dataTable thead>tr>th.sorting_desc::before {
  content: "\25B2";
  font-family: Arial, sans-serif;
  opacity: 0.25;
}

table.dataTable thead>tr>th.sorting::after,
table.dataTable thead>tr>th.sorting_asc::after,
table.dataTable thead>tr>th.sorting_desc::after {
  content: "\25BC";
  font-family: Arial, sans-serif;
  opacity: 0.25;
}

table.dataTable thead>tr>th.sorting_asc::before {
  opacity: 0.8;
  color: #ec1b24;
  display: none;
}

table.dataTable thead>tr>th.sorting_desc::after {
  opacity: 0.8;
  color: #ec1b24;
  display: none;
} */

table.dataTable thead>tr>th.sorting::before,
table.dataTable thead>tr>th.sorting_asc::before,
table.dataTable thead>tr>th.sorting_desc::before {
  display: none;
}

table.dataTable thead>tr>th.sorting::after,
table.dataTable thead>tr>th.sorting_asc::after,
table.dataTable thead>tr>th.sorting_desc::after {
  display: none;
}

table.dataTable thead>tr>th.sorting_asc::before {
  display: none;
}

table.dataTable thead>tr>th.sorting_desc::after {
  display: none;
}

table.dataTable {
  clear: both;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
  max-width: none !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .login {
    padding: 0 20px;
    justify-content: center;
  }

  .login-box {
    padding: 24px;
  }

  .email-send-conatiner,
  .email-send-container {
    width: 90%;
    margin-left: 0;
    margin: 0 auto;
  }

  .filter-container {
    grid-template-columns: 1fr;
  }

  .heading-search-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-button-container {
    flex-wrap: wrap;
  }
}


/* Custom Scrollbar - Entire Website */
/* ::-webkit-scrollbar {
  width: 20px;
  height: 20px;
} */

::-webkit-scrollbar-track {
  background: #8a98b8;
  border-radius: 14px;
}

::-webkit-scrollbar-thumb {
  background: #8a98b860;
  border-radius: 14px;
  border: 5px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
  background: #8a98b8;
}

/* Firefox */
* {
  scrollbar-width: auto;
  /* thin -> auto for thicker scrollbar */
  scrollbar-color: #8a98b8 #f1f1f1;
}