/* Portal-only additions on top of the shared admin stylesheet (css/styles.css). */

/* ── Auth screens ── */
.auth-pane > p.muted { margin: 5px 0 22px; color: var(--text-sec); font-size: 14.5px; line-height: 1.45; }
.login-form-inner .show-pw { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 500; cursor: pointer; }
.login-form-inner .show-pw input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--blue); }
.link-btn { display: block; margin: 16px auto 0; padding: 6px; background: none; border: 0; cursor: pointer;
  color: var(--blue); font-family: inherit; font-size: 13.5px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.link-btn:empty { display: none; }
.form-ok { background: var(--green-soft); color: var(--green); padding: 12px 14px; border-radius: 10px;
  font-size: 13px; line-height: 1.45; margin-top: 14px; }
.form-ok strong { display: block; margin-bottom: 4px; }

.pw-rules { list-style: none; margin: 14px 0 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 8px; }
.pw-rules li::before { content: ''; width: 14px; height: 14px; flex-shrink: 0; box-sizing: border-box;
  border: 1.5px solid currentColor; border-radius: 50%; }
.pw-rules li.ok { color: var(--green); }
.pw-rules li.ok::before { background: currentColor; box-shadow: inset 0 0 0 3px #fff; }

/* ── Sidebar account block ── */
.sb-account { padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sb-account .nav-group { padding: 14px 6px 6px; }
.sb-condo { padding: 0 6px; color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sb-user { padding: 5px 6px 0; color: #7e8aa6; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

/* ── Topbar ── */
.topbar { gap: 12px; }
.nav-toggle { margin-right: 0; }
.tb-mark { display: none; width: 26px; height: auto; flex-shrink: 0; }
.tb-title { flex: 1; min-width: 0; }
.tb-title .page-title, .tb-condo { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-condo { font-size: 12px; color: var(--text-sec); margin-top: 1px; }
.topbar-right { flex-shrink: 0; }

/* ── Lists ── */
.page-head .btn { flex-shrink: 0; }
.list-more { padding: 16px; }
.nowrap { white-space: nowrap; }
.table-wrap table.t-logs { min-width: 680px; }
.table-wrap table.t-users { min-width: 960px; }
td.doors { min-width: 160px; }
.t-users td:first-child { min-width: 190px; }
.t-logs td:nth-child(3) { min-width: 220px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 14px; border-radius: 30px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text-sec); box-shadow: var(--shadow-sm);
  font-family: inherit; font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: #ccd5e6; color: var(--text); }
.chip b { min-width: 24px; padding: 2px 7px; border-radius: 20px; background: #eef1f6; font-size: 11.5px; text-align: center;
  font-variant-numeric: tabular-nums; }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip.active b { background: rgba(255,255,255,.22); }

@media (min-width: 861px) {
  .search input.field { min-width: 340px; }
}
@media (max-width: 860px) {
  .tb-mark { display: block; }
}
@media (max-width: 480px) {
  .login-panel { align-items: flex-start; padding: 72px 16px 32px; }
  .login-lang { top: 16px; right: 16px; }
  .page-head .btn { width: 100%; justify-content: center; }
  .toolbar input[type="date"].field { flex: 1 1 40%; }
  .topbar .avatar { display: none; }
}
