/* Rezervák — administrace */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #1a1a1a; background: #f4f5f7; min-height: 100vh; }

.sidenav { position: fixed; left: 0; top: 0; bottom: 0; width: 210px; background: #131a26; color: #cfd6e0; display: flex; flex-direction: column; overflow-y: auto; }
.sidenav .logo { font-weight: 700; color: #fff; font-size: 18px; padding: 18px 20px; }
.sidenav a { color: #cfd6e0; text-decoration: none; padding: 10px 20px; font-size: 14px; }
.sidenav a:hover { background: #1d2736; color: #fff; }
.sidenav a.active { background: #24304a; color: #fff; }
.nav-bottom { margin-top: auto; padding: 14px 20px; font-size: 13px; border-top: 1px solid #24304a; display: flex; justify-content: space-between; }
.nav-bottom a { padding: 0; color: #8fa1bb; }

.content { margin-left: 210px; padding: 26px 32px; max-width: 1200px; }
.content h1 { font-size: 20px; margin-bottom: 18px; }
.content h2 { font-size: 16px; margin: 22px 0 10px; }

.card { background: #fff; border: 1px solid #e3e6ea; border-radius: 8px; padding: 16px 18px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
  .sidenav { position: static; width: 100%; }
  .content { margin-left: 0; }
}

table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e3e6ea; border-radius: 8px; overflow: hidden; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; color: #7a8699; padding: 10px 12px; border-bottom: 1px solid #e3e6ea; background: #fafbfc; }
table.list td { padding: 9px 12px; border-bottom: 1px solid #eef0f3; font-size: 14px; }
table.list tr:last-child td { border-bottom: none; }
table.list tr:hover td { background: #f8fafc; }

.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.badge-paid { background: #d9f2e0; color: #147a3d; }
.badge-pending { background: #fff3cd; color: #8a6d1a; }
.badge-held { background: #e2e8f0; color: #475569; }
.badge-cancelled { background: #fde1e1; color: #b3261e; }
.badge-expired { background: #eee; color: #888; }

.btn { display: inline-block; border: none; border-radius: 6px; padding: 8px 16px; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-ghost { background: #fff; border: 1px solid #cbd5e1; color: #1a1a1a; }
.btn-sm { padding: 4px 10px; font-size: 13px; }

form.inline { display: inline; }
label.f { display: block; font-size: 13px; margin: 10px 0 3px; color: #475569; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px 10px; font-size: 14px; width: 100%; max-width: 480px; background: #fff; }
textarea { font-family: ui-monospace, Consolas, monospace; min-height: 110px; max-width: 640px; }
.flash { background: #d9f2e0; color: #147a3d; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.err { background: #fdecea; color: #b3261e; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.muted { color: #7a8699; font-size: 13px; }
.stat { font-size: 26px; font-weight: 700; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: flex-end; }
.filters label.f { margin: 0 0 3px; }
.filters > div { min-width: 140px; }

.login-wrap { margin: 12vh auto 0; width: 340px; }
.login-wrap .card { padding: 26px; }
.login-wrap h1 { font-size: 20px; margin-bottom: 16px; text-align: center; }

.slot-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.slot-pick label { border: 1px solid #cbd5e1; border-radius: 6px; padding: 7px 4px; text-align: center; font-size: 13px; cursor: pointer; background: #fff; }
.slot-pick label.taken { background: #f2f2f2; color: #aaa; cursor: default; }
.slot-pick input { display: none; }
.slot-pick label:has(input:checked) { background: #2fb457; border-color: #2fb457; color: #fff; }
