:root {
  --fmu-navy: #24469a;
  --fmu-orange: #f6891f;
  --fmu-orange-dark: #d1741a;
  --fmu-blue: #1c4bd1;
}

* { box-sizing: border-box; }

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background: #f4f6f8;
  color: #222;
}

a { color: var(--fmu-blue); }

.site-header {
  background: var(--fmu-navy);
  color: #fff;
  padding: 1rem 2rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.site-header h1 {
  margin: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.nav-logout-form {
  display: inline;
  margin: 0;
  max-width: none;
}

.nav-link-button {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.9;
  cursor: pointer;
}

.nav-link-button:hover {
  opacity: 1;
  text-decoration: underline;
  background: none;
}

.container {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

label { font-weight: bold; margin-top: 0.5rem; }
input, select, textarea { padding: 0.5rem; font-size: 1rem; font-family: inherit; }
textarea { resize: vertical; }

code {
  background: #eef1f5;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.settings-logo-preview { max-height: 80px; max-width: 100%; }
.site-logo { max-height: 48px; display: block; }

button {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--fmu-orange);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
}
button:hover { background: var(--fmu-orange-dark); }
button:disabled { background: #ccc; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid #ddd; }

.alert { padding: 0.75rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-success { background: #e6f4ea; color: #1e7e34; }
.alert-error { background: #fdecea; color: #a71d2a; }
.alert-info { background: #e8edfb; color: var(--fmu-navy); }

.inline-form {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  max-width: none;
  margin: 0;
}
.inline-form input { width: auto; }
.inline-form button { margin-top: 0; }

.stat-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stat-card {
  background: #fff;
  border-top: 4px solid var(--fmu-orange);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  min-width: 160px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--fmu-navy);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.25rem;
}

.display-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: none;
}

.display-department {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.display-department h2 {
  margin-top: 0;
  border-bottom: 2px solid var(--fmu-navy);
  padding-bottom: 0.5rem;
}

.display-department ol { padding-left: 1.25rem; }

.display-empty { color: #777; font-style: italic; }

.display-now { color: #1e7e34; font-weight: bold; margin-left: 0.5rem; }
