/* Time Entries Styles */

/* Overview Section */
.last-child-border-0:last-child {
  border-right: 0 !important;
}

.hover-bg-white:hover {
  background-color: #fff !important;
}

.overview-day-link {
  min-width: 0;
}

.overview-day-name {
  font-size: 0.65rem;
}

.overview-day-number {
  font-size: 0.9rem;
}

.overview-day-duration {
  font-size: 0.7rem;
}

/* Timeline Section */
.timeline-container {
  position: relative;
  padding-left: 60px;
  border-left: 2px solid #e9ecef;
  margin-left: 20px;
  min-height: 400px;
}

.timeline-entry {
  position: relative;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #0d6efd;
  background-color: #f8f9fa;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-entry:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #fff;
}

.timeline-entry.duration-only {
  border-left-color: #198754;
  background-color: #f0fdf4;
}

.timeline-entry.internal {
  border-left-color: #6c757d;
}

.timeline-gap {
  position: relative;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px dashed #ced4da;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-style: italic;
  font-size: 0.85rem;
  height: 40px;
}

.timeline-group-header {
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #495057;
  margin: 20px 0 10px -40px;
  display: flex;
  align-items: center;
}

.timeline-group-header i {
  margin-right: 8px;
}

.timeline-time {
  position: absolute;
  left: -75px;
  width: 65px;
  text-align: right;
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: bold;
}

.timeline-duration-label {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  opacity: 0.7;
}

:root {
  --hour-height: 80px;
}

.stats-progress {
  height: 20px;
}

.timeline-entry-dynamic {
  min-height: calc(var(--duration-ratio) * var(--hour-height));
}
