/* Global app baseline styles for readable internal tooling UI */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  color: #1d2430;
}

.topbar {
  background: #0e2a47;
  color: #fff;
  padding: 12px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.topbar h1 {
  margin: 0;
  font-size: 16px;
}

.topbar nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 12px;
}

.container {
  max-width: 1150px;
  margin: 20px auto;
  padding: 0 14px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.narrow {
  max-width: 480px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.full-width {
  grid-column: 1 / -1;
}

input,
select,
textarea,
button {
  padding: 8px;
  border: 1px solid #b9c2cf;
  border-radius: 4px;
  font-size: 14px;
}

button {
  cursor: pointer;
  background: #1d5fa7;
  color: #fff;
  border: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th,
td {
  border-bottom: 1px solid #e0e4ea;
  text-align: left;
  padding: 9px;
  vertical-align: top;
}

.inline-form {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.mt {
  margin-top: 16px;
}

.flash {
  margin: 12px auto;
  max-width: 1150px;
  padding: 10px 14px;
  border-radius: 6px;
}

.flash.success {
  background: #def7e5;
  color: #0f5d27;
}

.flash.error {
  background: #ffe5e5;
  color: #8c2323;
}

.flash.info {
  background: #e7f1ff;
  color: #164c8f;
}

.unread-row td {
  font-weight: 700;
}

.comment {
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fafcff;
}
