* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f6f8;
    color: #222;
}
.topbar {
    background: #0f2f4d;
    color: #fff;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; }
.logo { height: 36px; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-size: 14px; }
.nav a:hover { text-decoration: underline; }
.who { font-size: 13px; opacity: .85; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.hero { text-align: center; padding: 40px 20px; background: #fff; border-radius: 10px; margin-bottom: 24px; }
.hero h1 { color: #0f2f4d; }

.btn, button, input[type=submit] {
    background: #e2790a;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}
.btn:hover, button:hover { background: #c9690a; }

form { display: flex; flex-direction: column; gap: 10px; max-width: 500px; }
input, select, textarea {
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}
label { font-weight: 600; font-size: 13px; margin-top: 6px; }

.panel { background: #fff; padding: 20px; border-radius: 10px; margin-bottom: 20px; max-width: 500px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.cards { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.card { background: #fff; padding: 20px; border-radius: 10px; text-align: center; flex: 1; min-width: 140px; }
.card h3 { margin: 0; font-size: 26px; color: #0f2f4d; }
.card p { margin: 4px 0 0; color: #666; font-size: 13px; }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.table th { background: #0f2f4d; color: #fff; }

.badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; color: #fff; background: #999; }
.status-pending { background: #999; }
.status-preparing { background: #e2790a; }
.status-ready { background: #2e9e5b; }
.status-picked_up { background: #3a7bd5; }
.status-delivered, .status-completed { background: #0f2f4d; }
.status-served { background: #0f2f4d; }
.status-cancelled { background: #c0392b; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.menu-item { background: #fff; padding: 16px; border-radius: 10px; }
.menu-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }
.menu-item .price { color: #e2790a; font-weight: bold; }
.menu-item .desc { font-size: 13px; color: #666; }
.menu-item form { flex-direction: row; gap: 8px; max-width: none; }

.kds-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kds-card { background: #fff; padding: 16px; border-radius: 10px; border-left: 5px solid #999; }
.kds-card.status-pending { border-color: #999; }
.kds-card.status-preparing { border-color: #e2790a; }
.kds-card.status-ready { border-color: #2e9e5b; }
.kds-card.status-picked_up { border-color: #3a7bd5; }
.kds-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.table-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.table-box { background: #fff; padding: 16px; border-radius: 8px; text-align: center; min-width: 90px; border: 2px solid #ccc; }
.table-box.status-free { border-color: #2e9e5b; }
.table-box.status-occupied { border-color: #e2790a; }
.table-box.status-reserved { border-color: #3a7bd5; }

.status-tracker { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.status-tracker .step { padding: 8px 14px; border-radius: 20px; background: #eee; color: #999; font-size: 13px; }
.status-tracker .step.done { background: #0f2f4d; color: #fff; }

.auth-box { max-width: 380px; margin: 60px auto; background: #fff; padding: 30px; border-radius: 10px; }
.filters { margin-bottom: 16px; }
.filters a { margin-right: 8px; color: #0f2f4d; text-decoration: none; }
.alert-error { background: #fdecea; color: #c0392b; padding: 10px; border-radius: 6px; }
.alert-success { background: #eafaf1; color: #1e8449; padding: 10px; border-radius: 6px; }
.footer { text-align: center; padding: 20px; color: #888; font-size: 13px; }
