/* ============================================
   TraumGmbH — Orders
   Article cards, Quantity, Order list,
   Shipping groups, Department picker
   ============================================ */

/* === LEGACY ARTICLE CARDS (used in order detail etc.) === */
.art {
  margin: 0 24px 10px; padding: 16px 18px;
  background: var(--bg-white); border-radius: var(--r);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  transition: all 0.1s;
}
.art.sel { border-color: var(--accent); background: var(--accent-pale); }
.art-info { flex: 1; min-width: 0; }
.art-name { font-weight: 700; font-size: 14px; }
.art-det { font-size: 12px; color: var(--text-sec); margin-top: 3px; }
.art-unit {
  font-size: 10px; color: var(--accent); background: var(--accent-pale);
  padding: 2px 7px; border-radius: 4px; font-weight: 700;
}

/* === LEGACY QUANTITY CONTROLS === */
.qty {
  display: flex; align-items: center;
  background: var(--bg-input); border-radius: var(--r-sm); border: 1px solid var(--border);
}
.qty-b {
  width: 38px; height: 38px; background: none; border: none;
  color: var(--accent); font-size: 18px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qty-v { width: 32px; text-align: center; font-weight: 800; font-size: 15px; }
.qty-add {
  width: 38px; height: 38px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text-sec); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.1s;
}
.qty-add:hover { color: var(--accent); }

/* === ORDER LIST ITEMS === */
.oli {
  margin: 0 24px 8px; padding: 14px 16px;
  background: var(--bg-white); border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: background 0.1s;
}
.oli:hover { background: #fdfdfb; }
.oli-ic {
  width: 36px; height: 36px; background: var(--bg-input);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
}
.oli-ic.green { background: var(--success-pale); color: var(--success); }

/* === SHIPPING GROUPS === */
.sg {
  margin: 0 24px 10px; padding: 16px 18px;
  background: var(--bg-white); border-radius: var(--r);
  border: 1px solid var(--border); cursor: pointer;
  transition: background 0.1s;
}
.sg:hover { background: #fdfdfb; }
.sg.late { border-color: var(--warning); }
.sg-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.sg-name { font-weight: 700; font-size: 15px; }
.sg-date { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.sg-date.warn { color: var(--warning); font-weight: 600; }
.sg-stats {
  display: flex; gap: 20px; padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-sec);
}
.sg-stats strong { color: var(--text); font-weight: 700; }

/* === DEPARTMENT PICKER === */
.dept-picker {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px; background: var(--accent-pale);
  border-bottom: 1px solid var(--border);
}
.dept-picker-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700;
  color: var(--accent); white-space: nowrap;
}
.dept-picker .inp { padding: 10px 14px; font-size: 14px; font-weight: 600; }

/* === Desktop shipping groups grid === */
@media (min-width: 768px) {
  .desktop-main .sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .desktop-main .sg-grid .sg { margin: 0; }
}