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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1c2430;
  line-height: 1.5;
}

header {
  background: #1f3a5f;
  color: #fff;
  padding: 20px 32px;
}

header h1 { font-size: 22px; }
.subtitle { font-size: 14px; opacity: 0.8; margin-top: 2px; }

.tabs {
  display: flex;
  gap: 4px;
  background: #14283f;
  padding: 0 32px;
}

.tab {
  background: none;
  border: none;
  color: #c9d4e2;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 3px solid transparent;
}

.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: #4c8bd9; }

main { max-width: 1100px; margin: 24px auto; padding: 0 32px; }

.panel { display: none; }
.panel.active { display: block; }

.card {
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

.card h2 { font-size: 16px; margin-bottom: 12px; }
.card h3 { font-size: 14px; margin-bottom: 10px; color: #44505f; }

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.row:last-child { margin-bottom: 0; }
.row.spaced { justify-content: space-between; }

.hint { font-size: 13px; color: #6b7685; margin-bottom: 8px; }
.hidden { display: none !important; }

input[type=text], input[type=number], select {
  padding: 8px 10px;
  border: 1px solid #c5ccd6;
  border-radius: 6px;
  font-size: 14px;
  min-width: 200px;
}

input[type=file] { font-size: 14px; }

button, .button {
  background: #2f6fc4;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover, .button:hover { background: #255aa0; }
button:disabled { background: #aab4c0; cursor: not-allowed; }
button.secondary { background: #e6eaef; color: #2a3543; }
button.secondary:hover { background: #d8dee6; }

.dropzone {
  border: 2px dashed #b9c4d2;
  border-radius: 8px;
  padding: 26px;
  text-align: center;
  color: #55606f;
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.dropzone.over { border-color: #2f6fc4; background: #eef4fc; }
.dropzone.dimmed { opacity: 0.55; }

.btn-big {
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  background: #2e8b57;
}
.btn-big:hover { background: #257049; }

.callout {
  background: #fff7e6;
  border: 1px solid #f0d9a8;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  color: #6b5a2e;
  margin-bottom: 10px;
}

.busy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 45, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.busy-box {
  background: #fff;
  border-radius: 10px;
  padding: 24px 32px;
  text-align: center;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 4px solid #d6dee8;
  border-top-color: #2f6fc4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#reviewTable select.doelmap,
#reviewTable input.doelmap-custom {
  min-width: 320px;
  font-size: 12px;
  margin-bottom: 6px;
}

.object-info {
  border: 1px solid #d6dee8;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.object-info strong,
.object-info span {
  display: block;
}

.object-info span {
  color: #6b7685;
  font-size: 13px;
  margin-top: 3px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.badge.high { background: #2e8b57; }
.badge.mid { background: #d98c1f; }
.badge.low { background: #c0392b; }

.status { font-size: 13px; margin-top: 8px; }
.status.ok { color: #2e8b57; }
.status.err { color: #c0392b; }
.status.busy { color: #6b7685; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap { overflow-x: auto; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #ebeef2; }
th { color: #55606f; font-weight: 600; background: #f7f8fa; }
tr:hover td { background: #f7f9fc; }

a { color: #2f6fc4; }
