/*Write your custom css in this file.*/

.avatar.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
  overflow: hidden;
}

.avatar.avatar-initials.avatar-sm {
  font-size: 17px;
}

.avatar.avatar-initials.avatar-xs {
  font-size: 12px;
}

.avatar.avatar-initials.avatar-xxs {
  font-size: 10px;
}

.kanban-item .avatar.avatar-initials {
  width: 22px;
  height: 22px;
  float: left;
  margin-right: 12px;
}

.main-task-ref {
  white-space: nowrap;
}

/* Task detail: keep long descriptions inside the main column. */
.task-view-modal-body .task-description {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.task-view-modal-body .task-description a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.task-view-modal-body .task-description img,
.task-view-modal-body .task-description video,
.task-view-modal-body .task-description iframe {
  max-width: 100% !important;
  height: auto;
}

.task-view-modal-body .task-description pre,
.task-view-modal-body .task-description code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.task-view-modal-body .task-description table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Flex columns must be allowed to shrink below the content's min-content width. */
.task-view-modal-body .row > .col-lg-8 {
  min-width: 0;
}

/* Task info header: subject, tracker, project, and Redmine badge */
.task-header-subject {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.task-header-subject > strong {
  line-height: 1.35;
}

.task-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.task-header-meta .badge {
  font-size: 11px;
  padding: 4px 8px;
}

.task-header-project {
  font-size: 12px;
}

.task-header-project a {
  color: #6c757d;
}

.task-header-separator {
  font-size: 12px;
}

.task-header-redmine {
  flex-shrink: 0;
}

/* Task timesheet popup */
.task-timesheet-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

.task-timesheet-list {
  margin-top: 0;
}

.task-timesheet-row {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.task-timesheet-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.task-timesheet-row-content {
  flex: 1 1 auto;
  min-width: 0;
}

.task-timesheet-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.task-timesheet-note-text {
  line-height: 1.45;
}
