/* אתר הניהול: משלים את app.css (אותם צבעים, מעטפת ורכיבים) עם רכיבים ייחודיים ללקוחות, מנויים ויומן. */
.login-brand { display: flex; align-items: center; gap: 11px; direction: ltr; justify-content: center; font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.login-brand i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); order: 2; }
.login-brand i .hub-icon { width: 24px; height: 24px; }
.login-brand b { font-weight: 400; margin-left: 4px; color: var(--ink-2); }
.login .card { text-align: start; }
.login .card h1 { text-align: center; }
.login .card > .muted { text-align: center; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; font-size: 12px; color: var(--ink-2); }
.login-note .hub-icon { width: 15px; height: 15px; }

.topbar .breadcrumb { flex: 1 1 auto; }
.admin-badge { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.admin-badge .hub-icon { width: 14px; height: 14px; }
.topbar > button.header-help { display: inline-flex; background: transparent; border: 0; cursor: pointer; padding: 0; }
.nav .foot a.item { cursor: pointer; }

.count { display: inline-block; min-width: 26px; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; text-align: center; vertical-align: middle; }
.adm-stats { margin-bottom: 4px; }
.cust-section { display: flex; flex-direction: column; gap: 16px; }
.cust-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tool-search.wide { flex: 1 1 280px; max-width: 420px; width: auto; }
.filters { display: flex; gap: 3px; border: 1px solid var(--line); padding: 3px; border-radius: 6px; background: var(--surface); flex-wrap: wrap; }
.filter { font: inherit; font-size: 11px; border: 0; border-radius: 4px; background: transparent; padding: 6px 12px; cursor: pointer; color: var(--ink-2); }
.filter[aria-pressed=true] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.filter:focus-visible, .chipbtn:focus-visible, .cust .head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cust-list { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; }
.cust-list > .empty { padding: 2.2rem 1rem; }
.cust { border-bottom: 1px solid var(--line); }
.cust:last-child { border-bottom: 0; }
.cust.open { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }
.cust .head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 18px; background: transparent; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.cust .head:hover { background: var(--sunken); }
.cust .head > .hub-icon { width: 16px; height: 16px; color: var(--ink-2); transform: rotate(-90deg); transition: transform .18s; flex: none; }
.cust.open .head > .hub-icon { transform: rotate(90deg); color: var(--accent); }
.cust .who { flex: 1 1 auto; min-width: 0; }
.cust .who .n { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cust .who .s { font-size: 11px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.cust .seen { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--ink-2); min-width: 120px; }
.cust .seen b { font-weight: 500; color: var(--ink); }
.avatar { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; color: var(--ink); background: var(--sunken); border: 2.5px solid var(--accent); }
.avatar.expired { border-color: var(--bad); border-style: dashed; }
.avatar.disabled { border-color: var(--ink-2); border-style: dashed; color: var(--ink-2); }
.exp { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); }
.exp.e-ok { color: var(--accent); background: var(--accent-soft); }
.exp.e-owner { color: var(--ink-2); }
.exp.e-soon { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.exp.e-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.exp.e-off { color: var(--ink-2); background: var(--sunken); }

.cust .body { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { white-space: nowrap; flex: none; font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--sunken); }
.tag.on { color: var(--accent); background: var(--accent-soft); }
.tag.owner { margin-inline-start: 4px; }
.cust-meta { margin: 0; }
.grp { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.grp .lbl { min-width: 58px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; min-height: 34px; padding: 5px 13px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.chipbtn:hover { border-color: var(--accent); background: var(--accent-soft); }
.chipbtn .hub-icon { width: 15px; height: 15px; }
.chipbtn.bad { color: var(--bad); }
.chipbtn.bad:hover { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.cust-logs { border-top: 1px dashed var(--line); padding-top: 10px; max-height: 280px; overflow: auto; }
.log-line { display: grid; grid-template-columns: 150px minmax(150px, 220px) 1fr auto; gap: 12px; align-items: baseline; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
.log-line:last-child { border-bottom: 0; }
.log-line time { color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.log-line.warn b { color: var(--warn); }
.log-table { margin-top: 12px; }
.log-table.server .log-line { grid-template-columns: 82px 56px 90px 1fr; font-family: var(--mono); font-size: 11px; }
.lvl { text-transform: uppercase; font-size: 10px; letter-spacing: .02em; }
.lvl.error { color: var(--bad); } .lvl.warn { color: var(--warn); } .lvl.info { color: var(--accent); } .lvl.debug { color: var(--ink-2); }
.log-line .scope { color: var(--ink-2); }
.activity-card { padding: 18px 20px; }

.list-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ink-2); }
.live { display: inline-flex; align-items: center; gap: 7px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: livepulse 2s infinite; }
@keyframes livepulse { 50% { opacity: .35; } }

.creds { border: 1px solid var(--accent); border-radius: 8px; background: var(--accent-soft); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; animation: appear .3s ease both; }
.creds-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.creds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.creds-grid > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.creds-grid small { font-size: 11px; color: var(--ink-2); }
.creds code { font-family: var(--mono); font-size: 13px; padding: 8px 10px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); overflow-wrap: anywhere; user-select: all; }
.creds code.pw { color: var(--accent); font-weight: 700; letter-spacing: .03em; }

.perm-grid { display: flex; flex-direction: column; max-height: 42vh; overflow: auto; margin-block: 8px; border: 1px solid var(--line); border-radius: 8px; }
.perm-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.perm-row:last-child { border-bottom: 0; }
.perm-row code { display: block; font-size: 10px; color: var(--ink-2); }
.perm-row .muted { font-size: 11px; }
.new-form .dd-wrap, .new-form .tp-wrap { display: block; }
.new-form .dd { width: 100%; }
.wrapsegs { flex-wrap: wrap; max-width: 100%; }
.until-row { margin-top: 10px; }
.until-row .tp { min-width: 150px; }
.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.security-grid h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-inline-end: 44px; }
.pw-wrap .eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 4px 8px; }
.help-list { padding-inline-start: 1.1rem; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); }

@media (max-width: 860px) {
  .cust .seen { display: none; }
  .log-line { grid-template-columns: 110px 1fr; }
  .log-line > :nth-child(n+3) { grid-column: 2; }
  .creds-grid { grid-template-columns: minmax(0, 1fr); }
  .security-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .cust .head { padding: 13px 12px; gap: 10px; }
  .cust .body { padding: 2px 12px 16px; }
  .avatar { width: 38px; height: 38px; }
  .exp { font-size: 10px; padding: 2px 8px; }
  .grp .lbl { flex-basis: 100%; }
  .admin-badge { display: none; }
  .cust-tools { flex-direction: column; align-items: stretch; }
  .tool-search.wide { max-width: none; flex: none; width: 100%; }
  .log-table.server .log-line { grid-template-columns: 70px 1fr; }
  .log-table.server .log-line > :nth-child(n+3) { grid-column: 2; }
}
