/* ══════════════════════════════════════
   RICCARDO KONTROLLE – SHARED STYLES
   ══════════════════════════════════════ */

:root {
  --brand:    #1a1a18;
  --accent:   #2d6a9f;
  --accent-l: #e8f2fb;
  --red:      #c0392b;
  --green:    #27ae60;
  --yellow:   #e67e22;
  --bg:       #eef2f7;
  --card:     #ffffff;
  --border:   #d8e2ee;
  --text:     #1a1a18;
  --muted:    #6a7a90;
  --gold:     #c8973e;
}

/* Theme overrides */
[data-theme="sl"] {
  --accent:   #c8973e;
  --accent-l: #fff8ee;
  --bg:       #f0ede8;
  --border:   #e0dbd2;
  --muted:    #888070;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ── LOGIN PAGE ── */
.login-page {
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: 20px;
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.login-header {
  background: var(--brand);
  padding: 36px 32px 28px;
  text-align: center;
  position: relative;
}

.login-icon {
  width: 56px; height: 56px;
  background: var(--gold);
  color: #fff;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.login-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 4px;
}

.login-header p {
  color: #a8b4c4;
  font-size: 13px;
  font-weight: 300;
}

.login-form {
  padding: 28px 32px 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.form-group input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #f8fafc;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,151,62,.12);
}

.btn-login {
  width: 100%;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background .18s, transform .1s;
  letter-spacing: .02em;
}

.btn-login:hover { background: #2e2e2a; transform: translateY(-1px); }

.login-footer {
  padding: 16px 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flash-messages { padding: 0 32px; }
.flash {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  margin-bottom: 12px;
}
.flash-error { background: #fff0f0; color: var(--red); border: 1px solid #fdd; }

/* ── BANNER ── */
.banner {
  background: var(--brand);
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute; top: -70px; right: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .13;
}
.banner::after {
  content: '';
  position: absolute; bottom: -50px; left: 80px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .09;
}
.banner-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 24px 30px;
  position: relative;
}
.banner-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.banner h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}
.banner p { color: #a8b4c4; font-size: 13px; font-weight: 300; }
.banner .user-info {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px;
}
.banner .user-badge {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
}
.banner .btn-logout {
  background: rgba(255,255,255,.08);
  color: #a8b4c4;
  border: 1px solid rgba(255,255,255,.12);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
}
.banner .btn-logout:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── PROGRESS ── */
.progress-wrap {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 10px 0;
}
.progress-inner {
  max-width: 760px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 14px;
}
.progress-bar-bg {
  flex: 1; height: 5px;
  background: rgba(255,255,255,.12);
  border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #5aa0d8);
  border-radius: 3px;
  transition: width .35s ease;
  width: 0%;
}
[data-theme="sl"] .progress-bar-fill {
  background: var(--accent);
}
.progress-label { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; }
.progress-pct   { font-size: 13px; font-weight: 600; color: #5aa0d8; min-width: 42px; text-align: right; white-space: nowrap; }
[data-theme="sl"] .progress-pct { color: var(--accent); }

/* ── LAYOUT ── */
.container { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ── IDENTITY CARD ── */
.identity-card {
  background: var(--card);
  border-top: 5px solid var(--accent);
  border-radius: 0 0 10px 10px;
  padding: 28px 28px 24px;
  margin-bottom: 18px;
  box-shadow: 0 3px 16px rgba(0,0,0,.07);
}
.identity-card h2 {
  font-size: 11px; font-weight: 600;
  color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 20px;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:540px){ .field-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #f6f9fd;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
[data-theme="sl"] .field input,
[data-theme="sl"] .field select,
[data-theme="sl"] .field textarea { background: #faf9f7; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,106,159,.1);
}
[data-theme="sl"] .field input:focus,
[data-theme="sl"] .field select:focus,
[data-theme="sl"] .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(200,151,62,.1);
}
.field textarea { resize: vertical; min-height: 72px; line-height: 1.55; }
.field input[readonly] { background: #eee; cursor: not-allowed; }

/* ── SECTION CARDS ── */
.section-card {
  background: var(--card);
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  overflow: hidden;
  animation: fadeUp .4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.section-card:nth-child(2) { animation-delay: 0.05s; }
.section-card:nth-child(3) { animation-delay: 0.10s; }
.section-card:nth-child(4) { animation-delay: 0.15s; }
.section-card:nth-child(5) { animation-delay: 0.20s; }
.section-card:nth-child(6) { animation-delay: 0.25s; }
.section-card:nth-child(7) { animation-delay: 0.30s; }

.section-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.section-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
}
.section-header-text h3 { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.section-header-text p  { font-size: 12px; color: var(--muted); font-weight: 300; }
.phase-badge {
  margin-left: auto;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.section-body { padding: 22px 24px; }

/* colour themes */
.s1 .section-icon { background: #e8f2fb; } .s1 .phase-badge { background: #e8f2fb; color: #1050a0; }
.s2 .section-icon { background: #fff3e0; } .s2 .phase-badge { background: #fff3e0; color: #a06010; }
.s3 .section-icon { background: #ffeaea; } .s3 .phase-badge { background: #ffeaea; color: #a02020; }
.s4 .section-icon { background: #ddf5e4; } .s4 .phase-badge { background: #ddf5e4; color: #186030; }
.s5 .section-icon { background: #ebe8ff; } .s5 .phase-badge { background: #ebe8ff; color: #4020a0; }
.s6 .section-icon { background: #f0f0f0; } .s6 .phase-badge { background: #f0f0f0; color: #505050; }
.s7 .section-icon { background: #fff4f4; } .s7 .phase-badge { background: #fff4f4; color: #902020; }

/* SL section colours */
[data-theme="sl"] .s1 .section-icon { background: #fff0d8; }
[data-theme="sl"] .s1 .phase-badge { background: #fff0d8; color: #a06010; }
[data-theme="sl"] .s2 .section-icon { background: #ddeeff; }
[data-theme="sl"] .s2 .phase-badge { background: #ddeeff; color: #1050a0; }
[data-theme="sl"] .s3 .section-icon { background: #ddf5e4; }
[data-theme="sl"] .s3 .phase-badge { background: #ddf5e4; color: #186030; }
[data-theme="sl"] .s4 .section-icon { background: #ffeaea; }
[data-theme="sl"] .s4 .phase-badge { background: #ffeaea; color: #a02020; }
[data-theme="sl"] .s5 .section-icon { background: #ebe8ff; }
[data-theme="sl"] .s5 .phase-badge { background: #ebe8ff; color: #4020a0; }
[data-theme="sl"] .s6 .section-icon { background: #f0f0f0; }
[data-theme="sl"] .s6 .phase-badge { background: #f0f0f0; color: #505050; }

/* ── CHECKLIST ITEMS ── */
.check-group { margin-bottom: 20px; }
.check-group-title {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px dashed var(--border);
}
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px; border-radius: 7px; margin-bottom: 6px;
  cursor: pointer;
  transition: background .15s;
  border: 1.5px solid transparent;
  user-select: none;
}
.check-item:hover { background: #f4f8fd; }
[data-theme="sl"] .check-item:hover { background: #faf8f4; }
.check-item.checked { background: #f0faf2; border-color: #b8e8c4; }
.check-item input[type="checkbox"] { display: none; }
.check-box {
  width: 22px; height: 22px;
  border: 2px solid var(--border); border-radius: 5px;
  flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; background: #fff;
}
.check-item.checked .check-box { background: var(--green); border-color: var(--green); }
.check-box-inner { display: none; color: #fff; font-size: 13px; font-weight: 700; }
.check-item.checked .check-box-inner { display: block; }
.check-text { flex: 1; }
.check-label { font-size: 14px; font-weight: 400; line-height: 1.45; transition: color .15s; }
.check-item.checked .check-label { color: var(--muted); text-decoration: line-through; text-decoration-color: #b0c8b4; }
.check-hint { font-size: 11.5px; color: #9aabb8; margin-top: 2px; font-weight: 300; }
[data-theme="sl"] .check-hint { color: #a09890; }

/* ── BADGES ── */
.warn-badge {
  font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px;
  margin-left: 7px; vertical-align: middle;
}
.warn-badge.red    { background: #fde8e8; color: var(--red); }
.warn-badge.yellow { background: #fef6e4; color: var(--yellow); }
.warn-badge.blue   { background: #e8f2fb; color: var(--accent); }

/* ── STATUS SELECT ── */
.status-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.status-item:last-child { border-bottom: none; }
.status-label { flex: 1; font-size: 14px; }
.status-select {
  width: 210px;
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 7px 10px; font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  background: #f6f9fd; cursor: pointer;
  outline: none; transition: border-color .15s;
  color: var(--text);
}
[data-theme="sl"] .status-select { background: #faf9f7; width: 180px; }
.status-select:focus { border-color: var(--accent); }
.status-select.ok   { border-color: var(--green);  background: #f0faf2; }
.status-select.warn { border-color: var(--yellow); background: #fef8ee; }
.status-select.nok  { border-color: var(--red);    background: #fff0f0; }

/* ── RADIO ── */
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.radio-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1.5px solid var(--border);
  border-radius: 20px; cursor: pointer; font-size: 13px;
  transition: all .15s; user-select: none;
}
.radio-item input { display: none; }
.radio-item:hover { border-color: var(--accent); }
.radio-item.sel-ja,
.radio-item.selected-ja       { border-color: var(--red);    background: #fff0f0; color: var(--red);    font-weight: 500; }
.radio-item.sel-nein,
.radio-item.selected-nein     { border-color: var(--green);  background: #f0faf2; color: var(--green);  font-weight: 500; }
.radio-item.sel-offen,
.radio-item.selected-offen    { border-color: var(--yellow); background: #fef8ee; color: var(--yellow); font-weight: 500; }
.radio-item.sel-blau          { border-color: var(--accent); background: #e8f2fb; color: var(--accent); font-weight: 500; }

/* ── KPI GRID ── */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media(max-width:480px){ .kpi-grid { grid-template-columns: 1fr; } }
.kpi-field label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
.kpi-input-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: #f6f9fd; overflow: hidden;
  transition: border-color .15s;
}
[data-theme="sl"] .kpi-input-wrap { background: #faf9f7; }
.kpi-input-wrap:focus-within { border-color: var(--accent); background: #fff; }
.kpi-prefix {
  padding: 9px 11px;
  background: #eaf0f8; font-size: 13px;
  color: var(--muted); border-right: 1px solid var(--border); white-space: nowrap;
}
[data-theme="sl"] .kpi-prefix { background: #f0ede8; }
.kpi-input-wrap input {
  flex: 1; border: none; background: transparent;
  padding: 9px 12px; font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text); font-weight: 500; outline: none;
}

/* ── VISIT CARDS (GL) ── */
.visit-card {
  border: 1.5px solid var(--border);
  border-radius: 9px; padding: 18px 20px;
  margin-bottom: 14px; background: #f7fafd;
  position: relative;
}
.visit-card-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.visit-store-name { font-weight: 600; font-size: 15px; flex: 1; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:480px){ .visit-grid { grid-template-columns: 1fr; } }
.visit-field label { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-bottom: 4px; }
.visit-field input, .visit-field select, .visit-field textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 6px;
  padding: 7px 10px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--text); background: #fff; outline: none;
  transition: border-color .15s;
}
.visit-field input:focus, .visit-field select:focus, .visit-field textarea:focus { border-color: var(--accent); }
.visit-field textarea { min-height: 58px; resize: vertical; line-height: 1.5; }
.visit-field select.ok   { border-color: var(--green);  background: #f0faf2; }
.visit-field select.warn { border-color: var(--yellow); background: #fef8ee; }
.visit-field select.nok  { border-color: var(--red);    background: #fff0f0; }

.btn-add-store {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px dashed var(--accent);
  color: var(--accent); padding: 10px 18px; border-radius: 7px;
  font-size: 13px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: all .15s; margin-top: 4px;
}
.btn-add-store:hover { background: var(--accent-l); }

/* ── SL KONTAKT ROWS (GL) ── */
.sl-kontakt-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 14px 16px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; background: #f7fafd; margin-top: 10px;
  position: relative;
}
@media(max-width:480px){ .sl-kontakt-row { grid-template-columns: 1fr; } }
.sl-kontakt-row .remove-btn {
  position: absolute; top: 8px; right: 10px;
  background: none; border: none; color: var(--muted);
  font-size: 15px; cursor: pointer; padding: 2px 6px;
  border-radius: 4px; transition: color .15s;
}
.sl-kontakt-row .remove-btn:hover { color: var(--red); }

/* ── INCIDENT BOX ── */
.incident-box {
  margin-bottom: 20px; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 8px; background: #faf9f7;
}
.incident-box h4 { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.incident-box .hint,
.incident-box .sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }

/* ── FOTO BOX (SL) ── */
.foto-box {
  margin-bottom: 14px; padding: 16px 18px;
  border: 1.5px solid var(--border); border-radius: 9px; background: #faf9f7;
}
.foto-box-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foto-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.foto-box-header .title { font-weight: 600; font-size: 14px; }
.foto-box-header .sub   { font-size: 12px; color: var(--muted); }
.foto-time {
  margin-left: auto;
  border: 1.5px solid var(--border); border-radius: 6px; padding: 5px 10px;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  background: #fff; color: var(--text); outline: none;
}

/* ── INFO BOX ── */
.info-box {
  background: #e8f2fb; border: 1px solid #c0d8f0;
  border-radius: 7px; padding: 11px 15px; margin-bottom: 16px;
  font-size: 12px; color: #1a4a7a; line-height: 1.6;
}
.info-hint {
  background: #fff8ee; border: 1px solid #ead890; border-radius: 7px;
  padding: 10px 14px; margin-bottom: 12px; font-size: 12px;
  color: #806030; line-height: 1.55;
}

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

/* ── SUB SECTION TITLE ── */
.sub-section-title {
  font-size: 11px; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}

/* ── SUBMIT ── */
.submit-card {
  background: var(--card); border-radius: 10px;
  padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.05); margin-bottom: 18px;
}
.submit-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.submit-card p  { font-size: 13px; color: var(--muted); margin-bottom: 22px; line-height: 1.55; }
.submit-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-submit {
  background: var(--brand); color: #fff; border: none;
  padding: 12px 32px; border-radius: 7px; font-size: 14px;
  font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: background .18s, transform .1s;
}
.btn-submit:hover { background: #2e2e2a; transform: translateY(-1px); }
.btn-reset {
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); padding: 12px 24px;
  border-radius: 7px; font-size: 14px;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  transition: all .15s;
}
.btn-reset:hover { border-color: var(--muted); color: var(--text); }

/* ── SUCCESS OVERLAY ── */
.success-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,24,.88); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
.success-overlay.show { display: flex; }
.success-box {
  background: #fff; border-radius: 14px;
  padding: 48px 40px; max-width: 460px;
  width: 100%; text-align: center;
  animation: popIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
.success-icon {
  width: 64px; height: 64px; background: #e8f2fb;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 30px; margin: 0 auto 20px;
}
[data-theme="sl"] .success-icon { background: #e8f8ee; }
.success-box h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px; margin-bottom: 10px;
}
.success-box p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
.success-summary {
  background: #f6f9fd; border-radius: 8px;
  padding: 14px 18px; text-align: left;
  font-size: 13px; margin-bottom: 24px;
}
[data-theme="sl"] .success-summary { background: #f8f6f2; }
.success-summary div { margin-bottom: 7px; color: var(--muted); }
.success-summary span { color: var(--text); font-weight: 500; }
.btn-close {
  background: var(--brand); color: #fff; border: none;
  padding: 12px 32px; border-radius: 7px; font-size: 14px;
  font-weight: 600; font-family: 'DM Sans', sans-serif; cursor: pointer;
}

/* ── ALREADY SUBMITTED BANNER ── */
.already-submitted-banner {
  background: #ddf5e4;
  border: 1px solid #b8e8c4;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #186030;
}
.already-submitted-banner .icon { font-size: 20px; }
.already-submitted-banner .btn-resubmit {
  margin-left: auto;
  background: #186030; color: #fff; border: none;
  padding: 6px 16px; border-radius: 5px;
  font-size: 12px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
}

/* ══════════════════════════════════════
   GF DASHBOARD STYLES
   ══════════════════════════════════════ */

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media(max-width:700px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-stat-card {
  background: var(--card);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.dash-stat-card .stat-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.dash-stat-card .stat-value {
  font-size: 32px; font-weight: 600;
  color: var(--text);
}
.dash-stat-card .stat-sub {
  font-size: 12px; color: var(--muted); margin-top: 4px;
}

.dash-section {
  background: var(--card);
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  overflow: hidden;
}
.dash-section-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.dash-section-header h3 { font-size: 16px; font-weight: 600; }
.dash-section-header .badge-count {
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
}
.dash-section-body { padding: 20px 24px; }

/* User status cards */
.user-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.user-card {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  transition: border-color .15s;
  cursor: pointer;
}
.user-card:hover { border-color: var(--accent); }
.user-card.submitted { border-color: var(--green); background: #f8fcf9; }
.user-card.missing   { border-color: var(--red); background: #fff9f9; }
.user-card .uc-name  { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.user-card .uc-store { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.user-card .uc-status {
  font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
}
.user-card.submitted .uc-status { color: var(--green); }
.user-card.missing .uc-status   { color: var(--red); }
.user-card .uc-bar {
  height: 4px; border-radius: 2px;
  background: #eee; margin-top: 8px; overflow: hidden;
}
.user-card .uc-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--green);
  transition: width .3s;
}

/* Incident table */
.incident-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.incident-table th {
  text-align: left;
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
}
.incident-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.incident-table tr:hover { background: #f8fafc; }
.incident-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px;
  margin-right: 4px; margin-bottom: 2px;
}
.incident-tag.jugendschutz { background: #fde8e8; color: var(--red); }
.incident-tag.kasse        { background: #fef6e4; color: #a06010; }
.incident-tag.reklamation  { background: #fff3e0; color: #a06010; }
.incident-tag.technik      { background: #e8f2fb; color: #1050a0; }
.incident-tag.personal     { background: #ebe8ff; color: #4020a0; }
.incident-tag.gf-kontakt   { background: #ffeaea; color: #a02020; }

/* KPI table */
.kpi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.kpi-table th {
  text-align: left;
  font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
}
.kpi-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}
.kpi-table tr:hover { background: #f8fafc; }

/* Date filter */
.date-filter {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}
.date-filter select,
.date-filter input {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 6px 10px; font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  background: #f8fafc; cursor: pointer; outline: none;
}

/* Chart container */
.chart-container {
  position: relative;
  height: 280px;
  margin-top: 12px;
}

/* Detail modal */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,26,24,.7); z-index: 1000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff; border-radius: 14px;
  max-width: 700px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 32px;
}
.modal-box h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px; margin-bottom: 4px;
}
.modal-box .modal-sub {
  font-size: 13px; color: var(--muted); margin-bottom: 20px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 24px;
  color: var(--muted); cursor: pointer;
}
.modal-section {
  margin-bottom: 16px;
}
.modal-section h4 {
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
  padding-bottom: 4px; border-bottom: 1px solid var(--border);
}
.modal-field {
  display: flex; justify-content: space-between;
  padding: 4px 0; font-size: 13px;
}
.modal-field .label { color: var(--muted); }
.modal-field .value { font-weight: 500; }

/* ── GL STORE STATUS MINI CARDS ── */
.sl-mini-card {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color .15s;
  position: relative;
}
.sl-mini-card.sl-ok {
  border-color: var(--green);
  background: #f8fcf9;
}
.sl-mini-card.sl-missing {
  border-color: var(--red);
  background: #fff9f9;
}
.sl-mini-card .sl-store-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
}
.sl-mini-card .sl-store-sub {
  font-size: 11px;
  color: var(--muted);
}
.sl-mini-card .sl-status-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 16px;
}
.sl-mini-card .sl-bar {
  height: 3px;
  border-radius: 2px;
  background: #eee;
  margin-top: 8px;
  overflow: hidden;
}
.sl-mini-card .sl-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--green);
  transition: width .3s;
}
.sl-mini-card .sl-alerts {
  margin-top: 6px;
}
.sl-mini-card .sl-alert-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  background: #fde8e8;
  color: var(--red);
  margin-right: 3px;
}

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
}
.empty-state .icon { font-size: 36px; margin-bottom: 12px; }

/* ── Loading spinner ── */
.loading {
  text-align: center; padding: 30px;
  color: var(--muted); font-size: 13px;
}
