/* static/css/calendar_project_list.css */

.project-list-wrapper {
  position: relative;
  margin-top: 1.1rem;
}

.project-list-tag {
  position: absolute;
  top: -0.6rem;
  left: 1.2rem;
  z-index: 1;
  font-size: 0.8rem;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #bbb;
  border-radius: 0.25rem;
  padding: 0.1rem 0.35rem;
  line-height: 1;
  pointer-events: none;
}

.select-scroll-wrapper {
  max-height: 16rem;
  overflow: auto;
  border: 0.0625rem solid #ccc;
  border-radius: 0.5rem;
  background-color: #f9f9f9;
  padding: 0.5rem;
  white-space: nowrap;
}

.custom-project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.custom-project-list li {
  padding: 0.4rem;
  border-bottom: 0.0625rem solid #ddd;
  cursor: pointer;
  white-space: nowrap;
}

.custom-project-list li:hover,
.custom-project-list li.selected {
  background-color: #dceeff;
}

.custom-project-list li.project-item {
  display: block;
  text-align: left;
  padding: 0.625rem 0.75rem;
  margin: 0.375rem 0.25rem;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.0625rem 0 rgba(0, 0, 0, .03);
  cursor: pointer;
  white-space: normal;
}

.custom-project-list li.project-item:hover {
  background: #f8fafc;
}

.custom-project-list li.project-item.selected {
  background: #dceeff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.1875rem rgba(59, 130, 246, .15);
}

.project-item-compact__group {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin-right: 0.5rem;
}

.project-item-compact__label {
  flex: 0 0 auto;
  font-weight: 700;
  color: #000;
  margin-right: 0.25rem;
}

.project-item-compact__link {
  display: inline-flex;
  align-items: center;
  max-width: 10rem;
  min-width: 0;
  height: 1.8rem;
  padding: 0 0.45rem;
  border: 0.0625rem solid #93c5fd;
  border-radius: 0.375rem;
  background: #eff6ff;
  color: #004b91;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  vertical-align: baseline;
  cursor: pointer;
  text-decoration: none;
  text-underline-offset: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
}

.project-item-compact__link:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  text-decoration: none;
}

.project-item-compact__link:focus {
  outline: 0.125rem solid #3b82f6;
  outline-offset: 0.125rem;
  text-decoration: none;
}

.project-item-compact__link:active {
  background: #bfdbfe;
  text-decoration: none;
}

.project-item-compact__title,
.project-item-compact__participants {
  margin-left: 0;
}

.project-badge-wrap {
  text-align: left;
}

.project-title {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-title .label,
.project-meta .label {
  font-weight: bold;
  margin-right: 0.25rem;
  color: #333;
}

.project-meta {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.2rem;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 9999rem;
  font-size: 0.75rem;
  line-height: 1.6;
  border: 0.0625rem solid transparent;
}

.badge.status-tentative {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.badge.status-confirmed {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.badge.mode-shared,
.badge.mode-individual {
  display: none !important;
}

.meta-dot,
.project-meta .remarks,
.avatar-stack,
.more-count {
  display: none !important;
}

.avatar {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999rem;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
}