/* AVedge BOQ Portal — team edition.
   Every colour is a theme.css token, so login, setup and the
   denied page theme with the rest of the portal and add no palette. */

.tm-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg, #f5f6f8);
  color: var(--ink, #1d2330);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.tm-card {
  width: 100%;
  max-width: 460px;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #dfe3ea);
  border-radius: 12px;
  padding: 28px 30px 26px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}
.tm-card.wide { max-width: 760px; }

.tm-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #dfe3ea);
}
.tm-brand img { height: 26px; }
.tm-brand span { font-weight: 600; letter-spacing: .01em; opacity: .85; }

.tm-card h1 { font-size: 1.15rem; margin: 0 0 6px; }
.tm-card h2 { font-size: .95rem; margin: 22px 0 8px; }
.tm-muted { color: var(--ink-dim, #6b7280); font-size: .84rem; line-height: 1.5; }

.tm-field { margin: 14px 0; }
.tm-field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 5px; }
.tm-field input, .tm-field textarea, .tm-field select {
  width: 100%; box-sizing: border-box;
  padding: 9px 11px; font: inherit; font-size: .9rem;
  color: var(--ink, #1d2330);
  background: var(--input-bg, #fff);
  border: 1px solid var(--line, #cfd5e0);
  border-radius: 7px;
}
.tm-field input:focus, .tm-field textarea:focus {
  outline: none; border-color: var(--accent, #4f46e5);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .16);
}
.tm-field .tm-hint { font-size: .76rem; color: var(--ink-dim, #6b7280); margin-top: 4px; }
.tm-field textarea { min-height: 84px; resize: vertical; }

.tm-btn {
  display: inline-block; padding: 9px 18px; font: inherit; font-size: .88rem;
  font-weight: 600; border: 0; border-radius: 7px; cursor: pointer;
  background: var(--accent, #4f46e5); color: #fff; text-decoration: none;
}
.tm-btn:hover { filter: brightness(1.07); }
.tm-btn[disabled] { opacity: .55; cursor: default; }
.tm-btn.ghost {
  background: transparent; color: var(--ink, #1d2330);
  border: 1px solid var(--line, #cfd5e0);
}
.tm-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }

.tm-msg { margin-top: 14px; font-size: .85rem; padding: 10px 12px; border-radius: 7px; display: none; }
.tm-msg.show { display: block; }
.tm-msg.err { background: rgba(220, 38, 38, .1); color: #b91c1c; border: 1px solid rgba(220, 38, 38, .28); }
.tm-msg.ok  { background: rgba(16, 185, 129, .1); color: #047857; border: 1px solid rgba(16, 185, 129, .3); }
.tm-msg.info { background: rgba(59, 130, 246, .1); color: #1d4ed8; border: 1px solid rgba(59, 130, 246, .28); }

.tm-kv { display: grid; grid-template-columns: max-content 1fr; gap: 5px 16px; font-size: .84rem; margin: 12px 0; }
.tm-kv dt { font-weight: 600; opacity: .75; }
.tm-kv dd { margin: 0; }

.tm-steps { font-size: .84rem; line-height: 1.6; padding-left: 20px; }
.tm-steps li { margin-bottom: 5px; }
.tm-code {
  font-family: Consolas, "SF Mono", monospace; font-size: .76rem;
  background: var(--code-bg, #f1f3f7); border: 1px solid var(--line, #dfe3ea);
  border-radius: 6px; padding: 8px 10px; word-break: break-all; margin: 6px 0;
}

/* header additions */
.tm-userchip { font-size: .78rem; opacity: .85; white-space: nowrap; }
.tm-update-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #f59e0b; margin-left: 5px; vertical-align: middle;
}
