.att-main { padding-top: 10px; }

.att-stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.att-stat-link:hover .att-stat-value {
  color: var(--brand-dark);
}

.att-live-note {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--brand-dark);
}

.att-report-card {
  margin-bottom: 10px;
}

.att-report-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 10px;
}

.att-report-meta {
  font-size: 0.74rem;
  color: var(--muted);
}

.att-report-body {
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.att-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 14px 0;
}

.att-tab {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff;
}

.att-tab.active,
.att-tab:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #e0f2fe;
  text-decoration: none;
}

.att-user {
  font-size: 0.71rem;
  color: var(--muted);
  padding: 0 6px;
}

.att-lang-wrap {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.att-lang-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.att-lang-select {
  max-width: 168px;
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.att-flash-ok {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  padding: 8px 10px;
  border-radius: 7px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.att-flash-err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 8px 10px;
  border-radius: 7px;
  margin-bottom: 10px;
  font-size: 0.78rem;
}

.att-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.78rem;
}

.att-filter-row select {
  min-width: 180px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid var(--border);
}

.att-dot-leave {
  background: #6366f1;
}

.att-dedupe-note {
  margin: 0 0 10px;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 0.76rem;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

.att-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.att-stat {
  flex: 1;
  min-width: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
  box-shadow: var(--shadow);
}

.att-stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.att-stat-label {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.att-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.att-table th,
.att-table td {
  border-bottom: 1px solid var(--border);
  padding: 7px 6px;
  text-align: left;
}

.att-table th {
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
  font-size: 0.72rem;
}

.att-punch-in { color: var(--brand-dark); font-weight: 700; }
.att-punch-out { color: #dc2626; font-weight: 700; }

.att-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  align-items: end;
}

.att-field { margin-bottom: 8px; }
.att-field label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.att-field input,
.att-field select,
.att-field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
}

.att-field textarea { min-height: 88px; resize: vertical; }

.att-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.att-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.att-login-card {
  width: min(400px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.att-login-card h1 { margin: 0 0 4px; font-size: 1.15rem; color: #0c4a6e; }
.att-login-card p { margin: 0 0 14px; color: var(--muted); font-size: 0.82rem; }

.att-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.74rem;
  color: var(--muted);
}

.att-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
}

.att-dot-green { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25); }
.att-dot-red { background: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2); }
.att-dot-purple { background: #a855f7; box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25); }
.att-dot-muted { background: #cbd5e1; }

.att-month-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #0c4a6e;
}

.att-live-list { padding: 8px 0; }
.att-live-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.att-live-row:last-child { border-bottom: none; }
.att-live-name { font-weight: 700; }
.att-live-status { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.att-live-ping { font-size: 0.72rem; color: var(--brand-dark); font-weight: 700; }

.att-planner-wrap { overflow-x: auto; padding: 0; }
.att-planner {
  border-collapse: collapse;
  font-size: 0.68rem;
  min-width: 100%;
}
.att-planner th,
.att-planner td {
  border-bottom: 1px solid var(--border);
  padding: 4px 3px;
  text-align: center;
}
.att-planner-name {
  text-align: left;
  min-width: 120px;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
.att-planner-day { color: var(--muted); font-weight: 600; }
.att-planner-cell { line-height: 1; }
.att-dot-ot {
  width: 7px;
  height: 7px;
  margin-left: 1px;
  vertical-align: top;
}

.att-records-wrap { overflow-x: auto; padding: 0; }
.att-table-detail { min-width: 920px; font-size: 0.76rem; }
.att-table-detail th,
.att-table-detail td { vertical-align: top; }
.att-nowrap { white-space: nowrap; }
.att-muted { color: var(--muted); font-size: 0.72rem; }

.att-gps-cell a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.72rem;
}
.att-gps-cell a:hover { text-decoration: underline; }
.att-map-alt {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 4px;
}

.att-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  background: #f1f5f9;
}
.att-thumb:hover { border-color: var(--brand); }