/* Restaurant: table ordering */
.table-order{max-width:780px;margin:2rem auto;padding:1.5rem;background:#fffaf0;border:1px solid #dfcba1;border-radius:18px;color:#24211b;scroll-margin-top:90px}.table-order h2{margin-top:0}.table-order summary{cursor:pointer;font-size:1.25rem;font-weight:700;padding:.75rem 0}.table-order label{display:block;margin:.8rem 0}.table-order input,.table-order textarea{display:block;width:100%;padding:.7rem;border:1px solid #c6bfae;border-radius:8px;background:white;color:#24211b;font:inherit}.table-order textarea{min-height:80px}.cart-line{padding:1rem 0;border-bottom:1px solid #dfd5c2}.order-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.6rem 0}.qty-button,.cart-remove{min-height:44px;min-width:44px;border:1px solid #ccc;border-radius:8px;background:white;color:#222;cursor:pointer;padding:.4rem .8rem}.table-order button:disabled{opacity:.55;cursor:not-allowed}.order-total{font-size:1.3rem;display:flex;justify-content:space-between;margin:1rem 0}.table-order #place-order{width:100%;min-height:48px}.table-order #cart-message{padding:.8rem;background:#f1e7d2;border-radius:8px}.table-order #order-receipt{margin-top:1rem;padding:1rem;background:#edf6ed;border-radius:12px}.add-to-order{margin-top:.8rem;min-height:44px}.order-cart-link{position:fixed;bottom:1rem;left:1rem;z-index:50;padding:.8rem 1.2rem;background:#171717;color:#fff!important;border:2px solid #c9a45c;border-radius:30px;text-decoration:none;box-shadow:0 4px 20px #0003}.staff-order{background:#fff;border:1px solid #ddd;border-left:5px solid #c9a45c;border-radius:10px;padding:1rem;margin:1rem 0}.staff-order li{margin:.5rem 0;overflow-wrap:anywhere}.staff-order p{overflow-wrap:anywhere}.table-order:focus-within{outline-offset:4px}@media(max-width:600px){.table-order{margin:1rem;padding:1rem}.order-cart-link{bottom:.8rem}}
.order-type{border:0;padding:0;margin:1.75rem 0 1rem}.order-type legend{font-size:1.1rem;font-weight:700;margin-bottom:.9rem}.order-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.order-choice{position:relative!important;margin:0!important;min-height:88px;border:2px solid #e1e4ea;border-radius:14px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}.order-choice:has(input:checked){border-color:#171717;background:#f7f7fb;box-shadow:0 0 0 1px #171717}.order-choice input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}.order-choice-content{display:flex;min-height:88px;align-items:center;justify-content:center;gap:.2rem;flex-direction:column;color:#0b2b52}.order-choice-content svg{width:22px;height:22px}.order-choice-content strong{font-size:1rem;color:#171717}.order-choice-content small{color:#687080}.pickup-mode-fields{max-width:260px}.pickup-mode-fields label{font-size:.9rem;font-weight:600}.pickup-mode-fields select{display:block;width:100%;padding:.7rem;border:1px solid #c6bfae;border-radius:8px;background:#fff;color:#24211b;font:inherit}.order-info-panel{display:flex;align-items:center;gap:.55rem;margin:1rem 0 1.5rem;padding:1rem;background:#f7f8fa;border-radius:10px;color:#13335a}.order-info-panel svg{width:18px;height:18px;flex:0 0 auto}.order-info-panel strong{margin-right:.25rem}.delivery-fields h3{margin:1.4rem 0 .65rem;font-size:1rem}.delivery-fields label{font-size:.9rem;font-weight:600}.delivery-fields input{margin-top:.35rem;font-weight:400}
.order-choice-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){.order-choice-grid-three{grid-template-columns:1fr}}

/* Admin Orders: responsive alignment */
.admin-main, .admin-content, #staff-orders { min-width: 0; }
#staff-orders { width: 100%; max-width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
#staff-orders p { max-width: 100%; white-space: normal; line-height: 1.6; }
.orders-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 12px; }
.orders-heading h2 { margin: 0; }
.orders-heading form { margin: 0; }
.orders-heading .btn { max-width: 100%; white-space: normal; text-align: center; }
#staff-orders .order-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 18px 0 12px; }
#staff-orders .order-actions label { display: flex; flex-direction: column; align-items: start; gap: 6px; margin: 0; font-weight: 600; }
#staff-orders .order-actions select { min-width: 160px; max-width: 100%; }
#staff-orders .order-actions .btn { min-height: 42px; }
#orders-list { min-width: 0; }
.order-history-filters{align-items:end!important}.order-history-filters label{min-width:130px}.order-history-filters input,.order-history-filters select{width:100%;box-sizing:border-box;padding:.6rem;border:1px solid #c6bfae;border-radius:8px;background:#fff;color:#24211b;font:inherit}.orders-pagination{display:flex;align-items:center;justify-content:center;gap:1rem;margin:1rem 0}.orders-pagination p{margin:0;text-align:center}
@media(max-width:600px){.table-order{font-size:.9rem;line-height:1.5}.table-order h2{font-size:1.35rem}.table-order>p{font-size:.86rem}.table-order summary{font-size:1.05rem;padding:.6rem 0}.table-order label{font-size:.86rem;margin:.7rem 0}.table-order input,.table-order textarea,.pickup-mode-fields select{font-size:.88rem;padding:.62rem}.table-order textarea{min-height:72px}.order-type{margin:1.25rem 0 .85rem}.order-type legend{font-size:1rem;margin-bottom:.7rem}.order-choice{min-height:76px;border-radius:11px}.order-choice-content{min-height:76px}.order-choice-content svg{width:19px;height:19px}.order-choice-content strong{font-size:.88rem}.order-choice-content small{font-size:.75rem}.order-info-panel{font-size:.84rem;margin:.8rem 0 1.1rem;padding:.8rem}.order-info-panel svg{width:16px;height:16px}.delivery-fields h3{font-size:.95rem}.cart-line{font-size:.86rem;padding:.8rem 0}.order-actions{gap:.45rem;margin:.45rem 0}.qty-button,.cart-remove{min-height:40px;min-width:40px;padding:.35rem .65rem;font-size:.86rem}.order-total{font-size:1.1rem;margin:.85rem 0}.table-order #place-order{min-height:44px;font-size:.9rem}.table-order #cart-message{font-size:.8rem;padding:.65rem}.table-order #order-receipt{font-size:.82rem;margin-top:.8rem;padding:.8rem}.order-cart-link{bottom:.8rem;font-size:.9rem;padding:.65rem 1rem}}
@media (max-width: 700px) {
  #staff-orders { padding: 16px; }
  .orders-heading { align-items: stretch; }
  .orders-heading h2 { width: 100%; }
  #staff-orders .order-actions { align-items: stretch; }
  #staff-orders .order-actions label { flex: 1 1 160px; }
  #staff-orders .order-actions select { width: 100%; }
}
