body {
  font-family: "Kanit", sans-serif;
}

.container {
  width: 375px;
  background: #fff;
}

.header-create {
  height: 89px;
  align-items: center;
  border: 1px solid rgba(241, 241, 241, 0.5);
  padding: 10px;
}

@media only screen and (max-width: 360px) {
  /* For mobile */
  .container {
    width: 100%;
    height: 754px;
    border: 1px solid #f1f1f180;
    padding: 20px;
    flex-shrink: 0;
  }

  .card-detail,
  #addTicket .input-container .form-select,
  #addTicket .textarea-form,
  #addTicket .attactment .upload-file {
    width: 100% !important;
  }
}

.modal {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  overflow: auto;
  outline: 0;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}

#addTicket h6 {
  margin-top: 29px;
  font-size: 16px;
}

.header-create h4 {
  color: var(--text-color-text-800, #323232);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 23px;
}

.card-detail {
  display: flex;
  /* height: 105px; */
  border-radius: 8px;
  border: 1px solid var(--text-color-text-200, #d3d3d3);
  background: #fafafa;
  margin-top: 14px;
  font-size: 14px;
  padding: 20px;
}

.card-detail .detail p {
  margin-bottom: 0 !important;
}

.card-detail .detail .model-name {
  margin-right: 0px !important;
}

.status-action,
.status-inaction {
  color: #0faf27;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* .status-inaction {
    color: #EB0A1E;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
} */
/* input#errorcode {
  margin-top: 20px;
} */

.contact-infomation p {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
}

.contact-infomation .row {
  margin-top: 16px;
}

.contact-infomation .row p {
  margin-bottom: 0px;
}

.edit,
.email,
.phone {
  color: #eb0a1e;
  margin-right: 12px;
  font-weight: bold;
  cursor: pointer;
}

.contact p {
  font-weight: bold;
}

.card-issue {
  margin-top: 32px;
}

/* textarea#description {
  margin-top: 6px;
} */

.input-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.form-select {
  width: 100%;
  padding-right: 40px;
}

.input-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-100%);
  color: #5a5a5a;
}

#editModal {
  font-size: 14px;
}

.btn-cancel {
  background: #5a5a5a;
  color: #fff;
  font-size: 14px;
}

.textarea-form {
  height: 132px;
}

.btn-save {
  background: #eb0a1e;
  color: #fff;
  font-size: 14px;
}

.btn-submit {
  display: flex;
  width: 100%;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: #eb0a1e;
  color: #fafafa;
  margin-top: 28px;
  margin-bottom: 33px;
}

.btn-submit:hover {
  background: #eb0a1e;
  color: #fafafa;
}

.upload-file {
  display: flex;
  /* width: 343px; */
  height: 80px;
  padding: 5px 8px;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1px dashed #ccc;
  border-radius: 10px;
  background-color: #f8f9fa;
  cursor: pointer;
}

#fileInput {
  display: none;
}

.cloud-upload-icon {
  color: #707070;
  margin-bottom: -20px;
}

.upload-text {
  font-size: 14px;
  color: #707070;
}

.attactment p:nth-child(1) {
  font-size: 14px;
  margin-top: 24px;
}

/* #summary::placeholder,
.card-issue form-select::placeholder,
textarea::placeholder,
input#errorcode::placeholder {
  color: var(--text-color-text-500, #5a5a5a);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 23px;
} */

img.edit-img {
  margin-right: 2px !important;
  align-self: center;
}

.profile-dropdown a {
  font-size: 14px;
  font-weight: 400;
  text-decoration: none !important;
  color: rgba(39, 39, 39, 1);
}

.profile-dropdown i.fa-circle-user {
  font-size: 18px;
  color: #272727;
}

.header-create .fa-chevron-left {
  text-decoration: none !important;
  color: rgba(39, 39, 39, 1);
  font-weight: bold !important;
}

.input-group-serial {
  position: relative;
  margin-bottom: 20px;
  margin-top: 20px;
}

.input-group-serial span {
  position: absolute;
  top: -10px;
  left: 10px;
  background-color: #fff;
  padding: 0 5px;
  font-size: 12px;
}

.input-group-serial input {
  width: 100%;
  padding: 10px 30px 10px 10px;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
}

.input-group-serial .select-right-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-container {
  position: relative;
  margin-bottom: 20px;
}

.input-container select {
  width: 100%;
  padding: 10px 30px 10px 10px;
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  appearance: none;
  /* ซ่อน default arrow ของ select */
  background: url("<?= base_url(); ?>assets/icons/select-right.png") no-repeat
    right 10px center;
  background-size: 10px;
}

.input-container .select-right-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-color-text-500, #5a5a5a);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  cursor: pointer;
}

div#fileList p {
  font-size: 12px;
  margin-top: 0;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
  border: 0;
  border-radius: 0.25em;
  background: initial;
  background-color: #eb0a1e !important;
  color: #fff;
  font-size: 1em;
}

.file-list ul li {
  margin-bottom: 5px;
  padding: 5px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
}

.company a {
  font-size: 12px;
  color: #000000;
  text-decoration: none;
  list-style: none;
}

.model-name {
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-left: 20px;
}

.tooltip {
  display: none;
  position: absolute;
  background: #333;
  color: #fff;
  padding: 5px;
  border-radius: 3px;
  z-index: 1000;
}

.loading-indicator {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
}

.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 8px;
}

/* Require field */
.input-container {
  position: relative;
  display: inline-block;
}

.input-summary::placeholder {
  color: black;
}

.input-container .required-star,
.input-container .required-star-repro,
.input-container .required-star-cate,
.input-container .required-star-desc,
.required-star-status {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: red;
  pointer-events: none;
  transition: opacity 0.3s;
}

.required-star-cate {
  right: 62%;
}

.required-star-status {
  right: 57%;
}

.required-star-repro {
  right: 51%;
}

.required-star {
  right: 58%;
}

.required-star-desc {
  right: 58%;
  top: 25% !important;
}

#reportNoUser p strong,
#reportNoUser a {
  color: #eb0a1e;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}
