:root{
  --bg: #f3f5f7;
  --panel: #ffffff;
  --line: #d7dee6;
  --text: #2f3a45;
  --muted: #617182;
  --accent: #2f6fed;
  --accent2: #1f8a70;

  --shadow: 0 8px 24px rgba(20, 30, 50, 0.08);
  --radius: 0px;
}

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

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

.topbar{
  background: #e9edf2;
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  max-width: 1100px;
  margin:0 auto;
  padding: 12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.brand__name{
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
  font-size: 18px;
}
.topbar__nav{
  display:flex;
  gap: 14px;
  align-items:center;
}
.toplink{
  color: var(--text);
  font-weight: 600;
  padding: 6px 8px;
  border: 1px solid transparent;
}
.toplink:hover{
  background: #f7f9fb;
  border-color: var(--line);
  text-decoration: none;
}

.hero{
  padding: 20px 0 10px;
  text-align:center;
}
.hero__title{
  margin: 12px 0 8px;
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
}
.hero__subtitle{
  margin: 0 auto 12px;
  max-width: 900px;
  color: var(--muted);
  line-height: 1.45;
}

.topMessage{
  margin: 14px auto 0;
  max-width: 1100px; /* Zmieniono z 900px */
  background: var(--bg);
  border: 1px solid #ffffff; /* Cienka biała kreska */
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.topMessage a{ font-weight: 800; }

.panel{
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-top: 10px;
}
.panel__header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.panel__title{
  font-weight: 900;
  font-size: 18px;
}
.panel__status{
  color: var(--muted);
  font-weight: 600;
}

.filters{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items:end;
}
@media (max-width: 980px){
  .filters{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .filters{ grid-template-columns: 1fr; }
}

.field label{
  display:block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}
.label--ghost{ opacity:0; }

.select{
  width:100%;
  border: 1px solid #b7c4d1;
  background: #ffffff;
  color: var(--text);
  padding: 10px 10px;
  font-size: 15px;
  border-radius: var(--radius);
  outline: none;
}
.select:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,111,237,0.18);
}

.field--btn{ display:flex; flex-direction:column; }
.btn{
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  font-size: 15px;
  padding: 10px 12px;
  cursor:pointer;
  border-radius: var(--radius);
}
.btn:hover{ filter: brightness(0.96); }
.btn:active{ transform: translateY(1px); }

.underbar{
  display:flex;
  gap: 12px;
  align-items:center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.linkBtn{
  display:inline-block;
  border: 1px solid var(--accent2);
  color: var(--accent2);
  font-weight: 900;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: #ffffff;
}
.linkBtn:hover{
  background: #f4fbf8;
  text-decoration: none;
}

.muted{ color: var(--muted); }

.recent{
  margin-top: 14px;
}
.recent__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 6px 2px;
}
.recent__title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

/* Tabela „Excel” */
.tableWrap{
  overflow:auto;
  background:#fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 980px;
}
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid #edf1f5;
  text-align:left;
  vertical-align: middle;
  color: var(--text);
}

/* nagłówki zostają mocniejsze */
.table thead th{
  background: #f7f9fb;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
  color: var(--muted);
}

/* komórki: normalna czcionka */
.table tbody td{
  font-weight: 400;
}

/* zebra */
.table tbody tr:nth-child(odd){ background: #ffffff; }
.table tbody tr:nth-child(even){ background: #f7f9fb; }

.table td.mutedCell{
  color: var(--muted);
  font-weight: 400;
}

.smallBtn{
  display:inline-block;
  border: 1px solid var(--accent);
  background: #ffffff;
  color: var(--accent);
  padding: 6px 10px;
  font-weight: 800;
  cursor:pointer;
  border-radius: var(--radius);
}
.smallBtn:hover{
  background: #eef4ff;
  text-decoration:none;
}

.footer{
  margin: 16px 0 6px;
  text-align:center;
}
