@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: 600px;
  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: 100%;
  overflow-x: auto;
  /* min-height: 20rem; */
}

.table-wrapper2 {
  width: 100%;
  overflow-x: auto;
}

/* Light header background similar to reference */
.staff-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

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

.staff-table thead tr:first-child th:first-child {
  border-top-left-radius: 1rem !important;
}

.staff-table thead tr:first-child th:last-child {
  border-top-right-radius: 1rem !important;
}

.staff-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 1rem !important;
}

.staff-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 1rem !important;
}

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

/* Photo Upload Styles */
.photo-upload {
  width: 100%;
}

.upload-area {
  position: relative;
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: var(--theme-color);
  background-color: #f0f7ff;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upload-placeholder i {
  font-size: 2rem;
  color: #999;
}

.upload-placeholder small {
  color: #999;
  font-size: 0.85rem;
}

.photo-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #dc3545;
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.remove-photo:hover {
  background-color: #c82333;
  transform: scale(1.1);
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background-color: #f0f7ff;
  border-radius: 8px;
  gap: 1rem;
}

.file-name {
  color: #333;
  font-weight: 500;
  word-break: break-word;
  flex: 1;
}


/* Accountant sidebar scrollbar */
.sidebar-item::-webkit-scrollbar {
  width: 4px;
}
.sidebar-item::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-item::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

/* Global normalizer for back buttons (shrinks from 70px to 48px) */
button.btn-theme.rounded-circle[style*="70px"] {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}
button.btn-theme.rounded-circle[style*="70px"] i {
  font-size: 1.15rem !important;
}

/* Global normalizer for Search Input and Search Submit Button */
input[type="search"].rounded-pill {
  height: 56px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 64px !important;
  font-size: 0.9rem !important;
}

button.rounded-circle.btn-theme[style*="62px"] {
  width: 44px !important;
  height: 44px !important;
  right: 6px !important;
  margin-top: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

button.rounded-circle.btn-theme[style*="62px"] i {
  font-size: 1rem !important;
}

/* Global normalizer for Filter Button and Inner Circle */
button[data-bs-toggle="modal"][data-bs-target="#filterModal"].rounded-pill,
button[data-bs-target="#filterModal"].rounded-pill {
  height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 1.25rem !important;
  padding-right: 6px !important;
}

button[data-bs-toggle="modal"][data-bs-target="#filterModal"].rounded-pill span.rounded-circle.btn-theme[style*="55px"],
button[data-bs-target="#filterModal"].rounded-pill span.rounded-circle.btn-theme[style*="55px"] {
  width: 44px !important;
  height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

button[data-bs-toggle="modal"][data-bs-target="#filterModal"].rounded-pill span.rounded-circle.btn-theme[style*="55px"] svg,
button[data-bs-target="#filterModal"].rounded-pill span.rounded-circle.btn-theme[style*="55px"] svg {
  width: 22px !important;
  height: 22px !important;
}
