﻿:root {
  --bg: #f4f8f8;
  --card: #ffffff;
  --text: #18313a;
  --muted: #4f6a74;
  --line: #d8e2e6;
  --brand: #0b8f80;
  --brand-dark: #0a6b87;
  --accent: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background: radial-gradient(circle at 10% -10%, #dbf4ef 0%, var(--bg) 34%, #eef4f7 100%);
  color: var(--text);
}

.page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.1rem;
}

.hero {
  background: linear-gradient(125deg, #12333f 0%, #135363 45%, #1d7b7a 100%);
  color: #eaf8f8;
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 10px 24px rgba(7, 30, 40, 0.24);
}

.kicker {
  margin: 0;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.75rem;
  color: #9de2da;
}

.hero h1 {
  margin: 0.5rem 0;
  font-size: 1.8rem;
}

.lead {
  margin: 0;
  color: #cae8ee;
}

.tabs {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tab {
  border: 1px solid var(--line);
  background: #f8fbfc;
  color: var(--muted);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.status {
  min-height: 24px;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.view {
  display: none;
  margin-top: 0.4rem;
}

.view.active {
  display: block;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 0.8rem;
  padding: 1rem;
}

.card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.7rem;
}

.filters-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.label-wide {
  grid-column: span 2;
}

.checkbox {
  justify-content: center;
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
  color: var(--text) !important;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid #ced8dd;
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  color: var(--text);
  background: #fff;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

button:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.summary {
  color: var(--muted);
  margin: 0.5rem 0 0.7rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  background: #fff;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e9f1f4;
}

th,
td {
  border: 1px solid #e5ecef;
  padding: 0.5rem;
  font-size: 0.84rem;
  vertical-align: top;
}

th.sticky,
td.sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fbfdfe;
  min-width: 240px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.badge {
  display: inline-block;
  background: #edf6f6;
  color: #1e525a;
  border-radius: 999px;
  padding: 0.13rem 0.42rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.out {
  background: #fff3de;
  color: #985d00;
}

.total {
  margin-top: 0.35rem;
  color: #0a5d54;
  font-weight: 700;
}

.muted {
  color: #83949b;
}

.empty {
  padding: 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 1.35rem;
  }

  .label-wide {
    grid-column: span 1;
  }
}
