/* Ürün Hattı: giriş sayfası ve kenar çubuğundaki kullanıcı kartı. stallkit'in
   base.css değişkenlerini kullanır, kendi renk tanımı yoktur. */

.hat-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--bg);
}
.hat-login-box {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-pop);
}
.hat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.hat-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--text);
}
.hat-subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}
.hat-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hat-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hat-field label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.hat-field .input {
  width: 100%;
}
.hat-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.hat-error {
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 13px;
  margin: 0;
}
.hat-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.hat-submit {
  min-width: 140px;
  justify-content: center;
}
.hat-totp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.hat-qr svg {
  display: block;
  width: 190px;
  height: 190px;
  border-radius: var(--radius-sm);
}
.hat-secret {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  user-select: all;
  word-break: break-all;
  text-align: center;
}

/* Kenar çubuğundaki kullanıcı kartı */
.hat-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.hat-user:hover {
  background: var(--hover);
}
.hat-user-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}
.hat-user-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.hat-user-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hat-user-role {
  font-size: 11px;
  color: var(--muted);
}
.hat-kvkk-text {
  white-space: pre-wrap;
  max-height: 50vh;
  overflow: auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.hat-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Üst çubuktaki mesai göstergesi */
.hat-time {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hat-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 12.5px;
  text-decoration: none;
  white-space: nowrap;
}
.hat-time-pill:hover {
  background: var(--hover);
}
.hat-time-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.hat-time-dot.is-working {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}
.hat-time-dot.is-break {
  background: var(--warning);
  box-shadow: 0 0 0 3px var(--warning-soft);
}
.hat-time-today {
  color: var(--muted);
}
.hat-time-warn {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--warning);
  color: #000;
  font-weight: 700;
  font-size: 11px;
}
@media (max-width: 1100px) {
  .hat-time-label {
    display: none;
  }
}

/* Yönetici: kullanıcının gözüyle bakma (yalnızca görüntüleme) */
.hat-view-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--warning-bg, #fff4d6);
  color: var(--warning-fg, #5c4300);
  border-bottom: 1px solid var(--warning-border, #f0d68a);
  font-size: 14px;
}
.hat-upd-banner {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--info-bg, #e7f0ff);
  color: var(--info-fg, #1b3a6b);
  border-bottom: 1px solid var(--info-border, #b8cff5);
  font-size: 14px;
}
.hat-upd p { margin: 0 0 8px; }
.hat-upd-actions { display: flex; gap: 8px; margin: 8px 0; }
.hat-upd-sub { margin-top: 16px !important; }
.hat-upd-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.hat-upd-old { color: var(--warning-fg, #b35c00); }
.hat-view-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.hat-view-row { display: flex; align-items: center; gap: 10px; }
.hat-view-name { flex: 1; min-width: 0; }
