/* The Team page's members table, shared by the vendor and ISO sides (vendor-workspace.js, iso-team.js). */
.vw-team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 20px 0 12px;
}
.vw-team-filters button {
  padding: 7px clamp(8px, 2vw, 14px);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
}
.vw-team-filters button[aria-pressed=true] { border-color: var(--rule); background: var(--panel); }
.vw-team-filters span { margin-inline-start: 6px; color: var(--quiet); font-size: 12px; }
.vw-team-table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.vw-team-table-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.vw-team-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.vw-team-table :is(th, td) {
  padding: 12px clamp(8px, 2vw, 20px);
  text-align: start;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.vw-team-table thead { color: var(--quiet); font-size: 12px; }
.vw-team-table tbody th { font-weight: 600; overflow-wrap: anywhere; }
.vw-team-table tbody th small { margin-inline-start: 7px; color: var(--quiet); font-size: 11px; }
.vw-team-table tbody tr:last-child > * { border-bottom: 0; }
.vw-team-table :is(th, td):nth-child(2) { width: 27%; }
.vw-team-table :is(th, td):last-child { width: 1%; }
.vw-team-status { display: block; margin-block-start: 3px; color: var(--quiet); font-size: 12px; line-height: 1.4; }
.vw-team-status.pending { color: var(--accent-text); }
.vw-team-invite-date { display: block; color: var(--quiet); white-space: nowrap; }
.vw-team-invite-actions { display: flex; align-items: center; }
.vw-team-invite-actions .quiet-icon .ui-icon { width: 17px; height: 17px; }
.vw-team-invite-actions button.vw-revoke-invite { color: var(--danger); }
.vw-team-invite-actions button.vw-revoke-invite:enabled:hover { color: var(--danger); background: var(--danger-soft); }
.vw-team-row-menu { width: max-content; max-width: 150px; }
.vw-team-row-menu summary { cursor: pointer; min-height: 44px; align-content: center; }
.vw-team-row-menu button { display: block; font-size: 13px; }
.vw-team-guide { margin: 20px 0; }
.vw-team-guide summary { cursor: pointer; font-size: 14px; }
.vw-team-guide .vw-permissions { max-width: 720px; }
@media (max-width: 440px) {
  .vw-team-table { font-size: 13px; table-layout: fixed; }
  .vw-team-table :is(th, td):last-child { width: 96px; }
  .vw-team-invite-date { white-space: normal; }
  .vw-team-row-menu { max-width: 100%; }
}
.vw-company-settings {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.vw-company-settings form {
  max-width: 480px;
  display: grid;
  gap: 16px;
}
.vw-company-settings p {
  max-width: 600px;
}
/* The ISO page styles table cells globally; keep the shared table the same on both sides. */
.vw-team-table :is(th, td) { background: transparent; white-space: normal; }
.vw-team-table thead th { color: var(--quiet); font-size: 12px; font-weight: 600; }
.vw-team-table tbody th { color: var(--text); font-size: 14px; font-weight: 600; }
.vw-team-table tbody td { color: var(--text); font-size: 14px; }
.vw-team-table tbody tr:hover { background: transparent; }
.vw-team-table tbody tr:last-child > * { border-bottom: 0; }
/* Organization → Company profile, shared by the vendor and ISO sides. */
.vw-company-profile, .vw-company-danger { max-width: 640px; }
.vw-profile-list { display: grid; margin: 0; border-top: 1px solid var(--rule); }
.vw-profile-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.vw-profile-list dt { color: var(--quiet); font-size: 14px; }
.vw-profile-list dd { margin: 0; color: var(--text); font-size: 14px; font-weight: 500; text-align: left; max-width: none; overflow-wrap: anywhere; }
.vw-company-profile > p, .vw-company-section p, .vw-company-danger p { margin: 12px 0; max-width: 600px; color: var(--quiet); font-size: 14px; line-height: 1.5; }
.vw-company-danger {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.vw-company-danger h2 { font-size: 18px; margin: 0 0 8px; }
.vw-company-danger form { max-width: 480px; display: grid; gap: 16px; }
.vw-company-section { margin-top: 32px; }
.vw-company-section h2 { font-size: 18px; margin: 0 0 6px; }
@media (max-width: 440px) {
  .vw-profile-list > div { grid-template-columns: 1fr; gap: 4px; }
}
.vw-company-danger .btn { color: var(--danger); }

/* Organization → Company profile editor (org-profile.js), Vendor and ISO portals. */
ascend-org-profile { display: block; max-width: 640px; margin-bottom: 40px; }
.op-form { display: grid; gap: 18px; }
.op-form h2, .op-view h2, .vw-company-details h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.op-lede { margin: -12px 0 0; color: var(--quiet); font-size: 14px; line-height: 1.5; }
.op-identity { display: flex; align-items: center; gap: 20px; }
.op-icon { display: grid; place-items: center; width: 80px; height: 80px; flex: none; overflow: hidden; border: 1px solid var(--rule); border-radius: 16px; background: var(--panel); color: var(--text); font-size: 24px; font-weight: 650; }
.op-icon img { width: 100%; height: 100%; object-fit: cover; }
.op-icon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.op-icon-actions small, .op-icon-actions .op-error { flex-basis: 100%; }
.op-icon-actions small { color: var(--quiet); font-size: 12px; }
.op-upload { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; overflow: hidden; cursor: pointer; }
.op-upload .ui-icon { width: 16px; height: 16px; }
.op-upload:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.op-form label:not(.op-upload) { display: grid; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; }
.op-form :is(input:not([type=file]), textarea) { width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 7px; background-color: var(--panel); color: var(--text); font-size: 15px; font-weight: 400; }
.op-form input:not([type=file]):focus { border-color: var(--focus); }
.op-form textarea { max-width: none; min-height: 128px; padding: 10px 12px; resize: vertical; border: 1px solid var(--edge); border-radius: 7px; background-color: var(--panel); color: var(--text); line-height: 1.5; }
.op-form textarea:focus { border-color: var(--focus); }
.op-form label small { color: var(--quiet); font-size: 12px; font-weight: 400; }
.op-save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.op-status { margin: 0; color: var(--quiet); font-size: 13px; line-height: 1.5; }
.op-error { margin: 0; color: var(--danger); font-size: 13px; }
.op-view { display: flex; align-items: flex-start; gap: 18px; }
.op-view p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.op-view .op-empty { color: var(--quiet); }
.vw-company-details h2 { margin-bottom: 12px; }
@media (max-width: 600px) {
  .op-identity, .op-view { align-items: flex-start; gap: 14px; }
  .op-icon { width: 64px; height: 64px; font-size: 20px; }
}
.op-note { margin: 14px 0 0; color: var(--quiet); font-size: 13px; line-height: 1.5; }
