* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f0eb;
}

.header {
    background: #5f0909;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.header h3 {
    font-size: 18px;
}

.header-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.header-actions button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.header-actions button:hover {
    background: #fff;
    color: #5f0909;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.tab-btn {
    padding: 6px 14px;
    border: 2px solid #e0d6ce;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #5f0909;
    background: #e8f5e9;
}

.tab-btn.active {
    border-color: #5f0909;
    background: #5f0909;
    color: #fff;
}

/* ===== WADAH KATEGORI (tab-wrapper) ===== */
.tab-wrapper { 
    display: flex; 
    gap: 6px; 
    margin-bottom: 12px; 
    flex-wrap: wrap; 
    background: white;      /* ← tambahkan ini untuk background kategori */
    padding: 10px;            /* ← tambahkan padding biar rapi */
    border-radius: 10px;      /* ← opsional */
}

/* ===== WADAH MENU (menu-grid) ===== */
.menu-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 6px; 
    max-height: 250px; 
    overflow-y: auto; 
    padding-right: 4px; 
    background: #f8f4f0;            /* ← tambahkan ini untuk background menu */
    padding: 10px;                    /* ← tambahkan padding biar rapi */
    border-radius: 10px;              /* ← opsional */
    border: 1px solid #e8e0d8;      /* ← tambahkan border biar keliatan */
}

.menu-btn {
    padding: 6px 10px;
    border: 2px solid #e0d6ce;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
    transition: all 0.2s;
}

.menu-btn:hover {
    border-color: #5f0909;
    background: #e8f5e9;
}

.menu-btn.habis {
    opacity: 0.5;
    background: #f8d7da;
    cursor: not-allowed;
    border-color: #dc3545;
}

.menu-btn .harga {
    float: right;
    color: #5f0909;
    font-weight: 600;
}

.menu-btn.habis .harga {
    color: #999;
}

.selected-items {
    margin: 12px 0;
    max-height: 220px;
    overflow-y: auto;
}

.selected-item {
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    background: #f8f4f0;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}

.selected-item .row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-item .qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.selected-item .qty-control button {
    border: none;
    background: #ddd;
    border-radius: 4px;
    padding: 0 6px;
    cursor: pointer;
    font-size: 14px;
}

.selected-item .remove {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
    margin-left: 6px;
}

.item-catatan {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 4px;
    width: 100%;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    display: block;
    margin-bottom: 3px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 6px 10px;
    border: 2px solid #e0d6ce;
    border-radius: 6px;
    font-size: 14px;
}

.btn-primary {
    background: #5f0909;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #026110;
}

.btn-print {
    background: #17a2b8;
    color: #fff;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
}

.btn-print:hover {
    background: #138496;
}

.order-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #5f0909;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.order-header .no {
    font-weight: 700;
    font-size: 15px;
}

.order-items {
    font-size: 13px;
    margin: 6px 0;
}

.order-items .item {
    padding: 2px 0;
    border-bottom: 1px dashed #f0ebe6;
    display: flex;
    justify-content: space-between;
}

.order-total {
    font-weight: 700;
    font-size: 17px;
    color: #8B0000;
    margin-top: 4px;
}

.orders-list {
    max-height: 500px;
    overflow-y: auto;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}

.toast.show {
    opacity: 1;
}

.text-muted {
    color: #999;
}

.badge-tunai {
    background: #d4edda;
    color: #155724;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.badge-qris {
    background: #cce5ff;
    color: #004085;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.group-label {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}