* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header {
  background: #1a237e;
  color: white;
  padding: 20px 0;
  margin-bottom: 24px;
}
header h1 { font-size: 1.4rem; font-weight: 600; }
header .subtitle { font-size: 0.85rem; opacity: 0.7; }

.alert {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.center { text-align: center; }
.card h2 { margin-bottom: 12px; }
.card p { margin-bottom: 20px; color: #666; }

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #1a237e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #283593; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-danger { background: #d32f2f; }
.btn-danger:hover { background: #b71c1c; }
.disabled { opacity: 0.4; pointer-events: none; }

.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.week-label { font-weight: 600; font-size: 1.1rem; }

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.summary-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.summary-card.ok { border-left: 4px solid #2e7d32; }
.summary-card.error { border-left: 4px solid #d32f2f; }
.summary-value { font-size: 2rem; font-weight: 700; }
.summary-label { font-size: 0.8rem; color: #666; text-transform: uppercase; }

.actions-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #fafafa; font-size: 0.8rem; text-transform: uppercase; color: #666; }

.row-ok { }
.row-error { background: #fff8f8; }

.hours { font-weight: 600; font-size: 1.1rem; }
.hours-off { color: #d32f2f; }

.missing-list { list-style: none; font-size: 0.85rem; }
.missing-list li { padding: 2px 0; color: #d32f2f; }
.missing-list li::before { content: '⚠ '; }

.ok-text { color: #2e7d32; font-size: 0.85rem; }
.muted { color: #999; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-ok { background: #e8f5e9; color: #2e7d32; }
.badge-error { background: #ffebee; color: #d32f2f; }

@media (max-width: 768px) {
  .summary-cards { grid-template-columns: repeat(2, 1fr); }
  table { font-size: 0.85rem; }
  th, td { padding: 8px; }
}
