/* KFC Lesson Booker */

.kfc-lb {
    max-width: 520px;
    margin: 1.5em auto;
    box-sizing: border-box;
}

.kfc-lb *,
.kfc-lb *::before,
.kfc-lb *::after {
    box-sizing: border-box;
}

.kfc-lb-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1.5em;
    background: #fff;
}

.kfc-lb-title {
    margin-top: 0;
    margin-bottom: 0.6em;
    font-size: 1.5em;
}

.kfc-lb-label {
    display: block;
    font-weight: 600;
    margin: 0.9em 0 0.3em;
}

.kfc-lb-input {
    width: 100%;
    padding: 0.6em 0.7em;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

.kfc-lb-help {
    margin: 0.35em 0 0;
    font-size: 0.9em;
    color: #666;
}

.kfc-lb-button {
    display: inline-block;
    margin-top: 1.2em;
    padding: 0.7em 1.4em;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #0099ff 0%, #0077cc 100%);
    color: #fff;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.kfc-lb-button:hover {
    opacity: 0.92;
    color: #fff;
}

.kfc-lb-button--renew {
    background: linear-gradient(135deg, #e67e00 0%, #b85e00 100%);
}

.kfc-lb-position {
    font-size: 1.2em;
}

.kfc-lb-muted {
    color: #666;
    font-size: 0.95em;
    margin-top: 1em;
}

.kfc-lb-error {
    color: #b00020;
    font-weight: 600;
}

/* Expired-membership styling — re-declared so this screen looks the same as the
   kfc-attendance expired screen even when that plugin's stylesheet isn't loaded. */
.kfc-lb-result--expired .kfc-lb-title,
.kfc-lb .kfc-attendance-title {
    color: #8a6100;
}

.kfc-lb-expiry-alert,
.kfc-lb .kfc-attendance-expiry-alert {
    font-size: 1.4em;
    font-weight: 700;
    color: #8a6100;
    margin: 0.5em 0;
}

/* ---- Coach board ---- */

.kfc-lb-board {
    max-width: 760px;
}

.kfc-lb-board-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75em;
    margin-bottom: 1em;
}

.kfc-lb-coach-select {
    padding: 0.5em 0.7em;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}

.kfc-lb-queue {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kfc-lb-row {
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    margin-bottom: 0.6em;
    overflow: hidden;
}

.kfc-lb-row-main {
    display: flex;
    align-items: center;
    gap: 0.75em;
    padding: 0.75em 1em;
}

.kfc-lb-pos {
    flex: 0 0 auto;
    width: 1.9em;
    height: 1.9em;
    line-height: 1.9em;
    text-align: center;
    border-radius: 50%;
    background: #0099ff;
    color: #fff;
    font-weight: 700;
}

.kfc-lb-row-name {
    flex: 1 1 auto;
    font-weight: 600;
}

.kfc-lb-row-weapon {
    flex: 0 0 auto;
    color: #555;
}

.kfc-lb-row-coach {
    flex: 0 0 auto;
    color: #0077cc;
    font-size: 0.9em;
    background: #eaf6ff;
    border-radius: 6px;
    padding: 0.1em 0.5em;
}

.kfc-lb-board-head select.kfc-lb-coach-select {
    margin-left: 0.4em;
}

.kfc-lb-showall {
    margin-left: 0.6em;
    font-size: 0.9em;
    color: #555;
    white-space: nowrap;
}

.kfc-lb-row-absent {
    flex: 0 0 auto;
    color: #8a6100;
    font-size: 0.85em;
    background: #fff4e0;
    border-radius: 6px;
    padding: 0.1em 0.5em;
}

.kfc-lb-expand {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    color: #0077cc;
    padding: 0.2em 0.5em;
}

.kfc-lb-tick {
    flex: 0 0 auto;
    border: none;
    border-radius: 8px;
    background: #2e8b57;
    color: #fff;
    font-weight: 600;
    padding: 0.5em 0.9em;
    cursor: pointer;
}

.kfc-lb-tick:hover {
    opacity: 0.92;
}

.kfc-lb-row-detail {
    display: none;
    padding: 0 1em 0.8em 1em;
    color: #555;
    font-size: 0.95em;
}

.kfc-lb-row.is-open .kfc-lb-row-detail {
    display: block;
}

.kfc-lb-empty {
    color: #666;
    font-style: italic;
}

.kfc-lb-notice {
    padding: 0.8em 1em;
    border-radius: 8px;
    margin-bottom: 1em;
}

.kfc-lb-notice--error {
    background: #fdecea;
    color: #b00020;
}

@media (max-width: 600px) {
    .kfc-lb-row-main { flex-wrap: wrap; }
    .kfc-lb-tick { width: 100%; margin-top: 0.4em; }
}
