.project-hero {
  grid-template-columns: 235px minmax(200px, 1fr) minmax(370px, 1.4fr);
}
.project-hero .hero-photo {
  height: 165px;
}
.project-hero .hero-info {
  gap: 12px;
}
.project-hero .hero-person {
  gap: 14px;
}
.project-hero .hero-person > .icon {
  width: 24px;
  height: 24px;
}
.project-hero .hero-description {
  font-size: 12px;
}
.project-hero .hero-metrics .stat strong {
  font-size: 20px;
}
.milestone-list {
  padding: 3px 13px 16px;
}
.milestone-list > button {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  width: 100%;
  padding: 9px 0;
  background: none;
  border-radius: 0;
  position: relative;
  text-align: left;
  color: var(--blue);
}
.milestone-list > button:not(:last-child):before {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  height: 100%;
  width: 2px;
  background: #e7ebf3;
}
.milestone-list > button > span:nth-child(2) {
  flex: 1;
}
.milestone-list time {
  font-size: 13px;
  color: var(--muted);
}
.milestone-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #aeb7cd;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.milestone-dot.done {
  background: #04c58e;
}
.milestone-dot .icon {
  width: 13px;
  height: 13px;
}
.indicator-list {
  padding: 4px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.indicator-list > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.indicator-list > div > .icon {
  width: 24px;
  height: 24px;
  color: var(--orange);
}
.indicator-list > div > div {
  flex: 1;
}
.indicator-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  font-size: 14px;
}
.indicator-list strong {
  color: var(--navy);
}
.resource-list {
  padding: 4px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.resource-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.resource-list > div > div {
  flex: 1;
}
.resource-list p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--blue);
}
.resource-list p b {
  font-weight: 400;
}
.task-filters {
  padding: 0;
  border: 0;
  gap: 8px;
  flex-wrap: wrap;
}
.task-filters > label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding-left: 12px;
  font-size: 12px;
  color: var(--blue);
}
.task-filters select {
  border: 0;
  padding: 8px;
  max-width: 150px;
  font-size: 12px;
}
.task-filters .btn {
  font-size: 12px;
}
.task-board {
  grid-auto-columns: minmax(160px, 1fr);
  gap: 12px;
  min-height: 425px;
}
.task-board .kanban-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.task-board .kanban-heading h2 > .icon {
  width: 20px;
  height: 20px;
}
.task-board .kanban-heading h2 > b {
  font-size: 12px;
  background: #fff;
  border-radius: 50%;
  margin-left: auto;
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.task-card {
  min-height: 121px;
  margin-top: 8px;
  padding: 10px;
}
.task-card h3 {
  white-space: normal;
  line-height: 1.2;
  font-size: 14px;
  min-height: 30px;
}
.task-card h3 > button {
  border: 0;
  text-align: left;
  background: none;
  padding: 0;
  font-weight: 500;
}
.task-card .task-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.task-date > span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.task-date .icon {
  width: 13px;
  height: 13px;
}
.task-card footer {
  margin-top: 10px;
}
.task-card footer .photo.avatar {
  width: 24px;
  height: 24px;
}
.task-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.task-progress > .meter {
  height: 6px;
  min-width: 40px;
}
.task-progress > small {
  font-size: 11px;
  white-space: nowrap;
}
.task-card p {
  font-size: 12px;
}
.backlog-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 10px 10px;
}
.backlog-cards > .kanban-card {
  margin: 0;
}
.global-planning-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: start;
}
.global-planning-layout > .card {
  min-width: 0;
}
.global-planning-backlog .backlog-cards {
  grid-template-columns: minmax(0, 1fr);
}
.personal-task-calendar-layout .backlog-cards {
  grid-template-columns: minmax(0, 1fr);
}
.gantt-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.gantt {
  --label: 42%;
  min-width: 760px;
  color: var(--blue);
  font-size: 12px;
}
.gantt-header,
.gantt-row {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
}
.gantt-label {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 55px 55px 35px;
  align-items: center;
  gap: 5px;
  text-align: left;
  padding: 6px 9px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: 12px;
}
.gantt-label > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gantt-label > time,
.gantt-label > small {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.gantt-header {
  height: 34px;
  background: #fcfdff;
  border-bottom: 1px solid var(--line);
}
.gantt-months {
  display: grid;
  grid-template-columns: 31fr 28fr 31fr 10fr;
}
.gantt-months > span {
  border-right: 1px solid var(--line);
  text-align: center;
  padding: 8px 0;
  font-size: 11px;
  color: var(--muted);
}
.gantt-header.weeks {
  height: 25px;
}
.gantt-header.weeks > div:nth-child(2) {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
}
.weeks span {
  font-size: 10px;
  text-align: center;
  padding-top: 4px;
  color: var(--muted);
}
.gantt-row {
  height: 29px;
  border-bottom: 1px solid #edf1f6;
}
.gantt-row.group-row {
  background: #f4f7fa;
  font-weight: 700;
  color: var(--navy);
}
.gantt-row.group-row .gantt-label {
  grid-template-columns: 28px 1fr;
}
.gantt-timeline {
  position: relative;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(7% - 1px),
    #eaf0f7 calc(7% - 1px),
    #eaf0f7 7%
  );
}
.gantt-bar {
  position: absolute;
  top: 6px;
  height: 16px;
  min-width: 5px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(110deg, #669cff, #a9cbff);
  cursor: grab;
  z-index: 2;
  padding: 0;
}
.gantt-bar.green {
  background: linear-gradient(110deg, #4fceb3, #87dec8);
}
.gantt-bar.purple {
  background: linear-gradient(110deg, #f7ffd6, #f0ffbe);
}
.gantt-bar.orange {
  background: linear-gradient(110deg, #ffac57, #ffcc83);
}
.gantt-dependency {
  position: absolute;
  top: 10px;
  font-size: 20px;
  color: #354787;
  transform: translateX(-8px);
}
.gantt-body {
  position: relative;
}
.gantt-today {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px dashed #ff8167;
  left: 60%;
  pointer-events: none;
  z-index: 3;
}
.gantt-today > span {
  position: absolute;
  left: -31px;
  top: 0;
  background: #ff7757;
  color: white;
  border-radius: 5px;
  padding: 3px 5px;
  font-size: 10px;
}
.gantt-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin-top: 12px;
  font-size: 12px;
  flex-wrap: wrap;
}
.gantt-legend label {
  color: var(--purple);
}
@media (max-width: 1450px) {
  .project-hero {
    grid-template-columns: 200px 1fr 1.25fr;
    gap: 12px;
  }
  .project-hero .hero-photo {
    height: 155px;
  }
  .project-hero .hero-metrics .stat strong {
    font-size: 17px;
  }
  .project-hero .hero-metrics > .stat {
    gap: 8px;
    padding: 7px;
  }
  .task-board {
    gap: 8px;
    grid-auto-columns: minmax(150px, 1fr);
  }
  .gantt {
    --label: 44%;
  }
  .backlog-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1200px) {
  .global-planning-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-hero {
    grid-template-columns: 200px 1fr;
  }
  .project-hero .hero-metrics {
    grid-column: 1/-1;
  }
  .backlog-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .project-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-hero .hero-photo {
    height: 170px;
  }
  .project-hero .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-hero .hero-metrics > .stat {
    min-width: 0;
    padding: 7px 5px;
    gap: 5px;
  }
  .project-hero .hero-metrics .stat strong {
    font-size: 15px;
    white-space: normal;
  }
  .project-hero .hero-metrics .stat-icon > .icon {
    width: 20px;
  }
}
.dependency-picker {
  grid-column: 1/-1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dependency-picker label {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 13px;
}
.dependency-picker input {
  flex: none;
}
.dependency-lines {
  position: absolute;
  left: var(--label);
  top: 0;
  width: calc(100% - var(--label));
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.dependency-lines > path {
  fill: none;
  stroke: #415387;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.dependency-lines marker path {
  fill: #415387;
}
.dependency-lines > path.critical {
  stroke: #fa6746;
  stroke-width: 2;
}
.gantt-bar.critical {
  outline: 2px solid #ff6746;
  outline-offset: 1px;
}
.gantt-months {
  display: flex;
}
.gantt-header.weeks > div:nth-child(2) {
  display: flex;
}
.weeks span {
  flex: 1;
  border-right: 1px solid var(--line);
}
.gantt-milestone {
  position: absolute;
  top: 0;
  transform: translateX(-5px);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  white-space: nowrap;
  z-index: 4;
}
.gantt-milestone span {
  font-size: 26px;
  color: var(--orange);
}
.gantt-milestone small {
  font-size: 10px;
}
.milestone-row {
  height: 35px;
}
.gantt-timeline {
  overflow: visible;
}
.resource-list > small {
  font-size: 11px;
  color: var(--muted);
}
@media (min-width: 1201px) {
  body[data-view='project'] {
    --dossier: 155px;
  }
  body[data-view='quote'] {
    --dossier: 165px;
  }
  body[data-view='tasks'] {
    --dossier: 150px;
  }
  body[data-view='gantt'] {
    --dossier: 150px;
  }
  body:is(
    [data-view='tasks'],
    [data-view='gantt'],
    [data-view='opportunities'],
    [data-view='calendar'],
    [data-view='flow']
  ) {
    --right: 284px;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero {
    grid-template-columns: 180px minmax(200px, 1fr) minmax(325px, 1.25fr);
    gap: 16px;
    padding: 10px;
    height: 146px;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .hero-photo {
    height: 124px;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .hero-info {
    gap: 5px;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .hero-description {
    font-size: 12px;
    line-height: 1.25;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .hero-person:nth-child(2) {
    display: none;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .stat {
    padding: 4px 7px;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .record-heading {
    margin-bottom: 10px;
  }
  body[data-view='project'] .person-row {
    padding: 7px 12px;
  }
  body[data-view='project'] .person-row > .avatar {
    width: 37px;
    height: 37px;
  }
}
body.right-hidden {
  --right: 0px !important;
}
.task-filters .btn.primary {
  display: none;
}
.task-card h3 > button {
  width: 100%;
  white-space: normal;
}
.task-board .kanban-card {
  min-height: 115px;
}
.task-board .task-card p {
  white-space: normal;
}
.task-board .task-card h3 {
  min-height: 30px;
}
.project-hero .hero-metrics > .stat:nth-child(even) > .stat-icon {
  color: var(--green);
}
.record-heading {
  gap: 12px;
}
.record-heading > small {
  flex-shrink: 1;
  text-align: right;
  white-space: normal;
  min-width: 220px;
}
@media (min-width: 1201px) {
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero {
    grid-template-rows: minmax(0, 1fr);
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .hero-info {
    height: 124px;
    min-height: 0;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .hero-metrics {
    height: 124px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .stat > div > span {
    display: none;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .project-hero .stat strong {
    font-size: 18px;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .dossier > h2 {
    font-size: 14px;
    padding-inline: 3px;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .dossier nav > a {
    gap: 6px;
    padding-inline: 5px;
  }
  body:is([data-view='tasks'], [data-view='gantt']) .dossier nav > a b {
    font-size: 13px;
  }
  .task-board .kanban-card {
    padding: 9px 8px;
  }
  .task-card .task-date {
    gap: 5px;
  }
  .task-board .kanban-card footer {
    margin-top: 8px;
  }
}
