/* Staff attendance (clock page + admin tab). Loaded only by clock.html and the admin Attendance tab. */
.att-wrap{max-width:560px}
.att-card{padding:20px;margin:0 0 16px}
.att-card h1{font-family:var(--display);color:var(--navy);margin:0 0 6px;font-size:1.5rem}
.att-card h2{font-family:var(--display);color:var(--navy);margin:18px 0 8px;font-size:1.15rem}
.att-now{display:flex;justify-content:space-between;align-items:baseline;margin:0 0 6px}
.att-now strong{font-size:1.35rem;color:var(--navy);font-variant-numeric:tabular-nums}
.att-link{margin:0 0 14px;padding:8px 12px;border-radius:var(--r-sm);font-weight:700}
.att-link.ok{background:var(--open-bg);color:var(--open-fg)}
.att-link.bad{background:var(--closed-bg);color:var(--closed-fg)}
.att-buttons{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.att-in{--bg:#177A43;font-size:1.25rem;padding:1.1em 1em}.att-in:hover{--bg:#11673a}
.att-out{--bg:var(--navy);font-size:1.25rem;padding:1.1em 1em}.att-out:hover{--bg:#071f36}
.att-buttons .btn[disabled]{opacity:.4;cursor:not-allowed;transform:none;box-shadow:none}
.att-result{min-height:1.4em;font-weight:800;color:var(--navy);margin:14px 0 0}
.att-result.err{color:var(--closed-fg)}
.att-today{list-style:none;padding:0;margin:0}
.att-today li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.att-note{font-size:.86rem;margin-top:14px}
.att-pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.78rem;font-weight:800;margin:1px 2px;background:var(--sky-50);color:var(--blue-d)}
.att-pill.warn{background:var(--sun-50);color:var(--sun-d)}
.att-pill.bad{background:var(--closed-bg);color:var(--closed-fg)}
.att-pill.ok{background:var(--open-bg);color:var(--open-fg)}
.att-table{width:100%;border-collapse:collapse;font-size:.92rem;font-variant-numeric:tabular-nums}
.att-table th,.att-table td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}
.att-table th{font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.att-table tr.voided td,.att-table tr.superseded td{color:var(--muted);text-decoration:line-through}
.att-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.att-qr{max-width:260px;background:#fff;border:1px solid var(--line);border-radius:var(--r-sm);padding:6px}
.att-qr svg{width:100%;height:auto;display:block}
.att-banner{padding:12px 16px;border-radius:var(--r-sm);font-weight:700;margin:0 0 14px}
.att-banner.off{background:var(--sun-50);color:var(--sun-d)}
.att-banner.on{background:var(--open-bg);color:var(--open-fg)}
.att-url{word-break:break-all;font-size:.85rem;background:var(--soft);padding:8px;border-radius:8px}
.att-scroll{overflow-x:auto}
@media(max-width:520px){.att-buttons{grid-template-columns:1fr}}
.att-msg.ok,.att-confirm.ok{border:3px solid #177A43;background:var(--open-bg)}
.att-msg.warn,.att-confirm.warn{border:3px solid #C98A00;background:var(--sun-50)}
.att-msg.bad,.att-confirm.bad{border:3px solid #C0392B;background:var(--closed-bg)}
.att-confirm.undone{border:3px solid var(--muted);background:var(--soft)}
.att-confirm{text-align:center}
.att-badge{display:inline-block;margin:0 0 8px;padding:4px 12px;border-radius:999px;font-weight:800;font-size:.85rem;background:#fff}
.att-confirm.ok .att-badge{color:#11663a}.att-confirm.warn .att-badge{color:#7a5200}.att-confirm.bad .att-badge{color:#9b2c22}
.att-big{font-size:2.3rem!important;margin:4px 0!important}
.att-name{font-size:1.25rem;font-weight:800;margin:0 0 6px;color:var(--navy)}
.att-time{font-size:2.6rem;font-weight:800;margin:4px 0;color:var(--navy);font-variant-numeric:tabular-nums}
.att-time span{display:block;font-size:.9rem;font-weight:600;color:var(--muted)}
.att-where{font-size:1.1rem;font-weight:700;margin:6px 0 2px}
.att-loc{margin:0;color:var(--muted)}
.att-reasons{text-align:left;margin:12px 0 4px;padding-left:20px;font-weight:700}
.att-small{font-size:.9rem;margin:4px 0 0}
.att-clock{background:var(--soft);min-height:100%}

/* ---- caller page: staff check-in QR card (single-use, 15 s) ---- */
.att-caller-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:stretch;margin-bottom:16px}
.att-caller-row > .current-point{margin:0}
.att-caller{display:flex;gap:14px;align-items:center;padding:12px 14px;margin:0;max-width:380px}
.att-caller-qr{width:150px;height:150px;flex:none;background:#fff;border-radius:10px;display:grid;place-items:center;transition:opacity .15s}
.att-caller-qr svg{width:100%;height:100%;display:block}
.att-caller-qr.att-wait{opacity:.25}
.att-caller-side{display:flex;flex-direction:column;gap:4px;min-width:0}
.att-caller-label{font-weight:700;font-size:.9rem;margin:0}
.att-caller-where{margin:0;font-size:.85rem;color:var(--muted,#5b6b7c)}
.att-ring-row{display:flex;align-items:center;gap:6px;margin:4px 0}
.att-ring{width:34px;height:34px;transform:rotate(-90deg)}
.att-ring circle{fill:none;stroke-width:3.4}
.att-ring-bg{stroke:#e3e9f0}
.att-ring-fg{stroke:var(--brand,#1f7ae0);stroke-dasharray:100;stroke-dashoffset:0;stroke-linecap:round;transition:stroke-dashoffset .25s linear}
.att-secs{font-weight:800;font-size:1.35rem;font-variant-numeric:tabular-nums;min-width:1.6em}
.att-secs-l{font-size:.8rem}
.att-refresh{padding:6px 12px;font-size:.85rem;align-self:flex-start}
.att-caller-note{font-size:.75rem;margin:0}
@media(max-width:900px){
  .att-caller-row{grid-template-columns:1fr}
  /* Narrow screen: the staff check-in QR goes on top so the number-calling parts below it stay together. */
  .att-caller-row > .att-caller{order:-1}
  .att-caller{max-width:none}
  .att-caller-qr{width:120px;height:120px}
}
/* invite / bind page */
.att-invite-text p{margin:0 0 .8em;line-height:1.55}
.att-expiry{background:#fff6dd;border-radius:10px;padding:8px 12px}
.att-msgbox{width:100%;font:inherit;font-size:.9rem;line-height:1.45;padding:10px;border-radius:10px;border:1px solid #cfd8e3}
.att-preview{white-space:pre-wrap;font:inherit;font-size:.85rem;background:#f5f8fb;padding:10px;border-radius:8px;max-height:260px;overflow:auto}

/* staff delete dialog */
.att-danger { color: #b42318; border-color: #f1b5ae; }
.att-danger-solid { background: #b42318; color: #fff; border: 0; }
.att-dialog { border: 0; border-radius: 16px; padding: 24px 28px; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(16,24,40,.25); }
.att-dialog::backdrop { background: rgba(16,24,40,.45); }
.att-dialog h3 { margin: 0 0 8px; }
.att-del-name { font-size: 1.25rem; margin: 4px 0 12px; }
.att-del-out:empty { display: none; }
.att-del-out { padding: 10px 12px; border-radius: 10px; background: #f2f4f7; }
.att-del-out.bad { background: #fee4e2; color: #7a271a; }
.att-del-out.ok { background: #dcfae6; color: #085d3a; }
.att-dialog-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.att-archived { margin: 12px 0 4px; }
.att-archived summary { cursor: pointer; font-weight: 600; }
.att-tip { background:#fff7e6; border-radius:10px; padding:10px 12px; font-size:.9rem; margin-top:8px; }
.att-addr { font-weight: 600; } .att-attrib { font-size: .7rem; opacity: .7; }
.att-geo-notice { margin: 8px 0; padding: 10px 14px; border-radius: 10px; font-weight: 600; } .att-geo-notice.bad { background:#fee4e2; color:#7a271a; } .att-geo-notice.warn { background:#fff7e6; color:#7a4a00; }

/* ---- Timesheet calendar tab ---- */
.att-cal-toolbar{display:flex;flex-wrap:wrap;gap:16px 24px;align-items:flex-end;justify-content:space-between}
.att-cal-pickers{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end}
.att-cal-pickers .field{margin:0;min-width:160px}
.att-hours-total{display:flex;flex-direction:column;align-items:flex-end;text-align:right;min-width:180px}
.att-hours-num{font-family:var(--display);font-size:2.2rem;line-height:1;font-weight:800;color:var(--navy);font-variant-numeric:tabular-nums}
.att-hours-label{font-size:.9rem;color:var(--muted);font-weight:600;margin-top:4px;max-width:280px}
.att-cal{display:flex;flex-direction:column;gap:6px}
.att-cal-head,.att-cal-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.att-cal-head{font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-align:center}
.att-cal-day{min-height:92px;border-radius:10px;background:var(--soft,#f4f7fb);padding:6px 6px 8px;font-size:.78rem;font-variant-numeric:tabular-nums}
.att-cal-day.out{background:transparent;min-height:0}
.att-cal-day.flagged{background:var(--closed-bg);box-shadow:inset 0 0 0 2px var(--closed-fg,#C0392B)}
.att-cal-day.open{background:var(--sun-50);box-shadow:inset 0 0 0 2px var(--sun-d,#C98A00)}
.att-cal-day.warn{background:var(--sun-50)}
.att-cal-num{font-weight:800;color:var(--navy);margin:0 0 4px}
.att-cal-period{display:block;line-height:1.25;margin:0 0 2px;font-weight:700;color:var(--navy)}
.att-cal-period.bad{color:var(--closed-fg,#9b2c22)}
.att-cal-period.warn{color:var(--sun-d,#7a5200)}
.att-cal-mark{display:block;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.att-cal-hours{margin-top:4px;color:var(--muted);font-weight:700}
@media(max-width:520px){
  .att-hours-total{align-items:flex-start;text-align:left;width:100%}
  .att-hours-num{font-size:1.8rem}
  .att-cal-day{min-height:76px;padding:4px;font-size:.68rem;border-radius:8px}
  .att-cal-head{font-size:.62rem}
  .att-cal-period{white-space:normal;font-size:.62rem;overflow-wrap:anywhere}
  .att-cal-head,.att-cal-week{gap:2px}
  .att-cal-day{min-width:0;padding:3px 2px}
  .att-cal-mark{font-size:.5rem;letter-spacing:0}
  .att-cal-hours{font-size:.62rem}
}
