/* Ania's panel: the site's colours, plain and quick to use on a phone. */
:root { --cream: #f5e8df; --paper: #fbf4ef; --sand: #e3c9b8; --clay: #8a5a3c; --brown: #25140c; --ink: #2c1b12;
        --muted: #6e5546; --line: rgba(37, 20, 12, .14); --ok: #3f6b45; --bad: #a33b2b;
        --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
        --sans: "Segoe UI", system-ui, -apple-system, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.5 var(--sans); }
.shell { max-width: 1100px; margin: 0 auto; padding: 18px 16px 60px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font: 400 24px/1.1 var(--serif); }
.brand span { font-size: 13px; color: var(--muted); }
h1, h2 { font: 400 30px/1.1 var(--serif); margin: 0 0 12px; }
h2 { font-size: 24px; }
button { min-height: 44px; padding: 0 20px; border: 1px solid var(--brown); border-radius: 999px; background: var(--brown);
         color: var(--cream); font: 600 14px var(--sans); cursor: pointer; }
button.ghost { background: transparent; color: var(--brown); }
button.danger { background: transparent; color: var(--bad); border-color: rgba(163, 59, 43, .5); min-height: 34px; padding: 0 14px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
input, select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
                background: #fffaf6; color: var(--ink); font: 400 15px var(--sans); }
label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.card { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.login { max-width: 380px; margin: 40px auto; }
.message { min-height: 1.4em; margin: 0; font-size: 14px; }
.message.is-ok { color: var(--ok); } .message.is-error { color: var(--bad); }
.hint { color: var(--muted); font-size: 14px; max-width: 70ch; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 4px; }
.tabs button { flex: 0 0 auto; background: transparent; color: var(--brown); border-color: var(--line); }
.tabs button[aria-selected="true"] { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.toolbar strong { font: 400 22px var(--serif); }
.day { margin: 22px 0 8px; font: 400 22px var(--serif); text-transform: capitalize; }
.slot { display: grid; gap: 8px; padding: 14px 16px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.slot.is-cancelled .slot-head > :not(.slot-clear) { opacity: .55; }   /* the labels and the button keep their full colour */
button.slot-clear { min-height: 28px; padding: 0 12px; font-size: 12px; }
.slot-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.slot-time { font: 400 22px var(--serif); }
.slot-name { font-weight: 600; }
.slot-count { margin-left: auto; font-size: 14px; color: var(--muted); }
.slot-count.is-full { color: var(--clay); font-weight: 600; }
.people { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.people li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 14px; }
.people li.is-cancelled { color: var(--muted); }
.people li.is-cancelled > :not(.row-end):not(.state) { text-decoration: line-through; }   /* not on the li (it would cross out
                                                                                           the badge); "zwrot nieudany" stays readable */
.people a { color: var(--clay); }
.people .who { font-weight: 600; min-width: 150px; }
.people button { margin-left: auto; }
.empty { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-weight: 600; color: var(--muted); white-space: nowrap; }
.schedule input, .schedule select { min-height: 36px; padding: 4px 8px; min-width: 70px; }
.schedule input[type="checkbox"] { width: 20px; min-height: 20px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 14px 0 6px; }
.two { display: grid; gap: 16px; }
.blocked { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.blocked li { display: flex; align-items: center; gap: 10px; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px;
         background: var(--clay); color: var(--cream); font-size: 12px; }
.pending { margin-bottom: 26px; padding: 20px; border: 1px solid rgba(138, 90, 60, .45); border-radius: 18px; background: #fbefe6; }
.pending-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pending-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; border-radius: 14px;
                   background: var(--paper); border: 1px solid var(--line); }
.pending-list li.is-target { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(138, 90, 60, .2); }
.pending-list .when { font: 400 20px var(--serif); text-transform: capitalize; }
.pending-list .actions { display: flex; gap: 8px; margin-left: auto; }
.pending-list .actions button { min-height: 38px; }
.people .row-end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.badge-state { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.badge-state.is-active { background: #3f6b45; color: var(--cream); }
.badge-state.is-cancelled { background: var(--bad); color: var(--cream); }
.badge-state.is-pending { background: #fbefe6; color: var(--clay); border: 1px solid rgba(138, 90, 60, .45); }
.badge-state.is-lost { background: #6b3a2b; color: var(--cream); }
/* the registration card at a booking: a small link that opens the PDF */
.card-link { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(63, 107, 69, .5);
             background: rgba(63, 107, 69, .08); color: #2f5636; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.card-link:hover { background: rgba(63, 107, 69, .16); }
.people li.is-cancelled > .card-link { text-decoration: none; }
.cards { margin-top: 26px; }
.cards h2 { margin: 0 0 6px; }
button.late { background: transparent; color: #6b3a2b; border-color: rgba(107, 58, 43, .5); min-height: 34px; padding: 0 14px; font-size: 13px; }
.slot-cancelled { margin: 2px 0 0; padding: 10px 14px; border-radius: 999px; background: rgba(163, 59, 43, .08); color: var(--bad);
                  text-align: center; font-weight: 600; font-size: 14px; }
.slot-cancelled span { font-weight: 400; color: var(--muted); }
.people .state, .pending-list .state { color: var(--clay); font-weight: 600; }
.pending-list .state.is-paid { padding: 2px 10px; border-radius: 999px; background: #3f6b45; color: var(--cream); }
.pending-list .state.is-blik { padding: 2px 10px; border-radius: 999px; background: var(--clay); color: var(--cream); }
label.inline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
label.inline input { width: 18px; min-height: 18px; }
.passes td { white-space: nowrap; }
[data-cancelled-summary] { margin-bottom: 14px; }
.cancelled td { vertical-align: top; }
.cancelled .code { white-space: nowrap; }
.cancelled .small { display: block; font-size: 12px; color: var(--muted); }
.cancelled .when { min-width: 190px; }
.cancelled .when .small { display: block; font-size: 12px; color: var(--muted); }
.cancelled tr.is-future .when { font-weight: 600; }          /* sessions still ahead stand out from the history */
.passes .number { font: 600 16px var(--sans); letter-spacing: .08em; }
.passes .sessions { white-space: normal; min-width: 180px; font-size: 13px; color: var(--muted); }
.passes .sessions span { display: inline-block; margin: 0 8px 2px 0; }
.passes .sessions .off { text-decoration: line-through; }
.pass-state { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pass-state.active { background: #3f6b45; color: var(--cream); }
.pass-state.used_up, .pass-state.expired, .pass-state.cancelled { background: var(--line); color: var(--muted); }
.pass-state.unpaid { background: #fbefe6; color: var(--clay); border: 1px solid rgba(138, 90, 60, .4); }
.left-count { font-weight: 600; color: var(--brown); }
.summary-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.summary-numbers div { padding: 10px; border-radius: 12px; background: var(--cream); text-align: center; }
.summary-numbers b { display: block; font: 400 30px/1.1 var(--serif); }
.summary-numbers span { font-size: 12px; color: var(--muted); }
.status-sent { color: var(--ok); } .status-failed { color: var(--bad); font-weight: 600; } .status-pending { color: var(--clay); }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } }

.tight { margin: 0; }
