/* staff, attendance and payroll module styles (prefix att-) */
.att-tabs { display: flex; flex-wrap: wrap; width: max-content; max-width: 100%; margin-bottom: 14px; }
.att-tabs a { color: var(--muted); padding: 7px 12px; border-radius: 99px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; white-space: nowrap; }
.att-tabs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.att-tabs a svg { width: 16px; height: 16px; }
.att-bar { padding: 10px 12px; margin-bottom: 12px; }
.att-bar .row { gap: 8px; align-items: center; }
.att-bar input, .att-bar select { padding: 7px 9px; }
.att-note { font-size: 12.5px; margin-top: 10px; }
.att-warn { font-size: 11px; color: var(--warning); white-space: nowrap; }

/* status colours */
.att-p { --ac: var(--success); }
.att-a { --ac: var(--danger); }
.att-h { --ac: var(--warning); }
.att-l { --ac: var(--brand); }
.att-w, .att-ho { --ac: var(--muted); }

/* day list */
.att-list { display: grid; gap: 8px; }
.att-row { display: grid; grid-template-columns: minmax(140px, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 14px; border-left: 4px solid transparent; }
.att-row.is-p { border-left-color: var(--success); }
.att-row.is-a { border-left-color: var(--danger); }
.att-row.is-h { border-left-color: var(--warning); }
.att-row.is-l { border-left-color: var(--brand); }
.att-row.is-w, .att-row.is-ho { border-left-color: var(--muted); }
.att-who { min-width: 0; }
.att-who b { overflow-wrap: anywhere; }
.att-who .muted { font-size: 12px; }
.att-who a { color: var(--text); text-decoration: none; }
.att-sts { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.att-st { min-width: 38px; height: 36px; padding: 0 6px; border-radius: 9px; border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.att-st:hover:not(:disabled) { border-color: var(--ac); color: var(--ac); }
.att-st.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.att-st:disabled { cursor: default; opacity: .7; }
.att-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.att-extra:empty { display: none; }
.att-mini { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.att-mini input { width: 70px; padding: 5px 7px; font-size: 13px; }
.att-mini input[type="time"] { width: 104px; }
.att-mini.att-veh input { width: 130px; }

/* month grid */
.att-gridwrap { overflow-x: auto; }
.att-grid { font-size: 12px; border-collapse: separate; border-spacing: 0; }
.att-grid th, .att-grid td { padding: 5px 3px; text-align: center; white-space: nowrap; }
.att-grid thead th small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 600; }
.att-grid .att-sun { color: var(--danger); }
.att-grid .att-name { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; padding: 6px 10px; min-width: 120px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--border); }
.att-grid .att-name small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.att-grid .att-name a { color: var(--text); text-decoration: none; }
.att-c { min-width: 24px; font-weight: 800; cursor: pointer; position: relative; color: var(--ac, var(--muted)); background: color-mix(in srgb, var(--ac, transparent) 14%, transparent); border: 1px solid var(--surface); border-radius: 5px; }
.att-c.att-ghost { color: var(--muted); font-weight: 500; opacity: .6; background: none; }
.att-c i { position: absolute; top: 0; right: 1px; font-style: normal; font-size: 9px; color: var(--brand); }

/* salary */
.att-sal td { vertical-align: middle; }
.att-acts { gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.att-lock { text-align: center; padding: 28px 18px; }
.att-lock > svg { width: 34px; height: 34px; color: var(--brand); }
.att-lock h3 { margin: 8px 0 6px; }
.att-lock p { max-width: 520px; margin: 0 auto 14px; }
.att-slipnav { gap: 8px; margin-bottom: 10px; }
.att-paper { margin-top: 12px; }
.att-off td { opacity: .6; }

/* person calendar */
.att-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.att-cal-h { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.att-cal-d { border-radius: 8px; background: var(--surface-2); min-height: 42px; padding: 3px 5px; display: flex; flex-direction: column; font-size: 11px; color: var(--muted); }
.att-cal-d b { text-align: center; font-size: 13px; color: var(--ac, var(--muted)); margin-top: auto; }
.att-cal-d.att-p, .att-cal-d.att-a, .att-cal-d.att-h, .att-cal-d.att-l, .att-cal-d.att-w, .att-cal-d.att-ho { background: color-mix(in srgb, var(--ac) 15%, var(--surface)); }
.att-cal-d.is-today { outline: 2px solid var(--brand); outline-offset: -2px; }
.att-sliprow { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13.5px; }
.att-sliprow:first-of-type { border-top: 0; }

/* dashboard widget */
.att-dash-n { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.att-dash-n div { background: var(--surface-2); border-radius: 10px; padding: 10px; text-align: center; }
.att-dash-n b { display: block; font-size: 22px; font-weight: 800; }
.att-dash-n span { font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .att-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .att-tabs a { padding: 7px 10px; font-size: 13px; }
  .att-row { grid-template-columns: 1fr; padding: 10px 12px; }
  .att-st { min-width: 0; flex: 1 1 0; height: 38px; padding: 0 2px; }
  .att-bar .spacer { flex-basis: 100%; height: 0; }
  .att-dash-n { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .att-dash-n b { font-size: 19px; }
  .att-cal-d { min-height: 36px; padding: 2px 3px; }
}
.att-sal td.num { white-space: nowrap; }
