/* Login */
.input-group.input-group-merge {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
}

.input-group.input-group-merge .form-control {
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
}

.input-group.input-group-merge .input-group-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  cursor: pointer;
}

.dropdown,
.input-group,
.form-group {
    overflow: visible !important;
}
.offcanvas-body {
  overflow-y: auto !important;
  overflow-x: visible !important;
}

/* View bill modal */
.bill-image-dialog { max-width: 900px;}
.bill-image-modal { border: 0; border-radius: 12px; overflow: hidden;}
.bill-image-modal .modal-header { padding: 15px 20px;}
.bill-preview { width: 100%; height: 70vh; border: 0; display: block;}
.bill-image-modal .modal-footer { padding: 12px 20px;}

/* Offcanvas-width */
.offcanvas-asset, .assign-move{width: 40% !important;} 
.offcanvas-other {width: 30% !important;}
.offcanvas-view {width: 60% !important;}
.employee-add{width: 40% !important;}
/* Table-height */
.table-height{min-height: 83vh !important;}
.tab-table-height{min-height: 78vh !important;}
.user-table{min-height: 83vh !important;}

@media (min-width:0) and (max-width:575.98px){
    .offcanvas-end-booking, .offcanvas-end-job-list {width: 100% !important; }
    .offcanvas.offcanvas-end{  width: 100% !important;}
    .offcanvas-view {width: 100% !important;}
  } 

  .page-link.active, .active > .page-link{background-color: #0B3872; box-shadow: none !important;}
  .menu-item.active > .menu-link:not(.menu-toggle){background: #0B3872 !important; box-shadow: none !important;}
  .text-primary{color: #0B3872 !important;}
  .mandatory{color: red !important;}
  .offcanvas-title{font-size: 20px; font-weight: 700;}
  button{text-wrap: nowrap;}

  /* .offcanvas-body h6{color: #8C8C8C; font-size: 15px;}
  .offcanvas-body span{font-weight: 600; color: #404040;} */

/* Permissions offcanvas */
.employee-card {width: 100%; max-width: 570px; min-height: 72px; padding: 10px 30px; border: 1px solid #dcdcdc; border-radius: 10px;display: flex; align-items: center; justify-content: space-between; background: #fff; box-sizing: border-box; margin-bottom: 30px; margin-top: 25px;}
.employee-info h3 { margin: 0 0 6px; font-family: "Public Sans", sans-serif; font-size: 19px; font-weight: 700;color: #000;}
.employee-info p {  margin: 0;  font-family: "Public Sans", sans-serif;  font-size: 15px;  color: #444151;}
.employee-code { display: flex; flex-direction: column; gap: 10px;}
.employee-code span { font-family: "Public Sans", sans-serif;  font-size: 15px;  color: #454354;}
.employee-code strong { font-family: "Public Sans", sans-serif;   font-size: 15px;  font-weight: 700;  color: #454354;}

/* Buttons */
.view-remark-btn{background-color: #D8DFE8; color: #0B3872; border: 1px solid#D8DFE8; box-shadow: none;}
.view-remark-btn:hover{background-color: #d4e0f0; color: #0B3872; border: 1px solid#D8DFE8;}

.btn-outline-primary{border: 1px solid #0B3872; color: #0B3872;}
.btn-outline-primary:hover{border: 1px solid #0B3872; color: #0B3872; background-color: #e9f2fd;}

.btn-primary{background-color: #0B3872 !important; box-shadow: none; border: 1px solid #0B3872; box-shadow: none !important;}
.btn-primary:hover{border: 1px solid #0B3872;}
.btn-primary:active{border: 1px solid #0B3872 !important;}

/* Master settings vertical tabs */
.master-tabs .nav-item{--bs-nav-pills-link-active-bg: transparent !important;}
.master-tabs .nav-item a{color: #444151 !important;  border-radius: 0 !important;box-shadow: none !important; }
.master-tabs .nav-item a:hover{background-color: #e4effd !important;}
.master-tabs .nav-item a.active{color: #0B3872 !important; border-left: 2px solid #0B3872;}
.master-settings-tabs{background-color: white !important; border-right: 1px solid#e1e0e3;}


/* Action Icon */
.action-icon { padding: 0 !important; margin: 0 !important; width: 25px !important; display: flex; align-items: center; justify-content: center;}


/* Horizontal tabs */
/* .nav-tabs .nav-link.active{color: #0B3872 !important; border-bottom: solid #0B3872 !important;} */


/* View Password Modal */
.password-modal-dialog {
    max-width: 360px;
    margin: auto;
  }
  
  .password-modal {
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #fff;
  }
  
  .password-modal .modal-body {
    padding: 28px 25px 22px;
  }
  
  .password-modal h5 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 500;
    color: #34323d;
  }
  
  .password-description {
    margin: 0 0 20px;
    color: #77736d;
    font-size: 14px;
    line-height: 1.5;
  }
  
  /* Close X */
  .password-close {
    position: absolute;
    top: 14px;
    right: 14px;
  
    width: 28px;
    height: 28px;
  
    border: 0;
    background: transparent;
  
    color: #999;
    font-size: 19px;
  
    display: flex;
    align-items: center;
    justify-content: center;
  
    cursor: pointer;
    z-index: 10;
  }
  
  .password-close:hover {
    color: #555;
  }
  
  /* Label */
  .password-label {
    display: block;
    margin-bottom: 6px;
  
    font-size: 13px;
    color: #45434b;
  }
  
  /* Password input */
  .password-input-wrapper {
    position: relative;
  }
  
  .password-input-wrapper .form-control {
    height: 32px;
    padding: 5px 40px 5px 12px;
  
    font-size: 13px;
    color: #555;
  
    border: 1px solid #d1d1d1;
    border-radius: 6px;
  
    box-shadow: none;
  }
  
  .password-input-wrapper .form-control:focus {
    border-color: #aaa;
    box-shadow: none;
  }
  
  /* Eye button */
  .password-eye {
    position: absolute;
    top: 50%;
    right: 8px;
  
    transform: translateY(-50%);
  
    border: 0;
    background: transparent;
  
    padding: 2px;
  
    color: #999;
    font-size: 17px;
  
    cursor: pointer;
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .password-eye:hover {
    color: #666;
  }
  
  /* Footer */
  .password-footer {
    display: flex;
    justify-content: flex-end;
  
    margin-top: 20px;
  }
  
  .password-close-btn {
    background: #e9eaed;
    color: #777d8b;
  
    border: 0;
    border-radius: 6px;
  
    padding: 8px 18px;
  
    font-size: 14px;
  }
  
  .password-close-btn:hover {
    background: #dfe1e5;
    color: #666d7a;
  }

/* Change password modal */
/* Modal */
.change-password-dialog {
  max-width: 456px;
  margin: auto;
}

.change-password-modal {
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

/* Header */
.change-password-header {
  padding: 30px 25px 12px;
  border: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.change-password-header .modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #454354;
}

.change-password-header p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #77776f;
}

/* Close */
.change-password-close {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: -2px;
  font-size: 27px;
  line-height: 1;
  font-weight: 300;
  color: #999;
  cursor: pointer;
}

.change-password-close:hover {
  color: #555;
}

/* Body */
.change-password-modal .modal-body {
  padding: 14px 25px 28px;
}

/* Password field */
.password-field {
  margin-bottom: 20px;
}

.password-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 400;
  color: #454354;
}

.password-field label span {
  color: #e53935;
}

/* Input */
.password-input {
  position: relative;
  width: 100%;
}

.password-input input {
  width: 100%;
  height: 33px;
  padding: 6px 42px 6px 13px;
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  color: #454354;
  box-sizing: border-box;
}

.password-input input:focus {
  border-color: #0d4382;
  box-shadow: 0 0 0 2px rgba(13, 67, 130, 0.08);
}

.password-input input::placeholder {
  color: #999;
  letter-spacing: 3px;
}

/* Eye button */
.password-toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  color: #999;
  font-size: 19px;
  cursor: pointer;
}

/* Change Password button */
.change-password-btn {
  width: 100%;
  height: 38px;
  margin-top: 5px;
  border: 0;
  border-radius: 5px;
  background: #103f7c;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
}

.change-password-btn:hover {
  background: #0b3264;
}

/* Mobile */
@media (max-width: 576px) {

  .change-password-dialog {
      width: calc(100% - 24px);
  }

  .change-password-header {
      padding: 25px 20px 10px;
  }

  .change-password-modal .modal-body {
      padding: 12px 20px 25px;
  }
}





/* Breadcrumb */
.breadcrumb-item a{color: #0B3872 !important;}

.form-control:active, .form-control:focus, .form-select:active, .form-select:focus{border: 2px solid#0B3872 !important; box-shadow: none !important;}

.nav-tabs .nav-link.active{color: #0B3872 !important;}
.nav-tabs .nav-link:hover{color: #0B3872 !important;}
.nav-tabs .nav-link.active, .nav-tabs .nav-link.active:hover{  box-shadow: 0 -2px 0 #0B3872 inset !important;}


/* Daily activity report */
.site-diary-wrapper { width: 100%; background: #fff; border: 1px solid #eeeeee; border-radius: 8px; overflow: hidden;}
.date-divider { width: 2px; height: 22px; background: #cfcfd3;}
.diary-item {display: grid;grid-template-columns: 132px 1fr;border-bottom: 1px solid #e4e4e4;}
.diary-item:last-child { border-bottom: 0;}
.diary-date { padding: 28px 24px; border-right: 1px solid #e4e4e4; color: #696875; font-size: 15px; line-height: 1.4;}
.diary-date span { display: block;}
.diary-date small { display: block; margin-top: 2px; font-size: 15px; color: #6f6d79;}
.diary-content { padding: 26px 15px 24px;}
.diary-content h4 { margin: 0 0 14px; font-size: 18px; line-height: 1.2; font-weight: 600; color: #0B3872;}
.diary-employee { display: flex; align-items: center; gap: 28px; margin-bottom: 18px;}
.diary-employee strong { font-size: 20px; font-weight: 600; color: black;}
.diary-description { max-width: 1180px; margin: 0 0 18px; color: #6E6B78; font-size: 15px; line-height:22px;}
.diary-resources { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 20px;}
.resource-item {  min-height: 39px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 9px;
 border: 1px solid #e0e0e4; border-radius: 5px; background: #fff; color: #777681; font-size: 15px;}
.resource-item i { font-size: 20px; color: #858593;}
.resource-item strong {color: #111;font-weight: 500;}
.site-photos-title { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #74737e; font-size: 15px;}
.site-photos-title i { font-size: 20px; color: #777681;}
.site-photos { display: flex; gap: 12px;}
.site-photos img { width: 238px; height: 204px; object-fit: cover; border-radius: 12px; display: block;}
@media (max-width: 992px) {
 .diary-filters { padding: 20px; flex-wrap: wrap; height: auto;}
 .diary-date-picker {  min-width: 280px;}
 .diary-item { grid-template-columns: 100px 1fr;}
  .diary-description { font-size: 17px;}
  .diary-content h4 {font-size: 21px;}
  .diary-employee strong {font-size: 21px;}
}
@media (max-width: 768px) {
  .diary-filters { gap: 10px;}
  .diary-filter { height: 42px; padding: 0 14px; font-size: 15px;}
  .diary-date-picker { height: 42px; width: 100%; min-width: 0; font-size: 15px;}
  .diary-item { display: block;}
  .diary-date { padding: 12px 20px; border-right: 0; border-bottom: 1px solid #eeeeee; display: flex; gap: 8px; align-items: center;}
  .diary-date small { margin-top: 0;}
  .diary-content { padding: 20px;}
  .diary-resources { gap: 8px;}
  .resource-item { font-size: 15px;}
  .site-photos img { width: 150px; height: 130px;}
}
@media (max-width: 480px) {
  .diary-filter { flex: 1; font-size: 13px; padding: 0 8px;}
  .diary-content h4 { font-size: 19px;}
  .diary-employee { gap: 12px;}
  .diary-employee strong { font-size: 18px;}
  .diary-description {font-size: 15px;}
  .resource-item { width: 100%;   box-sizing: border-box;}
  .site-photos { overflow-x: auto;}
  .site-photos img { min-width: 180px;}
}