/* Vendor client switcher (side nav) and Clients page */
.client-switch { padding: 0 8px 12px; border-bottom: 1px solid #22394b; margin-bottom: 8px; }
.client-switch label { color: #8ea0b3; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.client-switch select { background: #1b3041; color: #fff; border-color: #2c4a61; min-height: 34px; padding: 6px 8px; }
.client-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 20px; }
.client-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); }
.client-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.client-card h3 { font-size: 15px; margin-bottom: 8px; }
.client-card dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 12px; font-size: 13px; }
.client-card dt { color: var(--ink-3); }
.client-card dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.request { border: 1px solid #c7dced; background: var(--accent-soft); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
/* Vendors page: the editor opens as a full-width row under the vendor */
tr.edit-row > td { background: #f9fafb; padding: 16px; }
.vendor-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.vendor-edit > form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.vendor-edit > form .field:nth-child(n+7) { grid-column: 1 / -1; }
.vendor-edit > form > .btn { grid-column: 1 / -1; justify-self: start; }
.vendor-portal { border-left: 1px solid var(--line); padding-left: 24px; }
.vendor-portal h3 { margin-bottom: 8px; }
@media (max-width: 820px) {
  .vendor-edit, .vendor-edit > form { grid-template-columns: minmax(0, 1fr); }
  .vendor-portal { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
