* { box-sizing: border-box; }

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

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: #111;
  color: #fff;
}

.topbar .brand { font-weight: 700; display: flex; align-items: center; }
.brand-logo { height: 22px; width: auto; display: block; }

.topbar nav { display: flex; gap: 18px; flex: 1; }
.topbar nav a { color: #ddd; text-decoration: none; font-size: 14px; }
.topbar nav a:hover { color: #fff; }

.account { display: flex; gap: 12px; align-items: center; font-size: 13px; color: #bbb; }
.account a { color: #bbb; }

.content { padding: 28px 32px; max-width: 1100px; margin: 0 auto; }

h1 { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.card h2 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #777; }

.big { font-size: 28px; font-weight: 700; }

.muted { color: #777; font-size: 13px; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
th { color: #777; font-weight: 600; font-size: 12px; text-transform: uppercase; }

.proposed-input { width: 100px; padding: 4px 6px; border: 1px solid #ccc; border-radius: 6px; }

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #111;
}

.login-card {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 360px;
}

.button {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
}

.error { color: #b3261e; }

.row-button {
  display: inline-block;
  padding: 6px 14px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.row-button:hover { background: #333; }

.period-toggle {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.period-toggle.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.period-hidden { display: none; }

.row-removed {
  opacity: 0.45;
  text-decoration: line-through;
}

.row-removed input.proposed-input {
  text-decoration: none;
}

.quarter-status-complete,
.quarter-status-incomplete {
  font-size: 13px;
  font-weight: 600;
}

.quarter-status-complete { color: #1e7e34; }
.quarter-status-incomplete { color: #b3261e; }

.sector-bubbles {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 10px auto 0;
  overflow-x: auto;
}

.sector-bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  background: #cfe0fc;
  color: #1a1a1a;
  padding: 6px;
  overflow: hidden;
  line-height: 1.3;
  cursor: default;
}

.sector-bubble-label {
  font-weight: 700;
  text-transform: capitalize;
}

.sector-bubble-value,
.sector-bubble-percent {
  font-size: 0.85em;
  color: #333;
}

.table-filter-input {
  display: block;
  width: 100%;
  max-width: 280px;
  padding: 6px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
}

.text-filter-hidden { display: none; }

.table-scroll {
  overflow-x: auto;
}

.table-scroll table {
  white-space: nowrap;
}

table.sortable-table th:hover {
  color: #111;
}

.col-divider {
  border-left: 2px solid #ccc;
}

.over-worked {
  background: #fdecea;
  color: #b3261e;
  font-weight: 600;
}
