/* Project selection page (with Login/css/login.css for the shared look) */

.tv-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 1;
}

.tv-header-logo { height: 30px; }

.tv-header-title {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.tv-header-user {
  color: var(--tv-muted);
  font-size: 14px;
}

.tv-header .tv-button {
  font-size: 13px;
  padding: 6px 12px;
}

.tv-header .tv-button[hidden] { display: none; }  /* the Administration link, until known */

.tv-projects {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.tv-projects-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tv-projects-top h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.tv-search {
  max-width: 320px;
  background: #fff;
}

.tv-loading {
  color: var(--tv-muted);
  padding: 24px 0;
}

.tv-project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-contract {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tv-contract-info { flex: 1; min-width: 0; }

.tv-contract-name {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 2px;
}

.tv-contract-meta {
  font-size: 13px;
  color: var(--tv-muted);
}

.tv-contract-projects {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tv-contract-projects li {
  font-size: 13px;
  background: #f1f1f1;
  border-radius: 12px;
  padding: 3px 10px;
}

.tv-empty {
  color: var(--tv-muted);
  padding: 24px 0;
  text-align: center;
}

@media (max-width: 560px) {
  .tv-contract { flex-direction: column; align-items: stretch; }
  .tv-header-user { display: none; }
}
