* {
  margin: 0;
  padding: 0;
}

.convert-new-lines {
  white-space: pre;
}

body {
  background-color: #f0f0f7;
}

body.with-bg {
  background: url(../images/background.png) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

td,
th {
  padding: 10px;
}

td {
  cursor: pointer;
}

::-webkit-input-placeholder {
  color: rgba(77, 79, 92, 0.5);
}

::-moz-placeholder {
  color: rgba(77, 79, 92, 0.5);
}

::-ms-placeholder {
  color: rgba(77, 79, 92, 0.5);
}

::placeholder {
  color: rgba(77, 79, 92, 0.5);
}

.login-underlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 525px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  padding: 50px;
}

.login {
  position: absolute;
  height: 100vh;
  padding: 0;
  min-width: 525px;
  background-color: rgba(1, 79, 102, 0.8);
}

.login-content {
  position: relative;
  top: 50%;
  height: 70vh;
  width: 100%;
  min-width: 525px;
  transform: translateY(-50%);
  text-align: center;
}

.login-content h1 {
  color: #ffffff;
  font-size: 2em;
  padding-bottom: 2em;
}

.login-content p {
  color: #ffffff;
  padding-bottom: 1em;
  font-size: 1em;
  margin: 0 50px;
}

.login-content input {
  width: 400px;
}

.stick-to-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.stick-to-bottom .row {
  width: 100%;
}

.login .stick-to-bottom a {
  color: #ffffff;
  text-decoration: none;
}

.page-content .stick-to-bottom {
  width: calc(100% - 70px);
  padding-bottom: 20px;
}

.pagination a {
  display: inline-block;
  padding: 3px;
  border: 1px solid #d7dae2;
  min-height: 32px;
  min-width: 32px;
  text-align: center;
  text-decoration: none;
  color: #4d4f5c;
}

.pagination a.active {
  background-color: #0f7393;
  color: #ffffff;
  pointer-events: none;
}

.pagination a.ellipse {
  pointer-events: none;
  border: none;
}

.page-content .stick-to-bottom {
  width: calc(100% - 40px);
}

.page-content h1 {
  display: inline-block;
}

a.button {
  color: #ffffff;
  height: 50px;
  width: 30%;
  margin: 5px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

a.button--short {
  height: 40px;
}

a.button--wide {
  width: 220px;
}

a.button--orange {
  background-color: #ff7700;
  border: 1px solid #ff7700;
  color: #ffffff;
}

a.button--green {
  background-color: #0f7393;
  border: 1px solid #0f7393;
  color: #ffffff;
}

a.button--border {
  background-color: transparent;
  border: 1px solid #0f7393;
}

a.button--orange:hover {
  background-color: #cc5f00;
  color: #ffffff;
  text-decoration: none;
}

a.button--green:hover {
  background-color: #0a4f65;
  color: #ffffff;
  text-decoration: none;
}

a.button--border:hover {
  background-color: rgba(1, 79, 102, 0.5);
  color: #ffffff;
  text-decoration: none;
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 3em;
}

.header {
  background-color: #ffffff;
  height: 70px;
  box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.04);
  -webkit-box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.04);
  -moz-box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.04);
}

.account {
  display: flex;
  align-items: center;
}

.avatar {
  position: absolute;
  display: flex;
  min-height: 38px;
  min-width: 38px;
  border-radius: 19px;
  background-color: #f0f0f7;
  font-size: 0.8em;
  top: 16px;
  right: 16px;
  align-items: center;
  justify-content: center;
  color: #888888;
  text-decoration: none;
}

.avatar:hover {
  color: #888888;
  text-decoration: none;
}

.logo {
  max-height: 70px;
  max-width: 147px;
}

.logo:hover {
  text-decoration: none;
}

.search {
  padding-left: 100px;
}

.search img {
  max-height: 16px;
  max-width: 16px;
}

.search input {
  background-color: transparent;
  border-radius: 0;
  border: none;

  -webkit-appearance: none;
  -moz-appearance: none;

  font-family: inherit;
  font-size: 1em;

  vertical-align: middle;
  padding-left: 10px;

  margin-top: auto;
  margin-bottom: auto;

  height: 100%;
  width: calc(100% - 30px);

  outline: none;
}

.section-heading input[type="text"],
.section-heading select {
  background-color: #ffffff;
  border-radius: 5px;
  border: 1px solid #e9e9f0;

  -webkit-appearance: none;
  -moz-appearance: none;

  font-family: inherit;
  font-size: 0.8em;

  padding-left: 10px;
  height: 35px;
  width: 250px;
}

.section-block {
  position: relative;
  width: 100%;
  height: 100%;
  margin-right: 20px;
  padding: 20px;
  background-color: #ffffff;
}

.section-block:last-of-type() {
  margin-right: 0;
}

.section-block h2 {
  background-color: #f5f6fa;
  color: #a3a6b4;
  padding: 10px;
  font-size: 16px;
}

.document-preview {
  position: relative;
  background-color: #f5f6fa;
  margin: 20px 0;
  width: 100%;
  height: 450px;
}

.document-preview-enlarge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 99999;
}

.section-block-buttons {
  display: flex;
  justify-content: flex-end;
}

.section-block-buttons a.button:first-of-type {
  margin-left: 0;
}

.section-block-buttons a.button:last-of-type {
  margin-right: 0;
}

.filters {
  text-align: right;
}

.selected-row {
  background-color: rgba(15, 115, 147, 0.1);
}

.section-block .field {
  --fieldInputColor: #4d4f5c;
  --fieldLabelColor: rgba(77, 79, 92, 0.5);
  --fieldBorderColor: #e9e9f0;
  --fieldBorderColorActive: #014f66;
  --fieldPlaceholderColor: #e9e9f0;
  padding-top: 15px;
  width: 100%;
}

.section-block input {
  outline: none !important;
}

.linked-companies ul {
  position: relative;
  list-style: none;
}

.linked-companies li {
  display: flex;
  align-items: center;
  height: 50px;
  width: 100%;
  padding-left: 10px;
}

.linked-companies img {
  position: absolute;
  right: 10px;
  height: 16px;
  cursor: pointer;
}

.btn-link-company {
  background-color: #0f7393 !important;
}

.inbox-folders ul {
  position: relative;
  list-style: none;
}

.inbox-folders li {
  display: flex;
  align-items: center;
  height: 50px;
  width: 100%;
  padding-left: 10px;
}

.inbox-folders .count {
  position: absolute;
  right: 10px;
  height: 16px;
  border-radius: 50%;
  background-color: #ff0000;
  color: #ffffff;
}

.inbox-emails ul {
  position: relative;
  list-style: none;
}

.inbox-emails li {
  height: 80px;
  width: 100%;
  padding: 10px 20px;
  border: 1px solid #eeeeee;
  margin-bottom: 10px;
  /* box-shadow: 0 0 3px #eeeeee; */
}

.inbox-emails li .from,
.inbox-emails li .received {
  font-size: 0.8rem;
}

.inbox-emails li .subject {
  font-size: 1.2rem;
}

.error {
  border-color: #ff0000 !important;
}

.error:focus {
  outline-color: #f99 !important;
}

.dirty {
  border-color: #55aa55 !important;
}

.dirty:focus {
  outline-color: #88ee88 !important;
}

.search input:after {
  content: "Press Enter to search";
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 16px;
}

.custom-control-input:checked ~ .custom-control-label::before {
  border-color: #0f7393;
  background-color: #0f7393;
}

.error-messages {
  font-size: 1.5em;
  color: #ffffff;
}

.error-messages li {
  list-style: none;
}

img.maintain-aspect-ratio {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.maintain-aspect-ratio-container {
  width: 450px;
  height: 450px;
}

.unread-email {
  font-weight: 700;
}

.ck-content {
  height: 200px;
}

.bg-gray {
  background-color: #eeeeee;
}

.cursor-pointer {
  cursor: pointer;
}

.no-focus:focus {
  outline: none;
  box-shadow: none;
}

::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(167, 167, 167);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.copy-action {
  display: flex;
  grid-template-columns: auto auto;
  gap: 10px;
  align-items: center;
}

.standard-layout {
  display: grid;
  grid-template-columns: auto 1fr;
}