*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
  --primary:       #2a4a3e;
  --primary-mid:   #3a6b5a;
  --primary-light: #e4ede9;
  --accent:        #b8874a;
  --accent-light:  #fdf5e8;
  --text:          #1c1810;
  --sub:           #6b5d52;
  --border:        #e2d9cf;
  --bg:            #e8e1d8;
  --card:          #ffffff;
  --radius:        12px;
  --shadow:        0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.1);
}

html, body { height: 100%; }
body { font-family: 'Georgia','Times New Roman',serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ─── SCREENS ─── */
.screen { display: none; min-height: 100vh; }
.screen.active  { display: flex; flex-direction: column; animation: screenIn 0.32s cubic-bezier(0.22,1,0.36,1); }
.screen.leaving { display: flex; flex-direction: column; pointer-events: none; animation: screenOut 0.18s ease forwards; }
@keyframes screenIn  { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes screenOut { from { opacity:1; transform:translateY(0); }    to { opacity:0; transform:translateY(-14px); } }

/* ─── DARK BACKGROUND (shared login + home) ─── */
.login-bg, #screen-home {
  background:
    linear-gradient(160deg, rgba(18,32,24,0.82) 0%, rgba(42,74,62,0.78) 55%, rgba(28,24,16,0.88) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Crect fill='%231a2e22' width='800' height='600'/%3E%3Cpath d='M0 420 L120 240 L240 320 L380 140 L500 220 L620 100 L800 180 L800 600 L0 600Z' fill='%23122018'/%3E%3Cpath d='M0 500 L100 360 L200 420 L320 280 L440 360 L560 240 L680 300 L800 220 L800 600 L0 600Z' fill='%230d1812'/%3E%3Cpath d='M560 100 L600 40 L640 100Z' fill='%23e8dcc8' opacity='.08'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ─── LOGIN ─── */
.login-bg {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 32px 24px; min-height: 100vh;
}
.login-wrap { width: 100%; max-width: 420px; text-align: center; }
.login-logo  { margin-bottom: 32px; }
.login-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 1px solid rgba(255,255,255,0.24);
  border-radius: 20px; padding: 28px 24px;
}
.login-title {
  color: rgba(255,255,255,0.85);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-weight: 400; letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.login-label { color: rgba(255,255,255,0.55) !important; }
.login-input {
  background: rgba(255,255,255,0.1) !important;
  border-color: rgba(255,255,255,0.2) !important;
  color: white !important;
}
.login-input::placeholder { color: rgba(255,255,255,0.35); }
.login-input:focus { border-color: rgba(255,255,255,0.5) !important; }
.login-error {
  background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5; padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-family: 'Montserrat', sans-serif;
  margin-bottom: 12px; text-align: left;
}
.login-btn { background: var(--accent) !important; font-family: 'Montserrat',sans-serif !important; font-weight: 600 !important; letter-spacing: 0.04em; }
.login-hint {
  margin-top: 14px; font-size: 12px;
  color: rgba(255,255,255,0.35); font-family: 'Montserrat',sans-serif;
}

/* ─── HOME ─── */
#screen-home { justify-content: center; align-items: center; padding: 32px 24px; }
.home-wrap { width: 100%; max-width: 420px; text-align: center; }
.home-logo-area { margin-bottom: 36px; }

.home-monogram {
  width: 76px; height: 76px; border-radius: 50%;
  border: 1.5px solid rgba(184,135,74,0.55);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond',Georgia,serif;
  font-size: 28px; font-weight: 300; font-style: italic;
  color: var(--accent); margin: 0 auto 18px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 0 6px rgba(184,135,74,0.08), inset 0 0 20px rgba(184,135,74,0.04);
}
.home-hotel-pre {
  font-family: 'Montserrat',sans-serif; font-weight: 400;
  font-size: 11px; letter-spacing: 0.45em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 6px;
}
.home-hotel-name {
  font-family: 'Cormorant Garamond',Georgia,serif; font-weight: 300;
  font-size: 54px; letter-spacing: 0.1em; color: #f5efe6;
  line-height: 1; text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.home-divider {
  width: 48px; height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,135,74,0.7), transparent);
  margin: 18px auto; border: none;
}
.home-tagline {
  font-family: 'Cormorant Garamond',Georgia,serif; font-style: italic;
  font-weight: 300; font-size: 17px;
  color: rgba(255,255,255,0.52); letter-spacing: 0.04em;
}
.home-card {
  background: rgba(255,255,255,0.07); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.13);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-radius: 20px; padding: 28px 24px;
}
.home-sub {
  color: rgba(255,255,255,0.4); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; margin-bottom: 20px;
  font-family: 'Montserrat',sans-serif; font-weight: 500;
}
.home-buttons { display: flex; flex-direction: column; gap: 12px; }

.role-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
  border-left: none; border-radius: 12px; padding: 18px 16px 18px 0;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; text-align: left; backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, transform 0.2s cubic-bezier(0.22,1,0.36,1);
  overflow: hidden; position: relative;
}
.role-btn::before {
  content: ''; width: 4px; align-self: stretch; flex-shrink: 0;
  border-radius: 0 2px 2px 0;
}
.role-manager::before  { background: linear-gradient(to bottom, #7fcfaa, #3a8c68); }
.role-employee::before { background: linear-gradient(to bottom, #e0b472, #b8874a); }
.role-btn:hover  { background: rgba(255,255,255,0.11); transform: translateY(-2px); }
.role-btn:active { transform: scale(0.985); background: rgba(255,255,255,0.04); }
.role-icon  { font-size: 22px; flex-shrink: 0; opacity: 0.85; }
.role-text  { flex: 1; }
.role-label {
  font-family: 'Cormorant Garamond',Georgia,serif; font-weight: 600;
  font-size: 22px; letter-spacing: 0.04em; line-height: 1.1;
  color: rgba(255,255,255,0.92);
}
.role-desc  {
  font-family: 'Montserrat',sans-serif; font-size: 11px;
  color: rgba(255,255,255,0.42); margin-top: 3px; font-weight: 400;
}
.role-arrow { font-size: 20px; color: rgba(255,255,255,0.2); margin-right: 4px; }

.logout-btn {
  width: 100%; margin-top: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45); padding: 11px;
  border-radius: 10px; font-size: 13px; cursor: pointer;
  font-family: 'Montserrat',sans-serif; transition: background 0.2s;
}
.logout-btn:hover { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }

/* ─── HEADER ─── */
.header { position: sticky; top: 0; z-index: 100; flex-shrink: 0; }
.header-manager  { background: var(--primary); box-shadow: 0 2px 10px rgba(26,48,40,0.4); }
.header-employee { background: var(--accent);  box-shadow: 0 2px 10px rgba(184,135,74,0.4); }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 4px; gap: 6px;
}
.header-brand { flex: 1; text-align: center; }
.header-hotel    { display: block; color: white; font-size: 18px; font-weight: 400; font-family: Georgia,serif; letter-spacing: 0.06em; }
.header-subtitle { display: block; color: rgba(255,255,255,0.65); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-family: -apple-system,sans-serif; }
.header-actions  { display: flex; gap: 5px; flex-wrap: nowrap; justify-content: flex-end; overflow-x: auto; scrollbar-width: none; }
.header-actions::-webkit-scrollbar { display: none; }

.back-btn, .hdr-btn {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 34px; height: 34px; border-radius: 9px;
  font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.back-btn { font-size: 24px; }
.back-btn:active, .hdr-btn:active { background: rgba(255,255,255,0.28); }

.header-controls { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.dept-pills { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.dept-pills::-webkit-scrollbar { display: none; }
.pill {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.75); padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: all 0.15s; font-family: -apple-system,sans-serif;
}
.pill.active { background: white; color: var(--primary); border-color: white; font-weight: 700; }

.week-range-nav { display: flex; gap: 6px; align-items: center; }
.range-btn {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); padding: 7px 14px; border-radius: 8px;
  font-size: 13px; cursor: pointer; white-space: nowrap;
  font-family: -apple-system,sans-serif; transition: background 0.15s;
}
.range-btn:active { background: rgba(255,255,255,0.25); }
.range-today { background: var(--accent); border-color: var(--accent); color: white; font-weight: 600; }
.mgr-month-label { color: white; font-size: 15px; font-weight: 700; font-family: 'Montserrat', sans-serif; padding: 0 6px; }

@media (max-width: 600px) {
  /* Header */
  .header-top { height: auto; padding: 8px 10px; flex-wrap: nowrap; }
  .header-hotel    { font-size: 15px; }
  .header-subtitle { display: none; }
  .back-btn, .hdr-btn { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
  .header-actions { gap: 4px; }

  /* Monats-Navigation: Pfeile kompakt, langer Text ausblenden */
  .week-range-nav { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; justify-content: space-between; }
  .week-range-nav::-webkit-scrollbar { display: none; }
  .range-btn { padding: 6px 10px; font-size: 12px; }
  .range-btn .btn-text { display: none; }
  .mgr-month-label { font-size: 13px; }

  /* Abteilungs-Pills */
  .pill { font-size: 12px; padding: 5px 11px; }

  /* Wochenabschnitt */
  .week-section-label { font-size: 12px; }
  .wk-action-btn { font-size: 11px; padding: 3px 7px; }
}

/* ─── VOICE ─── */
.mic-btn {
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 34px; height: 34px; border-radius: 9px; font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s; position: relative;
}
.mic-btn.listening {
  background: #ef4444 !important;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.35);
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(239,68,68,0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(239,68,68,0.1); }
}
.voice-feedback {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 300; min-width: 300px; max-width: 500px;
  background: var(--text); color: white;
  padding: 14px 20px; border-radius: 14px;
  font-size: 15px; font-family: -apple-system,sans-serif;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: flex; align-items: center; gap: 12px;
  animation: feedbackIn 0.25s ease; pointer-events: none;
}
.voice-feedback.success { background: var(--primary); }
.voice-feedback.error   { background: #b91c1c; }
.voice-feedback.listening-ui { background: #1e293b; border: 2px solid #ef4444; }
@keyframes feedbackIn {
  from { transform: translateX(-50%) translateY(-10px); opacity:0; }
  to   { transform: translateX(-50%) translateY(0);    opacity:1; }
}
.voice-text { flex: 1; line-height: 1.4; }
.voice-transcript { font-size: 12px; opacity: 0.7; margin-top: 3px; font-style: italic; display: block; }

/* ─── SCHEDULE ─── */
.schedule-wrap { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 14px 40px; }
#schedule-grid { display: flex; flex-direction: column; gap: 12px; }

.week-section { border-radius: 16px; padding: 16px 18px 18px; border: 1px solid transparent; }
.week-section:nth-child(odd)  { background: #ffffff; border-color: rgba(200,190,180,0.5); box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.week-section:nth-child(even) { background: #f5f0ea; border-color: rgba(200,190,180,0.5); box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.week-section.current { background: rgba(232,240,236,0.9) !important; border-color: var(--primary) !important; box-shadow: 0 2px 10px rgba(42,74,62,0.12) !important; }

.week-section-label {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sub); padding: 0 2px 10px; border-bottom: 2px solid var(--accent);
  margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: -apple-system,sans-serif;
}
.week-label-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.week-date-range { font-weight: 800; color: var(--primary); }
.week-section-label.current-week { color: var(--primary); border-color: var(--primary); }
.week-now-badge {
  background: var(--primary); color: white; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.04em;
}
.week-days-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; }
@media (max-width: 900px) {
  .week-days-grid { grid-template-columns: repeat(2, 1fr); }
  .day-card:nth-child(7) { grid-column: 1 / -1; }
}

/* ─── DAY CARDS ─── */
.day-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1.5px solid var(--border);
  display: flex; flex-direction: column;
}
.day-card.today       { border-color: #4ade80; border-width: 2px; }
.day-card.past        { opacity: 0.6; }
.day-card.other-month                { background: #e8e8e8; border-color: #d0cdc8; }
.day-card.other-month .day-header   { background: #d8d8d8; }
.day-card:not(.other-month) .day-date { font-weight: 800; }
.day-clear-btn {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 13px; opacity: 0.35; padding: 2px 4px; border-radius: 5px;
  transition: opacity 0.15s, background 0.15s; flex-shrink: 0;
}
.day-clear-btn:hover { opacity: 1; background: #fee2e2; }
.day-header {
  padding: 10px 13px; background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
}
.day-name { font-weight: 700; font-size: 14px; font-family: -apple-system,sans-serif; }
.day-name.today { color: var(--primary); }
.day-date { font-size: 13px; color: var(--sub); font-family: -apple-system,sans-serif; }
.today-badge {
  font-size: 10px; font-weight: 700; color: white;
  background: var(--primary); padding: 3px 8px; border-radius: 8px;
  font-family: -apple-system,sans-serif;
}
.shifts-col { display: flex; flex-direction: column; flex: 1; }
.shift-row {
  padding: 10px 13px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.12s;
}
.shift-row:hover  { background: #faf8f5; }
.shift-row:active { background: var(--bg); }
.shift-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.shift-icon  { font-size: 15px; flex-shrink: 0; }
.shift-label { font-size: 13px; font-weight: 700; flex: 1; color: var(--text); font-family: -apple-system,sans-serif; }
.shift-badge {
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 700; min-width: 22px; height: 22px;
  border-radius: 11px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; font-family: -apple-system,sans-serif;
}
.shift-edit { font-size: 12px; color: #c9b9aa; }
.emp-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.emp-chip  { padding: 3px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; font-family: -apple-system,sans-serif; }
.no-emp    { font-size: 12px; color: #c9b9aa; font-style: italic; font-family: -apple-system,sans-serif; }

/* Abwesenheits-Zeile */
.absence-row {
  padding: 8px 13px; cursor: pointer;
  transition: background 0.12s; background: #fafaf9;
}
.absence-row:hover { background: #f3f0ec; }
.absence-row-top {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.absence-row-icon  { font-size: 14px; }
.absence-row-label { font-size: 12px; font-weight: 600; flex: 1; color: var(--sub); font-family: -apple-system,sans-serif; }
.absence-chips-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.absence-chip {
  padding: 2px 7px; border-radius: 8px; font-size: 11px;
  font-weight: 600; font-family: -apple-system,sans-serif;
}
.absence-chip-urlaub { background: #d1fae5; color: #059669; }
.absence-chip-krank  { background: #fee2e2; color: #dc2626; }

/* ─── MODAL ─── */
/* ─── POPOVER (Schicht/Abwesenheit – neben angeklicktem Element) ─── */
#popover-backdrop {
  display: none; position: fixed; inset: 0; z-index: 300;
}
#popover-backdrop.visible { display: block; }

#popover-panel {
  display: none; position: fixed; z-index: 301;
  background: var(--card); border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border);
  max-height: 80vh; overflow-y: auto;
  opacity: 0; transition: opacity 0.15s ease, transform 0.15s ease;
  transform: scale(0.97) translateY(-4px);
}
#popover-panel.visible {
  opacity: 1; transform: scale(1) translateY(0);
}
.popover-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--card);
  border-radius: 16px 16px 0 0; z-index: 1;
}
.popover-body { padding: 16px 20px 24px; }
.popover-body .modal-hint { font-size: 13px; margin-bottom: 16px; }
.popover-body .dept-group { margin-bottom: 16px; }
.popover-body .emp-buttons { gap: 8px; }
.popover-body .emp-toggle  { padding: 7px 12px; font-size: 13px; }

/* ─── ZENTRIERTES MODAL (für alle anderen Dialoge) ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.18s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  background: white; border-radius: 20px;
  width: 100%; max-width: 580px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: popIn 0.22s ease;
}
.modal.modal-wide {
  max-width: 900px;
}
@keyframes popIn { from{transform:scale(0.95);opacity:0} to{transform:scale(1);opacity:1} }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: white;
  border-radius: 20px 20px 0 0; z-index: 1;
}
.modal-title  { display: flex; align-items: center; gap: 12px; }
.modal-icon   { font-size: 26px; }
.modal-shift-name { font-weight: 700; font-size: 20px; font-family: Georgia,serif; }
.modal-shift-sub  { font-size: 14px; color: var(--sub); margin-top: 3px; font-family: -apple-system,sans-serif; }
.modal-close {
  background: var(--bg); border: none; color: var(--sub);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-body  { padding: 20px 24px 36px; }
.modal-hint  { font-size: 15px; color: var(--sub); margin-bottom: 20px; font-family: -apple-system,sans-serif; }

.dept-group  { margin-bottom: 22px; }
.dept-label  {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--sub); margin-bottom: 10px;
  font-family: -apple-system,sans-serif;
}
.emp-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.emp-toggle  {
  background: white; border: 1.5px solid var(--border); color: var(--text);
  padding: 11px 18px; border-radius: 24px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; font-family: -apple-system,sans-serif;
}
.emp-toggle:active { transform: scale(0.97); }

/* Employee management */
.emp-list  { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.emp-list-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 10px; padding: 10px 12px;
}
.emp-list-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0; font-family: -apple-system,sans-serif;
}
.emp-list-name { font-weight: 600; font-size: 16px; flex: 1; font-family: -apple-system,sans-serif; }
.emp-list-dept { font-size: 13px; color: var(--sub); font-family: -apple-system,sans-serif; }
.emp-delete {
  background: #fee2e2; border: none; color: #ef4444;
  width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.emp-delete:hover { background: #fecaca; }

.divider { height: 1px; background: var(--border); margin: 20px 0; }
.section-title { font-weight: 700; font-size: 17px; margin-bottom: 14px; font-family: Georgia,serif; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px;
  color: var(--sub); text-transform: uppercase; letter-spacing: 0.06em;
  font-family: -apple-system,sans-serif;
}
.form-input {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 15px; outline: none; background: white; transition: border-color 0.2s;
  font-family: -apple-system,sans-serif;
}
.form-input:focus { border-color: var(--primary); }
.btn-primary {
  width: 100%; background: var(--primary); color: white; border: none;
  padding: 13px; border-radius: 9px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: Georgia,serif; letter-spacing: 0.03em;
}
.btn-primary:active { opacity: 0.88; }
.btn-secondary {
  background: var(--bg); border: 1.5px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: 9px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: 'Montserrat',sans-serif;
}
.btn-secondary:active { background: var(--border); }

/* ─── EMPLOYEE VIEW ─── */
.emp-selector-bar {
  background: white; padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.emp-selector-bar label { font-weight: 600; font-size: 16px; white-space: nowrap; font-family: -apple-system,sans-serif; }
#employee-select {
  flex: 1; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 16px; background: white; outline: none; font-family: -apple-system,sans-serif;
}
.emp-schedule-wrap { flex: 1; overflow-y: auto; padding: 14px 16px 40px; }
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 60px 0; color: var(--sub);
  font-size: 14px; text-align: center; font-family: -apple-system,sans-serif;
}
.empty-icon { font-size: 40px; }
.emp-header-card {
  display: flex; align-items: center; gap: 14px;
  background: white; padding: 16px; border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow);
  border-left: 4px solid var(--accent); flex-wrap: wrap;
}
.emp-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0; font-family: -apple-system,sans-serif;
}
.emp-name { font-weight: 700; font-size: 19px; font-family: Georgia,serif; }
.emp-dept { font-size: 14px; color: var(--sub); margin-top: 3px; font-family: -apple-system,sans-serif; }

.btn-report {
  background: var(--primary-light); border: 1.5px solid var(--primary);
  color: var(--primary); padding: 10px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'Montserrat',sans-serif; position: relative;
  display: flex; align-items: center; gap: 6px;
}
.btn-report:active { background: #ccddd6; }
.report-badge-small {
  background: #ef4444; color: white; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

.emp-stats-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.emp-stat-card {
  flex: 1; min-width: 90px; background: white; border-radius: var(--radius);
  padding: 10px 12px; box-shadow: var(--shadow); border: 1px solid var(--border);
  text-align: center;
}
.emp-stat-card.vac-card { min-width: 130px; }
.emp-stat-num { font-size: 28px; font-weight: 800; color: var(--primary); font-family: 'Cormorant Garamond',serif; line-height: 1; }
.emp-stat-num.warn { color: #ef4444; }
.emp-stat-lbl { font-size: 10px; color: var(--sub); margin-top: 3px; font-family: 'Montserrat',sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.emp-week-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: white; border-radius: var(--radius);
  margin-bottom: 10px; box-shadow: var(--shadow);
  font-size: 15px; font-weight: 600; font-family: -apple-system,sans-serif;
}
.nav-btn-emp {
  background: var(--primary-light); border: none; color: var(--primary);
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.nav-btn-emp:active { background: #ccddd6; }

.emp-days { display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 0 auto; }
.emp-day-card {
  background: white; border-radius: var(--radius); padding: 12px 14px;
  box-shadow: var(--shadow); border: 1.5px solid var(--border);
}
.emp-day-card.today   { border-color: var(--primary); }
.emp-day-card.no-shift { opacity: 0.5; }
.emp-day-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.emp-day-name { font-weight: 700; font-size: 16px; font-family: -apple-system,sans-serif; }
.emp-day-name.today { color: var(--primary); }
.emp-day-date { font-size: 13px; color: var(--sub); font-family: -apple-system,sans-serif; }
.emp-shifts-list { display: flex; flex-direction: column; gap: 8px; }
.emp-shift-badge { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; }
.emp-shift-name { font-weight: 600; font-size: 15px; font-family: -apple-system,sans-serif; }
.emp-shift-time { font-size: 13px; color: var(--sub); margin-top: 2px; font-family: -apple-system,sans-serif; }
.no-assign { font-size: 14px; color: #c9b9aa; font-style: italic; font-family: -apple-system,sans-serif; }

.week-summary {
  margin-top: 14px; background: var(--accent-light);
  color: var(--accent); border: 1px solid #f0dfc0;
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 15px; text-align: center; font-weight: 500;
  font-family: -apple-system,sans-serif;
}

/* ─── BADGES ─── */
.hdr-btn-wrap { position: relative; flex-shrink: 0; }
.sms-badge {
  position: absolute; top: 1px; right: 1px;
  background: #ef4444; color: white; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; pointer-events: none;
  font-family: 'Montserrat',sans-serif; border: 2px solid var(--primary);
}
.report-badge-dot { background: #f59e0b !important; border-color: var(--primary) !important; }

@media (min-width: 601px) {
  .sms-badge { min-width: 20px; height: 20px; font-size: 12px; padding: 0 5px; top: 0px; right: 0px; }
}

/* ─── EMPLOYEE META PILLS ─── */
.emp-list-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.meta-pill {
  font-size: 11px; padding: 3px 8px; border-radius: 8px;
  font-family: 'Montserrat',sans-serif; font-weight: 500; cursor: pointer; user-select: none;
}
.meta-pill.phone       { background: #eff6ff; color: #1d4ed8; }
.meta-pill.vac         { background: #fef3c7; color: #92400e; }
.meta-pill.hrs         { background: var(--primary-light); color: var(--primary); cursor: default; }
.meta-pill.user-active   { background: #d1fae5; color: #065f46; }
.meta-pill.user-inactive { background: #f3f4f6; color: #6b7280; }
.meta-pill.phone:hover { background: #dbeafe; }
.meta-pill.vac:hover   { background: #fde68a; }
.meta-pill.user-active:hover   { background: #a7f3d0; }
.meta-pill.user-inactive:hover { background: #e5e7eb; }

/* ─── STUNDENABRECHNUNG ─── */
.hours-list { display: flex; flex-direction: column; gap: 10px; }
.hours-row {
  background: var(--bg); border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.hours-emp-info { display: flex; align-items: center; gap: 10px; min-width: 150px; flex: 1; }
.hours-stats    { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.hours-stat {
  display: flex; flex-direction: column; align-items: center;
  background: white; border-radius: 8px; padding: 8px 12px;
  min-width: 72px; border: 1px solid var(--border);
}
.hours-num { font-size: 22px; font-weight: 700; color: var(--primary); font-family: 'Cormorant Garamond',serif; line-height: 1; }
.hours-num.warn { color: #ef4444; }
.hours-lbl { font-size: 10px; color: var(--sub); margin-top: 2px; text-align: center; font-family: 'Montserrat',sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.vac-stat  { min-width: 100px; }
.vac-detail { font-size: 10px; color: var(--sub); font-family: 'Montserrat',sans-serif; }
.vac-bar   { height: 4px; background: var(--border); border-radius: 2px; width: 100%; overflow: hidden; }
.vac-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; }

/* ─── SMS MODAL ─── */
.sms-list { display: flex; flex-direction: column; gap: 10px; }
.sms-item { background: var(--bg); border-radius: 10px; padding: 12px 14px; border-left: 3px solid var(--border); }
.sms-item.sent      { border-left-color: var(--primary); opacity: 0.7; }
.sms-item.pending   { border-left-color: var(--accent); }
.sms-item.sending   { border-left-color: #60a5fa; opacity: 0.8; }
.sms-item.cancelled { border-left-color: #9ca3af; opacity: 0.55; }
.sms-item-top {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap;
}
.sms-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sms-status-dot.pending   { background: var(--accent); }
.sms-status-dot.sent      { background: var(--primary); }
.sms-status-dot.sending   { background: #60a5fa; animation: pulse 1s infinite; }
.sms-status-dot.cancelled { background: #9ca3af; }
.sms-phone { font-size: 12px; color: var(--sub); font-family: 'Montserrat',sans-serif; flex: 1; }
.sms-time  { font-size: 11px; color: var(--sub); font-family: 'Montserrat',sans-serif; }
.sms-msg   { font-size: 13px; color: var(--text); margin-bottom: 8px; font-family: -apple-system,sans-serif; line-height: 1.4; }
.sms-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sms-send-btn {
  background: var(--primary); color: white; border: none;
  padding: 7px 14px; border-radius: 8px; font-size: 13px;
  cursor: pointer; font-family: 'Montserrat',sans-serif; font-weight: 500;
}
.sms-send-btn:active { opacity: 0.85; }
.sms-cancel-btn {
  background: #fee2e2; color: #dc2626; border: none;
  padding: 7px 14px; border-radius: 8px; font-size: 13px;
  cursor: pointer; font-family: 'Montserrat',sans-serif; font-weight: 500;
}
.sms-cancel-btn:active { background: #fecaca; }
.sms-sent-label { font-size: 12px; color: var(--sub); font-family: 'Montserrat',sans-serif; }
.sms-textarea {
  resize: vertical; min-height: 90px; line-height: 1.5;
  font-size: 14px !important;
}

/* ─── MONATSPLAN SMS ─── */
.monthly-sms-emp-list {
  border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden;
}
.monthly-sms-emp-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-family: -apple-system,sans-serif; font-size: 14px;
  transition: background 0.12s;
}
.monthly-sms-emp-item:last-child { border-bottom: none; }
.monthly-sms-emp-item:hover { background: var(--bg); }
.monthly-sms-emp-item input[type=checkbox] {
  width: 16px; height: 16px; cursor: pointer; flex-shrink: 0;
  accent-color: var(--primary);
}
.monthly-sms-preview {
  background: var(--bg); border-radius: 10px; padding: 12px 14px;
  border-left: 3px solid var(--accent);
}
.monthly-sms-preview-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font-family: -apple-system,sans-serif;
}

/* ─── MITARBEITER-ANSICHT: ANSICHTS-TOGGLE ─── */
.emp-view-toggle-bar {
  display: flex; gap: 8px; margin-bottom: 10px;
}
.view-toggle-btn {
  flex: 1; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: white;
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: 'Montserrat', sans-serif; color: var(--sub);
  transition: all 0.15s;
}
.view-toggle-btn.active {
  background: var(--primary); color: white;
  border-color: var(--primary); font-weight: 700;
}
.view-toggle-btn:not(.active):hover { background: var(--bg); }

/* ─── TAGES-KARTEN: ABWECHSELNDE HINTERGRÜNDE ─── */
.emp-day-even { background: #ffffff; }
.emp-day-odd  { background: #faf5ee; }
.emp-day-card.weekend.emp-day-even { background: #f0f5ff; }
.emp-day-card.weekend.emp-day-odd  { background: #eaeffb; }
.emp-day-card.today.emp-day-even,
.emp-day-card.today.emp-day-odd   { background: #edf6f1; }

.emp-day-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.emp-day-left   { display: flex; align-items: baseline; gap: 8px; }
.emp-today-dot  {
  font-size: 10px; font-weight: 700; color: white;
  background: var(--primary); padding: 3px 8px; border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
}

/* ─── IST-ZEITEN (BEARBEITBAR / LESEND) ─── */
.emp-day-times {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 10px;
  background: rgba(42,74,62,0.06); border-radius: 8px;
  border: 1px dashed rgba(42,74,62,0.2);
}
.emp-day-times.readonly {
  background: rgba(184,135,74,0.06);
  border: 1px solid rgba(184,135,74,0.18);
}
.times-label {
  font-size: 11px; font-weight: 700; color: var(--sub);
  text-transform: uppercase; letter-spacing: 0.05em;
  font-family: 'Montserrat', sans-serif; white-space: nowrap;
}
.times-dash  { color: var(--sub); font-weight: 600; }
.times-value { font-size: 14px; font-weight: 600; font-family: 'Montserrat', sans-serif; }
.time-inp {
  width: 100px; padding: 5px 8px; border: 1.5px solid var(--border);
  border-radius: 7px; font-size: 14px; font-family: 'Montserrat', sans-serif;
  background: white; outline: none; text-align: center;
}
.time-inp:focus { border-color: var(--primary); }
.time-total {
  font-size: 13px; font-weight: 700; color: var(--primary);
  font-family: 'Montserrat', sans-serif; margin-left: auto;
  min-width: 28px;
}

/* ─── 4-WOCHEN-ÜBERSICHT ─── */
.emp-multi-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: white; border-radius: var(--radius);
  margin-bottom: 10px; box-shadow: var(--shadow);
  font-size: 14px; font-weight: 600; font-family: -apple-system, sans-serif;
}
.emp-multi-scroll {
  overflow-x: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-md); margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  max-width: 100%; /* kein horizontales Überlaufen des Containers */
  background: #ede8e1; padding: 4px;
}
.emp-multi-table {
  width: 100%; border-collapse: separate; border-spacing: 3px; min-width: 780px;
  table-layout: fixed;
  background: transparent; border-radius: var(--radius); overflow: hidden;
}
.mc-kw-cell {
  padding: 10px 12px; background: var(--primary);
  color: white; text-align: center; min-width: 64px;
  vertical-align: middle; border-radius: 7px;
  position: sticky; left: 0; z-index: 2;
}
.mc-kw       { font-size: 12px; font-weight: 700; font-family: 'Montserrat', sans-serif; letter-spacing: 0.04em; }
.mc-kw-range { font-size: 10px; opacity: 0.75; font-family: 'Montserrat', sans-serif; margin-top: 2px; }
.mc-kw-goto  { font-size: 13px; opacity: 0; margin-top: 3px; transition: opacity 0.15s; }
.mc-kw-clickable { cursor: pointer; transition: background 0.15s, filter 0.15s; }
.mc-kw-clickable:hover { filter: brightness(1.18); }
.mc-kw-clickable:hover .mc-kw-goto { opacity: 0.85; }
.mc-kw-clickable:active { filter: brightness(0.92); }

.mc-cell {
  padding: 8px 8px 12px; vertical-align: top;
  border: 2px solid #b8afa7; border-radius: 7px;
  min-width: 100px; transition: background 0.1s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.mc-even   { background: #ffffff; }
.mc-odd    { background: #faf5ee; }
.mc-weekend.mc-even { background: #f0f5ff; }
.mc-weekend.mc-odd  { background: #eaeffb; }
.mc-today  { background: #edf6f1 !important; border: 2px solid #4ade80 !important; box-shadow: none; }

.mc-current-week .mc-kw-cell { background: var(--accent); }
.mc-current-week .mc-cell    { border-bottom: 2.5px solid var(--accent) !important; }
.mc-current-week .mc-today   { border-bottom: 2px solid #4ade80 !important; }
.mc-out-of-month             { background: #f9fafb; border-color: #d8d0c8; }

.mc-date     { font-size: 11px; font-weight: 700; color: var(--sub); margin-bottom: 5px; font-family: 'Montserrat', sans-serif; }
.mc-date-num { font-weight: 400; font-size: 10px; }
.mc-inner    { display: flex; flex-direction: column; gap: 3px; }
.mc-empty    { font-size: 13px; color: #d1c4ba; }
.mc-shift-badge {
  font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px;
  font-family: 'Montserrat', sans-serif; white-space: nowrap;
  display: inline-block;
}
.mc-times {
  font-size: 10px; color: var(--primary); font-family: 'Montserrat', sans-serif;
  font-weight: 500; margin-top: 2px;
}
.mc-times-edit { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.time-inp-mini {
  width: 100%; padding: 3px 5px; border: 1px solid var(--border);
  border-radius: 5px; font-size: 11px; font-family: 'Montserrat', sans-serif;
  background: white; outline: none; text-align: center;
}
.time-inp-mini:focus { border-color: var(--primary); }

/* ─── EINSTELLUNGEN ─── */
.settings-section { margin-bottom: 4px; }
.icon-pick-btn { line-height: 1; }
.settings-section-title {
  font-weight: 700; font-size: 15px; margin-bottom: 14px;
  font-family: Georgia, serif; color: var(--text);
}
.settings-user-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg); border-radius: 9px;
  margin-bottom: 8px; font-family: -apple-system, sans-serif;
}
.settings-user-name { font-size: 14px; font-weight: 500; }
.settings-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; font-family: -apple-system, sans-serif;
}
.settings-info-row:last-child { border-bottom: none; }
.settings-info-row span:last-child { color: var(--sub); font-size: 13px; }

/* ─── MONATSABSCHLUSS ─── */
.report-entries-list { display: flex; flex-direction: column; gap: 10px; }
.report-entry-row {
  background: var(--bg); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.report-entry-date {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.report-entry-day {
  font-weight: 700; font-size: 13px; font-family: -apple-system,sans-serif;
  color: var(--sub); min-width: 24px;
}
.report-entry-dt { font-size: 14px; font-family: -apple-system,sans-serif; font-weight: 500; }
.report-entry-shift {
  padding: 3px 9px; border-radius: 8px; font-size: 12px;
  font-family: 'Montserrat',sans-serif; font-weight: 500;
}
.report-entry-times {
  display: flex; align-items: center; gap: 8px;
}
.report-time-input {
  max-width: 120px; padding: 8px 10px !important;
  font-size: 14px !important; text-align: center;
}
.report-time-dash { font-weight: 700; color: var(--sub); flex-shrink: 0; }
.report-note-input { font-size: 13px !important; padding: 8px 10px !important; }

/* Berichts-Liste Manager */
.report-item {
  background: var(--bg); border-radius: 10px; padding: 14px;
  border-left: 3px solid var(--border);
}
.report-item.pending  { border-left-color: var(--accent); }
.report-item.approved { border-left-color: var(--primary); opacity: 0.75; }
.report-item-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap;
  font-family: -apple-system,sans-serif;
}
.report-status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.report-status-dot.pending  { background: var(--accent); }
.report-status-dot.approved { background: var(--primary); }
.report-month-label {
  font-size: 13px; font-family: 'Montserrat',sans-serif;
  background: var(--primary-light); color: var(--primary);
  padding: 2px 8px; border-radius: 6px; font-weight: 500;
}

/* ─── MONATSABSCHLUSS – ZUSAMMENFASSUNG & STATUS ─── */
.report-summary-box {
  background: var(--primary-light); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 16px;
  border: 1px solid rgba(42,74,62,0.15);
  display: flex; flex-direction: column; gap: 8px;
}
.report-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: -apple-system,sans-serif; font-size: 14px;
  color: var(--text);
}
.report-summary-row span { color: var(--sub); }
.report-summary-row strong { font-weight: 600; }

.report-entry-row.has-hours {
  border-left: 3px solid var(--primary-mid);
}
.report-entry-row.missing-hours {
  border-left: 3px solid #d4933a;
  background: #fffbf5;
}
.report-entry-row.absence {
  border-left: 3px solid #8b5cf6;
  background: #faf5ff;
}
.report-entry-row.no-duty {
  border-left: 3px solid var(--border);
  background: #fafafa;
  opacity: 0.55;
}
.report-entry-row.no-duty:hover { opacity: 0.85; }
.report-empty {
  text-align: center; padding: 40px 20px;
  color: var(--sub); font-family: -apple-system,sans-serif;
  font-size: 14px; line-height: 1.6;
}
.report-empty-icon { font-size: 32px; margin-bottom: 10px; }

/* Schicht-Dropdown in Report-Zeile */
.report-shift-select {
  font-family: -apple-system,sans-serif; font-size: 13px;
  padding: 4px 8px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); cursor: pointer; flex-shrink: 0;
  max-width: 160px;
}
.report-shift-select:focus { outline: none; border-color: var(--primary); }

/* Manager-Plan Hinweis-Badge */
.report-plan-badge {
  font-size: 11px; color: var(--sub);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 2px 6px;
  font-family: -apple-system,sans-serif; cursor: help;
  flex-shrink: 0;
}
/* Abwesenheits-Badge (schreibgeschützt) */
.report-absence-badge {
  padding: 3px 9px; border-radius: 8px; font-size: 12px;
  font-family: 'Montserrat',sans-serif; font-weight: 500;
  flex-shrink: 0;
}
.report-readonly-hint {
  font-size: 11px; color: var(--sub);
  font-family: -apple-system,sans-serif;
  margin-left: auto; flex-shrink: 0;
}

/* Dichtere Liste für ganzen Monat */
.report-entries-list { gap: 6px; }

.report-send-block {
  margin-top: 20px; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.report-send-block .btn-primary {
  width: 100%; max-width: 340px;
}
.report-send-hint {
  font-size: 12px; color: var(--sub);
  font-family: -apple-system,sans-serif; text-align: center;
  line-height: 1.4;
}

/* ─── WOCHE KOPIEREN / VORLAGEN ─── */
.week-label-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.week-label-actions .del-week-btn { margin-right: 10px; }
.wk-action-btn {
  font-size: 12px; padding: 5px 12px; border-radius: 8px;
  cursor: pointer; font-family: 'Montserrat', sans-serif;
  font-weight: 600; white-space: nowrap; transition: background 0.15s;
}
.wk-action-btn.copy-btn       { background: #0ea5e9; border: 1px solid #0284c7; color: white; }
.wk-action-btn.copy-btn:hover { background: #0284c7; }
.wk-action-btn.tpl-btn        { background: #f59e0b; border: 1px solid #d97706; color: white; }
.wk-action-btn.tpl-btn:hover  { background: #d97706; }
.wk-action-btn.del-week-btn   { background: none; border: 1px solid #fca5a5; color: #dc2626; }
.wk-action-btn.del-week-btn:hover { background: #fee2e2; border-color: #dc2626; }

/* ─── FEIERTAGE ─── */
.day-card.holiday-day { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: #fcd34d; }
.holiday-badge {
  font-size: 10px; color: #92400e; background: #fef3c7;
  border: 1px solid #fcd34d; border-radius: 6px; padding: 2px 6px;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px;
}

/* ─── KONFLIKT-WARNUNG ─── */
.emp-chip.conflict {
  border: 1.5px solid #dc2626 !important;
  background: #fee2e2 !important; color: #991b1b !important;
}

/* ─── TAGES-NOTIZEN ─── */
.day-note-row {
  margin-top: 8px; padding: 7px 10px; border-radius: 8px;
  cursor: pointer; border: 1px dashed #fbb6ce;
  background: #fde8f0;
  display: flex; align-items: center; gap: 6px;
  min-height: 32px; transition: background 0.15s;
}
.day-note-row:hover { background: #fce7f3; border-color: #f472b6; }
.day-note-icon { font-size: 15px; flex-shrink: 0; }
.day-note-text { font-size: 13px; font-weight: 600; color: #be185d; font-family: -apple-system, sans-serif; line-height: 1.3; }
.day-note-add { font-size: 11px; color: var(--sub); font-family: -apple-system, sans-serif; font-style: italic; }

/* Tages-Notiz in Mitarbeiteransicht (readonly) */
.month-locked-badge {
  font-size: 11px; color: #059669; font-weight: 600;
  font-family: -apple-system, sans-serif;
  padding: 3px 8px; background: #d1fae5; border-radius: 6px;
  display: inline-block; margin-bottom: 6px;
}

.month-locked-badge {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px; padding: 6px 10px; border-radius: 8px;
  background: #f0fdf4; border: 1px solid #86efac;
  font-size: 12px; font-weight: 600; color: #15803d;
  font-family: -apple-system, sans-serif;
}

.emp-day-note {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 8px; padding: 8px 10px; border-radius: 10px;
  background: #fffbeb; border: 2px solid #f59e0b;
}
.emp-day-note-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.emp-day-note-text { font-size: 13px; font-weight: 600; color: #92400e; font-family: -apple-system, sans-serif; line-height: 1.4; }

/* ─── VORLAGEN ─── */
.template-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); gap: 8px;
}
.template-item:last-child { border-bottom: none; }
.template-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.template-item-name { font-size: 14px; font-weight: 600; font-family: -apple-system, sans-serif; }
.template-item-date { font-size: 11px; color: var(--sub); font-family: -apple-system, sans-serif; }
.template-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* ─── MONATSABSCHLUSS – STATUS & AKTIONEN ─── */
.report-send-block { gap: 10px; }
.report-sent-status {
  display: flex; align-items: center; gap: 14px;
  background: var(--primary-light); border-radius: 12px;
  padding: 14px 16px; border: 1px solid rgba(42,74,62,0.15);
  width: 100%;
}
.report-sent-icon { font-size: 28px; flex-shrink: 0; }
.report-sent-info { display: flex; flex-direction: column; gap: 3px; }
.report-sent-label {
  font-size: 15px; font-weight: 600;
  font-family: -apple-system, sans-serif; color: var(--primary);
}
.report-sent-date {
  font-size: 12px; color: var(--sub);
  font-family: -apple-system, sans-serif;
}
.report-withdraw-btn {
  width: 100%; color: #b45309 !important;
  border-color: #fcd34d !important; background: #fffbeb !important;
}
.report-withdraw-btn:hover { background: #fef3c7 !important; }

/* ─── MODAL SCROLL LOCK ─── */
body.modal-open { overflow: hidden !important; touch-action: none; }


/* ─── MOBILE: Monatsansicht Zellen breiter & Notizen lesbarer ─── */
@media (max-width: 600px) {
  /* Notiz in Monatszelle kompakter */
  .mc-note {
    margin-top: 4px !important;
    padding: 4px 6px !important;
    border-radius: 6px !important;
  }
  .emp-day-note-icon { font-size: 12px !important; }
  .emp-day-note-text { font-size: 11px !important; line-height: 1.3 !important; }

  /* Schicht-Badge in Monatszelle kleiner */
  .mc-shift-badge {
    font-size: 9px !important;
    padding: 1px 3px !important;
    border-radius: 4px !important;
    white-space: normal !important;
    word-break: break-word;
  }

  /* Datum in Monatszelle kompakter */
  .mc-date { font-size: 9px !important; margin-bottom: 3px !important; }
  .mc-date-num { font-size: 8px !important; }
}
