/* ════════════════════════════════════════════════════════
   POS PERFEKTION — Apple macOS 26 Liquid Glass Design
   ════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:          #0d0d1a;
  --bg2:         #13132a;
  --bg3:         #1a1a35;

  --glass:       rgba(255,255,255,0.09);
  --glass-deep:  rgba(18,18,42,0.96);
  --glass-hover: rgba(255,255,255,0.14);
  --border:      rgba(255,255,255,0.16);
  --border-hi:   rgba(255,255,255,0.28);

  --text:        #f0f0f5;
  --text2:       rgba(240,240,245,0.78);
  --text3:       rgba(240,240,245,0.5);

  --blue:        #0a84ff;
  --blue-dim:    rgba(10,132,255,0.18);
  --blue-border: rgba(10,132,255,0.35);
  --green:       #30d158;
  --green-dim:   rgba(48,209,88,0.15);
  --red:         #ff453a;
  --red-dim:     rgba(255,69,58,0.15);
  --orange:      #ff9f0a;
  --orange-dim:  rgba(255,159,10,0.15);
  --purple:      #bf5af2;
  --purple-dim:  rgba(191,90,242,0.15);
  --yellow:      #ffd60a;

  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   18px;
  --radius-xl:   24px;

  --sidebar-w:   244px;
  --blur:        blur(28px) saturate(180%);
  --blur-deep:   blur(60px) saturate(200%);

  --font: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

/* ── Light Mode ─────────────────────────────────────────── */
body.light {
  --bg:          #f2f2f7;
  --bg2:         #e8e8f0;
  --bg3:         #dcdce8;

  --glass:       rgba(0,0,0,0.05);
  --glass-deep:  rgba(255,255,255,0.85);
  --glass-hover: rgba(0,0,0,0.08);
  --border:      rgba(0,0,0,0.12);
  --border-hi:   rgba(0,0,0,0.22);

  --text:        #1c1c1e;
  --text2:       rgba(28,28,30,0.65);
  --text3:       rgba(28,28,30,0.38);

  --blue-dim:    rgba(10,132,255,0.14);
  --blue-border: rgba(10,132,255,0.3);
  --green-dim:   rgba(48,209,88,0.14);
  --red-dim:     rgba(255,69,58,0.12);
  --orange-dim:  rgba(255,159,10,0.14);
  --purple-dim:  rgba(191,90,242,0.14);

  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(10,100,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(100,10,200,0.05) 0%, transparent 60%);
}
body.light .sidebar { background: rgba(230,230,240,0.97); }
body.light .card { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.1); }
body.light .card:hover { background: rgba(255,255,255,0.95); border-color: rgba(0,0,0,0.18); }
body.light .modal-box { background: rgba(248,248,252,0.98); }
body.light .field input, body.light .field select, body.light .field textarea {
  background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.2); color: var(--text);
}
body.light .login-card .field input, body.light .login-card .field select {
  background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.2); color: var(--text);
}
body.light .field input::placeholder, body.light .field textarea::placeholder { color: var(--text3); }
body.light .btn-ghost { background: rgba(0,0,0,0.06); color: var(--text); border-color: rgba(0,0,0,0.14); }
body.light .btn-ghost:hover { background: rgba(0,0,0,0.1); }
body.light .icon-btn { background: rgba(0,0,0,0.06); color: var(--text2); border-color: rgba(0,0,0,0.12); }
body.light .icon-btn:hover { background: rgba(0,0,0,0.1); color: var(--text); }
body.light .toast { background: rgba(240,240,248,0.95); color: var(--text); }
body.light .modal-close { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.12); }

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(10,60,180,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(100,10,200,0.08) 0%, transparent 60%);
}
a { color: var(--blue); text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ── Glass Materials ────────────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
}
.glass-deep {
  background: var(--glass-deep);
  backdrop-filter: var(--blur-deep);
  -webkit-backdrop-filter: var(--blur-deep);
  border: 1px solid var(--border-hi);
}

/* ── Login ──────────────────────────────────────────────── */
#login-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.login-ambient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(10,132,255,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(10,132,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(191,90,242,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.login-card {
  width: 360px;
  border-radius: var(--radius-xl);
  padding: 40px 36px 36px;
  background: var(--glass-deep);
  backdrop-filter: var(--blur-deep);
  -webkit-backdrop-filter: var(--blur-deep);
  border: 1px solid var(--border-hi);
  box-shadow:
    0 0 0 1px rgba(10,132,255,0.2),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(10,132,255,0.12);
  position: relative; z-index: 1;
}
body.light .login-card {
  box-shadow:
    0 0 0 1px rgba(10,132,255,0.15),
    0 20px 60px rgba(0,0,0,0.1),
    0 0 40px rgba(10,132,255,0.07);
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.hex-logo { width: 56px; height: 56px; margin-bottom: 14px; }
.login-logo h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.3px; margin-bottom: 4px; color: var(--text); }
.login-logo p { font-size: 12px; color: var(--text2); letter-spacing: 0.2px; }
.login-card .field label { color: var(--text2); }
#login-form { display: flex; flex-direction: column; gap: 16px; }
.err-msg { color: var(--red); font-size: 13px; margin-bottom: 12px; }

/* ── App Shell ──────────────────────────────────────────── */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(14,14,32,0.95);
  backdrop-filter: var(--blur-deep);
  -webkit-backdrop-filter: var(--blur-deep);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  gap: 0;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.2px;
  color: var(--text);
  flex-shrink: 0;
}
.sidebar-brand > span { flex: 1; }
.brand-hex { width: 28px; height: 28px; flex-shrink: 0; }

/* Scrollable middle area */
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: none;
}
.sidebar-scroll::-webkit-scrollbar { display: none; }

.sidebar-nav {
  display: flex; flex-direction: column; gap: 2px;
}
.nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 450;
  color: var(--text2);
  transition: background 0.15s, color 0.15s;
  text-align: left;
  width: 100%;
  text-decoration: none;
}
.nav-btn svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.8; }
.nav-btn:hover { background: var(--glass-hover); color: var(--text); }
.nav-btn.active {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid var(--blue-border);
  font-weight: 500;
}
.nav-btn.active svg { opacity: 1; }

/* Sidebar extra sections */
.sidebar-section { padding-top: 18px; }
.sb-sec-hdr {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.7px; text-transform: uppercase;
  color: var(--text3);
  padding: 0 12px 5px;
}
.sb-conn-status {
  font-size: 11px; color: var(--text3);
  padding: 2px 12px 4px 40px;
  line-height: 1.4;
}
.sb-conn-status.online { color: var(--green); }

/* User card footer */
.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.user-card-full {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.user-av-lg {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #5e5ce6 0%, #9056d4 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.user-info span:first-child { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info span:last-child { font-size: 11px; color: var(--text2); }
.icon-btn-sq {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-hover); color: var(--text2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn-sq:hover { background: var(--red-dim); color: var(--red); border-color: rgba(255,69,58,0.3); }
.icon-btn-sq svg { width: 16px; height: 16px; }

/* ── Main Content ───────────────────────────────────────── */
.main {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.view {
  position: absolute; inset: 0;
  overflow-y: auto;
  padding: 32px 36px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.view.active {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Subtle dot grid on main */
.main::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.view { z-index: 1; }

/* ── View Header ────────────────────────────────────────── */
.view-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap; gap: 12px;
}
.view-header h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text);
}
.view-header .subtitle {
  font-size: 13px; color: var(--text2); margin-top: 3px;
}
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500;
  transition: opacity 0.15s, filter 0.15s, transform 0.1s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, rgba(30,110,255,0.95) 0%, rgba(8,80,210,0.95) 100%);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 1px 6px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(255,255,255,0.1) inset;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--border-hi);
  color: var(--text);
}
.btn-ghost:hover { background: var(--glass-hover); }
.btn-danger {
  background: var(--red-dim);
  border: 1px solid rgba(255,69,58,0.3);
  color: var(--red);
}
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }
.btn-xs { padding: 4px 9px; font-size: 12px; border-radius: 6px; }
.w-full { width: 100%; justify-content: center; }

.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text2);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { background: var(--glass-hover); color: var(--text); }
.icon-btn.danger:hover { background: var(--red-dim); color: var(--red); border-color: rgba(255,69,58,0.3); }

/* ── Forms ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 500; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background: rgba(10,132,255,0.06);
}
.field select option { background: var(--bg2); }
.field textarea { resize: vertical; min-height: 80px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-col { display: flex; flex-direction: column; gap: 14px; }
.form-full { grid-column: 1 / -1; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 8px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.12); }

/* ── Modal ──────────────────────────────────────────────── */
#modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-box {
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
  animation: modal-in 0.18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 13px; height: 13px; }
.modal-close:hover { background: var(--red-dim); color: var(--red); }
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.modal-box.wide { max-width: 800px; }

/* ── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 999;
  background: rgba(30,30,40,0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  color: var(--text);
  white-space: nowrap;
  animation: toast-in 0.2s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%); }
}

/* ── Sync Status ─────────────────────────────────────────── */
.sync-status {
  position: fixed; bottom: 28px; right: 20px;
  z-index: 998;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  backdrop-filter: blur(16px);
  display: flex; align-items: center; gap: 6px;
  animation: sync-in 0.2s ease;
  pointer-events: none;
}
@keyframes sync-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sync-status.saving  { background: rgba(255,200,0,0.12);  color: #ffc800; border: 1px solid rgba(255,200,0,0.3); }
.sync-status.saved   { background: rgba(48,209,88,0.12);  color: #30d158; border: 1px solid rgba(48,209,88,0.3); }
.sync-status.offline { background: rgba(255,149,0,0.12);  color: #ff9500; border: 1px solid rgba(255,149,0,0.3); }
.sync-status.error   { background: rgba(255,69,58,0.12);  color: #ff453a; border: 1px solid rgba(255,69,58,0.3); }
body.light .sync-status.saving  { background: rgba(255,200,0,0.15);  color: #b88a00; border-color: rgba(255,200,0,0.4); }
body.light .sync-status.saved   { background: rgba(48,209,88,0.12);  color: #1a7a3a; border-color: rgba(48,209,88,0.4); }
body.light .sync-status.offline { background: rgba(255,149,0,0.12);  color: #b85e00; border-color: rgba(255,149,0,0.4); }
body.light .sync-status.error   { background: rgba(255,69,58,0.12);  color: #c0392b; border-color: rgba(255,69,58,0.4); }

/* ── Tags / Badges ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 500;
}
.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid var(--blue-border); }
.badge-green  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(48,209,88,0.3); }
.badge-red    { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(255,69,58,0.3); }
.badge-orange { background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(255,159,10,0.3); }
.badge-purple { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(191,90,242,0.3); }
.badge-grey   { background: rgba(255,255,255,0.07); color: var(--text2); border: 1px solid var(--border); }

/* ── Empty State ────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text3); font-size: 14px;
}
.empty-state .empty-icon {
  font-size: 36px; margin-bottom: 12px; opacity: 0.4;
}
.empty-state p { margin-top: 6px; }

/* ═══════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text2); font-weight: 500; }

.todo-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.todo-col { display: flex; flex-direction: column; gap: 8px; }
.col-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.col-header h3 { font-size: 14px; font-weight: 600; flex: 1; }
.col-count {
  font-size: 11px; color: var(--text2);
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 1px 8px;
}
.col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-blue   { background: var(--blue); }
.dot-orange { background: var(--orange); }
.dot-purple { background: var(--purple); }
.dot-grey   { background: var(--text3); }
.dot-green  { background: var(--green); }
.dot-red    { background: var(--red); }

.todo-card {
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  transition: border-color 0.15s;
}
.todo-card.done { opacity: 0.5; }
.todo-card.done .todo-title { text-decoration: line-through; }
.todo-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--border-hi);
  flex-shrink: 0; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-size: 11px; color: var(--green);
  transition: background 0.15s, border-color 0.15s;
  margin-top: 1px;
}
.todo-check.checked { background: var(--green-dim); border-color: var(--green); }
.todo-check:hover { border-color: var(--green); }
.todo-body { flex: 1; min-width: 0; }
.todo-title { font-size: 13.5px; font-weight: 450; margin-bottom: 5px; line-height: 1.4; }
.todo-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.todo-time { font-size: 11px; color: var(--text2); }
.type-manual  { }
.type-calendar { color: var(--blue) !important; border-color: var(--blue-border) !important; background: var(--blue-dim) !important; }
.type-slack   { color: var(--purple) !important; border-color: rgba(191,90,242,0.3) !important; background: var(--purple-dim) !important; }
.type-meeting { color: var(--orange) !important; border-color: rgba(255,159,10,0.3) !important; background: var(--orange-dim) !important; }
.prio-high   { color: var(--red) !important; border-color: rgba(255,69,58,0.3) !important; background: var(--red-dim) !important; }
.prio-normal { color: var(--text2) !important; border-color: var(--border) !important; background: rgba(255,255,255,0.05) !important; }
.prio-low    { color: var(--text3) !important; border-color: var(--border) !important; background: rgba(255,255,255,0.03) !important; }

/* ═══════════════════════════════════════
   POS STORES
   ═══════════════════════════════════════ */
.region-group { margin-bottom: 32px; }
.region-title {
  font-size: 11px; font-weight: 600; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.region-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.store-card {
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  cursor: pointer;
  position: relative;
}
.store-card.staffed { border-color: rgba(10,132,255,0.2); }
.store-name { font-size: 13.5px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.store-city { font-size: 12px; color: var(--text2); }
.store-footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.staff-avatars { display: flex; gap: -4px; }
.staff-av {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  border: 1.5px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: white;
  margin-left: -6px;
}
.staff-av:first-child { margin-left: 0; }

/* ═══════════════════════════════════════
   VT TEAM
   ═══════════════════════════════════════ */
/* VT Team filters */
.vt-filters {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.filter-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.filter-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text2);
  min-width: 70px; flex-shrink: 0;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  height: 28px; padding: 0 12px; border-radius: 14px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text2); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active {
  background: var(--blue); border-color: var(--blue);
  color: white; font-weight: 600;
}

/* VT Team store groups */
.vt-group { margin-bottom: 28px; }
.vt-group-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.vt-group-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.vt-group-count {
  font-size: 11px; color: var(--text3);
  background: var(--bg2); border-radius: 10px; padding: 2px 8px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.team-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  position: relative;
}
.team-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: white;
  margin: 0 auto 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.team-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.team-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.team-role { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.team-dept { }
.team-actions { margin-top: 12px; display: flex; gap: 6px; justify-content: center; }
.team-email { font-size: 11.5px; color: var(--text2); margin-top: 4px; word-break: break-all; }

/* ═══════════════════════════════════════
   WISSENSBEREICH
   ═══════════════════════════════════════ */
.knowledge-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}
.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-item {
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer; color: var(--text2);
  transition: background 0.15s, color 0.15s;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid transparent;
}
.cat-item:hover { background: var(--glass-hover); color: var(--text); }
.cat-item.active { background: var(--blue-dim); color: var(--blue); border-color: var(--blue-border); font-weight: 500; }
.cat-count { font-size: 11px; opacity: 0.6; }

.knowledge-list { display: flex; flex-direction: column; gap: 10px; }
.kb-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.kb-header {
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.kb-header h3 { font-size: 14px; font-weight: 500; flex: 1; }
.kb-chevron { font-size: 12px; color: var(--text2); transition: transform 0.2s; }
.kb-card.open .kb-chevron { transform: rotate(180deg); }
.kb-body {
  padding: 0 18px 18px;
  display: none;
  font-size: 13.5px; color: var(--text2); line-height: 1.7;
}
.kb-card.open .kb-body { display: block; }
.kb-links { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.kb-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--blue);
  padding: 4px 0;
}
.kb-link::before { content: '↗'; font-size: 11px; }
.kb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

/* ═══════════════════════════════════════
   PERFORMANCE
   ═══════════════════════════════════════ */
.perf-nav {
  display: flex; gap: 8px; margin-bottom: 24px;
  flex-wrap: wrap; align-items: center;
}
.perf-nav-label { font-size: 12px; color: var(--text2); margin-right: 4px; }
.week-btn {
  padding: 5px 14px; border-radius: 20px;
  font-size: 12.5px;
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text2);
  transition: all 0.15s;
}
.week-btn.active { background: var(--blue-dim); color: var(--blue); border-color: var(--blue-border); }

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: border-color 0.2s;
}
.screenshot-frame:hover { border-color: var(--blue-border); }
.screenshot-frame img { width: 100%; height: 100%; object-fit: cover; }
.screenshot-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 11.5px; font-weight: 500;
}
.no-screenshot {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--text3); font-size: 12px;
  flex-direction: column; gap: 6px;
}

.analysis-section { }
.hl-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.hl-col { }
.hl-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.hl-title.highlights { color: var(--green); }
.hl-title.lowlights  { color: var(--red); }
.hl-item {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  margin-bottom: 5px;
  font-size: 13px;
  background: var(--glass);
  border: 1px solid var(--border);
}
.hl-bullet { font-size: 10px; margin-top: 2px; }
.hl-item.highlight { border-color: rgba(48,209,88,0.2); }
.hl-item.lowlight  { border-color: rgba(255,69,58,0.2); }

/* ═══════════════════════════════════════
   FOKUS PUNKTE
   ═══════════════════════════════════════ */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.focus-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}
.focus-priority-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.pbar-high   { background: var(--red); }
.pbar-medium { background: var(--orange); }
.pbar-low    { background: var(--blue); }
.focus-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; margin-top: 4px; }
.focus-desc  { font-size: 13px; color: var(--text2); margin-bottom: 12px; line-height: 1.6; }
.focus-items { display: flex; flex-direction: column; gap: 5px; }
.focus-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text2);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.focus-item:last-child { border-bottom: none; }
.focus-item.done { text-decoration: line-through; opacity: 0.5; }
.focus-footer { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.focus-deadline { font-size: 11.5px; color: var(--text2); }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Search bar ─────────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
}
.search-bar input {
  background: none; border: none;
  color: var(--text); font-size: 14px; outline: none; flex: 1;
}
.search-bar input::placeholder { color: var(--text3); }
.search-icon { color: var(--text3); font-size: 14px; }

/* ── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px; background: var(--border); margin: 20px 0;
}

/* ── Section tabs ───────────────────────────────────────── */
.tab-bar { display: flex; gap: 4px; margin-bottom: 20px; }
.tab-btn {
  padding: 7px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text2);
  border: 1px solid transparent;
  transition: all 0.15s;
}
.tab-btn:hover { background: var(--glass); color: var(--text); }
.tab-btn.active {
  background: var(--glass);
  border-color: var(--border-hi);
  color: var(--text);
}

/* ── Report preview ──────────────────────────────────────── */
.report-preview {
  background: white;
  color: #1a1a1a;
  border-radius: var(--radius);
  padding: 40px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
}
.report-preview h1 { font-size: 22px; margin-bottom: 4px; }
.report-preview h2 { font-size: 16px; margin-top: 20px; margin-bottom: 8px; color: #333; }
.report-preview ul { padding-left: 18px; }
.report-preview li { margin-bottom: 4px; }
.report-preview .report-meta { font-size: 12px; color: #666; margin-bottom: 20px; }

/* ═══════════════════════════════════════
   MY DAY
   ═══════════════════════════════════════ */
.myday-weather {
  display: flex; align-items: center; gap: 12px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 18px;
}

.myday-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.myday-card { display: flex; flex-direction: column; gap: 10px; }
.myday-note-card { display: flex; flex-direction: column; }

.myday-hdr {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.myday-section-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text2);
}

.myday-empty {
  font-size: 13px; color: var(--text3);
  padding: 8px 0;
}

.myday-meta {
  font-size: 11px; color: var(--text3);
  margin-top: -4px;
}

/* Appointment row */
.myday-appt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.appt-bar { width: 3px; height: 36px; border-radius: 2px; flex-shrink: 0; }
.appt-time { font-size: 12px; color: var(--text3); font-weight: 500; white-space: nowrap; min-width: 80px; }
.appt-body { flex: 1; min-width: 0; }
.appt-title { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* POS Status toggle */
.pos-toggle {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.pos-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--text2);
  background: var(--glass); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s;
}
.pos-btn:hover { background: var(--glass-hover); color: var(--text); }
.pos-btn-active { font-weight: 600; }
.pos-btn-active.pos-ok      { background: var(--green-dim);  border-color: rgba(48,209,88,0.4);  color: var(--green); }
.pos-btn-active.pos-pending { background: var(--orange-dim); border-color: rgba(255,159,10,0.4); color: var(--orange); }
.pos-btn-active.pos-issue   { background: var(--red-dim);    border-color: rgba(255,69,58,0.4);  color: var(--red); }
.pos-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pos-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--blue);
  padding: 6px 0; text-decoration: none;
  transition: opacity 0.15s;
}
.pos-link:hover { opacity: 0.75; }

/* Todo rows in My Day */
.myday-todo {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.myday-todo:last-child { border-bottom: none; }
.myday-todo.done { opacity: 0.45; }
.myday-todo.done .todo-title { text-decoration: line-through; }

/* Focus items */
.myday-focus-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.myday-focus-item:last-child { border-bottom: none; }
.myday-focus-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }

.myday-progress-bar {
  height: 3px; background: var(--border);
  border-radius: 2px; overflow: hidden; margin-top: 5px;
}
.myday-progress-fill { height: 100%; border-radius: 2px; transition: width 0.4s ease; }

/* Note textarea */
.myday-note-area {
  width: 100%; min-height: 100px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 12px 14px; font-size: 14px; font-family: var(--font);
  line-height: 1.6; resize: vertical; outline: none;
  transition: border-color 0.15s;
}
.myday-note-area::placeholder { color: var(--text3); }
.myday-note-area:focus { border-color: var(--blue); }

@media (max-width: 1100px) {
  .myday-grid { grid-template-columns: 1fr; }
}

/* ── Print styles ─────────────────────────────────────────── */
@media print {
  body { background: white !important; }
  #app, #login-screen, #modal-overlay { display: none !important; }
  .print-content { display: block !important; }
  .report-preview { box-shadow: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .todo-cols  { grid-template-columns: 1fr 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 60px; }
  .sidebar-brand span, .nav-btn span:last-child, .user-text { display: none; }
  .sidebar { align-items: center; }
  .nav-btn { justify-content: center; padding: 10px; }
  .nav-btn svg { width: 20px; height: 20px; }
  .view { padding: 20px 16px; }
  .todo-cols { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .hl-table { grid-template-columns: 1fr; }
}
