.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; }


/* ——— Login / public landing ——— */
.att-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.att-login-header .site-header-inner { max-width: 1120px; }
.att-login-shell {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 400px);
  gap: 28px 40px;
  align-items: start;
}
.att-login-hero { padding-top: 8px; }
.att-login-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.att-login-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  line-height: 1.18;
  color: #0c4a6e;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.att-login-lead {
  margin: 0 0 18px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.att-login-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.att-login-points li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.att-login-points strong {
  display: block;
  font-size: 0.84rem;
  color: #0c4a6e;
  margin-bottom: 2px;
}
.att-login-points span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.att-login-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.att-login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.att-login-stat {
  min-width: 88px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.att-login-stat strong {
  display: block;
  font-size: 1.05rem;
  color: var(--brand-dark);
  font-weight: 800;
}
.att-login-stat span {
  font-size: 0.68rem;
  color: var(--muted);
}
.att-login-panel { position: sticky; top: 72px; }
.att-login-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 10px 30px rgba(14, 116, 178, 0.1);
}
.att-login-card-head { margin-bottom: 14px; }
.att-login-card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: #e0f2fe;
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 8px;
}
.att-login-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #0c4a6e;
  font-weight: 800;
}
.att-login-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.att-login-form .att-field { margin-bottom: 12px; }
.att-login-form .att-field label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}
.att-login-form .att-field input {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.att-login-form .att-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.att-login-submit {
  width: 100%;
  margin-top: 4px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 10px;
}
.att-login-help {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.att-login-help p {
  margin: 0 0 8px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}
.att-login-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}
.att-login-help-links a { font-weight: 600; }
.att-login-footer .site-footer-inner { max-width: 1120px; }
@media (max-width: 880px) {
  .att-login-shell {
    grid-template-columns: 1fr;
    padding-top: 18px;
    gap: 20px;
  }
  .att-login-panel { position: static; order: -1; }
  .att-login-hero h1 { font-size: 1.4rem; }
}
@media (max-width: 520px) {
  .att-login-card { padding: 18px 16px 14px; }
  .att-login-hero-actions .site-btn { width: 100%; }
}

.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); }