/* Logowanie i panel administratora (wersja 1.2). Korzysta ze zmiennych i klas z style.css. */

a.brand { color: #fff; text-decoration: none; }

.login-card { width: min(440px, 100%); }
.login-card h1 { margin-bottom: 18px; }
.login-card .alert { margin: 0 0 16px; }
.login-form { display: grid; gap: 14px; }
.login-form .button-blue { margin-top: 4px; }

.panel .eyebrow { margin-bottom: 12px; }
.panel-tabs { margin-bottom: 18px; flex-wrap: wrap; }
.panel-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}
.panel-tabs a:hover { color: var(--blue-dark); background: var(--blue-soft); }
.panel-tabs a.is-active { color: #fff; background: var(--blue); box-shadow: 0 6px 15px rgba(36, 104, 169, 0.23); }
.panel-alert { margin: 0 0 18px; }

.panel-card { margin-bottom: 18px; padding: 20px 22px; overflow: visible; }
.panel-card.narrow { max-width: 520px; }
.panel-card h2 { margin: 0 0 14px; font-size: 17px; letter-spacing: -0.02em; }
.panel-card h3 { margin: 18px 0 8px; font-size: 14px; }
.panel-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.panel-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; margin-bottom: 12px; }
.panel-form.stacked { grid-template-columns: 1fr; }
.panel-form .button { width: 100%; }
.inline { display: inline; margin: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: 0.06em; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.is-muted td { color: #8b9aa7; }
td.empty { color: var(--muted); text-align: center; }
td.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
code { font-size: 12px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.badge-ok { color: var(--green-dark); background: var(--green-soft); }
.badge-off { color: var(--red-dark); background: var(--red-soft); }

.button-small { min-height: 30px; padding: 0 11px; border: 1px solid var(--blue-border); border-radius: 8px; color: var(--blue-dark); background: #fff; font-size: 12px; font-weight: 750; }
.button-small:hover { background: var(--blue-soft); }
.button-small.danger { border-color: var(--red-border); color: var(--red-dark); }
.button-small.danger:hover { background: var(--red-soft); }

details summary { min-height: 30px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-dark); font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { background: var(--blue-soft); }
.mini-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mini-form input { height: 32px; padding: 0 9px; border: 1px solid #bfd0de; border-radius: 8px; font-size: 12px; }

.block-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; margin: 0 0 16px; }
.facts div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.facts dt { color: var(--muted); font-size: 11px; font-weight: 750; }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 750; }
.panel-note + form { margin-top: 12px; }
