:root {
  --bg-1: #f6f4ee;
  --bg-2: #ece7dd;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #0f766e;
  --brand-2: #115e59;
  --line: #e6e1d7;
  --danger: #b42318;
  --radius: 16px;
}

* { box-sizing: border-box; }
body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 420px at 0% -20%, #fff8ea 0%, transparent 70%),
    radial-gradient(900px 320px at 100% -10%, #dcf8f2 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

h1, h2, h3, .navbar-brand {
  font-family: 'Fraunces', serif;
  letter-spacing: 0.2px;
}

.app-nav {
  background: linear-gradient(100deg, var(--brand-2), var(--brand));
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.nav-action {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
}

.page-title {
  font-size: 1.15rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.table {
  --bs-table-bg: transparent;
}

.form-control,
.form-select,
.btn {
  min-height: 44px;
  border-radius: 12px;
}

.form-control,
.form-select {
  border-color: #d8d4c9;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-2);
  border-color: var(--brand-2);
}

.btn i.bi {
  font-size: 1rem;
  line-height: 1;
}

.icon-only {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kpi {
  font-size: 1.35rem;
  font-weight: 800;
}

.badge.bg-overdue { background: var(--danger); }
.badge.bg-due { background: #b7791f; }
.badge.bg-ok { background: #1f7a5a; }

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  height: 60px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #ddd6c8;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mobile-tabbar a {
  text-decoration: none;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-tabbar a:hover {
  color: var(--brand);
}

@media (min-width: 992px) {
  .mobile-tabbar { display: none; }
}
