/* account: styles of the settings track that owns this file: the club
   settings' Integrations and History sections, the person's own account
   page and the service's field directory. Phone below 700px, as blocks.css. */

/* Wording the boards give twice: the long one on a laptop, the short one
   on a phone. */
.seta-phone, .seta-phone-block, .seta-phone-flex { display: none; }

@media (max-width: 700px) {
  .seta-laptop, .seta-laptop-block { display: none; }
  .seta-phone { display: inline; }
  .seta-phone-block { display: block; }
  .seta-phone-flex { display: flex; }
}

/* The grey line under the tabs that says what a section holds. */
.seta-lead { max-width: 70ch; margin: 22px var(--space-1) var(--space-3); color: var(--muted); font-size: var(--text-small); line-height: 1.45; }

/* Integrations: one line per connection. On a laptop four columns: the
   mark, the name over its state, what it does over what it doesn't yet,
   the page that does it today; on a phone all of it stacks beside the mark. */
.seta-integration {
  display: grid;
  grid-template-columns: 44px 220px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-top: 1px solid var(--line-soft);
}

.seta-integration:first-child { border-top: 0; }
.seta-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: var(--navy); color: var(--yellow); font-size: .875rem; font-weight: 800; }
.seta-integration h3 { margin: 0; color: var(--ink); font-size: var(--text-body); font-weight: 700; }
.seta-integration small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--text-small); }
.seta-integration-what { margin: 0; color: var(--ink); font-size: var(--text-label); }
.seta-integration-link { grid-column: 4; text-align: right; }
.seta-integration-link a { color: var(--blue); font-size: var(--text-label); font-weight: 600; white-space: nowrap; }
.seta-integration-link a:hover { color: var(--blue-deep); }

@media (max-width: 700px) {
  .seta-lead { margin: 18px 0 var(--space-3); }
  .seta-integration { grid-template-columns: 44px minmax(0, 1fr); gap: 0 14px; align-items: start; padding: var(--space-4); }
  .seta-mark { grid-row: span 3; }
  .seta-integration-name, .seta-integration-what, .seta-integration-link { grid-column: 2; }
  .seta-integration-what { margin-top: var(--space-2); }
  .seta-integration-link { margin-top: var(--space-2); text-align: left; }
}

/* History: a heading per day, then the day's changes. On a laptop a table
   of time, change and who (with the person's initials); on a phone each
   change is a line, the time on the left and the person under the change. */
.seta-history-day + .seta-history-day { margin-top: var(--space-5); }
.seta-history { white-space: normal; }
.seta-history td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: var(--text-label); vertical-align: middle; }
.seta-history tr:last-child td { border-bottom: 0; }
.seta-history td strong { font-size: var(--text-label); font-weight: 600; }
td.seta-history-time { width: 70px; color: var(--muted); font-variant-numeric: tabular-nums; }
td.seta-history-who { width: 240px; }
.seta-history-who .avatar { width: 28px; height: 28px; margin-right: 10px; font-size: .6875rem; vertical-align: middle; }
.seta-more { padding: 14px 16px; border-top: 1px solid var(--line-soft); text-align: center; }
.seta-more a { color: var(--blue); font-size: var(--text-label); font-weight: 600; }

@media (max-width: 700px) {
  .seta-history thead { display: none; }
  .seta-history tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
  .seta-history tr:first-child { border-top: 0; }
  .seta-history td { width: auto; padding: 0; border: 0; }
  td.seta-history-time { grid-row: span 2; width: auto; padding-top: 2px; font-size: var(--text-small); }
  .seta-history td strong { font-size: var(--text-body); }
  td.seta-history-who { grid-column: 2; width: auto; margin-top: 3px; color: var(--muted); font-size: var(--text-small); }
  .seta-history-who .avatar { display: none; }
}

/* Field directory (admin): the tabs with the search on their right, the
   line under them, then a table. On a laptop the way back is the menu's;
   on a phone the table turns into one line per field: the name, its clubs
   and town, its state, and its one job on the right. */
.seta-fields-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: 22px; border-bottom: 1px solid var(--line); }
.seta-fields-bar .tabs { margin: 0; border-bottom: 0; }
.seta-fields-bar .list-toolbar { margin: 0 0 var(--space-2); }
.seta-fields-bar .list-toolbar > .search { width: 260px; min-height: 36px; }
.seta-fields-lead { max-width: none; margin-top: var(--space-4); }
.seta-fields-table { white-space: normal; }
.seta-fields-table th { white-space: nowrap; }
.seta-fields-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: var(--text-label); vertical-align: middle; }
.seta-fields-table tr:last-child td { border-bottom: 0; }
.seta-fields-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-small); }
.seta-fields-table td small.seta-phone { display: none; }
.seta-field-name > a { color: var(--ink); font-weight: 600; }
.seta-field-name > a:hover { color: var(--blue); }
.seta-faint { color: var(--faint); }
.seta-field-status { white-space: nowrap; }
.seta-field-status .badge { color: var(--muted); font-weight: 400; font-size: var(--text-label); white-space: nowrap; }
td.seta-field-actions { text-align: right; white-space: nowrap; }
.seta-field-actions form { display: inline-block; margin: 0; }
.seta-field-edit { margin-left: var(--space-3); color: var(--blue); font-size: var(--text-label); font-weight: 600; }

@media (min-width: 701px) {
  .seta-fields .page-head .head-back { display: none; }
}

@media (max-width: 700px) {
  .seta-fields .page-head .eyebrow { display: none; }
  .seta-fields-bar { display: block; border-bottom: 0; }
  .seta-fields-bar .tabs { border-bottom: 1px solid var(--line); }
  .seta-fields-bar .list-toolbar { margin: 14px 0 0; }
  .seta-fields-bar .list-toolbar > .search { width: auto; min-height: var(--control-height); }
  .seta-fields-lead { display: none; }
  .seta-fields-panel { margin-top: 14px; }
  .seta-fields-table thead, .seta-field-clubs, .seta-field-place, .seta-fields-table td small.seta-laptop { display: none; }
  .seta-fields-table td small.seta-phone { display: block; }
  .seta-fields-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); padding: 12px 16px; border-top: 1px solid var(--line-soft); }
  .seta-fields-table tr:first-child { border-top: 0; }
  .seta-fields-table td { padding: 0; border: 0; }
  .seta-field-name > a { font-size: var(--text-body); }
  .seta-field-status { grid-column: 1; }
  .seta-field-status .badge { font-size: var(--text-small); }
  td.seta-field-actions { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .seta-field-actions form + .seta-field-edit { display: none; }
  .seta-field-edit { display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: 0 var(--space-3); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface); font-size: var(--text-small); }
}

/* Account: the person's avatar and name, then two columns on a laptop:
   the profile and who sees the contacts; the password and the session.
   On a phone one column, and the password form is a sheet opened from its
   line, beside "Terminar sessão". */
.seta-account { max-width: 1120px; margin: 30px 0 60px; }
.club-app .seta-account { margin-top: 0; }
.seta-account-person .head-back { margin: 0; }
.seta-account-head { margin-bottom: 28px; }
.seta-account-person { display: flex; align-items: center; gap: var(--space-4); }
.seta-account .avatar.seta-account-avatar { width: 56px; height: 56px; background: var(--navy); color: var(--yellow); font-size: 1.25rem; }
.seta-account-head .eyebrow { margin: 0; letter-spacing: 0; font-weight: 400; }
.seta-account-head h1 { margin: 2px 0 0; font-size: 1.875rem; letter-spacing: -.02em; }
.seta-account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.seta-account-column { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.seta-account-card { padding: 20px 22px; }
.seta-account-card form, .seta-password form { display: flex; flex-direction: column; gap: 6px; }
.seta-account-card form > label, .seta-password form > label { margin: 0; font-weight: 600; font-size: var(--text-small); }
.seta-account-card form > label:not(:first-of-type), .seta-password form > label:not(:first-of-type) { margin-top: var(--space-2); }
.seta-account .btn { width: auto; }
.seta-account-card select { width: 100%; }
.seta-account-card .btn.primary { align-self: flex-start; margin-top: var(--space-2); }
.seta-account-email { display: flex; flex-direction: column; margin-top: var(--space-2); }
.seta-account-email span { font-size: var(--text-small); font-weight: 600; }
.seta-account-email strong { margin-top: 6px; font-size: var(--text-body); font-weight: 400; overflow-wrap: anywhere; }
.seta-account-email small { margin-top: 2px; color: var(--muted); font-size: var(--text-small); }
.seta-contacts { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.seta-contacts:first-child { border-top: 0; }
.seta-contacts > div { flex: 1; min-width: 0; }
.seta-contacts h3 { margin: 0; font-size: var(--text-body); font-weight: 700; }
.seta-contacts small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--text-small); }
.seta-contacts .btn { flex: none; }
.seta-password .helper { margin: var(--space-2) 0 0; line-height: 1.45; }
.seta-password-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.seta-signout { display: flex; align-items: center; gap: var(--space-3); padding: 16px 22px; }
.seta-signout > span { flex: 1; color: var(--muted); font-size: var(--text-label); }
.seta-signout form { margin: 0; }
.seta-session-row { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--text-label); font-weight: 600; cursor: pointer; }

@media (min-width: 701px) {
  /* On a laptop the password form is a card in the page, not a dialog. */
  .seta-password { position: static; display: block; width: auto; max-width: none; height: auto; max-height: none; margin: 0; padding: 20px 22px; overflow: visible; border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); }
}

@media (max-width: 700px) {
  .seta-account { margin: 10px 0 40px; }
  .seta-account-head { margin-bottom: 20px; }
  .seta-account-head .head-back { margin-bottom: 2px; }
  .seta-account-person { align-items: flex-end; gap: 14px; }
  .seta-account-head .eyebrow { display: none; }
  .seta-account .avatar.seta-account-avatar { width: 48px; height: 48px; font-size: 1.0625rem; }
  .seta-account-head h1 { font-size: 1.5rem; }
  .seta-account-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .seta-account-column { gap: 22px; }
  .seta-account-card { padding: var(--space-4); }
  .seta-account-card .btn.primary { align-self: stretch; }
  .seta-contacts { flex-wrap: wrap; padding: 13px 16px; }
  .seta-contacts > div { flex: 1 1 200px; }
  .seta-password-section { display: contents; }
  .seta-password-section > .section-title { display: none; }
  .seta-password[open] { position: fixed; z-index: 120; }
  .seta-password h2 { margin-bottom: var(--space-4); }
  .seta-password-actions .btn { flex: 1 1 140px; }
  .seta-account-column + .seta-account-column { margin-top: 0; }
  .seta-signout { padding: 0; }
  .seta-signout > span { display: none; }
  .seta-signout form { flex: 1; }
  .seta-session-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 13px 16px; font-size: var(--text-body); font-weight: 700; text-align: left; }
  .seta-session-row svg { color: var(--faint); }
  .seta-session > .seta-session-row { border-bottom: 1px solid var(--line-soft); }
}
