/* billFT Dashboard — shared styles */

/* ── Nav bar ── */
.dash-nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  flex-wrap: wrap;
}
.dash-nav a {
  display: inline-block;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.dash-nav a:hover { color: #FF9800; }
.dash-nav a.active { color: #FF9800; border-bottom-color: #FF9800; }
.dash-nav .spacer { flex: 1; }
.dash-nav .user-info { font-size: 13px; color: #888; padding: 14px 0 14px 12px; }
.dash-nav a#dash-logout { color: #d32f2f; font-weight: 600; }

/* ── Page wrapper ── */
.dash-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.dash-page.narrow { max-width: 800px; }

/* ── Toolbar row ── */
.dash-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.dash-toolbar h2 {
  font-size: 20px;
  color: #222;
  margin: 0;
  flex: 1;
}

/* ── Period buttons ── */
.period-btns button {
  padding: 7px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  margin-left: 4px;
  transition: 0.15s;
}
.period-btns button.active,
.period-btns button:hover { background: #FF9800; color: #fff; border-color: #FF9800; }

/* ── Generic card ── */
.section-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  padding: 24px;
  margin-bottom: 20px;
}
.section-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-card h3 .badge {
  font-size: 11px;
  background: #FF9800;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* ── Inline message (ok / err) ── */
.msg {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 4px;
  margin-top: 10px;
  display: none;
}
.msg.ok  { background: #e8f5e9; color: #2e7d32; }
.msg.err { background: #fff3cd; color: #555; border-left: 3px solid #FF9800; }

/* ── Loading / empty state ── */
.loading { text-align: center; color: #aaa; padding: 48px 0; }
