body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #111827;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid #d9dee5;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.brand {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 28px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item,
.logout-button,
.env-selector button {
  border: none;
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.nav-item {
  text-align: left;
  background: transparent;
  color: #1f2937;
}

.nav-item:hover {
  background: #e9f5ec;
  color: #247c34;
}

.nav-item.active {
  border-left: 4px solid #145c22;
  background: #287d32;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.logout-button {
  margin-top: auto;
  background: #287d32;
  color: white;
}

.main-content {
  max-width: 1400px;
  flex: 1;
  padding: 28px 36px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.page-context {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.topbar h1 {
  margin: 4px 0 0;
  font-size: 32px;
}

.env-selector {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.env-selector button {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  background: #e5e7eb;
  color: #374151;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.env-selector button:hover {
  background: #d1d5db;
}

.env-selector button.selected {
  background: #287d32;
  color: #ffffff;
}

.page {
  padding: 32px;
}

.card {
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-card {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  background-color: #f9f9f9;
}

h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 24px;
  color: #555;
}

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

.field {
  display: flex;
  flex-direction: column;
}

.full-width {
  margin-top: 16px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
}

input,
textarea,
select {
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font-size: 14px;
}

textarea {
  resize: vertical;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button.secondary {
  background: white;
  border: 1px solid #999;
}

.delete-btn {
  padding: 6px 10px;
  border: 1px solid #c62828;
  border-radius: 6px;
  background: white;
  color: #c62828;
  cursor: pointer;
}

.edit-btn {
  padding: 6px 10px;
  border: 1px solid #1565c0;
  border-radius: 6px;
  background: white;
  color: #1565c0;
  cursor: pointer;
  margin-right: 6px;
}

.edit-btn:hover {
  background: #eaf2fd;
}
.delete-btn:hover {
  background: #fdecea;
}
.success-box {
  background-color: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 4px;
}

.error-box {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
  padding: 10px;
  border-radius: 4px;
}
.status-green {
  color: #2e7d32;
  font-weight: bold;
}

.status-blue {
  color: #1565c0;
  font-weight: bold;
}

.status-purple {
  color: #6a1b9a;
  font-weight: bold;
}

.status-red {
  color: #c62828;
  font-weight: bold;
}
.message {
  margin-top: 8px;
}

.message.error {
  color: #c62828;
  font-weight: 600;
}

.autocomplete {
  position: relative;
}

.autocomplete input,
.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
  box-sizing: border-box;
}

.suggestion-item {
  padding: 8px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f2f2f2;
}
.view-report-btn.active {
  border: 2px solid #2563eb;
  font-weight: 600;
}

.analytics-panel {
  max-width: 1180px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.analytics-panel + .analytics-panel {
  margin-top: 28px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  font-size: 14px;
}

.analytics-grid > div {
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-left: 3px solid #287d32;
  border-radius: 12px;
  padding: 16px 20px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.analytics-grid > div:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.analytics-grid span {
  display: block;
  margin-top: 8px;
  font-size: 2.4rem;
  font-weight: 800;
  color: #287d32;
}

.analytics-grid .metric-label {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.analytics-grid .metric-value {
  margin-top: 10px;
  font-size: 36px;
  font-weight: 800;
  color: #287d32;
  line-height: 1;
}

.metric-label {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.2px;
}

.metric-value {
  display: block;
  margin-top: 12px;
  font-size: 42px;
  font-weight: 800;
  color: #287d32;
  line-height: 1;
}

#lastUpdated.metric-value {
  font-size: 28px;
  color: #0f766e;
}

#topPagesTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

#topPagesTable th {
  text-align: left;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #dbe2ea;
  background: #f8fafc;
}

#topPagesTable td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2f7;
  color: #111827;
}

#topPagesTable tbody tr:hover {
  background: #f8fafc;
}

.trend-chart {
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow-x: auto;
}

.trend-window, .trend-status {
  font-size: 12px;
  color: var(--color-text-muted);
}

.trend-plot {
  display: flex;
  gap: 12px;
  min-width: 840px;
}

.trend-bar-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trend-bar-track {
  height: 160px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.trend-bar {
  width: 100%;
  max-width: 28px;
  background: linear-gradient(to top, #247c34, #3fa652);
  border-radius: 10px 10px 4px 4px;
  transition: opacity 0.2s ease;
}

.trend-bar:hover {
  opacity: 0.8;
}

.trend-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.trend-value {
  font-size: 10px;
  margin-bottom: 4px;
}

#validationRunsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

#validationRunsTable th,
#validationRunsTable td {
  border: 1px solid #dcdcdc;
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

#validationRunsTable th {
  background-color: #f5f5f5;
}

.actions-row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

#validationRunMessage {
  margin: 10px 0;
}

.latest-run {
  background-color: #e8f5e9;
  font-weight: bold;
}


.careerops-section {
  display: none;
}

.careerops-section.active-section {
  display: block;
}

.careerops-nav {
  border-bottom: 1px solid #ccc;
}

#formMessage {
  margin: 10px 0 14px 0;
}

#formMessage .success-box {
  background: #eaf7ed;
  border: 1px solid #b7dfc2;
  color: #1f7a35;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

#formMessage .error-box {
  background: #fdeaea;
  border: 1px solid #f1b5b5;
  color: #b42318;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

#closeWeeklyReportDetailBtn {
  display: inline-block !important;
  background: red;
  color: white;
  padding: 8px 12px;
  border: 1px solid black;
}

button:not(:disabled) {
  background-color: #2e7d32;
  color: #ffffff;
  border-color: #2e7d32;
  cursor: pointer;
}

button:not(:disabled):hover {
  background-color: #1b5e20;
  border-color: #1b5e20;
}

button.delete-btn {
  background-color: #c62828;
  color: #fff;
}

button.delete-btn:hover {
  background-color: #8e0000;
}

.disabled-btn {
  background: #d1d5db !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
  opacity: 0.75;
}

button.delete-btn:disabled,
button.delete-btn.disabled-btn {
  background-color: #d1d5db !important;
  color: #6b7280 !important;
  border-color: #d1d5db !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

button.delete-btn:disabled:hover,
button.delete-btn.disabled-btn:hover {
  background-color: #d1d5db !important;
}

#weekly-report-history-table th:first-child,
#weekly-report-history-table td:first-child {
  width: 70px;
  text-align: center;
}

#weekly-report-history-table input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #2e7d32;
  cursor: pointer;
}

#weekly-report-history-table td,
#weekly-report-history-table th {
  padding: 14px 16px;
}

#weekly-report-history-table tbody tr {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.03),
    0 2px 6px rgba(0,0,0,0.02);
}

#weekly-report-history-table {
  min-width: 720px;
}

#weekly-report-history-table tbody tr:hover {
  transform: translateY(-1px);
}

#weekly-report-history-table tbody tr:nth-child(even) {
  background: #fcfcfc;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.status-badge.success {
  background: #dcfce7;
  color: #166534;
}

.selected-row {
  background: #edf7ed !important;
}

#unemploymentExportBtn:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.message.success {
  font-size: 14px;
  color: #4b5563;
  background: transparent;
  padding: 0;
  margin-bottom: 16px;
}

h2 {
  letter-spacing: -0.4px;
}

.table-actions {
  display: flex;
  position: sticky;
  bottom: 24px;
  justify-content: flex-end;
  margin-top: 24px;
}

#weekly-report-history-table tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

#weekly-report-history-table tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.view-report-btn {
  opacity: 0.7;
  pointer-events: none;
  background: #94a3b8;
  box-shadow: none;
  transform: none;
}

.selected-row .view-report-btn {
  opacity: 1;
  pointer-events: auto;
  background: #2e7d32;
}

.nav-list button.active {
  background: #145c22;
  color: #ffffff;
}

.validation-summary {
  margin-top: 36px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 22px;
}

.validation-summary h3 {
  margin-bottom: 18px;
  font-size: 32px;
}

.validation-actions {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}

.validation-actions button {
  background: #287d32;
  color: white;
  font-weight: 700;
}

#validationRunsTable td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2f7;
}

.status-badge.running {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-badge.completed,
.status-badge.passed {
  background: #dcfce7;
  color: #166534;
}

.status-badge.failed {
  background: #fee2e2;
  color: #991b1b;
}

.validation-summary table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.validation-summary th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid #dbe2ea;
}

.validation-summary td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2f7;
}

.validation-summary tbody tr:hover {
  background: #f9fafb;
}

.validation-status-completed {
  color: #247c34;
  font-weight: 700;
}

.validation-status-running {
  color: #2563eb;
  font-weight: 700;
}

.validation-status-failed {
  color: #dc2626;
  font-weight: 700;
}

.validation-summary tbody tr {
  transition: background 0.15s ease;
}

.quality-gate-history {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.quality-card {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-left: 4px solid #94a3b8;
  border-radius: 12px;
  padding: 16px 18px;
}

.quality-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.quality-run-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.quality-run-meta {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}

.quality-status-pill {
  background: #e9f7ec;
  color: #247c34;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.quality-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.quality-card-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}

.quality-card-grid span {
  font-size: 15px;
  color: #111827;
  line-height: 1.5;
}

.quality-success {
  border-left-color: #287d32;
}

.quality-failed {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.quality-running {
  border-left-color: #d97706;
}

.quality-empty {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  color: #64748b;
}

.quality-gate-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #ffffff;
  background: #94a3b8;
}

.quality-gate-branch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e8f5e9;
  color: #287d32;
}

.quality-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.telemetry-table-card {
  background: #ffffff;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 18px 20px;
}

.environment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e8f5e9;
  color: #287d32;
}

.quality-failed .environment-pill {
  background: #fee2e2;
  color: #dc2626;
}

.quality-success .quality-gate-branch {
  background: #e8f5e9;
  color: #287d32;
}

.quality-run-details {
  display: flex;
  gap: 24px;
  margin-top: 10px;
  font-size: 13px;
  color: #475569;
}

.quality-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 2px;
}

#dashboardSection {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  min-height: 220px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.dashboard-kpi {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dashboard-kpi span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.dashboard-kpi label {
  color: #4b5563;
  font-size: 14px;
}