*, *::before, *::after {
    box-sizing: border-box;
}
html {
    font-size: 112.5%;
    -webkit-text-size-adjust: 100%;
}
@media (min-width: 900px) {
    html {
        font-size: 100%;
    }
}
:root {
    --bar-col: 4rem;
    --bar-w: 2.5rem;
    --plot-h: 16rem;
}
body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-size: 1rem;
}
h3 {
    background-color: #78A1BB;
    font-size: 1.3rem;
}
header {
    background-color: #78A1BB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 1rem;
}
header h1,
header h2 {
    font-size: 1.6rem;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    padding: 0 0.5rem;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background-color: #a3a3a3;
    border-radius: 0.4rem;
    margin: 1rem;
    width: min(100% - 2rem, 28rem);
}
form input,
form select,
form textarea {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    min-height: 2.75rem;
}
.chart {
    align-self: center;
    margin-top: auto;
    margin-bottom: 1.5rem;
    border: 3px solid #a3a3a3;
    border-radius: 0.4rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    min-width: 0;
}
.row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--bar-col);
    flex: 0 0 var(--bar-col);
}
.bar-plot {
    height: var(--plot-h);
    width: var(--bar-col);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}
.bar {
    position: relative;
    width: var(--bar-w);
    height: var(--bar-height);
    background-color: #283044;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.value {
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    line-height: 1;
    padding-top: 0.25rem;
}
.bar.low .value {
    position: absolute;
    bottom: 100%;
    padding: 0 0 0.25rem;
    color: #000;
}
.label {
    margin-top: 0.5rem;
    width: var(--bar-col);
    min-height: 2.4em;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: normal;
    word-break: normal;
}
footer {
    margin-top: auto;
    background-color: #78A1BB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}
button {
    background-color: #283044;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    min-height: 2.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}
button:hover {
    background-color: #1a1a1a;
    transition: background-color 0.3s ease;
}
.radio-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    width: 100%;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}
form .radio-group input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    min-height: 0;
    margin: 0;
}
.nav-top{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    background-color: #78A1BB;
}
.nav-top * {
    padding: 0.5rem 1rem;
    text-decoration: none;
}
.nav-top > a {
    justify-self: center;
    padding: 0;
}
.nav-top > h5:last-child {
    justify-self: end;
}
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}
.nav-top > h5:last-child {
grid-column: 3;
justify-self: end;
}
section{
    justify-content: center;
    align-items: center;
    text-align: center;
}
.panel {
    margin-bottom: 1.5rem;
}
.panel table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    border: 1px solid #a3a3a3;
}
.panel tr{
    border-bottom: 1px solid #a3a3a3;
    border-top: 1px solid #a3a3a3;
}
.panel tr:nth-child(even) {
    background-color: #eee;
}
.panel th,
.panel td {
    padding: 0.5rem;
}
.przyciski {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}
.paginacja {
    padding-top: 1rem;
}
.paginacja span {
    align-self: center;
}
.paginacja button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
button.usun {
    background-color: #a33;
    min-height: 2rem;
    padding: 0.25rem 0.75rem;
}
button.usun:hover {
    background-color: #7a1f1f;
}
.panel [hidden] {
    display: none;
}
img {
    height: 5rem;
    width: auto;
}
@view-transition {
    navigation: auto;
}