/* Ü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; }

/* şablon paylaşımı (js/hat/sablonlar.js) */
.sp-body { display: flex; flex-direction: column; gap: 10px; }
.sp-list { display: flex; flex-direction: column; gap: 8px; }
.sp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 12px; padding: 10px; border: 1px solid var(--border, #333); border-radius: 8px; }
.sp-row.is-kuruldu { border-left: 3px solid var(--success, #2e9d5b); }
.sp-main, .sp-sum, .sp-send { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sp-map { display: grid; grid-template-columns: 180px 1fr; gap: 4px 10px; align-items: center; }
@media (max-width: 760px) { .sp-row, .sp-map { grid-template-columns: 1fr; } }

/* Toplu ürün yükleme penceresi (İlanlar sayfasında da açılır: stiller burada, 30.11.2026) */
.ha2-spacer {
  flex: 1;
}
.ha2-small {
  font-size: 11px;
}
.ha2-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.ha2-pick { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 6px; border: 1px solid var(--border, #333); border-radius: 8px; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.ha2-pick:hover { border-color: var(--accent, var(--accent)); }
.ha2-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.ha2-pick span { word-break: break-all; }
.ha2-fp { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ha2-fp-row { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 8px; border-radius: 6px; background: var(--panel-2); }
.ha2-fp-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ha2-fp-modal { display: flex; flex-direction: column; gap: 8px; }
.ha2-fp-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ha2-fp-cur { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.ha2-fp-list { display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow: auto; border: 1px solid var(--border, #2a2a2a); border-radius: 8px; padding: 4px; }
.ha2-fp-item { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 10px; border: 0; background: transparent; color: inherit; border-radius: 6px; cursor: pointer; }
.ha2-fp-item:hover { background: var(--hover); }
.ro-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ro-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-status { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tp-progress { display: flex; flex-direction: column; gap: 6px; }
.tp-actions { flex-wrap: wrap; }
.tp-body { max-height: 62vh; overflow: auto; }
.tp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tp-cand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px; border: 1px solid var(--border, #333); border-radius: 8px; cursor: pointer; }
.tp-cand img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #f4f4f4; }
.tp-table { display: flex; flex-direction: column; gap: 6px; }
.tp-row { display: grid; grid-template-columns: 28px 140px minmax(150px, 1fr) minmax(200px, 1.3fr) minmax(200px, 1.3fr) minmax(190px, 1.1fr); gap: 10px; align-items: start; padding: 8px; border: 1px solid var(--border, #333); border-radius: 8px; }
.tp-head { border: 0; padding: 0 8px; font-size: 12px; color: var(--muted, #888); }
.tp-row.is-onaylandi { border-left: 3px solid var(--success, #2e9d5b); }
.tp-row.is-yuklendi { opacity: .75; border-left: 3px solid var(--success, #2e9d5b); }
.tp-row.is-hata, .tp-row.is-eksik, .tp-row.is-yukleme_hatasi { border-left: 3px solid var(--danger, #d64545); }
.tp-row.is-atlandi { opacity: .5; }
.tp-me { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-me img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #f4f4f4; }
.tp-mocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tp-mocks img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.tp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-field textarea { width: 100%; font-size: 13px; }
.tp-text { font-size: 13px; white-space: pre-wrap; }
@media (max-width: 900px) {
  .tp-row { grid-template-columns: 28px 1fr; }
  .tp-head { display: none; }
  .tp-mocks, .tp-field { grid-column: 1 / -1; }
}
.ha2-pick.is-picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tp-wizard { display: flex; flex-direction: column; gap: 14px; }
.tp-step { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--border, #ddd); border-radius: 10px; }
.tp-step-h { margin: 0; font-size: 15px; }
.tp-step .ro-bar { flex-wrap: wrap; margin-bottom: 0; }
.tp-pick { max-height: 260px; overflow: auto; }
.tp-cand strong { font-size: 12px; word-break: break-all; }
.tp-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tp-tpl { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--border, #ddd); border-radius: 8px; }
.tp-tpl.is-unmarked { border-color: var(--warning, #d9a400); }
.tp-tpl img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.tp-tpl span { word-break: break-all; }
.tp-tpl .ro-bar { flex-wrap: wrap; }
.tp-opts { display: flex; flex-wrap: wrap; gap: 16px; }
.tp-opt { display: flex; flex-direction: column; gap: 4px; min-width: 220px; }
.tp-start { margin-top: 4px; }
.tp-row.is-mockup_hazir { border-left: 3px solid var(--accent, #128c70); }
.tp-me .input, .tp-me .select { max-width: 100%; }

/* Mağaza Bağlantısı: mağaza kurulumu (bilgi kartları + sabit mockup şablonları), 01.12.2026 */
.ms-setup { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.ms-setup:empty { display: none; }
.ms-head { font-size: 17px; margin: 6px 0 0; }
.ms-block { border: 1px solid var(--border, #ddd); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ms-block-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ms-title { font-size: 15px; margin: 0; }
.ms-block p { margin: 0; }
.ms-path { word-break: break-all; }
.ms-rule { color: var(--success, #157a5b); }
.ms-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border, #ddd); }
.ms-gone { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; background: var(--surface-2, #f3f3f3); font-size: 28px; color: var(--muted, #888); }
@media (max-width: 640px) { .ms-block { padding: 12px; } .ms-thumbs img { width: 64px; height: 64px; } }
