﻿.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.app-title {
  margin: 0;
  font-size: 18px;
}

.app-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 16px;
}

.app-nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}

.app-nav a:hover,
.app-nav a:focus-visible {
  background: #e2e8f0;
}

.card-like {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.card-like input,
.card-like textarea,
.card-like button {
  min-height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
}

.card-like textarea {
  min-height: 72px;
}

.card-like button {
  background: var(--accent);
  border: none;
  color: white;
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  padding: 8px;
  font-size: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}

.detail-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.detail-field input,
.detail-field textarea {
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 10px;
}

.detail-field textarea {
  min-height: 88px;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.detail-actions button {
  min-height: 38px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  font-weight: 600;
}

.ux-message {
  min-height: 20px;
  margin: 4px 0 10px;
  font-size: 13px;
  font-weight: 600;
}

.ux-message.success {
  color: #15803d;
}

.ux-message.error {
  color: #b91c1c;
}

.ux-message.info {
  color: #0f172a;
}
