* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.5;
}

header {
  background: #1a1a2e;
  color: #fff;
  padding: 20px 30px;
  text-align: center;
}

header h1 {
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.agency-info {
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.6;
}

.tabs {
  display: flex;
  background: #16213e;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px 20px;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  border-bottom: 3px solid transparent;
}

.tab:hover {
  color: #fff;
  background: #1a1a3e;
}

.tab.active {
  color: #fff;
  border-bottom-color: #e94560;
  background: #0f3460;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar h2 {
  font-size: 18px;
  color: #1a1a2e;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.count {
  font-size: 13px;
  color: #666;
}

.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-export {
  background: #e94560;
  color: #fff;
}

.btn-export:hover {
  background: #c73e54;
}

.error {
  background: #fee;
  border: 1px solid #e94560;
  color: #c73e54;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 13px;
}

.table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

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

th {
  background: #1a1a2e;
  color: #fff;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  vertical-align: top;
}

tr:hover td {
  background: #f9f9ff;
}

td.num {
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

td.date {
  white-space: nowrap;
}

td.empty {
  text-align: center;
  color: #999;
  padding: 40px;
  font-style: italic;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.pagination a,
.pagination .current {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}

.pagination a {
  background: #fff;
  color: #1a1a2e;
  border: 1px solid #ddd;
}

.pagination a:hover {
  background: #1a1a2e;
  color: #fff;
}

.pagination .current {
  background: #1a1a2e;
  color: #fff;
  font-weight: 700;
}

footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 11px;
  color: #888;
}
