/* Meine Zeiten – Layout & Typografie (nur data-nav="times") */

.employee-panel-sub--times {
  width: 100%;
  max-width: none;
}

.employee-times-dashboard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  text-align: left;
}

/* ── Kopfbereich ── */

.employee-times-header h2 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
}

.employee-times-header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(185, 199, 211, 0.82);
}

/* ── KPI-Karten ── */

.employee-times-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.employee-times-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(32, 213, 194, 0.2);
  background: rgba(8, 28, 45, 0.82);
}

.employee-times-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  height: 100%;
}

.employee-times-kpi-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(185, 199, 211, 0.78);
}

.employee-times-kpi-value {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.employee-times-kpi-card--accent .employee-times-kpi-value {
  color: #20d5c2;
}

.employee-times-kpi-meta {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(185, 199, 211, 0.72);
}

/* ── Hauptbereich: 65 % links | 35 % rechts ── */

.employee-times-main {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
  gap: 16px;
  align-items: start;
}

.employee-times-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.employee-times-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.employee-times-left > .employee-times-card,
.employee-times-row {
  width: 100%;
  min-width: 0;
}

.employee-times-right > .employee-times-card,
.employee-times-calendar {
  width: 100%;
  min-width: 0;
}

.employee-times-card-title {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}

/* ── Timeline ── */

.employee-times-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.employee-times-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 22%;
  min-width: 0;
  max-width: none;
}

.employee-times-timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 2px solid transparent;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.03);
}

.employee-times-timeline-dot--kommen {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.6);
}

.employee-times-timeline-dot--pause-start {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.6);
}

.employee-times-timeline-dot--pause-end {
  background: rgba(32, 213, 194, 0.2);
  border-color: rgba(32, 213, 194, 0.6);
}

.employee-times-timeline-dot--gehen {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.6);
}

.employee-times-timeline-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(185, 199, 211, 0.88);
  text-align: center;
  line-height: 1.25;
}

.employee-times-timeline-time {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.3;
}

.employee-times-timeline-arrow {
  flex: 1 1 auto;
  align-self: flex-start;
  margin-top: 21px;
  min-width: 16px;
  height: 2px;
  background: rgba(185, 199, 211, 0.38);
  position: relative;
  font-size: 0;
  color: transparent;
  user-select: none;
}

.employee-times-timeline-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid rgba(185, 199, 211, 0.45);
}

.employee-times-pause-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Tagesübersicht + Wochenübersicht (zusammen = Breite Timeline) ── */

.employee-times-row {
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  gap: 16px;
  align-items: start;
}

.employee-times-row > .employee-times-card {
  height: auto;
  align-self: start;
  min-width: 0;
}

.employee-times-week {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.employee-times-day-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.employee-times-day-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(220, 230, 238, 0.88);
}

.employee-times-day-list li span:first-child {
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(185, 199, 211, 0.82);
}

.employee-times-day-list li span:last-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.employee-times-day-list li.is-net {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.employee-times-day-list li.is-net span:first-child {
  font-size: 13px;
  color: rgba(220, 230, 238, 0.92);
}

.employee-times-day-list li.is-net span:last-child {
  color: #20d5c2;
  font-size: 18px;
}

.employee-times-day-list li span:last-child small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(185, 199, 211, 0.72);
}

.employee-times-day-list li.is-booking span:first-child {
  font-size: 12px;
  color: rgba(185, 199, 211, 0.82);
}

.employee-times-day-list li.is-booking + li.is-booking {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.employee-times-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.employee-times-day-title {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}

.employee-times-day-nav-btn {
  flex-shrink: 0;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.employee-times-day-nav-btn:hover:not(:disabled) {
  border-color: rgba(32, 213, 194, 0.4);
  background: rgba(32, 213, 194, 0.12);
}

.employee-times-day-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Wochentabelle ── */

.employee-times-week-table-wrap {
  overflow: hidden;
  max-width: 100%;
}

.employee-times-week-table {
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: collapse;
  border: none !important;
  font-size: 12px;
}

.employee-times-week-table thead,
.employee-times-week-table tbody,
.employee-times-week-table tr {
  border: none !important;
  background: transparent !important;
}

.employee-times-week-table th,
.employee-times-week-table td {
  padding: 6px 4px;
  border: none !important;
  background: transparent !important;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-times-week-table th:nth-child(1),
.employee-times-week-table td:nth-child(1) {
  width: 40%;
  text-align: left;
}

.employee-times-week-table th:nth-child(2),
.employee-times-week-table td:nth-child(2),
.employee-times-week-table th:nth-child(3),
.employee-times-week-table td:nth-child(3),
.employee-times-week-table th:nth-child(4),
.employee-times-week-table td:nth-child(4) {
  width: 20%;
  text-align: right;
}

.employee-times-week-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(185, 199, 211, 0.78);
}

.employee-times-week-table tbody tr:not(.is-total) td {
  font-size: 12px;
  color: rgba(220, 230, 238, 0.92);
}

.employee-times-week-table tr.is-total td {
  padding-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #20d5c2 !important;
  border: none !important;
  border-top: 1px solid #20d5c2 !important;
  background: transparent !important;
}

.employee-times-week-table tr.is-total td:first-child {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.employee-times-week-table tr.is-total .employee-times-diff--pos,
.employee-times-week-table tr.is-total .employee-times-diff--neg {
  color: #20d5c2 !important;
}

.employee-times-diff--pos {
  color: #20d5c2;
}

.employee-times-diff--neg {
  color: #f87171;
}

/* ── Kalender ── */

.employee-times-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.employee-times-calendar-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: #f8fafc;
}

.employee-times-calendar-nav {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.employee-times-calendar-nav button {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.employee-times-calendar-nav button:hover {
  border-color: rgba(32, 213, 194, 0.4);
  background: rgba(32, 213, 194, 0.12);
}

.employee-times-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.employee-times-calendar-weekday {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: rgba(185, 199, 211, 0.72);
  padding: 4px 0;
}

.employee-times-calendar-day {
  height: 32px;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(220, 230, 238, 0.82);
  background: rgba(4, 18, 30, 0.45);
  border: 1px solid transparent;
}

.employee-times-calendar-day.is-empty {
  visibility: hidden;
  min-height: 0;
}

.employee-times-calendar-day.is-today {
  border: 2px solid #20d5c2;
  box-shadow: 0 0 0 2px rgba(32, 213, 194, 0.25);
  color: #f8fafc;
  font-weight: 700;
}

.employee-times-calendar-day.is-worked {
  background: rgba(34, 197, 94, 0.22);
  color: #dcfce7;
}

.employee-times-calendar-day.is-vacation {
  background: rgba(245, 158, 11, 0.22);
  color: #fef3c7;
}

.employee-times-calendar-day.is-sick {
  background: rgba(59, 130, 246, 0.22);
  color: #dbeafe;
}

.employee-times-calendar-day.is-free {
  background: rgba(100, 116, 139, 0.18);
  color: rgba(185, 199, 211, 0.65);
}

.employee-times-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 11px;
  color: rgba(185, 199, 211, 0.78);
}

.employee-times-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.employee-times-calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* ── Berichte & Aktionen ── */

.employee-times-actions-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.employee-times-action-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.employee-times-action-btn:hover:not(:disabled) {
  border-color: rgba(32, 213, 194, 0.35);
  background: rgba(32, 213, 194, 0.1);
}

.employee-times-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.employee-times-action-btn strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.employee-times-action-btn span {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(185, 199, 211, 0.75);
}

/* ── Wochen- / Monatsbericht ── */

.employee-panel-sub--times-report {
  width: 100%;
  max-width: none;
}

.employee-times-report {
  gap: 22px;
  width: 100%;
}

.employee-times-report-back {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(185, 199, 211, 0.88);
  font-size: 14px;
  cursor: pointer;
}

.employee-times-report-back:hover {
  color: #20d5c2;
}

.employee-times-report-header {
  align-self: flex-start;
  width: 100%;
  text-align: left;
}

.employee-times-report-header h2 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  color: #f8fafc;
}

.employee-times-report-header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(185, 199, 211, 0.86);
}

.employee-times-report-period {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  min-height: 88px;
  background: linear-gradient(
    135deg,
    rgba(8, 28, 45, 0.95),
    rgba(12, 38, 58, 0.88)
  );
}

.employee-times-report-period-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.employee-times-report-period-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(32, 213, 194, 0.45);
  background: rgba(32, 213, 194, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #20d5c2;
}

.employee-times-report-period-main strong {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
}

.employee-times-report-period-range {
  font-size: 14px;
  color: rgba(185, 199, 211, 0.82);
}

.employee-times-report-summary-row {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
  border-radius: 14px;
  border: 1px solid rgba(32, 213, 194, 0.28);
  background: linear-gradient(
    180deg,
    rgba(10, 34, 52, 0.96),
    rgba(6, 24, 38, 0.98)
  );
  overflow: hidden;
}

.employee-times-report-summary-item {
  flex: 1 1 50%;
  min-width: 0;
  padding: 20px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-times-report-summary-item:last-child {
  border-right: none;
}

.employee-times-report-summary-item span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(185, 199, 211, 0.78);
  line-height: 1.3;
}

.employee-times-report-summary-item strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.employee-times-report-summary-item--ist strong {
  color: #34d399;
}

.employee-times-report-summary-item--pause strong,
.employee-times-report-summary-item--total-pause strong {
  color: #fb923c;
}

.employee-times-report-summary-item--total-time strong {
  color: #facc15;
}

.employee-times-report-kpis--target {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-times-report-period-nav {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.employee-times-report-period-nav:hover {
  border-color: rgba(32, 213, 194, 0.35);
  background: rgba(32, 213, 194, 0.1);
}

.employee-times-report-period-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.employee-times-report-period--compact {
  width: auto;
  max-width: min(100%, 360px);
  padding: 10px 14px;
  min-height: 0;
  gap: 10px;
  border-radius: 999px;
}

.employee-times-report-period-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.employee-times-report-period--compact .employee-times-report-period-main {
  gap: 2px;
  flex: 0 1 auto;
}

.employee-times-report-period--compact .employee-times-report-period-badge {
  min-width: 0;
  padding: 6px 16px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.employee-times-report-period--compact .employee-times-report-period-range {
  display: block;
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
  color: #20d5c2;
  white-space: nowrap;
}

.employee-times-report-period--compact .employee-times-report-period-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 20px;
}

.employee-times-report--week,
.employee-times-report--month {
  gap: 14px;
}

.employee-times-report--week .employee-times-report-header h2,
.employee-times-report--month .employee-times-report-header h2 {
  font-size: 28px;
  margin-bottom: 4px;
}

.employee-times-report--week .employee-times-report-header p,
.employee-times-report--month .employee-times-report-header p {
  font-size: 13px;
}

.employee-times-report--week .employee-times-report-summary-item,
.employee-times-report--month .employee-times-report-summary-item {
  padding: 14px 10px;
}

.employee-times-report--week .employee-times-report-summary-item strong,
.employee-times-report--month .employee-times-report-summary-item strong {
  font-size: 20px;
}

.employee-times-report--week .employee-times-report-table th,
.employee-times-report--week .employee-times-report-table td,
.employee-times-report--month .employee-times-report-table th,
.employee-times-report--month .employee-times-report-table td {
  padding: 9px 10px;
  font-size: 12px;
}

.employee-times-report--week .employee-times-report-table th,
.employee-times-report--month .employee-times-report-table th {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 10px;
}

.employee-times-report-kpis {
  gap: 16px;
}

.employee-times-report-kpis .employee-times-kpi-card {
  padding: 22px 24px;
  min-height: 118px;
}

.employee-times-report-kpis .employee-times-kpi-label {
  margin-bottom: 10px;
  font-size: 12px;
}

.employee-times-report-kpis .employee-times-kpi-value {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1.15;
}

.employee-times-report-kpis .employee-times-kpi-meta {
  font-size: 13px;
}

.employee-times-report-kpi {
  position: relative;
  padding-top: 22px;
}

.employee-times-report-kpi-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  opacity: 0.9;
}

.employee-times-report-kpi-icon--soll {
  background: rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.employee-times-report-kpi-icon--ist {
  background: rgba(34, 197, 94, 0.22);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.employee-times-report-kpi-icon--pause {
  background: rgba(245, 158, 11, 0.22);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.employee-times-report-kpi-icon--diff {
  background: rgba(32, 213, 194, 0.18);
  box-shadow: inset 0 0 0 1px rgba(32, 213, 194, 0.35);
}

.employee-times-report-table-card {
  padding: 0;
  overflow: hidden;
}

.employee-times-report-table-wrap {
  overflow-x: auto;
}

.employee-times-report-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.employee-times-report-table th,
.employee-times-report-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  white-space: nowrap;
}

.employee-times-report-table th {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(185, 199, 211, 0.78);
  background: rgba(255, 255, 255, 0.04);
}

.employee-times-report-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.employee-times-report-table tbody td {
  font-size: 14px;
  color: rgba(220, 230, 238, 0.94);
}

.employee-times-report-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(185, 199, 211, 0.9);
}

.employee-times-report-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.8);
}

.employee-times-report-status.is-over i {
  background: #22c55e;
}

.employee-times-report-status.is-under i {
  background: #ef4444;
}

.employee-times-report-status.is-none i {
  background: rgba(148, 163, 184, 0.55);
}

.employee-times-report-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Seiten-Footer-Styles (terminal-desktop) nicht auf Bericht-Footer anwenden */
body:has(#employeeView:not(.hidden)) footer.employee-times-report-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
  gap: 16px;
  width: 100%;
}

.employee-times-report-totals {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  width: 100%;
  gap: 0;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(32, 213, 194, 0.28);
  background: linear-gradient(
    180deg,
    rgba(10, 34, 52, 0.96),
    rgba(6, 24, 38, 0.98)
  );
  overflow: hidden;
  flex-shrink: 0;
}

.employee-times-report-total {
  flex: 1 1 25%;
  min-width: 0;
  padding: 22px 20px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  text-align: center;
}

.employee-times-report-total span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(185, 199, 211, 0.78);
  white-space: normal;
  line-height: 1.3;
}

.employee-times-report-total strong {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
  white-space: nowrap;
}

.employee-times-report-total--ist strong {
  color: #facc15;
}

.employee-times-report-total--soll strong {
  color: #60a5fa;
}

.employee-times-report-total--pause strong {
  color: #fb923c;
}

.employee-times-report-total--neg strong {
  color: #20d5c2;
}

.employee-times-report-total--pos strong {
  color: #34d399;
}

.employee-times-report-total:last-child {
  border-right: none;
}

.employee-times-report-actions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  flex-shrink: 0;
}

.employee-times-report-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.employee-times-report-action:hover {
  border-color: rgba(32, 213, 194, 0.35);
  background: rgba(32, 213, 194, 0.1);
}

.employee-times-report-action--close {
  margin-left: 0;
  background: rgba(8, 28, 45, 0.95);
}

body:has(#employeeView:not(.hidden)) .employee-dashboard.employee-dashboard--times-report {
  grid-template-columns: 220px minmax(0, 1fr);
}

body:has(#employeeView:not(.hidden)) .employee-dashboard.employee-dashboard--times-report .employee-dashboard-center {
  min-width: 0;
  max-width: none;
}

body:has(#employeeView:not(.hidden)) .employee-dashboard.employee-dashboard--times-report .employee-dashboard-widgets {
  display: none;
}

@media (min-width: 1024px) {
  .employee-times-report-kpis--no-target {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-times-kpi-grid--no-target {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .employee-times-report-totals--no-target .employee-times-report-total {
    flex: 1 1 50%;
  }

  .employee-times-report-table--no-target {
    min-width: 100%;
  }

  .employee-times-week-table--no-target th:nth-child(2),
  .employee-times-week-table--no-target td:nth-child(2) {
    width: 60%;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .employee-times-report {
    gap: 24px;
  }

  .employee-times-report-header h2 {
    font-size: 36px;
  }

  .employee-times-report-period {
    padding: 20px 24px;
    min-height: 78px;
  }

  .employee-times-report-kpis .employee-times-kpi-value {
    font-size: 30px;
  }

  .employee-times-report-table th,
  .employee-times-report-table td {
    padding: 17px 22px;
  }

  .employee-times-report-table tbody td {
    font-size: 15px;
  }

  .employee-times-report-total {
    padding: 24px 22px;
  }

  .employee-times-report-total strong {
    font-size: 28px;
  }

  .employee-times-report-summary-item {
    padding: 18px 12px;
  }

  .employee-times-report-summary-item strong {
    font-size: 22px;
  }

  .employee-times-report-period-main strong {
    font-size: 24px;
  }
}

/* ── Desktop: volle Breite ── */

@media (min-width: 1024px) {
  body:has(#employeeView:not(.hidden)) .employee-dashboard.employee-dashboard--times {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body:has(#employeeView:not(.hidden)) .employee-dashboard.employee-dashboard--times .employee-dashboard-center {
    min-width: 0;
    max-width: none;
  }

  .employee-times-week-table-wrap {
    overflow-x: hidden;
  }
}

/* ── Tablet ── */

@media (max-width: 1200px) {
  .employee-times-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-times-main {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .employee-times-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .employee-times-week-table-wrap {
    overflow-x: hidden;
  }
}

/* ── Handy ── */

@media (max-width: 768px) {
  .employee-times-header h2 {
    font-size: 22px;
  }

  .employee-times-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .employee-times-main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .employee-times-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .employee-times-card-title,
  .employee-times-calendar-head h3 {
    font-size: 18px;
  }

  .employee-times-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .employee-times-timeline-step {
    flex: none;
    width: 100%;
  }

  .employee-times-timeline-arrow {
    display: none;
  }

  .employee-times-week-table-wrap {
    overflow-x: hidden;
  }

  .employee-times-week-table th,
  .employee-times-week-table td {
    padding: 7px 4px;
    font-size: 11px;
  }

  .employee-times-week-table tr.is-total td {
    font-size: 12px;
  }

  .employee-times-report-summary-row {
    flex-wrap: wrap;
  }

  .employee-times-report-summary-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 12px;
  }

  .employee-times-report-summary-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .employee-times-report-summary-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .employee-times-report-summary-item strong {
    font-size: 20px;
  }

  .employee-times-report-period-main strong {
    font-size: 18px;
  }

  .employee-times-report-totals {
    flex-direction: column !important;
  }

  .employee-times-report-total {
    flex: 1 1 auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 18px;
  }

  .employee-times-report-total:last-child {
    border-bottom: none;
  }

  .employee-times-report-total strong {
    font-size: 22px;
  }

  .employee-times-report-actions {
    grid-template-columns: 1fr 1fr;
  }

  .employee-times-report-action {
    min-height: 46px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }

  .employee-times-report-table-wrap {
    overflow-x: auto;
  }

  .employee-times-report-table {
    min-width: 880px;
  }

  .employee-times-report-table th,
  .employee-times-report-table td {
    padding: 12px 10px;
  }

  .employee-times-report-header h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .employee-times-kpi-grid {
    grid-template-columns: 1fr;
  }
}
