/* Flatrock Capital — minimal light UI */
:root {
  --navy: #0B1F3A;
  --navy-soft: #1A3556;
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --text: #1A1A2E;
  --muted: #6B7280;
  --accent: #1A73E8;
  --ok: #16A34A;
  --err: #DC2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header.topbar {
  background: var(--navy); color: #fff;
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
}
header.topbar .brand { font-weight: 600; letter-spacing: 0.4px; }
header.topbar nav a { color: #fff; opacity: 0.8; margin-left: 18px; }
header.topbar nav a:hover { opacity: 1; text-decoration: none; }
.container { max-width: 980px; margin: 32px auto; padding: 0 24px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
h1 { margin: 0 0 16px; font-size: 24px; font-weight: 600; }
h2 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .col { flex: 1; min-width: 200px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; background: #fff; color: var(--text);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
.field { margin-bottom: 14px; }
button, .btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  border: none; font-size: 14px; font-weight: 500; cursor: pointer;
  background: var(--navy); color: #fff; transition: background 0.15s;
}
button:hover, .btn:hover { background: var(--navy-soft); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #F3F4F6; }
.btn-danger { background: var(--err); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
tr:hover td { background: #F9FAFB; }
.amount { font-variant-numeric: tabular-nums; text-align: right; }
.muted { color: var(--muted); font-size: 13px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #DCFCE7; color: #14532D; }
.flash.error { background: #FEE2E2; color: #991B1B; }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.login-card { max-width: 360px; margin: 100px auto; }
.login-card h1 { text-align: center; margin-bottom: 24px; }
form.inline { display: inline; }
.pdf-frame { width: 100%; height: 80vh; border: 1px solid var(--border); border-radius: 8px; }
.section-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.tag.ok { background: #DCFCE7; color: #166534; }
.tag.off { background: #F3F4F6; color: #6B7280; }
