﻿:root {
  --bg: #f2f4f8;
  --table-header-bg: #0d274b;
  --table-header-text: #f5f9ff;
  --table-border: #d5dce8;
  --table-striped: #f9fbff;
  --accent: #1d63c5;
  --negative: #c9252d;
  --positive: #1f8a4c;
  --text-main: #1b1f27;
  --text-subtle: #5d6778;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.4;
}

main {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem 3rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
}

.description {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  color: var(--text-subtle);
}

.action-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

button {
  border: none;
  border-radius: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

button:hover {
  background: #0f4e9b;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

.status-text {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.table-wrapper {
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 12px 24px rgba(13, 39, 75, 0.08);
  overflow: hidden;
  border: 1px solid rgba(13, 39, 75, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

thead th {
  background: var(--table-header-bg);
  color: var(--table-header-text);
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

thead th:first-child {
  text-align: left;
}

tbody td {
  padding: 0.85rem 0.9rem;
  font-size: 0.95rem;
  text-align: right;
  border-bottom: 1px solid var(--table-border);
}

tbody td:first-child {
  font-weight: 600;
  color: var(--accent);
  text-align: left;
}

tbody tr:nth-child(even) {
  background: var(--table-striped);
}

tbody tr:hover {
  background: rgba(29, 99, 197, 0.08);
}

.negative {
  color: var(--negative);
  font-weight: 600;
}

.positive {
  color: var(--positive);
  font-weight: 600;
}

.options-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.options-link:hover {
  text-decoration: underline;
}

.placeholder {
  text-align: center;
  padding: 2.5rem;
  color: var(--text-subtle);
}

@media (max-width: 900px) {
  main {
    padding: 0 1rem 2rem;
  }

  .table-wrapper {
    border-radius: 0.3rem;
    overflow-x: auto;
  }

  table {
    min-width: 820px;
  }
}
