body {
  font-family: "Fira Code", "JetBrains Mono", "Source Code Pro", monospace;
  background: #f8fafc;
  color: #111827;
  letter-spacing: 0.01em;
  margin: 0;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: #0f172a;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.git-version {
  font-size: 12px;
  color: #6b7280;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  line-height: 1;
  white-space: nowrap;
}

.debug-output {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  color: #111827;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
  margin-bottom: 12px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.control-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 12em;
  flex: 1 1 16em;
  color: #111827;
}

.control-label {
  font-size: 12px;
  color: #4b5563;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dash-spreadsheet-container, .dash-table-container {
  font-size: 12px;
  color: #111827;
}

.dash-table-container th, .dash-table-container td {
  padding: 6px 8px;
}

.tab {
  padding: 12px;
}

.tab--selected {
  border-bottom: 2px solid #2563eb !important;
  font-weight: 600;
}

.tab-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.primary-btn {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #f8fafc;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.primary-btn:hover {
  filter: brightness(0.95);
}

.secondary-btn {
  background: #e5e7eb;
  color: #111827;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.secondary-btn:hover {
  background: #d1d5db;
}

.month-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

/* Inputs / dropdowns */
.Select-control, .Select-menu-outer, .dash-dropdown, input, textarea {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #cbd5e1 !important;
  font-family: "Fira Code", "JetBrains Mono", "Source Code Pro", monospace !important;
}

.dash-table-container {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.dash-table-container th {
  background: #f1f5f9;
  color: #111827;
}

.dash-table-container td {
  background: #ffffff;
  color: #111827;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-hidden {
  display: none;
}

.modal-card {
  width: min(760px, 100%);
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  padding: 18px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.text-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  box-sizing: border-box;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.16), transparent 24rem),
    #f8fafc;
}

.login-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 28px;
  backdrop-filter: blur(8px);
}

.login-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0369a1;
  margin-bottom: 10px;
}

.login-title {
  margin: 0 0 8px;
}

.login-copy {
  margin: 0 0 20px;
  color: #475569;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field label {
  font-size: 12px;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
}

.login-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}
