:root {
  --color_bluegrey: #566275;   /* blue gray */
  --completed_green: #00BA13; /* success infocolor */
  --error_red: #E20026; /* error infocolor */
}

.odoo_subtask > .icon_arrow_enter_svg {
  fill: var(--color_bluegrey);
}

.odoo-status-border {
  padding: 5px 10px;
  border-radius: 32px;
  border: 1px solid var(--color_bluegrey);
  font-size: 12px;
  text-align: right;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.edit-status-icon {
  fill: var(--color_bluegrey);
  display: flex;
  justify-content: center;
  align-items: center;
}
.edit-status-text {
  color: var(--color_bluegrey);
}

.done-status-icon,
.approved-status-icon {
  fill: var(--completed_green);
}
.done-status-icon > svg {
  height: 20px;
  width: 20px;
}
.done-status-text,
.approved-status-text {
  color: var(--completed_green);
}

.canceled-status-icon {
  fill: var(--error_red);
}
.canceled-status-icon > svg {
  position: relative;
  top: 5px;
  height: 20px;
  width: 20px;
}
.canceled-status-text {
  color: var(--error_red);
}

.feedback-status-icon,
.waiting-status-icon {
  fill: orange !important;
}

.waiting-status-icon > svg,
.feedback-status-icon > svg {
  position: relative;
  height: 20px;
  width: 20px;
  fill: orange !important;
  transform: rotate(180deg) !important;
  top: unset;
  margin: unset;
  display: flex;
  justify-content: center;
  align-items: center;
}
.feedback-status-text,
.waiting-status-text {
  color: orange;
}

.approved-status-icon > svg,
.edit-status-icon > svg {
  position: relative;
  height: 12px !important;
  width: 12px !important;
}

.odoo-tag-border {
  border: 1px solid var(--color_dark);
  border-radius: 32px;

  background: var(--color_dark);
  font-weight: bold;
  padding: 6px 12px;
  display: inline;
  font-size: 12px;
  line-height: 1;
  color: white;
}

.breadcrumbs,
.breadcrumbs a {
  font-family: 'Ubuntu', sans-serif !important;
  color: var(--color_dark) !important;
  font-size: 20px !important;
}

.odoo-task-title-wrapper {
  justify-content: space-between;
  align-items: center;
  margin: 40px 0;
  display: flex;
}

/* Task Tabs */

.odoo-task-tabs-wrapper {
  border-bottom: 1px solid #D7D7D7;
  display: flex;
  width: 100%;
}

.odoo-task-tabs-wrapper button {
  background: unset;
  font-size: 16px;
  padding: 13px 17px;
  border: 1px solid #D7D7D7;
  border-bottom-width: 0;
}

.odoo-task-tabs-wrapper button+button {
  border-left-width: 0;
}

.odoo-task-tabs-wrapper button.active {
  color: var(--color_dark);
  border-top-color: var(--color_dark);
  border-top-width: 2px;
}

  /* Nachrichten / Notizen */

.msg-wrapper {
  background-color: #F8F8F8;
  border-radius: 5px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 24px;
}

.msg-wrapper > .msg-history {
  display: flex;
  flex-direction: column-reverse;
  overflow-y: auto;
  gap: 24px;
  max-height: 700px;
  min-height: 700px;
  padding: 0 24px 0 0;
  position: relative;
}

.msg-wrapper > .msg-history p:empty {
  display: none;
}

.msg-wrapper > .msg-history p {
  margin-bottom: 0;
  line-height: unset;
}

.msg-wrapper > .msg-history p:not(:empty)+p:not(:empty),
.msg-wrapper > .msg-history p:not(:empty)+ul,
.msg-wrapper > .msg-history p:not(:empty)+li {
  margin-top: 10px;
}

.msg-wrapper > .msg-history > .msg-history-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto 0;
  gap: 20px;
  text-align: center;
}

.msg-wrapper > .msg-history > .msg-history-empty svg {
  opacity: 50%;
}

.msg-wrapper > .msg-input > form {
  display: flex;
  gap: 8px;
}

.msg-wrapper > .msg-input > form > .textarea_odoo {
  padding: 14px 16px;
  font-size: 14px;
  width: 100%;
  box-shadow: none;
  border: 1px solid #E3E3E3;
  line-height: 1;
  color: var(--color_bluegrey);
}

.msg-wrapper > .msg-input > form > input[type="submit"] {
  white-space: nowrap;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1;
}

.msg-wrapper .msg-author-profile {
  background-color: var(--color_dark);
  border: 2px solid var(--color_dark);
  border-radius: 50%;
  height: 42px;
  width: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.msg-wrapper .msg-author-profile:has(img) {
  background-color: white;
  border: 2px solid #f2f2f2;
}

.msg-wrapper .msg-author-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-wrapper .msg-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.msg-wrapper .msg-author>.msg-author-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.msg-wrapper .msg-author>.msg-author-details>.msg-author-details-name {
  font-size: 14px;
}

.msg-wrapper .msg-author>.msg-author-details>.msg-author-details-date {
  font-size: 12px;
  opacity: 50%;
}

.msg-wrapper .msg-entry {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-wrapper .msg-entry.msg-type-region {
  align-items: end;
  flex-direction: column;
  display: flex;
}

.msg-wrapper .msg-contents {
  padding: 16px;
  background-color: white;
  width: fit-content;
  display: block;
  word-break: break-word;
  border: 1px solid #E3E3E3;
  border-radius: 4px;
}

.msg-wrapper .msg-contents p {
  font-family: 'Ubuntu', sans-serif !important;
  font-size: 14px !important;
}

.msg-wrapper .msg-contents a {
  font-family: 'Ubuntu', sans-serif !important;
  font-size: 14px !important;
  text-decoration: underline;
  color: var(--color_dark);
}

.msg-wrapper .msg-contents a:hover {
  text-decoration-color: var(--color_dark);
}

.msg-wrapper .msg-contents ol,
.msg-wrapper .msg-contents ul {
  font-family: 'Ubuntu', sans-serif !important;
  padding-left: 14px;
}

.msg-wrapper .msg-contents ol>li,
.msg-wrapper .msg-contents ul>li {
  color: var(--color_bluegrey);
}

.odoo-task-contents img {
  max-width: 100%;
}

/* Responsive */

@media (max-width: 991px) {
  .msg-wrapper > .msg-history {
    max-height: 400px;
    min-height: 400px;
  }
}
