/* ============================================================
   KUMAR SNACKS — Customer Orders Dashboard Styles (orders.css)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --primary:        #ff6b00;
  --primary-hover:  #e05a00;
  --primary-light:  #fff5f0;
  --primary-bg:     #fff8f5;
  --sidebar-bg:     #ffffff;
  --sidebar-hover:  #f8fafc;
  --sidebar-active: #fff5f0;
  --bg:             #f8fafc;
  --card-bg:        #ffffff;
  --text:           #475569;
  --text-dark:      #0f172a;
  --text-muted:     #64748b;
  --border:         #e2e8f0;
  --white:          #ffffff;
  
  --success:        #22c55e;
  --success-bg:     #f0fdf4;
  --danger:         #ef4444;
  --danger-bg:      #fef2f2;
  --warning:        #f5a623;
  --warning-bg:     #fefbeb;
  
  --radius-lg:      16px;
  --radius-md:      12px;
  --radius-sm:      8px;
  --radius-pill:    100px;
  
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
  --transition:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Resets ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Dashboard Grid Wrapper ---------- */
#dashboard-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
}

/* ===== SIDEBAR NAV ===== */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 150;
  transition: transform var(--transition);
}
.sidebar__brand {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.brand-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
}
.brand-role {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar__nav {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}
.sidebar-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--text-dark);
}
.sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--primary);
  font-weight: 700;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== MAIN AREA ===== */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* Prevents flex children from stretching */
  height: 100vh;
  overflow-y: auto;
}

/* Topbar */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid var(--border);
}
.topbar__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 1px;
}
.topbar__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn-top {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.95rem;
  cursor: pointer;
}
.bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}
.profile-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Content Body */
.content-body {
  padding: 30px;
  flex: 1;
}

/* Sections */
.content-section {
  display: none;
}
.content-section.active {
  display: block;
}

/* Fallback Views */
.fallback-panel {
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.fallback-panel span {
  font-size: 3.5rem;
}
.fallback-panel h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
}
.fallback-panel p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 380px;
}

/* ===== MANAGE ORDERS CARD ===== */
.manage-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow: hidden;
}
.manage-card__header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.manage-card__header h2 {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text-dark);
}
.manage-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.search-wrap input {
  padding: 8px 16px 8px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  width: 220px;
  outline: none;
  background: #f8fafc;
  transition: all var(--transition);
}
.search-wrap input:focus {
  border-color: var(--primary);
  background: var(--white);
}
.btn-filter {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-filter:hover {
  background: #e2e8f0;
}

/* Tabs Row */
.tabs-row {
  display: flex;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1.5px solid var(--border);
  overflow-x: auto;
}
.tab-link {
  padding: 16px 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.tab-link:hover {
  color: var(--text-dark);
}
.tab-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ===== ORDERS DATA TABLE (Desktop) ===== */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-responsive-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-responsive-wrapper::-webkit-scrollbar-track {
  background: #f8fafc;
}
.table-responsive-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
.table-responsive-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.orders-table th, .orders-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.orders-table th {
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  background: #f8fafc;
}
.orders-table tr:hover td {
  background: #fafbfc;
}

/* Action button dropdown trigger */
.btn-action-drop {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-action-drop:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-action-drop.expanded {
  transform: rotate(180deg);
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* Expanded Row Styles */
.expanded-row {
  display: none;
  background: #f8fafc;
}
.expanded-row.active {
  display: table-row;
}
.expanded-card {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--white);
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.expanded-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.expanded-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.expanded-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}
.expanded-item__info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.expanded-item__img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  overflow: hidden;
}
.expanded-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expanded-item__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
}
.expanded-item__qty {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.expanded-item__price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
}

.expanded-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}
.btn-outline-details {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-pill);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-details:hover {
  background: var(--primary-light);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}
.status-badge.preparing { background: var(--warning-bg); color: var(--warning); }
.status-badge.pending   { background: #f1f5f9; color: var(--text-muted); }
.status-badge.ready     { background: #eff6ff; color: #3b82f6; }
.status-badge.completed,
.status-badge.delivered { background: var(--success-bg); color: var(--success); }
.status-badge.cancelled { background: var(--danger-bg); color: var(--danger); }

/* Empty state list card */
.orders-empty-state {
  padding: 60px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1.5px solid var(--border);
}
.empty-icon {
  font-size: 3rem;
}
.orders-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
}
.orders-empty-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 8px;
}
.btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--primary-hover);
}

/* ===== ORDERS MOBILE LIST ===== */
.orders-mobile-list {
  display: none;
  padding: 16px;
  flex-direction: column;
  gap: 16px;
}
.order-mobile-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.mobile-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-card__id {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 0.95rem;
}
.mobile-card__date {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.mobile-card__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
}
.mobile-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-card-item__info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-card-item__img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.mobile-card-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-card-item__name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dark);
}
.mobile-card-item__name span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}
.mobile-card-item__price {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dark);
}

.mobile-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-card__total {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mobile-card__total strong {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 850;
  margin-left: 4px;
}

/* Pagination Footer */
.pagination-footer {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid var(--border);
  background: #f8fafc;
}
.showing-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pagination-controls {
  display: flex;
  gap: 4px;
}
.pg-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  transition: all var(--transition);
}
.pg-btn:hover:not(.disabled):not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}
.pg-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.pg-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== SUPPORT SECTION ===== */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.support-btn-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #f8fafc;
  transition: all var(--transition);
}
.support-btn-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.support-btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid var(--border);
}
.support-btn-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.support-btn-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== INTERACTIVE DETAILS MODAL POPUP ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.details-modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition);
  overflow: hidden;
}
.modal-overlay.active .details-modal-box {
  transform: translateY(0);
}
.details-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.details-modal__header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}
.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-modal-btn:hover {
  background: #f1f5f9;
  color: var(--text-dark);
}

.details-modal__body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #fafbfc;
}
.modal-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Timeline status list inside modal */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 10px;
}
.timeline-step {
  display: flex;
  gap: 16px;
  position: relative;
}
.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -22px;
  width: 2px;
  background: var(--border);
  z-index: 1;
}
.timeline-step.completed:not(:last-child)::after {
  background: var(--success);
}
.timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  z-index: 2;
  flex-shrink: 0;
}
.timeline-step.active .timeline-icon {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(255,107,0,0.25);
}
.timeline-step.completed .timeline-icon {
  border-color: var(--success);
  background: var(--success-bg);
  color: var(--success);
}
.timeline-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.timeline-step.active .timeline-info strong,
.timeline-step.completed .timeline-info strong {
  color: var(--text-dark);
}
.timeline-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* Modal Invoice details */
.modal-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.modal-receipt-item {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.modal-receipt-item span {
  color: var(--text-muted);
  font-weight: 500;
}
.modal-receipt-item strong {
  color: var(--text-dark);
  font-weight: 700;
}

.receipt-items-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.receipt-items-table th, .receipt-items-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.8rem;
}
.receipt-items-table th {
  font-weight: 700;
  color: var(--text-muted);
  background: #f1f5f9;
}
.receipt-items-table tr:last-child td {
  border-bottom: none;
}

/* Toast */
.orders-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  pointer-events: none;
}
.orders-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE STYLES ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 140;
  display: none;
}
.sidebar-overlay.active {
  display: block;
}

@media (max-width: 992px) {
  .sidebar {
    position: fixed;
    top: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .topbar__burger {
    display: flex;
  }
  .content-body {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  #desktop-table-container {
    display: none;
  }
  .orders-mobile-list {
    display: flex;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .manage-card__header {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .manage-card__actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }
  .search-wrap {
    width: 100%;
  }
  .search-wrap input {
    width: 100%;
  }
  .btn-filter {
    flex: 1;
    justify-content: center;
  }
  .tabs-row {
    padding: 0 16px;
  }
  .pagination-footer {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .modal-receipt-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PROFILE SECTION STYLES ===== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  width: 100%;
}
.profile-avatar-large {
  width: 80px;
  height: 80px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 10px;
  border: 3px solid var(--border);
}
.profile-info-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.profile-info-group:last-child {
  border-bottom: none;
}
.profile-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.profile-info-value {
  font-size: 0.95rem;
  color: var(--text-dark);
  font-weight: 500;
}
.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 15px;
}
.profile-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: var(--card-bg);
}
.profile-order-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.profile-order-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-order-emoji {
  font-size: 1.8rem;
  background: var(--primary-light);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-order-info h4 {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.profile-order-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.profile-order-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.profile-order-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}
.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.profile-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.profile-form-group input, .profile-form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.profile-form-group input:focus, .profile-form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
}

@media (max-width: 991px) {
  .profile-grid {
    grid-template-columns: 1fr !important;
  }
}
