* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #fafafa;
  color: #101828;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 { font-size: 1.5rem; margin-bottom: 16px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

#refresh-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
}
#refresh-btn:disabled { opacity: 0.6; cursor: default; }
#refresh-btn:hover:not(:disabled) { filter: brightness(1.08); }

.meta { color: #667085; font-size: 0.85rem; }

.sheet-title { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }

.week-range { font-size: 1.05rem; font-weight: 600; margin: 8px 0 16px; }

.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}
.message.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.message.warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

.table-wrapper {
  overflow-x: auto;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
}

table { border-collapse: collapse; width: 100%; min-width: 720px; }

th, td {
  border-bottom: 1px solid #d0d5dd;
  border-right: 1px solid #d0d5dd;
  padding: 8px 12px;
  text-align: left;
  font-size: 0.9rem;
  white-space: pre-wrap;
}
th:last-child, td:last-child { border-right: none; }

thead th { background: #f2f4f7; position: sticky; top: 0; }
tbody tr:nth-child(even) { background: #fbfbfb; }
