/* Kitchen Display — always dark, designed for mounted screen */

.kitchen-body {
    background: #0a1018;
    color: #f0ece4;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Header ─────────────────────────────────── */
.kitchen-wrap { display: flex; flex-direction: column; height: 100vh; }

.kitchen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 64px;
    background: #080e16;
    border-bottom: 1px solid rgba(200,136,30,0.2);
    flex-shrink: 0;
    gap: 1rem;
}

.kitchen-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.kitchen-logo .logo-icon {
    font-size: 1.6rem;
    color: #c8881e;
    font-weight: 700;
}

.kitchen-logo .logo-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #f0ece4;
}

.kitchen-label {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #8a9bb0;
    font-weight: 500;
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 0.75rem;
    margin-left: 0.25rem;
}

/* ── Stats bar ──────────────────────────────── */
.kitchen-stats {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.3rem 1.25rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    min-width: 80px;
}

.stat-chip.overdue { border-color: rgba(224,85,85,0.3); }

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f0ece4;
    line-height: 1.2;
}

.stat-chip.overdue .stat-value { color: #e05555; }

.stat-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a9bb0;
    font-weight: 500;
}

.kitchen-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: #8a9bb0;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* ── Board ──────────────────────────────────── */
.kitchen-board {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    align-content: start;
}

.empty-board {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 200px;
    color: #4a5568;
}

.empty-icon { font-size: 3rem; }
.empty-board p { font-size: 1rem; font-weight: 500; }

/* ── Order Card ─────────────────────────────── */
.order-card {
    background: #141d2b;
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 4px solid #c8881e;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    transition: border-color 0.3s;
}

.order-card.overdue { border-left-color: #e05555; }
.order-card.ready   { border-left-color: #3aaa6e; }

/* ── Card Header ────────────────────────────── */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-badge {
    background: #c8881e;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.order-num {
    font-size: 0.8rem;
    color: #8a9bb0;
    font-weight: 500;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.elapsed-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    color: #e8ddd0;
}

.elapsed-badge.overdue {
    background: rgba(224,85,85,0.2);
    color: #f87171;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #8a9bb0;
}

.status-badge.ready { color: #3aaa6e; }

/* ── Card Items ─────────────────────────────── */
.card-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.card-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.card-item:last-child { border-bottom: none; }

.item-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #8a9bb0;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.item-check.checked {
    background: #3aaa6e;
    border-color: #3aaa6e;
}

.item-check.checked::after {
    content: '✓';
    font-size: 11px;
    color: #fff;
    font-weight: 700;
}

.item-body { flex: 1; min-width: 0; }

.item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f0ece4;
    display: flex;
    gap: 0.4rem;
    align-items: baseline;
}

.item-qty {
    font-size: 0.75rem;
    color: #c8881e;
    font-weight: 700;
}

.item-mods {
    font-size: 0.72rem;
    color: #8a9bb0;
    margin-top: 1px;
}

.item-allergy-tag {
    font-size: 0.7rem;
    color: #f87171;
    font-weight: 600;
}

/* ── Allergy Banner ─────────────────────────── */
.order-notes {
    background: rgba(224,85,85,0.12);
    border: 1px solid rgba(224,85,85,0.25);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    color: #f87171;
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
}

.notes-label { font-weight: 700; flex-shrink: 0; }

/* ── Card Actions ───────────────────────────── */
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-ready {
    background: #c8881e;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}
.btn-ready:hover { background: #e09a2a; }

.btn-recall {
    background: transparent;
    color: #8a9bb0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.6rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.btn-recall:hover { border-color: #8a9bb0; color: #f0ece4; }

/* ── Login page (reused from base) ─────────── */
.login-page .login-card { border-color: rgba(200,136,30,0.2); }

/* ── Courses on kitchen ticket ─────────────────── */
.kitchen-course-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c8881e;
    font-weight: 700;
    padding: 0.5rem 0.85rem 0.2rem;
    border-top: 1px dashed #e5ddd5;
    margin-top: 0.35rem;
}
.kitchen-course-header:first-child { border-top: 0; margin-top: 0; }
.item-modifier { color: #2d6a30 !important; font-weight: 500; }
.kitchen-more-coming {
    text-align: center;
    color: #8a7a64;
    font-size: 0.7rem;
    font-style: italic;
    padding: 0.4rem 0;
    margin-top: 0.3rem;
}
