/* ===========================================================
   report.css v12 – Tagesberichte Übersicht (Design 4)
   - Blue accent, Light/Dark via CSS variables from style.css
   =========================================================== */

#content.reportView, .reportView #content { }

/* Container */
#repList { margin-top: 14px; }

/* Topbar */
.repTopBar{
  position: sticky;
  top: 74px; /* unter Header/Nav */
  z-index: 5;
  padding: 14px 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.06) 100%), var(--card);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}

/* Year/Month bars */
.repYearRow{ gap:10px; }
#repYearBar, #repYearMore{
  display:flex;
  gap:8px;
  flex-wrap: wrap;
  align-items:center;
}
#repMonthBar{
  display:flex;
  gap:8px;
  align-items:center;
  overflow:auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
#repMonthBar::-webkit-scrollbar{ height: 6px; }
#repMonthBar::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.12); border-radius: 999px; }

.repActionsRow{ margin-top: 10px; }
.repActionsBox{
  border: 1px solid var(--border) !important;
  background: rgba(255,255,255,.04) !important;
}

/* Tabs */
.repTabBtn{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  white-space: nowrap;
}
.repTabBtn:hover{ transform: translateY(-1px); border-color: rgba(59,130,246,.55); }
.repTabBtn.active{
  border-color: rgba(59,130,246,.85);
  background: rgba(59,130,246,.18);
  box-shadow: 0 0 0 3px rgba(59,130,246,.14);
}
.repTabBtn.more{
  opacity:.85;
}

/* Messages / empty */
.repMsg{ margin-top: 10px; color: var(--muted); }
.repEmpty{
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--border);
  color: var(--muted);
  background: rgba(255,255,255,.03);
}

/* Week blocks */
.repWeekBlock{
  margin-top: 16px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.03) 100%);
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
}
.repWeekRange{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 600;
}
.repWeekLabel{
  font-size: 0.98rem;
  letter-spacing: .2px;
}
.repWeekHours{
  color: rgba(255,255,255,.92);
  background: rgba(59,130,246,.18);
  border: 1px solid rgba(59,130,246,.45);
  padding: 6px 10px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* Tile grid */
.repTilesWrap{
  display:grid;
  grid-template-columns: repeat(7, minmax(88px, 1fr));
  gap: 10px;
}
@media (max-width: 1100px){
  .repTilesWrap{ grid-template-columns: repeat(4, minmax(86px, 1fr)); }
}
@media (max-width: 640px){
  .repTilesWrap{ grid-template-columns: repeat(2, minmax(86px, 1fr)); }
}

/* Tiles */
.repTile{
  width:100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 10px 10px 9px;
  text-align:left;
  cursor:pointer;
  color: var(--text);
  min-height: 104px;
  display:flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  position: relative;
  overflow:hidden;
}
.repTile:hover{
  transform: translateY(-2px);
  border-color: rgba(59,130,246,.45);
  background: rgba(255,255,255,.05);
}

/* Status colors */
.repTile.work{ box-shadow: inset 0 0 0 1px rgba(34,197,94,.12); }
.repTile.school{ box-shadow: inset 0 0 0 1px rgba(59,130,246,.18); }
.repTile.absence{ opacity: .85; }
.repTile.absence.krank{ box-shadow: inset 0 0 0 1px rgba(239,68,68,.22); }
.repTile.absence.urlaub{ box-shadow: inset 0 0 0 1px rgba(234,179,8,.20); }
.repTile.absence.wochenende{ opacity:.65; filter: grayscale(.15); }

/* Today ring */
.repTile.repToday{
  border-color: rgba(59,130,246,.95);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

/* Tile contents */
.repTileTop{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height: 20px;
}
.repBadge{
  max-width: 100%;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  padding: 3px 8px;
  border-radius: 999px;
}
body[data-theme="light"] .repBadge{
  color: rgba(10,18,34,.90);
  background: rgba(255,255,255,.65);
  border-color: rgba(0,0,0,.10);
}

.repDay{
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.0;
  color: rgba(59,130,246,.95);
  text-shadow: 0 0 10px rgba(59,130,246,.25);
}
body[data-theme="light"] .repDay{
  color: rgba(37,99,235,.95);
}

.repMeta{
  font-size: 0.86rem;
  color: var(--muted);
  text-transform: capitalize;
}
.repSub{
  margin-top:auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  font-variant-numeric: tabular-nums;
}
body[data-theme="light"] .repSub{ color: rgba(10,18,34,.78); }

/* Holiday modal minor (falls genutzt) */
.wr-hide{ display:none !important; }
