* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f4f6f7;
  color: #1a1a1a;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

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

.brand-title {
  font-size: 20px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 13px;
  color: #67717a;
}

.panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(17, 28, 36, 0.08);
  margin-bottom: 24px;
}

.card {
  background: #f9fafb;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid .full {
  grid-column: span 2;
}

label span {
  display: block;
  font-size: 13px;
  color: #44515a;
  margin-bottom: 6px;
}

input,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d6dbe0;
  background: #ffffff;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn.primary {
  background: #2f7d32;
  color: #ffffff;
}

.btn.outline {
  background: transparent;
  border: 1px solid #c2cad0;
  color: #222;
}

.btn.ghost {
  background: transparent;
  color: #444;
}

.btn.danger {
  background: #c62828;
  color: #fff;
}

.hidden {
  display: none;
}

.error {
  color: #b00020;
  margin-top: 12px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #e2e6ea;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #6b7480;
  padding: 8px 4px 0;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .grid .full {
    grid-column: span 1;
  }
}
