:root{
  --bg:#f4f6fb;
  --card:#fff;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --brand:#0b64d8;
  --danger:#ef4444;
  --warn:#f59e0b;
  --ok:#10b981;
  --chip:#eef2ff;
  --note:#fff7ed;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter,system-ui,Arial,sans-serif; color:var(--ink);
  background:var(--bg);
}

.site-header,.site-footer{
  border-bottom:1px solid var(--line);
  padding:.75rem 1rem;
}
.site-footer{padding-bottom: 25px; font-size:.9rem}

.container{max-width:1100px; margin:1rem auto; padding:0 1rem; margin-top: 0px; margin-bottom: 0px;}

.grid{display:grid; gap:0.75rem}
.grid-2{grid-template-columns:1fr 1fr; margin-bottom: 0.75em;}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){ .grid-2{grid-template-columns:1fr} .grid-3{grid-template-columns:1fr 1fr} }

.card{
  background:var(--card); border:1px solid var(--line); border-radius:16px;
  padding:1rem 1.2rem; box-shadow:0 2px 8px rgba(16,24,40,.04)
}
.card-title-row{display:flex; align-items:center; justify-content:space-between}
.card-head h1{margin:.25rem 0 .25rem; font-size:1.4rem}
.muted{color:var(--muted)}
.center{text-align:center}
.meta .label{font-size:.8rem; color:var(--muted)}
.meta .value{font-weight:600; margin-top:.25rem}

.table-wrap {overflow-x: auto; background: none;}
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.5cm; 
  overflow: hidden;  
  box-shadow: 0 2px 8px rgba(164, 167, 173, 0.06);
}
th,td{padding:.65rem .6rem; border-bottom:1px solid var(--line); text-align:left; font-size:.95rem}
th{background: #f8fafc; color: var(--ink); font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); padding: 0.75rem 1rem; position: relative;}
tbody tr:hover{background:#fafafa}

.legend{display:flex; align-items:center; gap:.8rem; color:var(--muted); font-size:.9rem;}
.dot{display:inline-block; width:10px; height:10px; border-radius:999px}
.dot--danger{background:var(--danger)}
.dot--warn{background:var(--warn)}
.dot--ok{background:var(--ok)}

a {text-decoration: none; color: #0b64d8;}

th {
  background: #f8fafc;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0.75rem;
}

td {
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

tbody tr:not(.row--danger):not(.row--warn):not(.row--paid):nth-child(even) {
  background: #ffffff;
}

tbody tr:last-child td {
  border-bottom: none;
}

.top-banner {
  display: block;
  text-align: center;
  height: auto;
  margin-bottom: 1rem;
  margin: 0 auto;
  padding-bottom: 0.5cm;
}

h3 {
  margin-top: 6px;
}

tbody tr {
  transition: background 0.25s ease, border-color 0.25s ease;
}

tbody tr:hover {
  background: color-mix(in srgb, currentColor 4%, transparent);
  filter: brightness(0.98);
}

td.szamlaid {
  white-space: nowrap;
}

th.szamlaosszeg, td.szamlaosszeg {
  text-align: right;
}

.topimage {
  margin-top: 16px;
}

.wrappable {
  word-break: break-all;
  white-space: normal;
  display: block;
  line-height: 1.4;
  margin-top: .25rem;
}

.textinput {
  margin-top: 0.5em;
}

.grid-3.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}