* { box-sizing: border-box; }
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #fbf8f4;
  color: #2b2a26;
  margin: 0;
  padding: 0;
}

/* Topbar / navigation */
.topbar {
  background: #fbf8f4;
  border-bottom: 1px solid #e3ddd2;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar .brand { display: flex; align-items: center; gap: 12px; }
.topbar-logo { height: 30px; width: auto; display: block; }
.topbar-title { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #8a8578; }
.topbar-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.topbar-nav a {
  color: #6b675e;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 2px;
}
.topbar-nav a:hover { color: #2b2a26; background: #f1ece2; }
.topbar-nav a.active { color: #2b2a26; font-weight: 700; }
.topbar-user { font-size: 12px; color: #8a8578; padding: 8px 12px; }

.wrap { max-width: 960px; margin: 40px auto; padding: 0 20px; }

.card {
  background: #fff;
  border: 1px solid #e3ddd2;
  border-radius: 3px;
  padding: 26px 28px;
  margin-bottom: 24px;
}

h1, h2 { margin-top: 0; font-weight: 400; color: #2b2a26; }
h2 { font-size: 19px; }
h3 { color: #2b2a26; }

label { display: block; font-size: 12px; letter-spacing: 0.5px; font-weight: 700; margin: 16px 0 6px; color: #55524a; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d3c6;
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #2b2a26;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #2b2a26; }
textarea { min-height: 70px; resize: vertical; }

button, .btn {
  display: inline-block;
  background: #2b2a26;
  color: #fbf8f4;
  border: none;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  margin-top: 18px;
  text-decoration: none;
  transition: background 0.15s ease;
}
button:hover, .btn:hover { background: #45443d; }

.btn.secondary {
  background: transparent;
  color: #55524a;
  border: 1px solid #d9d3c6;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 0;
}
.btn.secondary:hover { background: #f1ece2; color: #2b2a26; }
.btn.approve { background: #3b6d11; margin-top: 0; padding: 7px 14px; font-size: 11px; letter-spacing: 1px; }
.btn.approve:hover { background: #2c5209; }
.btn.reject { background: #a32d2d; margin-top: 0; padding: 7px 14px; font-size: 11px; letter-spacing: 1px; }
.btn.reject:hover { background: #832121; }

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
code { background: #f1ece2; padding: 2px 6px; border-radius: 2px; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #eee6d8; font-size: 14px; vertical-align: top; }
th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #8a8578; font-weight: 700; }

.badge { color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 11px; letter-spacing: 0.5px; }

.stat { display: inline-block; background: #f7f3ea; border-radius: 3px; padding: 14px 20px; margin-right: 12px; margin-bottom: 8px; }
.stat .num { font-size: 24px; font-weight: 700; color: #2b2a26; }
.stat .lbl { font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: #8a8578; margin-top: 2px; }

.metric-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.metric-card { flex: 1; min-width: 150px; background: #f7f3ea; border-radius: 3px; padding: 18px 20px; }
.metric-card .metric-num { font-size: 30px; font-weight: 700; color: #2b2a26; line-height: 1.1; }
.metric-card .metric-lbl { font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: #8a8578; margin-top: 6px; }
.metric-card .metric-sub { font-size: 12px; color: #6b675e; margin-top: 4px; }

.progress-track { background: #eee6d8; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 10px; }
.progress-fill { background: #2b2a26; height: 100%; border-radius: 3px; }

.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-row .bar-label { width: 130px; font-size: 13px; color: #55524a; flex-shrink: 0; }
.bar-row .bar-track { flex: 1; background: #f1ece2; height: 10px; border-radius: 5px; overflow: hidden; }
.bar-row .bar-fill { background: #6b8f3e; height: 100%; border-radius: 5px; }
.bar-row .bar-value { width: 60px; text-align: right; font-size: 13px; font-weight: 700; color: #2b2a26; flex-shrink: 0; }

.error { background: #fcebeb; color: #a32d2d; padding: 12px 16px; border-radius: 2px; margin-bottom: 16px; font-size: 14px; }
.success { background: #eaf3de; color: #3b6d11; padding: 12px 16px; border-radius: 2px; margin-bottom: 16px; font-size: 14px; }

.tabs { margin-bottom: 12px; display: flex; gap: 4px; }
.tabs a {
  text-decoration: none;
  color: #8a8578;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 2px;
}
.tabs a:hover { background: #f1ece2; color: #2b2a26; }
.tabs a.active { color: #fbf8f4; background: #2b2a26; }

.login-wrap { max-width: 380px; margin: 100px auto 0; text-align: center; }
.login-logo { height: 40px; width: auto; margin-bottom: 32px; }
.login-wrap .card { text-align: left; }

.small { font-size: 12px; color: #8a8578; }
