﻿.tt2__card {
  background: #fff;
  border: 1px solid #c3c6d7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.tt2__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.tt2__card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #eef0fa;
  border-bottom: 1px solid rgba(195, 198, 215, 0.3);
  transition: background 0.15s;
}
.tt2__card-head:hover {
  background: rgb(230.1181818182, 233.0454545455, 247.6818181818);
}
.tt2__card-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #126;
}
.tt2__body {
  padding: 8px 12px;
}
.tt2__view-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.tt2__view-btn {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.tt2__view-btn i {
  font-size: 25px;
  color: #6b6f8a;
}
.tt2__view-btn:hover {
  background: rgba(195, 198, 215, 0.2);
}
.tt2__view-btn:hover i {
  color: #080f30;
}
.tt2__view-btn--active {
  background: rgba(38, 55, 124, 0.1);
  border-color: rgba(38, 55, 124, 0.25);
}
.tt2__view-btn--active i {
  color: #26377c !important;
}
.tt2__view-btn--active:hover {
  background: rgba(38, 55, 124, 0.14);
}

.ticket-timeline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  max-height: 500px;
  overflow-y: auto;
}
.ticket-timeline__filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: #f9faff;
  border: 1px solid #d0d2db;
  border-radius: 6px;
  flex-wrap: wrap;
}
.ticket-timeline__filter-dates {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticket-timeline__filter-field {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ticket-timeline__filter-label {
  font-size: 12px;
  color: #6b6f8a;
  white-space: nowrap;
}
.ticket-timeline__date-edit {
  max-width: 140px;
}
.ticket-timeline__date-edit .dxbl-edit-input-ctn {
  background: #f9fafb !important;
  border-color: #d0d2db !important;
}
.ticket-timeline__date-edit input {
  font-size: 12px !important;
}
.ticket-timeline__filter-buttons {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.ticket-timeline__filter-btn {
  padding: 3px 10px;
  border: 1px solid #d0d2db;
  border-radius: 12px;
  background: transparent;
  color: #6b6f8a;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s all;
  white-space: nowrap;
}
.ticket-timeline__filter-btn:hover {
  background: #eef1ff;
  color: #080f30;
}
.ticket-timeline__filter-btn--active {
  background: #26377c;
  color: #fff;
  border-color: #26377c;
  font-weight: 600;
}
.ticket-timeline__filter-btn--active:hover {
  background: rgb(45.1777777778, 65.3888888889, 147.4222222222);
  color: #fff;
}
.ticket-timeline__empty {
  padding: 20px;
  text-align: center;
  color: #6b6f8a;
  font-size: 13px;
}
.ticket-timeline__date-group {
  margin-bottom: 4px;
}
.ticket-timeline__date-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 2px;
  background: #f9faff;
  border-left: 3px solid #26377c;
  border-radius: 2px;
}
.ticket-timeline__date-label {
  font-size: 12px;
  font-weight: 600;
  color: #26377c;
}
.ticket-timeline__date-count {
  font-size: 11px;
  color: #6b6f8a;
}
.ticket-timeline__entry {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  background: #fff;
  transition: 0.2s all;
}
.ticket-timeline__entry:nth-child(even) {
  background: #f9faff;
}
.ticket-timeline__entry--subticket {
  border-left: 3px solid #ffd203;
}
.ticket-timeline__entry:hover {
  background: #eef1ff;
}
.ticket-timeline__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(38, 55, 124, 0.08);
  color: #26377c;
  font-size: 14px;
}
.ticket-timeline__icon--status {
  background: #dbeafe;
  color: #1e40af;
}
.ticket-timeline__icon--consultants {
  background: #f3e8ff;
  color: #7c3aed;
}
.ticket-timeline__icon--worktime {
  background: #dcfce7;
  color: #16a34a;
}
.ticket-timeline__icon--messages {
  background: #cffafe;
  color: #0891b2;
}
.ticket-timeline__icon--deadlines {
  background: #fef3c7;
  color: #d97706;
}
.ticket-timeline__icon--tags {
  background: #fce7f3;
  color: #db2777;
}
.ticket-timeline__icon--files {
  background: #ccfbf1;
  color: #0d9488;
}
.ticket-timeline__content {
  flex: 1;
  min-width: 0;
}
.ticket-timeline__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.ticket-timeline__timestamp {
  font-size: 11px;
  color: #6b6f8a;
  white-space: nowrap;
}
.ticket-timeline__subticket-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 10px;
  background: #ffd203;
  color: #080f30;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.ticket-timeline__subticket-badge:hover {
  background: #ff0011;
  color: #fff;
}
.ticket-timeline__description {
  color: #080f30;
  font-size: 13px;
  line-height: 1.4;
}
.ticket-timeline__user {
  font-weight: 600;
  margin-right: 4px;
}
.ticket-timeline__change-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 12px;
}
.ticket-timeline__old-value {
  color: #6b6f8a;
  text-decoration: line-through;
}
.ticket-timeline__arrow {
  color: #6b6f8a;
}
.ticket-timeline__new-value {
  color: #00a651;
}

.timeline-git {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}
.timeline-git__lanes {
  position: relative;
}
.timeline-git__lane {
  display: flex;
  align-items: center;
  height: 40px;
  border-bottom: 1px solid #f9faff;
}
.timeline-git__lane:hover {
  background: #f9faff;
}
.timeline-git__lane--main {
  background: rgba(38, 55, 124, 0.04);
}
.timeline-git__lane--main .timeline-git__lane-label {
  border-left: 3px solid #26377c;
  font-weight: 600;
  color: #26377c;
}
.timeline-git__lane-label {
  min-width: 120px;
  padding: 4px 8px 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #080f30;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-git__lane-count {
  font-weight: 400;
  color: #6b6f8a;
  font-size: 10px;
  margin-left: 2px;
}
.timeline-git__branch-link {
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.timeline-git__branch-link:hover {
  text-decoration: underline;
}
.timeline-git__lane-track {
  flex: 1;
  position: relative;
  height: 28px;
  overflow: visible;
}
.timeline-git__branch-line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  border-radius: 2px;
}
.timeline-git__dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: default;
  z-index: 2;
  transition: transform 0.15s, box-shadow 0.15s;
}
.timeline-git__dot:hover {
  transform: translate(-50%, -50%) scale(1.5);
  z-index: 10;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}
.timeline-git__merge-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid;
  z-index: 3;
  cursor: default;
}
.timeline-git__open-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.4;
  z-index: 3;
  cursor: default;
}
.timeline-git__svg-overlay {
  position: absolute;
  top: 0;
  pointer-events: none;
  overflow: visible;
}

.timeline-gantt {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}
.timeline-gantt__axis {
  display: flex;
  align-items: flex-end;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d0d2db;
}
.timeline-gantt__axis-label-spacer {
  width: 100px;
  min-width: 100px;
}
.timeline-gantt__axis-track {
  flex: 1;
  position: relative;
  height: 20px;
  overflow: hidden;
}
.timeline-gantt__axis-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 10px;
  color: #6b6f8a;
  white-space: nowrap;
  bottom: 0;
}
.timeline-gantt__row {
  display: flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid #f9faff;
}
.timeline-gantt__row:nth-child(even) {
  background: #f9faff;
}
.timeline-gantt__row:hover {
  background: #eef1ff;
}
.timeline-gantt__row--status .timeline-gantt__row-label {
  border-left: 3px solid #3b82f6;
}
.timeline-gantt__row--consultants .timeline-gantt__row-label {
  border-left: 3px solid #a855f7;
}
.timeline-gantt__row--worktime .timeline-gantt__row-label {
  border-left: 3px solid #22c55e;
}
.timeline-gantt__row--messages .timeline-gantt__row-label {
  border-left: 3px solid #06b6d4;
}
.timeline-gantt__row--deadlines .timeline-gantt__row-label {
  border-left: 3px solid #f59e0b;
}
.timeline-gantt__row--tags .timeline-gantt__row-label {
  border-left: 3px solid #ec4899;
}
.timeline-gantt__row--files .timeline-gantt__row-label {
  border-left: 3px solid #14b8a6;
}
.timeline-gantt__row-label {
  width: 100px;
  min-width: 100px;
  padding: 4px 8px 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #080f30;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timeline-gantt__row-count {
  font-weight: 400;
  color: #6b6f8a;
  font-size: 10px;
  margin-left: 2px;
}
.timeline-gantt__row-track {
  flex: 1;
  position: relative;
  height: 28px;
  overflow: hidden;
}
.timeline-gantt__dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: default;
  transition: transform 0.15s, box-shadow 0.15s;
}
.timeline-gantt__dot:hover {
  transform: translate(-50%, -50%) scale(1.4);
  z-index: 10;
}
.timeline-gantt__dot--status {
  background: #3b82f6;
}
.timeline-gantt__dot--status:hover {
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}
.timeline-gantt__dot--consultants {
  background: #a855f7;
}
.timeline-gantt__dot--consultants:hover {
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}
.timeline-gantt__dot--worktime {
  background: #22c55e;
}
.timeline-gantt__dot--worktime:hover {
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.timeline-gantt__dot--messages {
  background: #06b6d4;
}
.timeline-gantt__dot--messages:hover {
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}
.timeline-gantt__dot--deadlines {
  background: #f59e0b;
}
.timeline-gantt__dot--deadlines:hover {
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}
.timeline-gantt__dot--tags {
  background: #ec4899;
}
.timeline-gantt__dot--tags:hover {
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}
.timeline-gantt__dot--files {
  background: #14b8a6;
}
.timeline-gantt__dot--files:hover {
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.6);
}
.timeline-gantt__dot--subticket {
  box-shadow: 0 0 0 3px #ffd203;
}
.timeline-gantt__dot--subticket:hover {
  box-shadow: 0 0 0 3px #ffd203, 0 0 8px rgba(255, 210, 3, 0.5);
}

.tt2-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0;
}
.tt2-loader__spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(38, 55, 124, 0.2);
  border-top-color: #26377c;
  border-radius: 50%;
  animation: tt2-spin 0.7s linear infinite;
  flex-shrink: 0;
}
.tt2-loader__text {
  font-size: 13px;
  color: #6b6f8a;
}

@keyframes tt2-spin {
  to {
    transform: rotate(360deg);
  }
}
.newTicket__box label .timeline-view-toggle {
  position: absolute;
  right: 68px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 28px;
}
.newTicket__box label .timeline-view-toggle i {
  font-size: 16px;
  color: #9ca3af;
  background: unset !important;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  transform: none !important;
  right: unset !important;
}

.timeline-view-toggle__btn {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.timeline-view-toggle__btn:hover {
  background: #f3f4f6;
}
.timeline-view-toggle__btn:hover i {
  color: #6b7280;
}
.timeline-view-toggle__btn--active {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.timeline-view-toggle__btn--active i {
  color: #26377c !important;
}
.timeline-view-toggle__btn--active:hover {
  background: #eef2ff;
}
