:root {
  --blue: #1f4e78;
  --blue-light: #d9e2f3;
  --yellow: #fff2cc;
  --green: #e2f0d9;
  --border: #ccc;
  --text: #222;
  --bg: #f7f8fa;
}
* { box-sizing: border-box; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
}
header.topbar {
  background: var(--blue);
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.topbar a { color: white; text-decoration: none; font-weight: bold; }
nav.mainnav {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
nav.mainnav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
nav.mainnav a:hover { text-decoration: underline; }
nav.mainnav a.highlight {
  background: var(--yellow);
  padding: 3px 10px;
  border-radius: 4px;
}
main {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 24px 60px;
}
h1 { font-size: 22px; color: var(--blue); }
h2 { font-size: 18px; color: var(--blue); margin-top: 30px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-bottom: 16px;
}
th, td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
}
th { background: var(--blue-light); }
tr.total td { background: var(--yellow); font-weight: bold; }
tr.paid td { background: var(--green); }
tr.razlika td { background: #fdf0e6; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: white;
  border: none;
  padding: 7px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}
.btn.secondary { background: #666; }
.btn.danger { background: #a33; }
.btn.small { padding: 3px 8px; font-size: 12px; }
.btn:hover { opacity: 0.9; }
form.inline { display: inline; }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
input[type=text], input[type=number], input[type=date], input[type=time], input[type=password],
input[type=search], input[type=email],
select, textarea {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}
textarea { min-height: 60px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 180px; }
.actions { margin-top: 16px; }
.muted { color: #777; font-size: 13px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.badge.yes { background: var(--green); color: #276221; }
.badge.no { background: #f3e2e2; color: #8a2d2d; }
.login-wrap {
  max-width: 340px;
  margin: 80px auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.error { color: #a33; font-size: 13px; margin-top: 8px; }
.bulk-table th, .bulk-table td { font-size: 13px; padding: 6px 8px; vertical-align: middle; }
.bulk-table input[type=number], .bulk-table input[type=text], .bulk-table select { font-size: 13px; padding: 4px; }
.bulk-table input[type=text].ostali-opis { min-width: 110px; }
.bulk-table input[type=number].km-input, .bulk-table input[type=number].ostali-znesek { width: 80px; }
.filter-box { margin-bottom: 10px; max-width: 320px; }
.row-dimmed { opacity: 0.45; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tabs a {
  padding: 6px 14px; border-radius: 4px 4px 0 0; text-decoration: none; font-size: 13px;
  color: var(--blue); background: white; border: 1px solid var(--border); border-bottom: none;
}
.tabs a.active { background: var(--blue); color: white; }

tr.izbrana-vrstica td { background: #eef6ff; }

tr.izplacana-vrstica td { background: var(--green, #e6f4ea); color: #555; }

.topbar-desno { display: flex; align-items: center; gap: 8px; }
header.topbar .topbar-desno a.btn { color: var(--text, #222); font-weight: normal; }

/* Navodila (/pomoc) */
.pomoc { max-width: 900px; }
.pomoc h2 { margin-top: 2.2rem; padding-top: .5rem; border-top: 2px solid #dde3ea; }
.pomoc .kazalo { columns: 2; background: #f5f8fb; padding: .8rem 1.2rem; border-radius: 6px; }
.pomoc .kazalo a { display: block; padding: 2px 0; }
.pomoc figure { margin: 1rem 0; }
.pomoc figure img { max-width: 100%; border: 1px solid #c8d0da; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.pomoc figcaption { font-size: .9rem; color: #555; margin-top: .3rem; }
.pomoc .nasvet { background: #fff8e1; border-left: 4px solid #f0b400; padding: .6rem .9rem; margin: 1rem 0; border-radius: 4px; }
.pomoc .pozor { background: #fdecea; border-left: 4px solid #d93025; padding: .6rem .9rem; margin: 1rem 0; border-radius: 4px; }
.pomoc .st { display: inline-block; background: #d93025; color: #fff; border-radius: 50%; width: 1.5em; height: 1.5em; line-height: 1.5em; text-align: center; font-weight: bold; font-size: .85em; }
.pomoc kbd, .pomoc .gumb { background: #eef1f5; border: 1px solid #b9c2cf; border-radius: 4px; padding: 0 .4em; font-family: inherit; font-size: .92em; white-space: nowrap; }
@media print { header.topbar, nav.mainnav, .pomoc .kazalo { display: none; } }
