/* Staff, Activity and Settings screens. Builds on labwolf-os.css and xtazy.css. */

/* notices */
.xz-st-notice { margin: 0 0 18px; }
.xz-st-notice strong, .xz-st-notice span { display: block; }
.xz-st-notice span { margin-top: 3px; line-height: 1.5; }
.xz-modal .xz-st-notice { margin: 0; }

/* staff list */
.xz-st-sub { display: block; color: #656b60; font-size: 12px; margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }
td.xz-st-wrap { white-space: normal; min-width: 0; }
.xz-st-only-sm { display: none; }

/* role picker */
.xz-st-roles { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.xz-st-roles legend { font-size: 12px; font-weight: 550; color: #41483d; margin-bottom: 8px; padding: 0; }
.xz-st-role { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid #e1e4dc; border-radius: 10px; cursor: pointer; min-height: 44px; }
.xz-st-role:has(input:checked) { border-color: #2563eb; background: #f5f8ff; }
.xz-st-role.off { opacity: .55; cursor: not-allowed; }
.xz-st-role input { margin: 2px 0 0; min-height: 18px; width: 18px; height: 18px; }
.xz-st-role strong { display: block; color: #111210; font-size: 13px; }
.xz-st-role small { display: block; color: #5f605b; font-size: 12px; font-weight: 400; line-height: 1.5; margin-top: 2px; }

/* temporary password */
.xz-st-temp { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.xz-st-temp code { flex: 1 1 200px; font: 600 20px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; padding: 12px 14px; background: #f6f6f3; border: 1px solid #e1e4dc; border-radius: 10px; user-select: all; overflow-wrap: anywhere; }
.xz-st-error { color: var(--xz-bad); margin: 0; font-size: 13px; }
.xz-st-error:empty { display: none; }

/* permission switches */
.xz-st-group { border: 0; padding: 0; margin: 0 0 6px; min-width: 0; }
.xz-st-group legend { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: #656b60; padding: 10px 0 4px; }
.xz-st-switch { display: grid !important; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid #f0f0ec; cursor: pointer; }
.xz-st-switch input { width: 18px; height: 18px; min-height: 18px; margin: 0; }
.xz-st-switch span { font-size: 13px; color: #20262d; }
.xz-st-from { font-size: 11px; color: #8a8f85; white-space: nowrap; }
.xz-st-switch:has(input:disabled) { cursor: default; }

/* sign-in history and devices */
.xz-st-list { list-style: none; margin: 0; padding: 0; display: grid; }
.xz-st-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid #f0f0ec; font-size: 13px; }
.xz-st-list li:last-child { border-bottom: 0; }
.xz-st-list small { flex-basis: 100%; color: #656b60; font-size: 12px; overflow-wrap: anywhere; }
.xz-st-actions { display: grid; gap: 8px; }
.xz-st-actions .button { justify-self: stretch; }
.xz-st-actions .footnote { margin: 0 0 8px; }

/* activity log */
.xz-st-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.xz-st-filters label { display: grid; gap: 4px; font-size: 11px; color: #656b60; }
.xz-st-filters select, .xz-st-filters input { min-height: 40px; }
.xz-st-q { flex: 1 1 220px; }
.xz-st-q input { width: 100%; }
.xz-st-date input { width: 150px; }
.xz-st-tools { display: flex; gap: 8px; margin-left: auto; }
.xz-st-tools .button { min-height: 40px; display: inline-flex; align-items: center; }
.xz-st-log { list-style: none; margin: 0; padding: 0; }
.xz-st-log li { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 6px 18px; padding: 13px 20px; border-bottom: 1px solid #eef0ea; align-items: baseline; }
.xz-st-log-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: #656b60; }
.xz-st-log-meta span { color: #20262d; font-weight: 550; }
.xz-st-log p { margin: 0; font-size: 13px; color: #20262d; line-height: 1.5; overflow-wrap: anywhere; }
.xz-st-log a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
[data-log].xz-st-loading { opacity: .5; transition: opacity .1s; }

/* settings */
.xz-st-two, .xz-st-three { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xz-st-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xz-st-two input, .xz-st-three input { width: 100%; }
.settings-form textarea { width: 100%; }
.settings-form label small { font-weight: 400; color: #656b60; }
.xz-st-example { font-size: 13px; padding: 12px 14px; margin: 0; }
.xz-st-conn { display: grid; gap: 14px; justify-items: start; }
.xz-st-conn .xz-dl { width: 100%; }
.xz-st-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.xz-st-test { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; width: 100%; }
.xz-st-test label { display: grid; gap: 4px; flex: 1 1 200px; font-size: 12px; font-weight: 550; color: #41483d; }
.xz-st-test input { width: 100%; }
.xz-st-test-result { margin: 0; font-size: 13px; }
.xz-st-test-result:empty { display: none; }
.xz-st-test-result.ok { color: var(--xz-ok); }
.xz-st-test-result.bad { color: var(--xz-bad); }
.os-section-tabs button { min-height: 40px; }

@media (max-width: 1000px) {
  .xz-st-log li { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .xz-st-tabs { flex-wrap: wrap; gap: 4px 16px; }
  .xz-st-hide-sm { display: none; }
  .xz-st-only-sm { display: block; margin-top: 6px; }
  [data-xz-table=staff] th, [data-xz-table=staff] td { padding-left: 14px; padding-right: 10px; }
  .xz-st-two, .xz-st-three { grid-template-columns: 1fr; }
  .xz-st-log li { padding: 12px 14px; }
  .xz-st-filters > label:not(.xz-st-q) { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .xz-st-filters select, .xz-st-date input { width: 100%; max-width: none !important; }
  .xz-st-tools { margin-left: 0; width: 100%; }
  .xz-st-tools .button { flex: 1; justify-content: center; }
  .xz-st-switch { grid-template-columns: 20px minmax(0, 1fr); }
  .xz-st-switch > :last-child:not(span) { grid-column: 2; justify-self: start; }
  .xz-st-temp code { font-size: 18px; }
}
