/* loading Modal */
.loading-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.loading-content {
  margin: 20% auto;
  width: 80%;
  text-align: center;
}

.spinner {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #1e3799;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: auto;
}

.text-loading {
  font-size: 20px;
  color: #fff;
  padding: 0;
  margin: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.textarea {
  width: 100%;
  resize: none;
  margin-top: 0.5rem;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
}

.input-full {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input {
  width: auto;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-disabled {
  width: auto;
  height: 32px;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: #e9ecef;
  color: #212529;
  cursor: not-allowed;
}

.input-40 {
  text-align: center;
  width: 40px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-40-disabled {
  text-align: center;
  width: 40px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: #e9ecef;
  color: #212529;
}

.input-60 {
  width: 60px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-80 {
  width: 80px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-100 {
  width: 100px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-125 {
  width: 125px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-150 {
  width: 150px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-175 {
  width: 175px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-200 {
  width: 200px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-250 {
  width: 250px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input-300 {
  width: 300px;
  height: 32px;
  margin-top: 0.5rem;
  font-size: 14px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dateTime {
  width: 90px;
  height: 32px;
  text-align: center;
  margin-top: 0.5rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
}

.dateNotSaturdayAndSunday {
  width: 90px;
  height: 32px;
  text-align: center;
  margin-top: 0.5rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
}

.dateTime-setting {
  width: 90px;
  height: 32px;
  text-align: center;
  margin-top: 0.5rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
}

.select {
  width: auto;
  height: 32px;
  margin-top: 0.5rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #cccccc;
  background-color: white;
  color: #000;
}

.input-checkbox {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
}

input[type="checkbox"] {
  cursor: pointer;
  transform: scale(1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

input[type="checkbox"]:checked {
  transform: scale(1.2);
}

input[type="checkbox"]:checked + label {
  color: #1e3799;
  font-weight: 500;
}

label {
  transition: color 0.3s ease;
}

input:disabled,
select:disabled {
  cursor: not-allowed;
  background-color: #e9ecef;
  color: #212529;
}

@media (max-width: 480px) {
  .input-300 {
    width: 100%;
  }

  .textarea,
  .searchInput {
    font-size: 16px;
  }

  .select,
  .dateTime {
    font-size: 14px;
  }
}

/* btn */
.btn-disabled {
  cursor: not-allowed;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  background-color: #e9ecef;
  color: #212529;
}

.btn-default {
  cursor: pointer;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  background-color: #1e3799;
  color: #fff;
}

.btn-default-noHover {
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid #1e3799;
  border-radius: 4px;
  font-size: 14px;
  background-color: #e9ecef;
  color: #1e3799;
}

.btn-default-noHover:hover {
  background-color: #1e3799;
  color: #fff;
}

.btn-default:hover {
  background-color: #4254a8;
}

.btn-green {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background-color: #16a34a;
  font-size: 14px;
  color: #fff;
}

.btn-green:hover {
  background-color: #dcfee7;
  color: #16a34a;
}

.btn-red {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background-color: #dc3545;
  font-size: 14px;
  color: #fff;
}

.btn-red:hover {
  background-color: #fee2e2;
  color: #dc3545;
}

.btn-yellow {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background-color: #f1c40f;
  font-size: 14px;
  color: #fff;
}

.btn-yellow:hover {
  background-color: #fef9c3;
  color: #f1c40f;
}

.btn-circle-disabled {
  cursor: not-allowed;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  background-color: #e9ecef;
  color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* font-style */
.errorText {
  margin-top: 0.25rem;
  display: none;
  font-size: 12px;
  color: #dc3545;
}

.error-input {
  border: 1px solid #dc2626;
  background-color: #fef2f2;
}

.sm-text {
  font-size: 12px;
  padding: 0;
  margin: 0;
}

.sml-text {
  font-size: 14px;
  padding: 0;
  margin: 0;
}

.md-text {
  font-size: 16px;
  padding: 0;
  margin: 0;
}

.lg-text {
  font-size: 20px;
  padding: 0;
  margin: 0;
}

.xl-text {
  font-size: 24px;
  padding: 0;
  margin: 0;
}

span {
  padding-right: 2px;
}

/* @media (max-width: 480px) {
  .md-text {
    font-size: 14px;
  }
} */

/* Modal */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.modal-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-footer-show {
  margin-top: 1rem;
  text-align: end;
}

.modal-content-30 {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 30%;
  position: relative;
}

.modal-content-40 {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 40%;
  position: relative;
}

.modal-content-50 {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 50%;
  position: relative;
}

.modal-content-60 {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 60%;
  position: relative;
}

.modal-content-70 {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 70%;
  position: relative;
}

.modal-content-80 {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  position: relative;
}

.modal-content-90 {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  position: relative;
}

.loading-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.loading-content {
  margin: 20% auto;
  width: 80%;
  text-align: center;
}

.spinner {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #1e3799;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
  margin: auto;
}

.text-loading {
  font-size: 20px;
  color: #fff;
  padding: 0;
  margin: 0;
}

.modal-full {
  background-color: white;
  height: 100%;
  padding: 20px;
  width: 100%;
  position: relative;
}

.modal-header {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .modal-content-30,
  .modal-content-40,
  .modal-content-50,
  .modal-content-60,
  .modal-content-70,
  .modal-content-80,
  .modal-content-90 {
    width: 85%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* navbar */
.sec-navbar {
  padding: 0.65rem 1rem;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  /* background-color: #1e3799; */
  /* color: #fff; */
}

.box-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.setting-mobile {
  display: none;
}

.setting-desktop ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.setting-desktop ul li a {
  text-decoration: none;
  color: #2f353d;
}

.showBar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  z-index: 9999;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out,
    visibility 0.3s;
}

.showBar.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

body.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.showBar.closing {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
}

.showBarActive {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.box-iconMobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: fixed;
  bottom: 7rem;
  width: 100%;
}

.iconMobile {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  border-radius: 50%;
  color: #4b5563;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

.iconMobile:hover {
  background-color: #d1d5db;
  transform: scale(1.1); /* Slight zoom effect */
}

.btn-linkTo {
  width: 100%;
  margin: 0.5rem 0;
  padding: 20px;
  border: none;
  border-radius: 10px;
  background-color: #1e3799;
  color: #fff;
}

.image-logo {
  width: 70px;
}

@media (max-width: 480px) {
  .setting-desktop {
    display: none;
  }

  .setting-mobile {
    display: block;
  }

  .btn-linkTo {
    width: 300px;
  }
}

/* link */

.linkHome {
  cursor: pointer;
  font-weight: 500;
}

.linkHome a {
  text-decoration: none;
  color: #1e3799;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem;
  color: #4b5563;
}

@media (max-width: 480px) {
  .link {
    display: none;
  }
}

/* detail */
.box-detail {
  margin: 0 1rem;
}

.box-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.box-between {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  /* border: 2px solid #dddddd; */
  font-size: 14px;
  text-align: center;
  padding: 8px;
  font-weight: 400;
}

th {
  background-color: #1e3799;
  color: #fff;
  font-size: 12px;
}

.box-error {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  border: 8px;
}

.locked {
  overflow: hidden;
}

@media (max-width: 480px) {
  .box-detail {
    margin: 1rem;
  }
}
