* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #eef2ef;
  color: #16281c;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.active-screen {
  display: block;
}

/* ---------- Login ---------- */

.centered-screen.active-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 32px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.login-card img {
  display: block;
  width: 200px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 18px auto;
}

.login-card p.subtitle {
  color: #52625a;
  margin: 0 0 24px;
}

.login-card label {
  display: block;
  text-align: left;
  font-weight: bold;
  margin: 14px 0 6px;
  font-size: 0.92rem;
}

.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c7d0ca;
  border-radius: 8px;
  font: inherit;
}

.login-card button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: #1f5132;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.login-status {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #b3261e;
  min-height: 1.2em;
}

.login-status.success {
  color: #1f5132;
}

/* ---------- App shell ---------- */

#appTopBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: #173c22;
  color: white;
  flex-wrap: wrap;
}

#appTopBar img {
  height: 40px;
  width: auto;
}

#appTopBar .top-bar-company {
  font-weight: bold;
  font-size: 1.05rem;
}

#appTopBar button {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: transparent;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ---------- Job list ---------- */

.job-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-company-heading {
  margin: 28px 0 0;
  color: #173c22;
  font-size: 1.1rem;
  padding-bottom: 6px;
  border-bottom: 1px solid #d7dfda;
}

.admin-company-heading:first-of-type {
  margin-top: 18px;
}

.job-card {
  background: white;
  border: 1px solid #d7dfda;
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.job-card:hover {
  border-color: #1f5132;
}

.job-card h2 {
  margin: 0 0 4px;
  color: #173c22;
}

.job-card .job-card-meta {
  color: #52625a;
  font-size: 0.9rem;
}

.progress-ring-label {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1f5132;
  white-space: nowrap;
}

/* ---------- Job detail ---------- */

.back-link {
  background: none;
  border: none;
  color: #1f5132;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.card {
  background: white;
  border: 1px solid #d7dfda;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
}

.card h1 {
  margin: 0 0 4px;
  color: #173c22;
}

.card h2 {
  margin: 0 0 14px;
  color: #173c22;
}

.snapshot-note {
  color: #52625a;
  font-size: 0.85rem;
  margin-top: 4px;
}

.progress-bar-row {
  margin-bottom: 16px;
}

.progress-bar-row:last-child {
  margin-bottom: 0;
}

.progress-bar-label {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 6px;
}

.progress-bar-track {
  height: 14px;
  border-radius: 999px;
  background: #e3e9e4;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #1f5132;
  border-radius: 999px;
}

.progress-bar-row.overall .progress-bar-fill {
  background: #256d3c;
}

.progress-bar-row.overall .progress-bar-track {
  height: 20px;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e0e6e1;
  border-radius: 10px;
}

.document-row button {
  padding: 7px 12px;
  border: none;
  border-radius: 7px;
  background: #256d3c;
  color: white;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

.empty-note {
  color: #52625a;
}

.export-button {
  padding: 11px 18px;
  border: none;
  border-radius: 9px;
  background: #1f5132;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.stat-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.stat-tile {
  min-width: 140px;
}

.stat-tile .stat-number {
  font-size: 1.6rem;
  font-weight: bold;
  color: #173c22;
}

.stat-tile .stat-label {
  color: #52625a;
  font-size: 0.85rem;
}
