/* ---------------------
Restaurant Food Orders Manager - SANIA GHOUS
-------------------------------------- */
.adi-restuarant-food-orders-page-main {
  min-height: 95vh;
}
/* Search width: desktop fixed, mobile full */
.adi-restuarant-food-orders-page-search-wrap {
  width: 340px;
}

.adi-restuarant-food-orders-page-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* orders summary */
.adi-restuarant-food-orders-page-status-summary {
  text-align: center;
}
.adi-restuarant-food-orders-page-status-summary span {
  font-weight: 600;
  color: #000000;
}
/* search bar */
.adi-restuarant-food-orders-page-clear-search {
  color: #979797;
  font-size: 0.8rem;
}

/* Ensure columns stack well on mobile, but align on desktop */
.adi-restuarant-food-orders-page-order-content-grid > div {
  padding: 0.25rem 0;
}

/* Modal specific item list styling */
.adi-restuarant-food-orders-page-modal-item-row {
  border-radius: 0.5rem;
  transition: background-color 0.1s;
}

/* --- TAB STYLING UPDATES --- */
.adi-restuarant-food-orders-page-nav-tabs {
  border-bottom: none !important;
  padding: 0.5rem;
  margin-bottom: 12px;
}
.adi-restuarant-food-orders-page-nav-link {
  background-color: #f4f4f4;
  border: 1px solid transparent !important;
  border-radius: 0.5rem !important;
  color: #495057;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  margin: 0 0.25rem;
  padding: 0.5rem 1rem;
}
.adi-restuarant-food-orders-page-nav-link:hover {
  background-color: #f0f0f0;
  border-color: #dee2e6 !important;
}
.adi-restuarant-food-orders-page-nav-link.active {
  color: var(--color-link);
  background-color: #eef6ff;
  border-color: var(--color-link) !important;
}

.adi-restuarant-food-orders-page-copy-icon-wrapper {
  position: relative;
  display: inline-block;
}
/* === GRID LAYOUT FOR ORDER TABLE (DESKTOP) === */

.Plat-Comp-DataGridHeaderRow-adi-restuarant-food-orders-page {
  grid-template-columns: 1fr 2.1fr 2fr 0.8fr 0.6fr 1.3fr 110px;
}
.adi-restuarant-food-orders-page-order-content-grid {
  display: grid;
  grid-template-columns: 1fr 2.1fr 2fr 0.8fr 0.6fr 1.3fr 110px;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background-color: white;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.017);
  transition: background-color 0.2s ease, box-shadow 0.3s ease;
}
.adi-restuarant-food-orders-page-order-id,
.adi-restuarant-food-orders-page-item-quantity {
  color: var(--color-link);
}
.adi-restuarant-food-orders-page-item-quantity {
  filter: brightness(1.2);
}
.adi-restuarant-food-orders-page-order-id:hover {
  text-decoration: underline !important;
}
.adi-restuarant-food-orders-page-customer-phone {
  color: #000000;
}
.adi-restuarant-food-orders-page-order-time {
  font-size: 1rem;
}
.adi-restuarant-food-orders-page-accept-btn {
  background-color: var(--color-link);
  color: #fff;
}
.adi-restuarant-food-orders-page-accept-btn:hover {
  background-color: var(--color-link);
  color: #fff;
  filter: brightness(1.2);
}
.adi-restuarant-food-orders-page-rows-secondary-btn {
  background-color: var(--color-primary-subtle);
}
.adi-restuarant-food-orders-page-rows-secondary-btn:hover {
  background-color: #d3d9df;
}
.adi-restuarant-food-orders-page-rows-simple-text-info {
  padding: 0;
  font-size: 1rem;
  width: fit-content !important;
  display: block;
}

.adi-restuarant-food-orders-page-order-content-grid > div:nth-child(6) {
  text-align: center; /* Status */
}
.adi-restuarant-food-orders-page-order-content-grid > div:nth-child(7) {
  text-align: center; /* Action */
}

/* --- Order Status Badge Styles --- */
.adi-restuarant-food-orders-page-status {
  font-weight: 600;
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  font-size: 0.95rem;
  width: fit-content;
}
.adi-restuarant-food-orders-page-status-open {
  color: #664d03 !important;
  background-color: #fff3cd !important;
}

.adi-restuarant-food-orders-page-status-canceled {
  color: #842029 !important;
  background-color: #f8d7da !important;
}

.adi-restuarant-food-orders-page-status-delivered {
  color: #0f5132 !important;
  background-color: #d1e7dd !important;
}

.adi-restuarant-food-orders-page-status-preparing {
  color: #055160 !important;
  background-color: #cff4fc !important;
}

.adi-restuarant-food-orders-page-status-intransit {
  color: #084298 !important;
  background-color: #cfe2ff !important;
}
.adi-restuarant-food-orders-page-address-label {
  font-size: 1rem;
}
.adi-restuarant-food-orders-page-list-group-item-heading {
  font-size: 0.9rem;
  background-color: #eef6ff;
}
.adi-restuarant-food-orders-page-list-group-item {
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-radius: 0;
}
.adi-restuarant-food-orders-page-list-group-item .price {
  font-size: 1rem;
}
.adi-restuarant-food-orders-page-list-group-item .form-check-input {
  border: 1px solid gray;
}
.adi-restuarant-food-orders-page-list-group-item .form-check-label {
  font-size: 1rem;
}
.adi-restuarant-food-orders-page-list-group-item:last-child {
  border-bottom: none;
}
.adi-restuarant-food-orders-page-order-review-modal
  .adi-restuarant-food-orders-page-list-group,
.adi-restuarant-food-orders-page-order-detail-modal
  .adi-restuarant-food-orders-page-list-group {
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
}
.adi-restuarant-food-orders-page-order-review-modal .segment-title,
.adi-restuarant-food-orders-page-order-detail-modal .segment-title {
  color: var(--color-link);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.adi-restuarant-food-orders-page-detail-modal-amount {
  color: var(--color-link);
  filter: brightness(1.2);
}
.adi-restuarant-food-orders-page-detail-modal-amount {
  color: var(--color-link) !important;
  filter: brightness(1.2);
  font-size: 1.1rem;
}
.adi-restuarant-food-orders-page-modal-highlighted-box {
  border: 1px solid rgb(185, 185, 185);
}

.adi-restuarant-food-orders-page-modal-highlighted-box
  .adi-restuarant-food-orders-page-status {
  padding: 0.2rem 1rem;
}
.adi-restuarant-food-orders-page-accept-review-btn {
  background-color: var(--color-link);
  color: #fff;
}
.adi-restuarant-food-orders-page-accept-review-btn:hover {
  background-color: var(--color-link);
  color: #fff;
  filter: brightness(1.2);
}
/* Smooth fade-out when row is removed */
.adi-restuarant-food-orders-page-row-fadeout {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
/* Highlight animation */
.adi-restuarant-food-orders-page-row-highlight {
  animation: rowFlash 1.5s ease;
}

/* Call Button */
.adi-restuarant-food-orders-page-call-btn-inline {
  background-color: #e9ecef;
  color: #495057;
  border: 1px solid #ced4da;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  margin-top: 0px;

  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.adi-restuarant-food-orders-page-call-btn-inline:hover {
  background-color: #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.adi-restuarant-food-orders-page-call-btn-inline:active {
  transform: translateY(0);
}

.adi-restuarant-food-orders-page-modal-option-btn {
  display: flex;
  align-items: center;
  justify-content: start;
  width: 100%;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: border 0.2s, color 0.1s;
  background-color: #ffffff;
  border: 1px solid #e9ecef;
}
.adi-restuarant-food-orders-page-modal-option-btn:hover {
  border: 1px solid var(--color-link);
  color: var(--color-link);
}

.adi-restuarant-food-orders-page-btn-direct-call {
  color: #495057;
}
/* modal overlay */
.adi-restuarant-food-orders-page-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1061 !important;
  display: none;
}

.adi-restuarant-food-orders-page-modal-overlay.active {
  display: block;
}
#adi-restuarant-food-orders-page-callModal {
  z-index: 1062 !important;
}
/*  Smooth fade like Bootstrap modals */
.adi-restuarant-food-orders-page-modal-overlay.fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.adi-restuarant-food-orders-page-modal-overlay.fade.active {
  opacity: 1;
}
.adi-restuarant-food-orders-page-cust-address,
.adi-restuarant-food-orders-page-item-name {
  font-size: 1rem;
}
@keyframes rowFlash {
  0% {
    background-color: #fff3cd;
  }
  50% {
    background-color: #ffeeba;
  }
  100% {
    background-color: transparent;
  }
}
/* --- MOBILE VIEW  --- */

@media (min-width: 360px) and (max-width: 767px) {
  .adi-restuarant-food-orders-page-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .adi-restuarant-food-orders-page-nav-link {
    font-size: 0.8rem;
    border-radius: 0.3rem !important;
    margin: 0 0.15rem; /* Small space between tabs */
    padding: 0.3rem 0.8rem;
    margin-bottom: 8px;
  }
  .adi-restuarant-food-orders-page-nav-tabs {
    padding-bottom: 0;
  }
}

@media (max-width: 992px) {
  .adi-restuarant-food-orders-page-order-content-grid {
    display: block !important;
  }
  .Plat-Comp-DataGridHeaderRow-adi-restuarant-food-orders-page {
    display: none !important;
  }
  .adi-restuarant-food-orders-page-order-content-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0px;
    padding: 1rem;
  }
  .adi-restuarant-food-orders-page-order-content-grid > div {
    width: 100%;
  }

  /* === Row 1: ID (left) + Status (right) === */
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(1),
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(6) {
    order: 1;
    flex: 1 1 48%;
    min-width: 48%;
    flex-shrink: 0;
  }
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(1) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(6) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  /* hide “Status:” text */
  .adi-restuarant-food-orders-page-order-content-grid
    > div:nth-child(6)
    .d-lg-none {
    display: none !important;
  }
  .adi-restuarant-food-orders-page-order-id {
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    white-space: nowrap;
  }

  /* === Row 2: Customer / Phone / Address === */
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(2) {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .adi-restuarant-food-orders-page-order-content-grid
    > div:nth-child(2)
    span[title] {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* === Row 3: Order Items Heading === */
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(3) {
    order: 3;
    font-weight: 400 !important;
  }
  .adi-restuarant-food-orders-page-order-content-grid
    > div:nth-child(3)
    .d-lg-none {
    font-weight: 700;
    color: #000;
  }

  /* === Row 4: Time & Date inline === */
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(4) {
    order: 4;
  }
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(4) > div {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
  }
  .adi-restuarant-food-orders-page-order-content-grid
    > div:nth-child(4)
    small::before {
    content: " - ";
    color: #6c757d;
  }

  /* === Row 5: Amount (left) + Action Button (right) === */
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(5),
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(7) {
    order: 5;
    flex: 1 1 48%;
    min-width: 48%;
    flex-shrink: 0;
  }
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(5) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(7) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .adi-restuarant-food-orders-page-order-content-grid > div:nth-child(7) .btn {
    width: fit-content !important;
    white-space: nowrap;
  }
  .adi-restuarant-food-orders-page-customer-data {
    display: flex;
    flex-direction: column;
    gap: 2px !important;
  }
}
@media (max-width: 576px) {
  .adi-restuarant-food-orders-page-search-wrap {
    width: 100%;
  }
  .adi-restuarant-food-orders-page-modal-option-btn {
    padding: 0.8rem;
    font-size: 1rem;
  }
  .adi-restuarant-food-orders-page-modal-highlighted-box
    .adi-restuarant-food-orders-page-status {
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
  }
}
@media (min-width: 992px) {
  .adi-restuarant-food-orders-page-order-content-grid > div {
    padding: 0 0.5rem;
  }
}
