/* MySmartInvoice 2 – area F: sign-in methods (login page), company switcher (sidebar), account page (#/account). Lumen tokens only. */

/* ---------- login page ---------- */
.auth-alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.auth-alt .btn { justify-content: center; }
.code-input { font: 600 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .32em; text-align: center; height: 56px; }
.dev-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2);
  border: 1px dashed var(--border-strong); font-size: var(--fs-sm); color: var(--text-2); }
.dev-box b { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.dev-box b .ico { width: 16px; height: 16px; color: var(--warn); }
.dev-box .dev-val { margin-top: 4px; color: var(--text); }
.dev-box .dev-code { font: 700 20px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }

/* ---------- company switcher in the sidebar ---------- */
.workspace.ws-switch { cursor: pointer; position: relative; transition: background .15s, border-color .15s; }
.workspace.ws-switch:hover, .workspace.ws-switch[aria-expanded="true"] { border-color: var(--border-strong); background: var(--surface-3); }
.workspace.ws-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.workspace .ws-chev { margin-left: auto; width: 16px; height: 16px; color: var(--text-3); flex: none; }
.ws-pop { position: absolute; left: 12px; right: 12px; z-index: 60; padding: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-height: min(70vh, 520px); overflow: auto; }
.ws-pop .ws-title { padding: 8px 10px 6px; font-size: 13px; color: var(--text-3); }
.ws-pop button, .ws-pop a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: none;
  color: var(--text); font: var(--fs-sm)/1.3 var(--font); text-align: left; cursor: pointer; text-decoration: none; }
.ws-pop button:hover, .ws-pop a:hover { background: var(--surface-3); }
.ws-pop button[disabled] { opacity: .55; cursor: default; }
.ws-pop .ws-av { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none;
  background: var(--accent-50); color: var(--accent-text); }
.ws-pop .ws-name { min-width: 0; flex: 1; }
.ws-pop .ws-name b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; overflow: hidden; line-height: 1.3; }   /* long company names: two lines */
.ws-pop .ws-name span { font-size: 12.5px; color: var(--text-3); }
.ws-pop .ws-on { width: 18px; height: 18px; color: var(--accent); flex: none; }
.ws-pop .sep { height: 1px; background: var(--border); margin: 6px 0; }

/* ---------- account page ---------- */
.acc-tabs { margin-bottom: 20px; }
.acc-tabs a.chip { text-decoration: none; }
.acc-grid { display: grid; gap: 18px; max-width: 920px; }
.acc-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.acc-row:last-child { border-bottom: 0; }
.acc-row .acc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.acc-row .acc-ico.on { background: var(--accent-50); color: var(--accent-text); }
.acc-row .acc-ico .ico { width: 20px; height: 20px; }
.acc-row .acc-main { min-width: 0; }
.acc-row .acc-main b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row .acc-main span { display: block; color: var(--text-3); font-size: 14px; line-height: 1.45; }
.acc-row .acc-side { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.acc-sub { padding: 0 20px 14px 74px; display: grid; gap: 8px; border-bottom: 1px solid var(--border); margin-top: -6px; }
.acc-sub:last-child { border-bottom: 0; }
.acc-key { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.acc-key .acc-key-main { flex: 1; min-width: 0; }
.acc-key .acc-key-main b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-key .acc-key-main span { font-size: 13px; color: var(--text-3); }
.acc-lead { color: var(--text-2); margin: 0 0 4px; max-width: 70ch; }
.acc-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto; gap: 10px; align-items: end; }
@media (max-width: 700px) {
  .acc-row { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .acc-row .acc-side { grid-column: 1 / -1; justify-content: flex-start; }
  .acc-sub { padding: 0 16px 14px 16px; }
  .acc-form { grid-template-columns: 1fr; }
}

/* sidebar workspace card: long company names wrap to two lines instead of being cut (Sajjad 20.10.2026) */
.sidebar .workspace .name { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
