:root {
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.9);
  --primary: #1d4ed8;
  --primary-dark: #163ea8;
  --primary-soft: rgba(29, 78, 216, 0.08);
  --accent: #15b8a6;
  --text: #132238;
  --muted: #5e6c87;
  --border: rgba(148, 163, 184, 0.28);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --good: #22c55e;
  --mid: #f59e0b;
  --low: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  color: #0f172a;
}

.container {
  width: min(100%, 1200px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  padding: clamp(14px, 2vw, 20px);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1d4ed8;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  color: #0f172a;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: auto;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: white;
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.field-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 220px;
}

.field-group label {
  font-weight: 700;
  color: #334155;
}

.field-group select {
  width: min(100%, 260px);
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
  color: #0f172a;
  font-weight: 600;
}

.status {
  flex: 1 1 220px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.table-wrap {
  width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  display: block;
  min-height: 120px;
}

#tabelData {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  opacity: 1;
  transition: opacity 0.15s ease;
}

th,
td {
  border: 1px solid #e2e8f0;
  padding: 12px 10px;
  text-align: left;
}

th {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 220px;
  min-width: 120px;
  white-space: normal;
  line-height: 1.35;
}

th[title] {
  cursor: help;
}

tbody tr:nth-child(even) {
  background: #f8fafc;
}

tbody tr:hover {
  background: #e0f2fe;
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .header,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions,
  .field-group,
  .status {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .field-group {
    flex-direction: column;
    align-items: stretch;
  }

  .field-group select {
    width: 100%;
  }
}
