/* GTM – Gastronomie Time Management | 6-Theme-System */

/* ===== STRUKTURVARIABLEN (theme-unabhängig) ===== */
:root {
  --radius: 4px;
  /* Farb-Defaults = orange-light (Fallback falls kein data-theme gesetzt) */
  --bg:             #f5f5f5;
  --card:           #ffffff;
  --header-bg:      #ffffff;
  --header-text:    #1c1c1c;
  --header-text2:   #666666;
  --icon-border:    #e0e0e0;
  --primary:        #e07b00;
  --primary-dark:   #c56d00;
  --primary-light:  #fff3e0;
  --danger:         #c0392b;
  --danger-dark:    #a93226;
  --danger-bg:      #fdecea;
  --danger-border:  #f5c6c2;
  --success:        #27ae60;
  --success-dark:   #219a52;
  --success-bg:     #d4edda;
  --success-border: #c3e6cb;
  --text:           #1c1c1c;
  --text2:          #666666;
  --text-muted:     #999999;
  --border:         #e0e0e0;
  --border-light:   #f0f0f0;
  --shadow:         0 1px 3px rgba(0,0,0,0.08);
  --ferien-bg:      #fff8e1;
  --ferien-text:    #7a5e00;
  --bg-muted:       #f0f0f0;
  --confirmed-bg:   #f0faf4;
  --input-bg:       #ffffff;
}

/* ===== 1. ORANGE-LIGHT (Standard) ===== */
body[data-theme="orange-light"] {
  --bg:             #f5f5f5;
  --card:           #ffffff;
  --header-bg:      #ffffff;
  --header-text:    #1c1c1c;
  --header-text2:   #666666;
  --icon-border:    #e0e0e0;
  --primary:        #e07b00;
  --primary-dark:   #c56d00;
  --primary-light:  #fff3e0;
  --danger:         #c0392b;  --danger-dark: #a93226;
  --danger-bg:      #fdecea;  --danger-border: #f5c6c2;
  --success:        #27ae60;  --success-dark: #219a52;
  --success-bg:     #d4edda;  --success-border: #c3e6cb;
  --text:           #1c1c1c;
  --text2:          #666666;  --text-muted: #999999;
  --border:         #e0e0e0;  --border-light: #f0f0f0;
  --shadow:         0 1px 3px rgba(0,0,0,0.08);
  --ferien-bg:      #fff8e1;  --ferien-text: #7a5e00;
  --bg-muted:       #f0f0f0;  --confirmed-bg: #f0faf4;
  --input-bg:       #ffffff;
}

/* ===== 2. ORANGE-DARK ===== */
body[data-theme="orange-dark"] {
  --bg:             #1a1a1a;
  --card:           #2a2a2a;
  --header-bg:      #111111;
  --header-text:    #f0f0f0;
  --header-text2:   #aaaaaa;
  --icon-border:    rgba(255,255,255,0.18);
  --primary:        #e07b00;
  --primary-dark:   #c56d00;
  --primary-light:  rgba(224,123,0,0.18);
  --danger:         #c0392b;  --danger-dark: #a93226;
  --danger-bg:      rgba(192,57,43,0.2);  --danger-border: rgba(192,57,43,0.45);
  --success:        #27ae60;  --success-dark: #219a52;
  --success-bg:     rgba(39,174,96,0.15); --success-border: rgba(39,174,96,0.35);
  --text:           #f0f0f0;
  --text2:          #aaaaaa;  --text-muted: #666666;
  --border:         #444444;  --border-light: #333333;
  --shadow:         0 1px 4px rgba(0,0,0,0.35);
  --ferien-bg:      rgba(255,200,50,0.12); --ferien-text: #d4a820;
  --bg-muted:       #333333;  --confirmed-bg: rgba(39,174,96,0.1);
  --input-bg:       #222222;
}

/* ===== 3. PURPLE-LIGHT ===== */
body[data-theme="purple-light"] {
  --bg:             #f8f4ff;
  --card:           #ffffff;
  --header-bg:      #6c3483;
  --header-text:    #ffffff;
  --header-text2:   rgba(255,255,255,0.75);
  --icon-border:    rgba(255,255,255,0.3);
  --primary:        #9b59b6;
  --primary-dark:   #7d3c98;
  --primary-light:  rgba(155,89,182,0.1);
  --danger:         #e74c3c;  --danger-dark: #c0392b;
  --danger-bg:      #fdecea;  --danger-border: #f5c6c2;
  --success:        #27ae60;  --success-dark: #219a52;
  --success-bg:     #d4edda;  --success-border: #c3e6cb;
  --text:           #2c1654;
  --text2:          #666666;  --text-muted: #999999;
  --border:         #e8d5f5;  --border-light: #f4eeff;
  --shadow:         0 1px 3px rgba(0,0,0,0.08);
  --ferien-bg:      #fff8e1;  --ferien-text: #7a5e00;
  --bg-muted:       #f0e8ff;  --confirmed-bg: #f0faf4;
  --input-bg:       #ffffff;
}

/* ===== 4. PURPLE-DARK ===== */
body[data-theme="purple-dark"] {
  --bg:             #1a0a2e;
  --card:           #2d1b4e;
  --header-bg:      #120720;
  --header-text:    #f0e6ff;
  --header-text2:   #c39bd3;
  --icon-border:    rgba(155,89,182,0.4);
  --primary:        #bb8fce;
  --primary-dark:   #9b59b6;
  --primary-light:  rgba(187,143,206,0.2);
  --danger:         #e74c3c;  --danger-dark: #c0392b;
  --danger-bg:      rgba(231,76,60,0.18); --danger-border: rgba(231,76,60,0.4);
  --success:        #8e44ad;  --success-dark: #6c3483;
  --success-bg:     rgba(142,68,173,0.2); --success-border: rgba(142,68,173,0.4);
  --text:           #f0e6ff;
  --text2:          #c39bd3;  --text-muted: #7d5c8a;
  --border:         #5b2d8e;  --border-light: #3d1f5c;
  --shadow:         0 1px 4px rgba(0,0,0,0.45);
  --ferien-bg:      rgba(155,89,182,0.18); --ferien-text: #c39bd3;
  --bg-muted:       #3d1f5c;  --confirmed-bg: rgba(142,68,173,0.18);
  --input-bg:       #1f0d38;
}

/* ===== 5. GREEN-LIGHT ===== */
body[data-theme="green-light"] {
  --bg:             #f0f7f0;
  --card:           #ffffff;
  --header-bg:      #1e5631;
  --header-text:    #ffffff;
  --header-text2:   rgba(255,255,255,0.8);
  --icon-border:    rgba(255,255,255,0.3);
  --primary:        #27ae60;
  --primary-dark:   #219a52;
  --primary-light:  rgba(39,174,96,0.1);
  --danger:         #c0392b;  --danger-dark: #a93226;
  --danger-bg:      #fdecea;  --danger-border: #f5c6c2;
  --success:        #27ae60;  --success-dark: #219a52;
  --success-bg:     #d4edda;  --success-border: #c3e6cb;
  --text:           #1a3c1a;
  --text2:          #555555;  --text-muted: #888888;
  --border:         #c8e6c9;  --border-light: #e8f5e9;
  --shadow:         0 1px 3px rgba(0,0,0,0.06);
  --ferien-bg:      #fff8e1;  --ferien-text: #7a5e00;
  --bg-muted:       #e8f5e9;  --confirmed-bg: #f0faf4;
  --input-bg:       #ffffff;
}

/* ===== 6. GREEN-DARK ===== */
body[data-theme="green-dark"] {
  --bg:             #0a1f0a;
  --card:           #1a2e1a;
  --header-bg:      #051005;
  --header-text:    #e0f7e0;
  --header-text2:   #90c890;
  --icon-border:    rgba(46,204,113,0.3);
  --primary:        #2ecc71;
  --primary-dark:   #27ae60;
  --primary-light:  rgba(46,204,113,0.2);
  --danger:         #e74c3c;  --danger-dark: #c0392b;
  --danger-bg:      rgba(231,76,60,0.18); --danger-border: rgba(231,76,60,0.4);
  --success:        #2ecc71;  --success-dark: #27ae60;
  --success-bg:     rgba(46,204,113,0.15); --success-border: rgba(46,204,113,0.35);
  --text:           #e0f7e0;
  --text2:          #90c890;  --text-muted: #5a8a5a;
  --border:         #2d5a2d;  --border-light: #1a3c1a;
  --shadow:         0 1px 4px rgba(0,0,0,0.4);
  --ferien-bg:      rgba(46,204,113,0.15); --ferien-text: #90c890;
  --bg-muted:       #1a3c1a;  --confirmed-bg: rgba(46,204,113,0.15);
  --input-bg:       #122012;
}

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }

.hidden { display: none !important; }

/* ===== LOGIN ===== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.login-box {
  background: var(--card);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem;
  width: 380px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.login-emblem-wrap { text-align: center; margin-bottom: 1.5rem; }
.login-emblem     { display: none; }
.login-brand      { display: none; }
.login-brand-city { display: none; }
.login-divider    { display: none; }

.login-app-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 0.8rem;
  color: var(--text2);
  margin-bottom: 1.75rem;
}

.login-box label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.login-box input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  outline: none;
  color: var(--text);
  background: var(--input-bg);
  transition: border-color 0.15s;
}
.login-box input:focus { border-color: var(--primary); }
.login-box input::placeholder { color: var(--text-muted); }

.login-box .btn-primary {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 11px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background 0.15s;
}
.login-box .btn-primary:hover { background: var(--primary-dark); }

.login-hint { text-align: center; margin-top: 1.25rem; color: var(--text-muted); font-size: 0.75rem; }

.error-msg {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  padding: 9px 12px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

/* ===== HEADER ===== */
.header {
  background: var(--header-bg);
  border-bottom: 2px solid var(--primary);
  padding: 0 1.25rem;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  color: var(--header-text);
}
.logo .logo-sep { color: var(--icon-border); margin: 0 4px; font-weight: 300; }
.logo-sub { display: none; }

.nav-tabs { display: flex; flex: 1; }

.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 14px;
  height: 52px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--header-text2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  margin-bottom: -2px;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--header-text); border-bottom-color: var(--header-text); font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.icon-btn {
  background: none;
  border: 1px solid var(--icon-border);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 0.78rem;
  color: var(--header-text2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  min-height: 32px;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.rezep-btn {
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 32px;
}
.rezep-btn:hover, .rezep-btn.active { background: var(--primary-dark); }

.av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
  flex-shrink: 0;
}
.av.big { width: 72px; height: 72px; font-size: 1.3rem; margin: 0 auto 1rem; }

/* Hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--radius);
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.hamburger-btn:hover { background: var(--bg-muted); }

/* Mobile-Menü */
.mobile-menu {
  position: fixed;
  top: 52px; left: 0; right: 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.mob-tab {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 1.25rem;
  font-size: 0.95rem;
  color: var(--header-text2);
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.15s, color 0.15s;
}
.mob-tab:last-child { border-bottom: none; }
.mob-tab:hover { background: var(--primary-light); color: var(--primary); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius); padding: 9px 16px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s; width: 100%;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-cancel {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px 16px;
  font-size: 0.88rem; color: var(--text2); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-cancel:hover { background: var(--bg-muted); }

.btn-ok {
  background: var(--success); color: #fff; border: none;
  border-radius: var(--radius); padding: 9px 16px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.btn-ok:hover { background: var(--success-dark); }

.btn-remove {
  background: var(--danger); color: #fff; border: none;
  border-radius: var(--radius); padding: 9px 16px;
  font-size: 0.88rem; cursor: pointer; transition: background 0.15s;
}
.btn-remove:hover { background: var(--danger-dark); }

.btn-move {
  background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius); padding: 9px 16px;
  font-size: 0.88rem; cursor: pointer; transition: background 0.15s;
}
.btn-move:hover { background: var(--primary-dark); }

.btn-delete {
  background: var(--danger); color: #fff; border: none;
  border-radius: var(--radius); padding: 9px 16px;
  font-size: 0.88rem; cursor: pointer; transition: background 0.15s;
}
.btn-delete:hover { background: var(--danger-dark); }

.kw-edit-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 0.78rem; padding: 2px 6px;
  border-radius: var(--radius); margin-left: 6px; transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.kw-edit-btn:hover { color: var(--primary); background: var(--primary-light); }

/* ===== MODALS ===== */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.modal {
  background: var(--card); border-top: 3px solid var(--primary);
  border-radius: var(--radius); padding: 1.75rem;
  min-width: 300px; max-width: 440px; width: calc(100% - 2rem);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.modal h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.modal p  { color: var(--text2); font-size: 0.88rem; margin-bottom: 0.4rem; }
.modal input[type="number"] {
  background: var(--input-bg); color: var(--text); border: 1px solid var(--border);
}
.modal-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1.25rem; }
.modal-btns button { flex: 1; }

/* ===== VIEWS ===== */
.view { padding: 1.25rem; max-width: 1440px; margin: 0 auto; }

/* ===== KALENDER LAYOUT ===== */
.kalender-layout { display: flex; gap: 1.25rem; align-items: flex-start; }
.kalender-main   { flex: 1; min-width: 0; }
.kalender-sidebar { width: 250px; flex-shrink: 0; position: sticky; top: 68px; }

/* ===== WEEK NAV ===== */
.week-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 0.875rem; flex-wrap: wrap; }
.week-nav-btn {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 14px;
  font-size: 0.82rem; color: var(--text2); cursor: pointer;
  transition: border-color 0.15s, color 0.15s; min-height: 36px;
}
.week-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.week-nav-btn.today-btn {
  background: var(--primary); color: #fff;
  border-color: var(--primary); font-weight: 600;
}
.week-nav-btn.today-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.week-label { flex: 1; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--text2); }

/* ===== LEGENDE ===== */
.legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1rem;
  font-size: 0.77rem; align-items: center;
  padding: 8px 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.legend-item { display: flex; align-items: center; gap: 5px; color: var(--text2); }
.legend-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 18px; border-radius: 3px;
  font-size: 0.68rem; font-weight: 700;
}
.legend-dot.ld-apply     { background: var(--primary-light); border: 1px solid var(--primary); color: var(--primary); }
.legend-dot.ld-pending   { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.legend-dot.ld-confirmed { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.legend-dot.ld-badge     { background: var(--primary); color: #fff; }

/* ===== KW SECTION ===== */
.kw-section { margin-bottom: 2rem; overflow-x: auto; }
.kw-title {
  font-size: 0.72rem; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.625rem; padding-left: 2px;
  display: flex; align-items: center;
}
.day-grid { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 8px; }

/* ===== KALENDER KARTEN ===== */
.day-col {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.day-col.closed { opacity: 0.6; }

.day-header {
  background: var(--card); border-bottom: 1px solid var(--border);
  padding: 8px 10px; font-weight: 700; font-size: 0.8rem; color: var(--text);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 4px;
}
.day-col.closed .day-header { background: var(--bg-muted); color: var(--text-muted); }
.day-header small { font-weight: 400; color: var(--text2); font-size: 0.7rem; }
.closed-label { padding: 0.875rem; text-align: center; color: var(--text-muted); font-size: 0.8rem; background: var(--bg-muted); }

.day-toggle-btn {
  flex-shrink: 0; background: none; border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 5px; font-size: 0.6rem;
  cursor: pointer; color: var(--text2); transition: all 0.15s;
}
.day-toggle-btn:hover { border-color: var(--primary); color: var(--primary); }

.shift-block { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.shift-block:last-child { border-bottom: none; }
.shift-label {
  font-size: 0.75rem; font-weight: 600; color: var(--primary);
  margin-bottom: 5px; display: flex; align-items: center; justify-content: space-between;
}
.need-badge  { font-size: 0.68rem; color: var(--text2); font-weight: 400; }

/* ===== EDIT-WEEK MODAL ===== */
.edit-week-table {
  width: 100%; border-collapse: collapse; margin-top: 0.75rem;
}
.edit-week-table th {
  text-align: center; font-size: 0.78rem; color: var(--text2);
  padding: 4px 8px; border-bottom: 1px solid var(--border); font-weight: 500;
}
.edit-week-table th:first-child { text-align: left; }
.edit-week-table td { padding: 5px 8px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.edit-week-table tr:last-child td { border-bottom: none; }
.edit-day-name { font-size: 0.88rem; font-weight: 600; color: var(--text); width: 48px; }
.need-spinner {
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.need-spinner button {
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  width: 26px; height: 26px; cursor: pointer; font-size: 0.7rem; color: var(--text2);
  display: flex; align-items: center; justify-content: center; transition: all 0.12s;
}
.need-spinner button:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.need-spinner span { font-size: 1.05rem; font-weight: 700; color: var(--text); min-width: 22px; text-align: center; }
.day-open-toggle {
  padding: 4px 14px; border-radius: var(--radius); cursor: pointer;
  font-size: 0.82rem; font-weight: 500; transition: all 0.15s; border: 1px solid;
}
.day-open-toggle.open  { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.day-open-toggle.closed { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.edit-week-danger-zone {
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.edit-week-danger-zone .btn-delete { width: 100%; }

/* ===== BADGES ===== */
.confirmed-badges { display: flex; flex-wrap: wrap; gap: 3px; margin: 3px 0; }
.badge-conf {
  background: var(--primary); color: #fff;
  border-radius: 3px; padding: 2px 6px; font-size: 0.67rem; font-weight: 700;
}

/* ===== BEWERBUNGS-SYSTEM ===== */
.apply-row { margin-top: 5px; }
.btn-apply-shift {
  width: 100%; background: var(--primary); border: none;
  border-radius: var(--radius); padding: 6px 8px; cursor: pointer;
  font-size: 0.76rem; color: #fff; font-weight: 600; text-align: center;
  transition: background 0.15s; min-height: 32px;
}
.btn-apply-shift:hover { background: var(--primary-dark); }

.apply-status-tag {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; font-size: 0.75rem; padding: 4px 7px; border-radius: var(--radius);
}
.apply-status-tag.applied   {
  background: var(--primary-light); color: var(--primary);
  border: 1px solid rgba(224,123,0,0.35);
}
.apply-status-tag.confirmed {
  background: var(--success-bg); color: var(--success);
  font-weight: 600; border: 1px solid var(--success-border);
}

.btn-cancel-app {
  background: none; border: none; cursor: pointer;
  color: var(--danger); font-size: 0.85rem; padding: 0; line-height: 1; flex-shrink: 0;
}
.btn-cancel-app:hover { opacity: 0.75; }
.shift-full-msg { text-align: center; font-size: 0.72rem; color: var(--text-muted); padding: 4px 0; }

.fill-badge {
  font-size: 0.67rem; font-weight: 700; padding: 1px 6px;
  border-radius: 10px; background: var(--bg-muted); color: var(--text2); border: 1px solid var(--border);
}
.fill-badge.full { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }

.applicant-list { margin-top: 5px; }
.applicant-row {
  display: flex; align-items: center; gap: 3px;
  padding: 3px 0; border-bottom: 1px solid var(--border);
}
.applicant-row:last-child { border-bottom: none; }
.applicant-row.is-confirmed {
  background: var(--confirmed-bg); border-radius: 3px; padding: 3px 4px; margin-bottom: 2px;
}

.app-badge {
  background: var(--primary); color: #fff; border-radius: 3px;
  padding: 1px 5px; font-size: 0.63rem; font-weight: 700;
  flex-shrink: 0; line-height: 1.6;
}
.applicant-row.is-confirmed .app-badge { background: var(--success); }
.app-name {
  flex: 1; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 0.74rem; color: var(--text);
}
.btn-app-action {
  border: none; border-radius: 3px; padding: 2px 6px; cursor: pointer;
  font-size: 0.67rem; flex-shrink: 0; font-weight: 700; line-height: 1.6;
  transition: background 0.15s; min-height: 24px;
}
.btn-app-action.confirm { background: var(--success-bg); color: var(--success); }
.btn-app-action.confirm:hover { background: var(--success); color: #fff; }
.btn-app-action.reject  { background: var(--danger-bg); color: var(--danger); }
.btn-app-action.reject:hover  { background: var(--danger); color: #fff; }
.no-apps-msg { font-size: 0.72rem; color: var(--text-muted); text-align: center; padding: 6px 0; }

/* ===== EMAIL PLAN SECTION ===== */
.email-plan-section {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.email-send-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  box-shadow: var(--shadow);
}
.email-send-row { display: flex; gap: 8px; align-items: center; }
.email-send-input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 12px; font-size: 0.88rem; outline: none;
  color: var(--text); background: var(--input-bg);
  transition: border-color 0.15s; min-width: 0;
}
.email-send-input:focus { border-color: var(--primary); }
.email-send-input::placeholder { color: var(--text-muted); }
.btn-send-plan {
  background: var(--primary); border: none; border-radius: var(--radius);
  color: #fff; padding: 8px 16px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background 0.15s;
}
.btn-send-plan:hover { background: var(--primary-dark); }
#email-all-row { margin-top: 8px; text-align: center; }
.btn-send-plan-all {
  background: none; border: 1px solid var(--primary); border-radius: var(--radius);
  color: var(--primary); padding: 7px 20px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn-send-plan-all:hover { background: var(--primary); color: #fff; }
#email-send-msg { margin-top: 7px; font-size: 0.82rem; min-height: 18px; }

/* ===== MINI-KALENDER ===== */
.mini-cal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.875rem; box-shadow: var(--shadow);
}
.mini-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.625rem; }
.mini-cal-nav {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  padding: 3px 9px; font-size: 0.95rem; line-height: 1;
  color: var(--primary); font-weight: 700; transition: background 0.15s; min-height: 28px;
}
.mini-cal-nav:hover { background: var(--primary-light); }
.mini-cal-title { font-weight: 700; font-size: 0.85rem; color: var(--text); }
.mini-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.mini-day-name { text-align: center; font-size: 0.6rem; color: var(--text2); padding: 3px 1px; font-weight: 700; }
.mini-day {
  text-align: center; font-size: 0.68rem; padding: 4px 2px;
  border-radius: 3px; line-height: 1.2; color: var(--text);
}
.mini-day.weekend     { background: var(--bg-muted); color: var(--text2); }
.mini-day.ferien      { background: var(--ferien-bg); color: var(--ferien-text); }
.mini-day.feiertag    { background: var(--danger-bg); color: var(--danger); font-weight: 700; }
.mini-day.current-week { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.mini-day.feiertag.current-week { background: var(--danger-bg); color: var(--danger); }
.mini-day.ferien.current-week   { background: var(--ferien-bg); color: var(--ferien-text); font-weight: 700; }
.mini-day.today { background: var(--primary) !important; color: #fff !important; border-radius: 50%; font-weight: 700; }

.mini-cal-legend {
  margin-top: 0.625rem; display: flex; flex-direction: column; gap: 4px;
  font-size: 0.68rem; color: var(--text2);
  border-top: 1px solid var(--border); padding-top: 0.625rem;
}
.ml-row { display: flex; align-items: center; gap: 5px; }
.ml-dot { display: inline-block; width: 11px; height: 11px; border-radius: 2px; flex-shrink: 0; }
.ml-dot.current     { background: var(--primary-light); border: 1px solid var(--primary); }
.ml-dot.feiertag    { background: var(--danger-bg); border: 1px solid var(--danger-border); }
.ml-dot.ferien      { background: var(--ferien-bg); border: 1px solid rgba(224,180,0,0.4); }
.ml-dot.weekend-dot { background: var(--bg-muted); border: 1px solid var(--border); }

/* ===== SECTION CARDS ===== */
.section-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 0.875rem; box-shadow: var(--shadow);
}
.section-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 0.875rem; }

/* ===== MITARBEITER ===== */
.add-user-form { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.add-user-form input {
  flex: 1; min-width: 140px; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px; font-size: 0.88rem;
  outline: none; color: var(--text); background: var(--input-bg);
  transition: border-color 0.15s;
}
.add-user-form input:focus { border-color: var(--primary); }
.add-user-form .btn-primary { width: auto; }

.user-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.user-row:last-child { border-bottom: none; }
.user-name  { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.user-email { font-size: 0.78rem; color: var(--text2); }
.btn-remove-user {
  margin-left: auto; background: none; border: none;
  color: var(--danger); cursor: pointer; font-size: 1.1rem;
  padding: 4px 8px; border-radius: var(--radius);
  transition: background 0.15s; min-height: 32px; min-width: 32px;
}
.btn-remove-user:hover { background: var(--danger-bg); }

/* ===== PROFIL ===== */
.profil-wrap  { max-width: 640px; margin: 0 auto; }
.profil-card  { text-align: center; }
.profil-meta  { font-size: 0.9rem; color: var(--text2); margin-bottom: 0.2rem; }

.btn-edit-profil {
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text2); font-size: 0.82rem; padding: 5px 14px;
  cursor: pointer; margin-top: 0.875rem; transition: all 0.15s;
}
.btn-edit-profil:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.profil-edit-form { text-align: left; margin-top: 1rem; width: 100%; }
.profil-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.profil-initials-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 0.625rem;
  padding: 8px 12px; background: var(--bg-muted); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.profil-label-inline { font-size: 0.78rem; color: var(--text2); }
.profil-initials-preview { font-size: 1.1rem; font-weight: 800; color: var(--primary); letter-spacing: 0.05em; }
.profil-form-btns { display: flex; gap: 8px; margin-top: 0.25rem; }
.profil-form-btns .btn-ok, .profil-form-btns .btn-cancel { flex: 1; }

.shift-list-item {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text);
}
.shift-list-item:last-child { border-bottom: none; }
.shift-kw-badge {
  background: var(--primary); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.shift-list-type { margin-left: auto; color: var(--text2); font-size: 0.82rem; white-space: nowrap; }

/* ===== SCHICHT-TAUSCH ===== */
.btn-swap-request {
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text2); cursor: pointer; font-size: 0.78rem; padding: 2px 7px;
  transition: all 0.12s; flex-shrink: 0;
}
.btn-swap-request:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.swap-shift-label { color: var(--text2); font-size: 0.88rem; margin-bottom: 0.5rem; }
.swap-sub-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text2); margin-bottom: 0.5rem; }
.swap-request-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.swap-request-item:last-child { border-bottom: none; }
.swap-info { display: flex; gap: 8px; align-items: flex-start; flex: 1; min-width: 0; }
.swap-details { font-size: 0.85rem; color: var(--text); }
.swap-shift-info { font-size: 0.78rem; color: var(--text2); margin-top: 2px; }
.swap-action-btns { display: flex; gap: 4px; flex-shrink: 0; }
.swap-pending-badge {
  font-size: 0.72rem; background: var(--bg-muted); color: var(--text-muted);
  padding: 2px 8px; border-radius: var(--radius); white-space: nowrap; align-self: center;
}

/* ===== VERFÜGBARKEIT ===== */
.avail-day-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.avail-day-row:last-child { border-bottom: none; }
.avail-day-name { font-size: 0.85rem; font-weight: 600; color: var(--text); width: 32px; flex-shrink: 0; }
.avail-toggle {
  border: 1px solid; border-radius: var(--radius); cursor: pointer;
  font-size: 0.8rem; font-weight: 500; padding: 4px 10px; transition: all 0.12s; flex-shrink: 0;
}
.avail-toggle.avail  { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.avail-toggle.unavail { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.avail-note-input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 8px; font-size: 0.8rem; color: var(--text); background: var(--input-bg);
  outline: none; transition: border-color 0.12s;
}
.avail-note-input:focus { border-color: var(--primary); }

/* ===== QR-CODE MODAL ===== */
.qr-modal { max-width: 360px; }
.qr-content { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; }
.qr-image { width: 240px; height: 240px; border: 1px solid var(--border); border-radius: var(--radius); image-rendering: pixelated; }
.qr-label { text-align: center; }
.qr-label strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: 0.25rem; }
.qr-url-text { font-size: 0.8rem; color: var(--text2); }
.qr-btns { display: flex; gap: 8px; }
.qr-btns > * { flex: 1; }

/* ===== BENACHRICHTIGUNGEN ===== */
.notif-wrap { position: relative; }
.notif-bell-btn { position: relative; font-size: 1rem; }
.notif-badge {
  position: absolute; top: 0px; right: 0px;
  background: #e53935; color: #fff;
  font-size: 0.6rem; font-weight: 800; line-height: 1;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
  pointer-events: none;
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px; max-width: 90vw;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 200; overflow: hidden;
}
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  background: var(--bg-muted);
}
.notif-panel-title { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.notif-read-all-btn {
  background: none; border: none; cursor: pointer; font-size: 0.75rem;
  color: var(--primary); padding: 2px 6px; border-radius: var(--radius); transition: background 0.12s;
}
.notif-read-all-btn:hover { background: var(--primary-light); }
#notif-list { max-height: 340px; overflow-y: auto; }
.notif-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.notif-item {
  display: flex; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--border-light); cursor: pointer;
  transition: background 0.12s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-muted); }
.notif-item.unread { background: var(--primary-light); }
.notif-item.unread:hover { filter: brightness(0.96); }
.notif-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-msg { font-size: 0.78rem; color: var(--text2); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); }

/* ===== UNAVAIL CHIPS (Edit-Week-Modal) ===== */
.unavail-names { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 3px; }
.unavail-chip {
  font-size: 0.68rem; background: var(--danger-bg); color: var(--danger);
  border: 1px solid var(--danger-border); border-radius: 3px; padding: 1px 5px; white-space: nowrap;
}

.profil-form-input {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; font-size: 0.9rem; outline: none;
  margin-bottom: 0.625rem; color: var(--text); background: var(--input-bg);
  transition: border-color 0.15s;
}
.profil-form-input:focus { border-color: var(--primary); }

.pw-msg { padding: 8px 12px; border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 0.625rem; }
.pw-msg.ok  { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.pw-msg.err { background: var(--danger-bg);  color: var(--danger);  border: 1px solid var(--danger-border); }

.sick-select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; font-size: 0.9rem; outline: none;
  margin-bottom: 0.625rem; color: var(--text); background: var(--input-bg);
}
.sick-select:focus { border-color: var(--primary); }

/* ===== STATISTIK ===== */
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 480px; }
.stats-table thead th {
  background: var(--primary); color: #fff;
  padding: 9px 14px; text-align: left;
  font-weight: 600; font-size: 0.78rem; line-height: 1.4;
}
.stats-table tbody tr { border-bottom: 1px solid var(--border); }
.stats-table tbody tr:last-child { border-bottom: none; }
.stats-table tbody tr:hover { background: var(--bg-muted); }
.stats-table td { padding: 9px 14px; color: var(--text); }
.stats-num { text-align: center; font-weight: 600; color: var(--primary); }
.stats-name { display: flex; align-items: center; gap: 8px; }
.stats-av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 0.62rem; font-weight: 700; flex-shrink: 0;
}

/* ===== PINNWAND ===== */
.pinnwand-wrap { max-width: 720px; margin: 0 auto; }
.msg-compose { display: flex; gap: 8px; align-items: flex-end; margin-top: 0.5rem; }
.msg-compose textarea {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; font-size: 0.88rem; outline: none;
  resize: vertical; color: var(--text); background: var(--input-bg);
  transition: border-color 0.15s;
}
.msg-compose textarea:focus { border-color: var(--primary); }
.msg-send-btn { white-space: nowrap; width: auto; }

.msg-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.875rem 1rem;
  margin-bottom: 0.625rem; box-shadow: var(--shadow);
}
.msg-item.msg-pinned { border-color: var(--primary); border-left: 3px solid var(--primary); }
.msg-header { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; flex-wrap: wrap; }
.msg-av {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 0.62rem; font-weight: 700; flex-shrink: 0;
}
.msg-author { color: var(--text); font-size: 0.85rem; font-weight: 600; }
.msg-time   { font-size: 0.72rem; color: var(--text2); }
.msg-pin-badge {
  font-size: 0.68rem; color: var(--primary);
  background: var(--primary-light); border: 1px solid rgba(224,123,0,0.35);
  padding: 1px 7px; border-radius: 10px;
}
.msg-actions { margin-left: auto; display: flex; gap: 3px; }
.msg-btn-pin, .msg-btn-del {
  background: none; border: none; cursor: pointer;
  font-size: 0.82rem; padding: 3px 6px; border-radius: var(--radius);
  transition: background 0.15s; line-height: 1; min-height: 26px;
}
.msg-btn-pin:hover { background: var(--primary-light); }
.msg-btn-del { color: var(--danger); }
.msg-btn-del:hover { background: var(--danger-bg); }
.msg-text {
  color: var(--text); font-size: 0.88rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}

/* ===== THEME DOTS ===== */
.theme-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: none; padding: 0;
  cursor: pointer; flex-shrink: 0;
  outline: none; outline-offset: 2px;
  transition: outline 0.15s, transform 0.15s;
}
.theme-dot:hover { transform: scale(1.2); }

/* ===== SCHICHTEN-ZÄHLER (Profil) ===== */
.shift-counts {
  display: flex; gap: 0.875rem;
}
.shift-count-block {
  flex: 1; text-align: center; padding: 0.875rem 0.5rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.shift-count-num {
  font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1;
}
.shift-count-label {
  font-size: 0.75rem; color: var(--text2); margin-top: 5px;
}

/* ===== SEND SECTION ===== */
.send-section { margin-top: 1.25rem; display: flex; gap: 7px; max-width: 400px; }
.send-section input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 9px 12px; font-size: 0.88rem; outline: none;
  color: var(--text); background: var(--input-bg); transition: border-color 0.15s;
}
.send-section input:focus { border-color: var(--primary); }
.send-section .btn-primary { width: auto; white-space: nowrap; }

/* ===== MOBILE ===== */
@keyframes slideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (max-width: 900px) {
  .kalender-layout  { flex-direction: column; }
  .kalender-sidebar { width: 100%; position: static; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }

  /* Header */
  .header        { padding: 0 0.625rem; gap: 0; }
  .header-right  { gap: 4px; }
  .nav-tabs      { display: none; }
  .hamburger-btn { display: flex; }
  #lang-toggle   { display: none; }
  #header-qr-btn { display: none; }
  .logo-sub      { display: none; }
  #rezep-label   { display: none; }
  .rezep-btn     { padding: 0 8px; min-width: 34px; }

  /* Views */
  .view { padding: 0.625rem; }

  /* Calendar */
  .week-nav {
    position: sticky; top: 52px; z-index: 40;
    background: var(--bg); padding: 0.375rem 0;
    gap: 5px; margin-bottom: 0.375rem;
  }
  .week-nav-btn { padding: 9px 10px; font-size: 0.78rem; min-height: 44px; }
  .kw-section   { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .day-grid     { grid-template-columns: repeat(7, 155px); gap: 8px; }

  /* Modals — slide up from bottom */
  .modal-bg { align-items: flex-end; }
  .modal {
    border-radius: var(--radius) var(--radius) 0 0;
    max-width: 100%; width: 100%; margin: 0;
    max-height: 90vh; overflow-y: auto;
    animation: slideUp 0.22s ease-out;
  }

  /* Touch targets (44 px min) */
  .icon-btn         { min-height: 44px; }
  .btn-ok           { min-height: 44px; }
  .btn-cancel       { min-height: 44px; }
  .btn-delete       { min-height: 44px; }
  .btn-apply-shift  { min-height: 44px; }
  .btn-swap-request { min-height: 44px; }
  .btn-primary      { min-height: 44px; }
  .mob-tab          { min-height: 50px; }

  /* Profil */
  .profil-wrap, .pinnwand-wrap { max-width: 100%; }
  .profil-edit-form    { max-width: 100%; }
  .profil-form-btns    { flex-direction: column; gap: 8px; }
  .profil-form-btns button { width: 100%; }
  .profil-initials-row { flex-wrap: wrap; }

  /* Pinnwand */
  .msg-compose  { flex-direction: column; align-items: stretch; }
  .msg-send-btn { width: 100%; min-height: 44px; }

  /* Send section */
  .send-section { max-width: 100%; flex-direction: column; }
  .send-section input { width: 100%; }
  .send-section .btn-primary { width: 100%; }

  /* Email plan */
  .email-send-row { flex-direction: column; gap: 6px; }
  .btn-send-plan  { min-height: 44px; }

  /* Stats */
  .stats-table { font-size: 0.8rem; }
  .stats-table td, .stats-table th { padding: 6px 8px; }

  /* Shift counts */
  .shift-counts    { gap: 0.5rem; }
  .shift-count-num { font-size: 1.5rem; }

  /* Add user form */
  .add-user-form input { min-width: 0; flex: 1; }

  /* Swap action buttons */
  .swap-action-btns         { flex-direction: column; gap: 6px; }
  .swap-action-btns button  { width: 100%; min-height: 44px; }

  /* QR modal */
  .qr-btns     { flex-direction: column; gap: 8px; }
  .qr-btns > * { min-height: 44px; }

  /* Prevent iOS auto-zoom on text inputs */
  input, textarea, select { font-size: 16px; }
}
