﻿/* Attendance approval composition. Shared fonts and navigation behavior come from site.css/js. */
.ar-section {
  --ar-accent:#342aff; --ar-ink:#0c1039; --ar-muted:#5c6b97;
  --ar-surface:#fff; --ar-line:#e7eaff; --ar-soft:#f8f8ff;
  color:var(--ar-ink); padding:48px 0 28px;
  background:linear-gradient(120deg,#f5f3ff,#edf1ff 55%,#f5f4ff);
  font-family:'Instrument Sans',sans-serif;
}
[data-theme='dark'] .ar-section {
  --ar-accent:#a5a0ff; --ar-ink:#eff0ff; --ar-muted:#b3c0df;
  --ar-surface:#182139; --ar-line:#323d61; --ar-soft:#202b46;
  background:linear-gradient(120deg,#14152b,#111d33);
}
.ar-container { max-width:1616px; margin:auto; padding:0 24px; }
.ar-top { display:grid; grid-template-columns:minmax(0,36fr) minmax(0,64fr); gap:28px; margin:0 4px 24px 20px; align-items:start; }
.ar-intro { padding-top:18px; --ar-distance:12px; --ar-duration:450ms; }
.ar-kicker { color:var(--ar-accent); font-size:12px; font-weight:700; letter-spacing:.17em; text-transform:uppercase; }
.ar-intro h1,.ar-intro h2 { margin:12px 0 22px; font-size:clamp(30px,2.35vw,40px); letter-spacing:-.045em; line-height:1.16; font-weight:650; color:var(--ar-ink); }
.ar-heading-line { display:block; white-space:nowrap; }
.ar-heading-line em { color:var(--ar-accent); font-style:normal; }
.ar-intro p { margin:0; font-size:16px; line-height:1.55; color:var(--ar-muted); max-width:520px; }
.ar-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.ar-step { display:flex; flex-direction:column; position:relative; min-width:0; min-height:325px; padding:18px 20px; border:1px solid #e5e5ff; border-radius:18px; background:var(--ar-surface); box-shadow:0 10px 28px rgb(72 82 217 / 6%); color:var(--ar-ink); }
.ar-step.ar-green { border-color:#c8efdf; }.ar-step.ar-orange { border-color:#ffe4bb; }
.ar-step-top { display:flex; align-items:center; justify-content:space-between; height:60px; flex:none; }
.ar-number { display:grid; place-items:center; width:48px; height:48px; flex:none; border-radius:50%; font-size:20px; color:white; font-weight:600; background:linear-gradient(145deg,#5046ff,#2923ff); box-shadow:0 0 0 8px #e9e7ff,inset 0 2px 6px rgb(255 255 255 / 20%); }
.ar-green .ar-number { background:linear-gradient(145deg,#10d389,#00af69); box-shadow:0 0 0 8px #daf8e9,inset 0 2px 6px rgb(255 255 255 / 20%); }
.ar-orange .ar-number { background:linear-gradient(145deg,#ffb323,#ff8500); box-shadow:0 0 0 8px #fff0d8,inset 0 2px 6px rgb(255 255 255 / 20%); }
.ar-icon { width:52px; height:52px; display:grid; place-items:center; border-radius:13px; flex:none; }
.ar-icon svg { width:30px; height:30px; stroke-width:2; }
.ar-blue { color:#342aff; background:#efeeff; }.ar-green { color:#00b969; background:#e7faf0; }.ar-orange { color:#ff8c00; background:#fff4e4; }.ar-red { color:#ed1829; background:#ffe9eb; }
.ar-step[class] { background:var(--ar-surface); color:var(--ar-ink); }
.ar-step-top .ar-icon { width:46px; height:46px; }
.ar-step h3 { margin:6px 0 4px; font-size:18px; font-weight:650; line-height:1.25; letter-spacing:-.03em; color:var(--ar-ink); }
.ar-step > p { margin:0 0 12px; font-size:14px; color:var(--ar-muted); line-height:1.45; }
.ar-step-detail { border:1px solid var(--ar-line); border-radius:13px; padding:12px; margin-top:auto; min-height:136px; background:var(--ar-soft); }
.ar-request-detail,.ar-payroll-detail { display:flex; align-items:start; gap:10px; }
.ar-request-detail .ar-icon,.ar-requester .ar-icon { width:40px; height:44px; }
.ar-step-detail b { display:block; font-size:13px; color:var(--ar-ink); line-height:1.35; margin:2px 0 8px; }
.ar-request-detail > div { flex:1; min-width:0; }
.ar-request-detail > div > span { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--ar-muted); margin-top:9px; white-space:nowrap; }
.ar-request-detail > div > span svg { width:15px; height:15px; flex:none; }
.ar-requester { display:flex; gap:10px; align-items:center; }
.ar-requester > div { min-width:0; }
.ar-requester small { display:block; font-size:11px; color:var(--ar-muted); line-height:1.3; }
.ar-requester b { margin:2px 0; font-size:14px; }
.ar-requester > div > span { font-size:11px; color:var(--ar-muted); white-space:nowrap; }
.ar-bars { display:grid; gap:8px; flex:1; }
.ar-bars i { height:8px; display:block; width:100%; background:linear-gradient(90deg,#d4d7f5,#eef0ff); border-radius:12px; }
.ar-bars i:nth-child(2) { width:75%; }.ar-bars i:nth-child(3) { width:58%; }
.ar-decisions { display:flex; align-items:center; gap:10px; margin-top:12px; }
.ar-decisions button { flex:1; display:flex; align-items:center; justify-content:center; gap:7px; border:1px solid #00b467; background:#00b467; color:white; padding:7px 8px; min-height:36px; border-radius:8px; font-size:12px; font-weight:500; cursor:pointer; transition:background-color 200ms ease,box-shadow 200ms ease,transform 150ms var(--ease); }
.ar-decisions button svg { width:18px; height:18px; flex:none; }
.ar-decisions button:last-child { color:#d71b2c; background:#ffe8eb; border-color:#ffc7ce; }
.ar-payroll-detail .ar-icon { width:42px; height:46px; }
.ar-payroll-detail > div { min-width:0; }
.ar-payroll-detail p { font-size:11px; line-height:1.45; color:var(--ar-muted); margin:0 0 9px; }
.ar-ready { display:inline-flex; gap:6px; align-items:center; padding:7px 9px; border-radius:30px; background:#e5fbef; color:#00854b; font-size:12px; white-space:nowrap; }
.ar-ready svg { width:17px; height:17px; color:white; background:#00aa61; padding:3px; border-radius:50%; stroke-width:3; }
.ar-connector { position:absolute; right:-30px; top:50%; translate:0 -50%; width:32px; height:32px; z-index:2; background:var(--ar-surface); border-radius:50%; display:grid; place-items:center; color:var(--ar-accent); box-shadow:0 4px 12px rgb(70 72 230 / 5%); }
.ar-connector svg { width:20px; height:20px; }
.ar-features { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:1fr; gap:14px; margin-bottom:18px; }
.ar-feature { display:flex; align-items:start; gap:16px; padding:18px; min-height:170px; background:var(--ar-surface); border:1px solid var(--ar-line); box-shadow:0 5px 15px rgb(72 82 217 / 4%); border-radius:14px; min-width:0; }
.ar-feature > .ar-icon { width:64px; height:64px; }.ar-feature > .ar-icon svg { width:34px; height:34px; }
.ar-feature-copy { flex:1; min-width:0; }
.ar-feature h3 { margin:8px 0 10px; color:var(--ar-ink); font-size:17px; line-height:1.25; font-weight:650; letter-spacing:-.03em; }
.ar-feature p { margin:0; color:var(--ar-muted); font-size:13px; line-height:1.5; }
.ar-feature-preview { position:relative; flex:none; align-self:center; width:128px; padding:12px 10px 9px; border-radius:11px; background:var(--ar-surface); box-shadow:0 6px 22px rgb(67 73 201 / 7%); }
.ar-feature-preview > b { display:block; color:var(--ar-accent); font-size:10px; line-height:1.4; margin-bottom:10px; white-space:nowrap; }
.ar-feature-preview .ar-bars { gap:7px; }
.ar-submit { width:100%; border:0; background:#342aff; color:white; border-radius:6px; padding:7px 4px; min-height:30px; font-size:11px; margin-top:9px; cursor:pointer; transition:background-color 200ms ease,box-shadow 200ms ease,transform 150ms var(--ease); }
.ar-small-decisions { gap:7px; margin-top:10px; }.ar-small-decisions button { padding:5px; min-height:30px; border-radius:5px; }
.ar-feature-preview:has(.ar-small-decisions) { width:116px; padding:14px 10px 9px; }
.ar-feature-preview:has(.ar-payroll-check) { width:116px; padding:17px 14px; min-height:102px; }
.ar-payroll-check { position:absolute; right:10px; top:49px; background:#00aa61; color:white; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; border:2px solid var(--ar-surface); }.ar-payroll-check svg { width:18px; height:18px; }
.ar-approvals { background:var(--ar-surface); border:1px solid #dce1ff; border-radius:14px; box-shadow:0 6px 18px rgb(72 82 217 / 4%); }
.ar-approvals > header { display:flex; align-items:center; gap:16px; background:var(--ar-soft); padding:9px 22px; border-bottom:1px solid var(--ar-line); min-height:48px; border-radius:14px 14px 0 0; }
.ar-approvals > header .ar-icon { width:30px; height:28px; border-radius:8px; border:1px solid #e0e3ff; }.ar-approvals > header svg { height:17px; width:17px; }
.ar-approvals h3 { margin:0; font-size:13px; text-transform:uppercase; letter-spacing:.12em; color:var(--ar-ink); }
.ar-maker { margin-left:auto; border:1px solid #dce1ff; padding:5px 12px; border-radius:30px; text-transform:uppercase; font-weight:600; font-size:11px; letter-spacing:.11em; color:var(--ar-muted); }
.ar-maker i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:7px; background:#342aff; }
.ar-table-wrap { padding:0 22px 6px; }
.ar-approvals table { width:100%; border-collapse:collapse; text-align:left; table-layout:fixed; }
/* Accessible column names stay available to assistive technology without a visible header row. */
.ar-table-labels { position:absolute; width:1px; height:1px; padding:0; margin:-1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.ar-details-col { width:55%; }.ar-date-col { width:25%; }.ar-status-col { width:20%; }
.ar-approvals td { padding:10px 6px; vertical-align:middle; border-bottom:1px solid var(--ar-line); }.ar-approvals tr:last-child td { border-bottom:0; }
.ar-record { display:flex; align-items:center; gap:25px; }
.ar-record .ar-icon { width:48px; height:44px; border-radius:10px; }.ar-record .ar-icon svg { width:26px; height:26px; }
.ar-record b { display:block; font-size:15px; line-height:1.3; letter-spacing:-.02em; color:var(--ar-ink); }
.ar-record span:not(.ar-icon) { display:block; color:var(--ar-muted); font-size:13px; line-height:1.4; margin-top:2px; }
.ar-date { display:flex; align-items:start; gap:18px; color:var(--ar-muted); font-size:14px; line-height:1.35; }
.ar-date svg { width:20px; height:20px; flex:none; margin-top:2px; }.ar-date span { display:block; font-size:13px; margin-top:2px; }
.ar-pill { display:inline-flex; align-items:center; gap:8px; border-radius:30px; padding:8px 13px; font-size:13px; white-space:nowrap; }
.ar-pill.ar-orange { color:#af5900; }.ar-pill.ar-green { color:#008649; }.ar-pill.ar-red { color:#cd1725; }.ar-pill i { height:8px; width:8px; background:currentColor; border-radius:50%; }
/* The actual Attendance page and reference preview share the slim header, in normal flow. */
:is(.ar-attendance,.ar-reference) { --nav-h:58px; }
.ar-attendance .site-header { position:sticky; top:0; z-index:60; background:var(--surface); border-bottom:1px solid var(--line); }
.ar-reference .site-header { position:relative; top:auto; background:var(--surface); border-bottom:1px solid var(--line); }
:is(.ar-attendance,.ar-reference) .site-header::before { display:none; }
:is(.ar-attendance,.ar-reference) .nav-row { max-width:1616px; min-height:58px; padding-inline:24px; gap:24px; }
:is(.ar-attendance,.ar-reference) .nav-links { gap:24px; align-self:stretch; }
:is(.ar-attendance,.ar-reference) .nav-links .only-sm { display:none; }
:is(.ar-attendance,.ar-reference) .nav-links a { position:relative; display:flex; align-items:center; align-self:stretch; font-size:14px; white-space:nowrap; border-bottom:0; }
:is(.ar-attendance,.ar-reference) .nav-links a::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:#342aff; border-radius:3px; scale:0 1; transform-origin:center; transition:scale 200ms var(--ease); }
:is(.ar-attendance,.ar-reference) .nav-links a[aria-current]::after,:is(.ar-attendance,.ar-reference) .nav-links a:hover::after,:is(.ar-attendance,.ar-reference) .nav-links a:focus-visible::after { scale:1; }
:is(.ar-attendance,.ar-reference) .nav-links a[aria-current] { color:var(--ink); font-weight:650; }
:is(.ar-attendance,.ar-reference) .nav-row .lockup-product img { width:124px; height:auto; }
:is(.ar-attendance,.ar-reference) .lockup-sub { color:#342aff; background:#efeeff; letter-spacing:.06em; font-size:12px; padding:5px 10px; }
:is(.ar-attendance,.ar-reference) .nav-end .btn { padding:11px 20px; font-size:14px; border-radius:11px; }
:is(.ar-attendance,.ar-reference) .btn-primary { background:#342aff; border-color:#342aff; }
:is(.ar-attendance,.ar-reference) .icon-btn { width:40px; height:40px; border-radius:10px; }
.ar-reference .pr-cta { margin-top:28px; }
.ar-section button:focus-visible { outline:3px solid var(--ar-accent); outline-offset:4px; }.ar-section button:active { transform:scale(.97); }
.ar-motion-ready { opacity:0; }
.ar-motion-ready.ar-visible { opacity:1; animation:ar-enter var(--ar-duration,500ms) var(--ease) var(--ar-delay,0ms) backwards; }
.ar-visible .ar-step-detail { animation:ar-detail 450ms var(--ease) calc(var(--ar-delay,0ms) + 180ms) backwards; }
.ar-visible .ar-bars i { animation:ar-line 400ms var(--ease) calc(var(--ar-delay,0ms) + 230ms) backwards; }.ar-visible .ar-bars i:nth-child(2) { animation-delay:calc(var(--ar-delay,0ms) + 290ms); }.ar-visible .ar-bars i:nth-child(3) { animation-delay:calc(var(--ar-delay,0ms) + 350ms); }
.ar-visible .ar-number { animation:ar-badge 450ms var(--ease) calc(var(--ar-delay,0ms) + 80ms) backwards; }
.ar-visible .ar-connector { animation:ar-fade 300ms var(--ease) calc(var(--ar-delay,0ms) + 300ms) backwards; }
.ar-visible .ar-ready,.ar-visible .ar-payroll-check,.ar-visible .ar-small-decisions button:first-child { animation:ar-badge 450ms var(--ease) calc(var(--ar-delay,0ms) + 350ms) backwards; }
.ar-visible .ar-decisions button:first-child svg { animation:ar-badge 450ms var(--ease) calc(var(--ar-delay,0ms) + 350ms) backwards; }
@keyframes ar-enter { from { opacity:0; translate:0 var(--ar-distance,16px); } to { opacity:1; translate:0 0; } }
@keyframes ar-detail { from { opacity:0; translate:0 12px; } to { opacity:1; translate:0 0; } }
@keyframes ar-line { from { opacity:0; scale:.96 1; } to { opacity:1; scale:1; } }
@keyframes ar-badge { from { opacity:0; scale:.96; } to { opacity:1; scale:1; } }
@keyframes ar-fade { from { opacity:0; } to { opacity:1; } }
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .ar-step,.ar-feature { transition:translate 200ms var(--ease),box-shadow 200ms ease; }
  .ar-step:hover,.ar-feature:hover { translate:0 -3px; box-shadow:0 12px 26px rgb(72 82 217 / 10%); }
  .ar-decisions button:first-child:hover { background:#008f51; box-shadow:0 4px 10px rgb(0 180 95 / 12%); }.ar-decisions button:last-child:hover { background:#ffd4db; }.ar-submit:hover { background:#251cdb; }
}
@media(min-width:1201px) and (max-width:1450px) {
  .ar-top { margin-inline:0; gap:22px; }.ar-step { padding-inline:14px; }.ar-steps { gap:22px; }.ar-connector { right:-27px; }
  .ar-step h3 { font-size:16px; }.ar-step > p { font-size:13px; }.ar-step > p br { display:none; }
  .ar-request-detail,.ar-payroll-detail { gap:7px; }.ar-request-detail .ar-icon,.ar-payroll-detail .ar-icon { width:32px; }
  .ar-step-detail { padding:9px; }.ar-request-detail > div > span,.ar-requester > div > span { font-size:10px; }
  .ar-feature { padding:14px; gap:12px; }.ar-feature > .ar-icon { width:52px; height:54px; }.ar-feature h3 { font-size:16px; }.ar-feature p { font-size:12px; }.ar-feature-preview { width:116px; }.ar-feature-preview > b { font-size:9px; }
  :is(.ar-attendance,.ar-reference) .nav-links { gap:16px; }:is(.ar-attendance,.ar-reference) .nav-links a { font-size:13px; }:is(.ar-attendance,.ar-reference) .nav-end .btn { padding-inline:14px; }
}
@media(max-width:1200px) {
  .ar-top { grid-template-columns:1fr; gap:28px; margin-inline:0; }.ar-intro { max-width:760px; padding-top:0; }.ar-intro p { max-width:700px; }
  .ar-steps { gap:28px; }.ar-features { grid-template-columns:1fr; }.ar-feature { min-height:150px; align-items:center; }.ar-feature h3 { font-size:18px; }.ar-feature p { font-size:14px; }
  :is(.ar-attendance,.ar-reference) .menu-toggle { display:block; }
  :is(.ar-attendance,.ar-reference) .nav-links { position:fixed; inset:58px 0 0; z-index:55; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; padding:20px 24px; background:var(--bg); border-top:1px solid var(--line); overflow-y:auto; transform:translateY(-8px); opacity:0; visibility:hidden; transition:opacity 200ms var(--ease),transform 200ms var(--ease),visibility 200ms; }
  :is(.ar-attendance,.ar-reference) .nav-links.open { transform:none; opacity:1; visibility:visible; }
  :is(.ar-attendance,.ar-reference) .nav-links a { padding:14px 0; font-size:17px; align-self:auto; border-bottom:1px solid var(--line); }
  :is(.ar-attendance,.ar-reference) .nav-links a::after { display:none; }
  :is(.ar-attendance,.ar-reference) .nav-links .only-sm { display:flex; }
}
@media(max-width:800px) {
  .ar-container { padding-inline:20px; }.ar-section { padding-top:32px; }.ar-steps { gap:20px; }.ar-step { padding:16px 12px; }.ar-step h3 { font-size:16px; }.ar-step > p { font-size:13px; }.ar-step > p br { display:none; }
  .ar-step-detail { padding:10px; }.ar-request-detail,.ar-payroll-detail { flex-direction:column; gap:6px; }.ar-requester { gap:7px; }.ar-requester .ar-icon { width:30px; }.ar-requester > div > span { white-space:normal; font-size:10px; }
  .ar-decisions { gap:6px; }.ar-decisions button { gap:4px; padding:7px 4px; font-size:11px; }.ar-connector { width:28px; height:28px; right:-25px; }
  .ar-details-col { width:48%; }.ar-date-col { width:27%; }.ar-status-col { width:25%; }.ar-record { gap:12px; }.ar-record b { font-size:14px; }.ar-record span:not(.ar-icon) { font-size:12px; }.ar-date { gap:10px; font-size:13px; }.ar-date span { font-size:12px; }.ar-pill { font-size:11px; padding:8px 10px; gap:6px; }
}
@media(max-width:600px) {
  .ar-container { padding-inline:18px; }.ar-intro h1,.ar-intro h2 { font-size:32px; margin-bottom:16px; }.ar-heading-line { white-space:normal; }.ar-intro p { font-size:15px; }.ar-kicker { font-size:11px; }
  .ar-steps { grid-template-columns:1fr; gap:24px; }.ar-step { min-height:0; padding:20px; }.ar-step h3 { font-size:20px; }.ar-step > p { font-size:15px; }
  .ar-step-detail { margin-top:8px; min-height:124px; padding:12px; }.ar-request-detail,.ar-payroll-detail { flex-direction:row; gap:14px; }.ar-requester .ar-icon { width:42px; }.ar-requester > div > span { font-size:11px; }
  .ar-connector { top:auto; bottom:-25px; right:calc(50% - 16px); translate:0 0; rotate:90deg; width:32px; height:32px; }.ar-decisions button { min-height:40px; font-size:13px; }
  .ar-feature { min-height:0; flex-wrap:wrap; padding:18px; gap:14px; }.ar-feature > .ar-icon { width:54px; height:56px; }.ar-feature-copy { flex-basis:calc(100% - 70px); }.ar-feature h3 { font-size:17px; margin-top:2px; }.ar-feature p { font-size:13px; }.ar-feature-preview { margin-left:auto; width:138px; }.ar-feature-preview > b { font-size:10px; }
  .ar-features { grid-auto-rows:auto; margin-bottom:20px; }.ar-approvals > header { gap:9px; padding:10px; }.ar-approvals h3 { font-size:11px; }.ar-maker { font-size:9px; padding:5px 7px; letter-spacing:.07em; }
  .ar-table-wrap { padding:0 12px; }.ar-approvals table { table-layout:auto; }.ar-approvals colgroup { display:none; }.ar-approvals tr { display:grid; grid-template-columns:minmax(0,1fr) auto; border-bottom:1px solid var(--ar-line); padding:12px 0; gap:8px; }.ar-approvals tr:last-child { border-bottom:0; }.ar-table-labels tr { display:table-row; }
  .ar-approvals td { border:0; padding:0; }.ar-approvals td:first-child { grid-column:1/-1; }.ar-record .ar-icon { width:42px; height:40px; }.ar-date { font-size:12px; gap:6px; }.ar-date svg { width:17px; height:17px; }.ar-pill { font-size:11px; padding:7px 8px; }.ar-record b { font-size:14px; }
  :is(.ar-attendance,.ar-reference) .nav-row { padding-inline:14px; gap:10px; }:is(.ar-attendance,.ar-reference) .nav-row .lockup-product img { width:100px; }:is(.ar-attendance,.ar-reference) .nav-end .btn { display:none; }:is(.ar-attendance,.ar-reference) .lockup-sub { font-size:10px; padding:4px 7px; }
}
@media(prefers-reduced-motion:reduce) {
  .ar-section *,:is(.ar-attendance,.ar-reference) .nav-links,:is(.ar-attendance,.ar-reference) .nav-links a::after { animation:none!important; transition:none!important; }
  .ar-motion-ready { opacity:1; }
}
