#global-error-handler {
  z-index: 10;
  position: fixed;
  padding-bottom: 24px;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  background: white;
  background-image: url('/assets/background/clouds-error.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: 'Poppins';
  overflow-y: auto;
}

#global-error-handler #back-home {
  position: absolute;
  display: flex;
  justify-content: space-between;
  top: 20px;
  left: 20px;
  font-size: 13px;
  font-weight: 700;
  line-height: 24px;
  color: #919eab;
  cursor: pointer;
}

#global-error-handler #back-home div {
  margin-left: 8px;
}

#global-error-holder {
  position: absolute;
  top: 50%;
  left: 50%;
  min-height: 400px;
  width: 500px;
  border-radius: 16px;
  padding: 24px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(145, 158, 171, 0.12);
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: 'Poppins';
  color: #212b36;
}

#global-error-holder h1 {
  font-weight: 700;
  line-height: 36px;
  font-size: 24px;
  width: 70%;
  margin-top: 0;
}

#global-error-holder #err-no {
  position: absolute;
  font-weight: 700;
  font-size: 12px;
  top: 20px;
  right: 20px;
  background-color: rgba(145, 158, 171, 0.15);
  border-radius: 6px;
  padding: 2px 8px;
}

#global-error-holder p {
  font-weight: 400;
  line-height: 22px;
  font-size: 14px;
}

#global-error-holder p.bottom-info {
  margin-top: 24px;
}

#global-error-holder p.top-info {
  margin-bottom: 24px;
}

#global-error-holder .subtitle {
  font-weight: 600;
  line-height: 24px;
  font-size: 16px;
}

#global-error-holder .action {
  margin-top: 16px;
  background-color: #c8facd;
  color: #0a5554;
  border-radius: 8px;
  padding: 16px;
  display: flex;
}

#global-error-holder .action p {
  padding: 0;
  margin: 5px 0;
}

#global-error-holder .action .number {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

#global-error-holder .action .number .circle {
  font-family: 'Public Sans';
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  background-color: #00ab55;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#global-error-holder .action .content {
  flex: 7;
}

#global-error-holder .action .button {
  flex: 4;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

#global-error-holder .action .button button {
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.71429;
  padding: 5px 15px;
  background-color: #c8facd;
  color: #00ab55;
  border: 1px solid #00ab55;
  border-radius: 8px;
  cursor: pointer;
}

#global-error-holder .buttom-actions {
  display: flex;
}

#global-error-holder .buttom-actions button {
  flex: 1;
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.71429;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
}

#global-error-holder .buttom-actions button {
  position: relative;
  z-index: 1;
}

#global-error-holder .buttom-actions button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s;
  z-index: -1;
}

#global-error-holder .buttom-actions button:hover::after {
  background-color: rgba(0, 0, 0, 0.3);
}

#global-error-holder .buttom-actions .errors {
  background-color: #fff;
  color: #00ab55;
  border: 1px solid #00ab55;
  margin-right: 8px;
}

#global-error-holder .buttom-actions .report {
  background-color: #00ab55;
  color: #fff;
  border: 1px solid #00ab55;
  margin-left: 8px;
}

#global-error-handler #sidebar {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 600px;
  background-color: #fff;
  overflow-y: auto;
  z-index: 3;
  box-shadow: 0 4px 8px rgba(145, 158, 171, 0.12);
}

#global-error-handler #header {
  display: flex;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(145, 158, 171, 0.24);
}

#global-error-handler #header .title {
  flex: 10;
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  margin: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#global-error-handler .close {
  display: flex;
  flex: 2;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
}

#global-error-handler #sidebar #footer {
  position: absolute;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  width: 100%;
  bottom: 0;
  display: flex;
  padding: 16px 24px;
  border-top: 1px solid rgba(145, 158, 171, 0.24);
  color: #00ab55;
}

#global-error-handler #sidebar #footer svg {
  margin-right: 4px;
}

#global-error-handler #sidebar .content {
  overflow-y: auto;
  padding: 24px;
}

#global-error-handler #sidebar .subtitle {
  font-weight: 600;
  line-height: 22px;
  font-size: 14px;
}

#global-error-handler #sidebar p {
  margin-top: 0;
  font-size: 14px;
  line-height: 22px;
  color: #637381;
}

#global-error-handler .popup {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 20;
}

#global-error-handler .popup #global-error-form-holder {
  position: relative;
  width: 500px;
  border-radius: 16px;
  padding: 16px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(145, 158, 171, 0.12);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: 'Poppins';
  color: #212b36;
}

#global-error-handler .popup #global-error-form-holder #header {
  border-bottom: 0px;
  padding: 8px;
}

#global-error-handler .popup #global-error-form-holder .content {
  padding: 16px 8px;
  margin-bottom: 60px;
}

#global-error-handler .popup #global-error-form-holder .content input,
#global-error-handler .popup #global-error-form-holder .content textarea {
  width: 100%;
  height: 56px;
  color: #919eab;
  border: 1px solid rgba(145, 158, 171, 0.32);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  font-family: 'Poppins';
  box-sizing: border-box;
}

#global-error-handler .popup #global-error-form-holder .content input:focus,
#global-error-handler .popup #global-error-form-holder .content textarea:focus {
  border-color: rgba(145, 158, 171, 0.62);
  outline: none;
}

#global-error-handler .popup #global-error-form-holder .content input::placeholder,
#global-error-handler .popup #global-error-form-holder .content textarea::placeholder {
  color: rgba(145, 158, 171, 0.8);
  opacity: 1;
}

#global-error-handler .popup #global-error-form-holder .content textarea {
  min-height: 120px;
  resize: none;
}

#global-error-handler .popup #global-error-form-holder #footer {
  display: flex;
  justify-content: flex-end;
  padding: 8px;
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 16px;
}

#global-error-handler .popup #global-error-form-holder #footer button {
  font-family: 'Poppins';
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.71429;
  padding: 6px 16px;
  border-radius: 8px;
  cursor: pointer;
}

#global-error-handler .popup #global-error-form-holder #footer button.cancel {
  background-color: #fff;
  color: #212b36;
  border: 1px solid rgba(145, 158, 171, 0.32);
  margin-right: 8px;
}

#global-error-handler .popup #global-error-form-holder #footer button.save {
  background-color: #00ab55;
  color: #fff;
  border: 1px solid #00ab55;
  margin-left: 8px;
}

#global-error-handler .popup #global-error-form-holder #validation {
  color: red;
  font-size: 1rem;
}

@media only screen and (max-width: 768px) {
  #global-error-holder {
    width: 80vw;
    max-height: 90vh;
    overflow-y: auto;
  }

  #global-error-handler #sidebar {
    width: 80%;
  }

  #global-error-holder .action {
    flex-direction: column;
  }

  #global-error-holder .action .button {
    justify-content: flex-start;
    margin-top: 16px;
  }

  #global-error-holder .action .number .circle {
    margin-bottom: 16px;
  }

  #global-error-holder .buttom-actions {
    flex-direction: column;
  }

  #global-error-holder .buttom-actions .errors,
  #global-error-holder .buttom-actions .report {
    margin: 0;
    margin-bottom: 8px;
  }

  #global-error-holder #err-no {
    left: 20px;
    right: auto;
  }

  #global-error-holder h1 {
    margin-top: 30px;
  }

  #error-details {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  #error-details p,
  #error-details .subtitle {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }
}
