/* ==========================================================================
   Tech Services & Engineering Menu Stylesheet (FedEx / Rate Card Style)
   ========================================================================== */

:root {
  --accent-tech: #2b6cb0;
  --accent-tech-glow: rgba(43, 108, 176, 0.25);
  --accent-tech-subtle: rgba(43, 108, 176, 0.08);
}

/* Category Filter Tabs */
.menu-category-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.menu-cat-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-cat-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-main);
  background: #ffffff;
}

.menu-cat-btn.active {
  background: var(--brand-forest);
  border-color: var(--brand-forest);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 32, 53, 0.2);
}

/* Menu Layout & Columns */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.menu-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.menu-category-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
}

.menu-category-card:hover {
  border-color: var(--border-medium);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 1.75rem;
}

.category-icon {
  font-size: 1.6rem;
}

.category-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -0.02em;
}

.category-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
  font-family: var(--font-mono);
}

/* Individual Menu Item Rows */
.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: #f0f4fa;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.menu-item-row:hover {
  background: #e6edf6;
  border-color: rgba(15, 32, 53, 0.15);
}

.menu-item-row.selected {
  background: rgba(43, 108, 176, 0.06);
  border-color: rgba(43, 108, 176, 0.4);
}

.item-main {
  flex-grow: 1;
}

.item-headline-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.item-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-tech);
  margin-right: 0.5rem;
  cursor: pointer;
  transform: translateY(2px);
}

.item-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.item-turnaround {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  background: rgba(15, 32, 53, 0.08);
  color: var(--brand-forest);
  border-radius: var(--radius-full);
}

.item-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.5rem 0;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.item-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
}

/* Price Display */
.item-price-wrap {
  text-align: right;
  flex-shrink: 0;
}

.item-price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.item-price {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand-forest);
  letter-spacing: -0.02em;
}

/* Sticky Estimate Summary Tray */
.estimate-tray-card {
  position: sticky;
  top: 6rem;
  background: #0f2035;
  border-radius: var(--radius-xl);
  border: 1px solid #112244;
  padding: 2rem;
  color: #edf2f9;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tray-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.tray-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.tray-selected-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 220px;
  overflow-y: auto;
}

.tray-empty-hint {
  font-size: 0.82rem;
  color: #64748b;
  font-style: italic;
  padding: 1rem 0;
  text-align: center;
}

.tray-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  background: #112244;
  border-radius: var(--radius-sm);
}

.tray-item-name {
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.tray-item-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #38bdf8;
}

.tray-total-box {
  border-top: 1px solid #334155;
  padding-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.tray-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.tray-total-lbl {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tray-total-val {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #34d399;
}

.tray-guarantee {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 1rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
  .estimate-tray-card {
    position: static;
    margin-top: 2rem;
  }
  .menu-item-row {
    flex-direction: column;
    gap: 0.85rem;
  }
  .item-price-wrap {
    text-align: left;
  }
}
