/* ── Kalender ── */
.cal-wrap { background: #f8fafc; border-radius: .5rem; overflow: hidden; }
.cal-table.table { border-collapse: collapse !important; table-layout: fixed; width: 100%; margin: 0; background: transparent; }
.cal-table.table > :not(caption) > * > * { padding: 0; background: transparent; }

.cal-table thead th {
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  border-bottom: 2px solid #94a3b8 !important;
  padding: .5rem 0 !important;
  color: #475569;
  letter-spacing: .05em;
  font-weight: 600;
}
.cal-table tbody td {
  border: 1px solid #cbd5e1 !important;
  height: 72px;
  vertical-align: middle;
  padding: 4px !important;
  background: #ffffff;
}
.cal-table tbody td.cal-empty { background: #f1f5f9; }

.cal-day {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 500;
  position: relative;
  cursor: default;
}
.cal-done    { background: #dcfce7; color: #166534; font-weight: 700; }
.cal-missing { background: #fee2e2; color: #991b1b; }
.cal-today   { outline: 2px solid #1a56db; outline-offset: 1px; }

.cal-legend {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 3px;
}
.cal-legend-done    { background: #dcfce7; border: 1px solid #166534; }
.cal-legend-missing { background: #fee2e2; border: 1px solid #991b1b; }
.cal-legend-today   { background: white;   border: 2px solid #1a56db; }

/* ── Rundgang-Items ── */
.item-ok      { border-left: 4px solid #16a34a !important; }
.item-problem { border-left: 4px solid #dc2626 !important; }
.item-open    { border-left: 4px solid #d1d5db !important; }

/* ── Allgemein ── */
body { background: #f8fafc; }
.navbar { position: sticky; top: 0; z-index: 200; }

/* ── Net-Status-Banner ── */
.net-status {
  position: sticky;
  top: 0;
  z-index: 250;
  padding: .4rem .75rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
}
.net-status-offline { background: #b45309; }
.net-status-syncing { background: #1d4ed8; }
.net-status-synced  { background: #16a34a; }

/* ── Admin Nav-Tabs: auf Mobile horizontal scrollbar ── */
.nav-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-tabs::-webkit-scrollbar { display: none; }

/* ── Mitarbeiter-Inhalte auf Desktop zentriert halten ── */
.employee-content {
  max-width: 600px;
  margin: 0 auto;
}

/* ── Buttons: Touch-freundlich ── */
@media (max-width: 576px) {
  .btn-lg-touch {
    min-height: 52px;
    font-size: 1.05rem;
  }
}
