@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --theme-color: #0072bb;
  --secondary-color: #ff6600;
  --gray: #A5A5A5;
  --gray-subtle: #E3E4EA;
  --gray-subtle2: #F1F1F1;
  --green-subtle: #405F1F1A;
  --green: #395917;
  --background-color: #EAE9E3;
  --red-subtle: #FC67671A;
  --red: #98140B;
  --poppins: "Poppins", sans-serif;
  --small: 0.9rem;
  --xs: 0.8rem;
  --xxs: 0.75rem;
}

body {
  font-family: var(--poppins);
}

.bg-cream {
  background-color: var(--background-color);
}

.bg-gray {
  background-color: var(--gray-subtle2);
}

.px-6 {
  padding-inline: 3rem
}

.px-7 {
  padding-inline: 4rem
}

.px-8 {
  padding-inline: 5rem
}

.px-9 {
  padding-inline: 6rem
}

.px-10 {
  padding-inline: 7rem
}

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

.fs-7 {
  font-size: 0.9rem !important;
}

.fs-8 {
  font-size: 0.8rem !important;
}

.fs-9 {
  font-size: 0.7rem !important;
}

.font-poppins {
  font-family: var(--poppins);
}

.company-logo {
  height: 20rem;
  font-size: 2rem !important;
}

.text-theme {
  color: var(--theme-color) !important;
}

.text-red {
  color: var(--red) !important;
}

.text-gray {
  color: var(--gray);
}

.cinput {
  padding: 0.8rem;
  border-radius: 10px;
  background-color: var(--gray-subtle);
  border: none;
  width: 100%;
}

.cinput::placeholder {
  color: var(--gray);
}

.finput {
  padding: 0.8rem;
  border-radius: 10px;
  background-color: #F1F1F1;
  border: none;
  width: 100%;
  color: #504f4f;
}

.curve-edge {
  position: absolute;
  bottom: -14px;
  right: -2px;
  width: 1rem;
  height: 1rem;
  border-radius: 100%;
  background-color: var(--theme-color);
}

.finput::placeholder {
  color: var(--gray);
}

.btn-theme {
  background-color: var(--theme-color) !important;
  color: white !important;
}



.border-top-theme {
  border-top: 7px solid var(--theme-color) !important;
}

.border-theme {
  border: 1.5px solid var(--theme-color) !important;
}

.border-end-theme {
  border-right: 1.5px solid var(--theme-color) !important;
}

.border-red {
  border: 1.5px solid var(--red) !important;
}

.btn-red {
  background-color: var(--red) !important;
  color: white !important;
}

.theme-outline {
  border: 1px solid var(--theme-color) !important;
  color: var(--theme-color) !important;
}

.auth-heading * {
  font-size: 5.4rem;
}

.login-container1 {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/static/img/auth/auth.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.login-container2 {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/static/img/auth/auth2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.login-container3 {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/static/img/auth/manager.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.login-container4 {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/static/img/auth/camp.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.mobilisation-dot {
  width: 16px;
  height: 16px;
  background-color: #FFAA00;
  border-radius: 100%;
  display: inline-block;
  vertical-align: middle;
}

.test-dot {
  width: 16px;
  height: 16px;
  background-color: #5EC4FF;
  border-radius: 100%;
  display: inline-block;
  vertical-align: middle;
}
.work-dot {
  width: 16px;
  height: 16px;
  background-color: #43DB6E;
  border-radius: 100%;
  display: inline-block;
  vertical-align: middle;
}
.finish-dot {
  width: 16px;
  height: 16px;
  background-color: #dd1010;
  border-radius: 100%;
  display: inline-block;
  vertical-align: middle;
}

.login-form-container {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  min-width: 500px
}

.auth-container {
  width: 800px;
  min-height: 500px;
}

.icon-people {
  display: block;
  height: 60px;
  width: 60px;
  margin-inline: auto;
}

/* OTP Input Styles */
.otp-input {
  width: 60px;
  height: 60px;
  border: 2px solid #D9D9D9;
  border-radius: 50%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  background-color: #D9D9D9;
  outline: none;
  transition: all 0.3s ease;
  font-family: var(--poppins);
}

.page-header h1 {
  font-size: 1.5rem;
}

/* .otp-input:focus {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(51, 161, 224, 0.1);
} */

/* .otp-input:valid {
    border-color: var(--theme-color);
    background-color: #f8f9ff;
} */


/* Cursor pointer utility */
.cursor-pointer {
  cursor: pointer;
}

.cursor-pointer:hover {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.text-warning2 {
  color: #FFAA00 !important;
}

.text-success2 {
  color: #43DB6E !important;
}

.border-dark {
  border-color: #A5A5A5 !important;
}

.bg-theme {
  background-color: var(--theme-color) !important;
}

.table-wrapper {
  width: calc(100vw - 200px);
  /* full viewport width minus sidebar */
  overflow-x: auto;
  /* min-height: 20rem; */
}

.table-wrapper2 {
  width: calc(100vw - 168px);
  /* full viewport width minus sidebar */
  overflow-x: auto;
}

/* Light header background similar to reference */
.staff-table thead tr th {
  background-color: #efefea;
  /* subtle warm gray */
  border-bottom: 0;
  font-weight: 500;
}

.staff-table tbody tr td {
  border-top: none;
}

/* Custom alternate row background (not using .table-striped) */
.staff-table tbody tr:nth-of-type(even) {
  background-color: #f5f5f1;
}

.staff-table tbody tr:nth-of-type(odd) {
  background-color: #ffffff;
}

.staff-table .dropdown-menu {
  border-radius: 0.75rem;
}

.table> :not(caption)>*>th {
  color: #596269 !important;
  font-weight: 600 !important;
}

.table> :not(caption)>tr>td {
  padding-block: 1.3rem;
}

.table> :not(caption)>tr.red>td {
  color: red !important;
}

.custom-table {
  --bs-table-bg: var(--white) !important;
  border-collapse: collapse !important;
  table-layout: auto !important;
  width: 100%;
  margin-bottom: 0;
}

.pagination-btn {
  color: var(--primary) !important;
}

.table.custom-table thead tr:first-child th:first-child {
  border-top-left-radius: 8px;
  /* Adjust the value as needed */
}

.table.custom-table thead tr:first-child th:last-child {
  border-top-right-radius: 8px;
  /* Adjust the value as needed */
}

.table.custom-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
  /* Adjust the value as needed */
}

.table.custom-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
  /* Adjust the value as needed */
}

.custom-table> :not(caption)>*>*:not(:first-child) {
  padding: 0.8rem 0.5rem !important;
}

.custom-table> :not(caption)>*> :first-child {
  padding-left: 1rem !important;
  /* Custom padding for the first <th> and <td> */
}

.custom-table thead>tr th {
  background-color: #f4f6f8;
  border-color: #f4f6f8;
  font-weight: 500;
}

.custom-table th,
.custom-table td {
  font-size: var(--small);
}

.custom-table tbody {
  border-collapse: separate;
}

.custom-table tbody td {
  background-color: white;
  font-size: var(--xs);
  color: #474747;
}

.custom-table tbody td p {
  margin-bottom: 0;
}

.custom-table th {
  color: black !important;
  font-weight: 400;
}

.custom-table .view-btn {
  border: 1px var(--gray) solid;
  color: var(--gray);
  border-radius: 0.4rem;
  padding: 0.2rem 0.6rem;
}

.custom-table .edit-btn {
  border: 1px var(--green2) solid;
  color: var(--green2);
  border-radius: 0.4rem;
  padding: 0.2rem 0.6rem;
}

.custom-table .delete-btn {
  border: 1px #FEA6A6 solid;
  color: var(--red);
  border-radius: 0.4rem;
  padding: 0.2rem 0.6rem;
}

.custom-table .reject-btn {
  border: 1px #FEA6A6 solid !important;
  color: #FEA6A6 !important;
  border-radius: 0.4rem !important;
  padding: 0.2rem 0.6rem !important;
}

.custom-table .accept-btn {
  border: 1px var(--green2) solid !important;
  color: var(--green2) !important;
  border-radius: 0.4rem !important;
  padding: 0.2rem 0.6rem !important;
}

.custom-table .active {
  vertical-align: middle;
  background-color: var(--primary);
  border-radius: 5px;
  color: var(--white);
  padding-block: 0.3rem;
  text-align: center;
}

.custom-table .draft {
  vertical-align: middle;
  background-color: #f0f0f0;
  border-radius: 5px;
  color: var(--gray);
  padding-block: 0.3rem;
  text-align: center;
}

.custom-table .bg-pastel-red {
  background-color: #FEA6A6 !important;
  color: var(--white) !important;
}

.custom-table .border-pastel-red {
  border-color: #FEA6A6 !important;
  color: #FEA6A6 !important;
  ;
}


/* Pagination styling to match rounded pill design */
.pagination-pill .page-link {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #8c8f94;
  /* muted gray like reference */
  font-size: var(--xs);
}

.pagination-pill .page-link.number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pagination-pill .page-link.number:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: inherit;
}

/* Ensure the active page chip (uses bg-theme as requested) has white text */
.pagination-pill .page-link.number.bg-theme {
  color: #fff;
  background-color: var(--theme-color);
}


/* Apply a blurred background to the modal backdrop */
.modal {
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  /* z-index: 1010!important; */
}

.v-align {
  vertical-align: middle;
}

.section-card {
  border: 1px solid #e7e7e7;
  border-radius: 1rem;
}

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

.nav-tabs .nav-link {
  color: #6c757d;
  border-bottom: 2px solid var(--gray) !important;
  font-weight: 500;
}

.nav-tabs .nav-link.active {
  color: #000;
  border: none !important;
  border-bottom: 2px solid #000 !important;
  background: transparent;
}

.header-muted {
  color: #8a8a8a;
  font-weight: 400;
}

.row-line+.row-line {
  border-top: 1px solid #e7e7e7;
}

.cell-divider {
  border-left: 1px solid #dcdcdc;
}

.w-fit {
  width: fit-content;
}

@media (max-width: 767.98px) {

  /* Stack labels above values on small screens for readability */
  .header-row {
    display: none;
  }

  .row-line>div {
    padding-top: .5rem;
  }
}

.cb-container {
  background: white;
  border-radius: 12px;
  padding: 0.2rem 1rem;
  display: inline-flex;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cb-link {
  padding: 0.5rem 1.3rem;
  text-decoration: none;
  color: #999;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.cb-link:hover {
  color: #666;
}

.cb-link.active {
  color: var(--theme-color);
  /* background: #eff6ff; */
}

.cb-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1.3px;
  background: var(--theme-color);
}


.bedspace-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.5rem;
}

.hidden-datepicker {
  position: absolute;
  top: 0%;
  left: 0;
  margin-top: 5px;
  opacity: 0;
}