/* CSS for Order Modal and Order Edit Modal  */
.menu-label {
  margin-left: 0.5rem;  
  font-size: 0.8rem;    
}

.btn-close-modal {
  width: 60%;
  border-radius: 20px;
  background-color: gray;
  color: white;
  border: 2px solid gray;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.btn-close-modal:hover {
  background-color: gray;
  color: white;
  opacity: 1;
}

.btn-cancel {
  width: 60%;
  border-radius: 20px;
  background-color: red;
  color: white;
  border: 2px solid red;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
  opacity: 0.9;
}

.btn-cancel:hover {
  background-color: red;
  color: white;
  opacity: 1;
}

/* Nút Đặt hàng - gradient xanh */
.btn-order {
  width: 60%;
  border-radius: 20px;
  background: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
  padding: 0.5rem 1.5rem;
  transition: background 0.3s ease;
  opacity: 0.9;
}

.btn-order:hover {
  background: var(--primary-color);
  color: white;
  opacity: 1;
}


.menu-toggle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin: 6px 4px;
  padding: 10px 16px;
  border-radius: 16px;
  background-color: white;
  color: black;
  font-size: 0.9rem;
}

/* CSS for All Modal  */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
/* Đặt ở order.css hoặc <style> trong base template */
/* .global-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.global-modal-overlay .spinner-border {
  width: 2rem;
  height: 2rem;
} */


.overlay .modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
}


/* CSS for Order History */  
  html:has(#order-history-container),
  body:has(#order-history-container) {
    height: 100vh;
    overflow: hidden; 
    margin: 0;
  }

  .order-history-container{
    padding: 2rem;
    padding-bottom: 4.6rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }
  
  .order-history-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
  }
   
  .month-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    background-color: #fafafa;
    border-radius: 0.2rem;
  }
  
  .month-carousel {
    display: flex;
    width: 100%;
    gap: 0.4rem;
    transition: transform 0.3s ease;
    will-change: transform;
    padding: 0 32px;
  }
  
  .month-tab {
    flex: 0 0 20%;
    width: 80px;
    text-align: center;
    font-size: 1rem;
    color: #999;
    cursor: pointer;
    padding: 6px 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
  }
  
  .month-tab.active {
    font-weight: bold;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
  }

  .order-list-scroll {
    padding: 0 0.5rem 8rem 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
    background-color: #fafafa;
    border-radius: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    touch-action: pan-y;
  }

  .order-list-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .total_amount{
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: bold;
  }

  .shadow-divider {
    height: 1px;
    background: #eaeaea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 1rem 0;
  }