/* Tööaja-rakenduse paigutus (rakendusepõhine).
   Üldine disainisüsteem on halored-theme.css-is (lae see ENNE seda faili). */

/* Ülariba ja navigatsioon */
.topbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: .6rem 1rem;
  display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 20;
}
.topbar .brand { font-weight: 700; color: var(--color-text); white-space: nowrap; letter-spacing: -.01em; }
.topbar nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.topbar nav button {
  background: none; border: none; padding: .45rem .75rem; border-radius: var(--radius);
  cursor: pointer; color: var(--color-muted); font-size: .9rem; font-weight: 500;
  font-family: inherit; transition: background var(--transition), color var(--transition);
}
.topbar nav button.active { background: var(--color-surface-active); color: var(--color-text); font-weight: 600; }
.topbar nav button:hover { background: var(--color-surface-active); color: var(--color-text); }
.topbar .user { color: var(--color-muted); font-size: .85rem; white-space: nowrap; }

.container { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1rem 4rem; }

/* Graafikud */
.chart-box { position: relative; height: 280px; }

/* Sisselogimise / registreerimise ekraan */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .brand { text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--color-text); margin-bottom: .3rem; letter-spacing: -.02em; }
.auth-card .sub { text-align: center; color: var(--color-muted); margin-bottom: 1.3rem; font-size: .88rem; }
.tabs { display: flex; margin-bottom: 1rem; border: 1.5px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.tabs button { flex: 1; padding: .55rem; border: none; background: #fff; cursor: pointer; font-weight: 600; color: var(--color-muted); font-family: inherit; transition: background var(--transition), color var(--transition); }
.tabs button.active { background: var(--color-accent); color: #fff; }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; }
  th.hide-sm, td.hide-sm { display: none; }
}
