/* Sign-in and first-time setup (ADV Solutions Hub). Simple, one clear choice per screen. */
.advs-portal .auth.auth-v2,.auth.auth-v2{max-width:440px;margin:7vh auto 40px;padding:34px 32px 28px;border-radius:20px;border:1px solid var(--ad-line,#dce5ed);border-top:4px solid var(--ad-brand,#2eb0e2);background:var(--ad-surface,#fff);box-shadow:0 18px 50px #0a1a2a22}
.auth-v2 .eyebrow{display:none}
.auth-brand{display:flex;align-items:center;gap:12px;margin:0 0 22px}
.auth-brand img{width:52px;height:52px;border-radius:14px;object-fit:cover;background:#2eb0e2}
.auth-brand strong{display:block;font-size:17px;line-height:1.1;color:var(--ad-ink,#172e42);letter-spacing:.01em}
.auth-brand small{display:block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ad-brand,#2eb0e2);margin-top:3px}
.advs-portal .auth-v2 h1,.auth-v2 h1{font-size:28px;line-height:1.2;margin:0 0 6px;color:var(--ad-ink,#172e42)}
.advs-portal .auth-v2 #auth-help,.auth-v2 #auth-help{font-size:15px;line-height:1.55;color:var(--ad-muted,#60758a);margin:0 0 20px}

/* Welcome: two big, obvious choices */
.auth-choices{display:grid;gap:12px}
.auth-choices[hidden]{display:none}
.auth-choice{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:16px 16px;border-radius:14px;border:1.5px solid var(--ad-border,#c2d0dd);background:var(--ad-soft,#f7f9fc);color:var(--ad-ink,#172e42);cursor:pointer;font:inherit;transition:border-color .15s,transform .15s,background .15s}
.auth-choice:hover,.auth-choice:focus-visible{border-color:var(--ad-brand,#2eb0e2);transform:translateY(-1px)}
.auth-choice.is-new{background:var(--ad-brand,#2eb0e2);border-color:var(--ad-brand,#2eb0e2);color:#fff}
.auth-choice .ac-icon{flex:0 0 38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:16px;background:var(--ad-tint,#eaf6fc);color:var(--ad-brand,#2eb0e2)}
.auth-choice.is-new .ac-icon{background:#ffffff33;color:#fff}
.auth-choice .ac-text{flex:1;display:flex;flex-direction:column;gap:2px}
.auth-choice b{font-size:17px}
.auth-choice small{font-size:14px;opacity:.85}
.auth-choice.is-new small{opacity:1;color:#ffffffeb}
.auth-choice .ac-arrow{font-size:20px;opacity:.8}

/* First-time steps */
.auth-steps{list-style:none;display:flex;gap:6px;padding:0;margin:0 0 20px}
.auth-steps[hidden]{display:none}
.auth-steps li{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12.5px;font-weight:600;text-align:center;color:var(--ad-muted,#60758a);padding:10px 4px;border-radius:12px;background:var(--ad-soft,#f7f9fc)}
.auth-steps li span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;background:var(--ad-line,#dce5ed);color:var(--ad-muted,#60758a)}
.auth-steps li.on{color:var(--ad-ink,#172e42);background:var(--ad-tint,#eaf6fc);box-shadow:inset 0 0 0 1.5px var(--ad-brand,#2eb0e2)}
.auth-steps li.on span{background:var(--ad-brand,#2eb0e2);color:#fff}

/* Form */
.auth-v2 #auth-form{display:grid;gap:14px}
.auth-v2 #auth-form[hidden]{display:none}
.auth-v2 #auth-form>label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;color:var(--ad-ink,#172e42)}
.auth-v2 #auth-form>label[hidden]{display:none}
.auth-v2 #auth-form input[type=email],.auth-v2 #auth-form input[type=password],.auth-v2 #auth-form input[type=text],.auth-v2 #auth-form input:not([type]){width:100%;box-sizing:border-box;min-height:48px;font-size:16px;padding:10px 14px;border-radius:12px}
.pw-wrap{position:relative;display:block}
.pw-wrap input{padding-right:70px!important}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-height:34px;padding:4px 12px;border-radius:9px;font-size:13px;font-weight:700;border:0;background:transparent;color:var(--ad-brand,#2eb0e2);cursor:pointer}
.pw-toggle:hover{background:var(--ad-tint,#eaf6fc)}
.auth-v2 #auth-form .remember-choice{flex-direction:row;align-items:center;gap:10px;font-weight:500;color:var(--ad-muted,#60758a)}
.advs-portal .auth-v2 #auth-submit,.auth-v2 #auth-submit{width:100%;min-height:50px;font-size:16px;font-weight:700;border-radius:12px;margin-top:4px}

/* Links under the form */
.auth-foot{display:flex;flex-direction:column;align-items:center;gap:10px;margin:18px 0 0;text-align:center}
.auth-foot[hidden]{display:none}
.auth-link{background:none!important;border:0!important;padding:4px!important;min-height:0!important;font:inherit;font-size:14px;font-weight:600;color:var(--ad-brand,#2eb0e2)!important;text-decoration:none;cursor:pointer;box-shadow:none!important}
.auth-link:hover{text-decoration:underline}
.auth-link[hidden]{display:none}
#forgot-open.auth-link{color:var(--ad-muted,#60758a)!important;font-weight:500;font-size:13.5px}
.auth-back{display:block;margin:16px auto 0;background:none!important;border:0!important;box-shadow:none!important;color:var(--ad-muted,#60758a)!important;font-weight:600;font-size:14px;cursor:pointer}
.auth-back[hidden]{display:none}
.auth-v2 #join-receipt{margin-top:6px;padding:14px 16px;border-radius:12px;background:var(--ad-tint,#eaf6fc);font-size:14px;line-height:1.55}
.auth-v2 #join-receipt[hidden]{display:none}
.auth-v2 #join-receipt p{margin:0;color:var(--ad-ink,#172e42)}

@media (max-width:520px){
 .advs-portal .auth.auth-v2,.auth.auth-v2{margin:16px 12px 32px;padding:24px 18px 22px;border-radius:16px}
 .advs-portal .auth-v2 h1,.auth-v2 h1{font-size:24px}
 .auth-choice{padding:14px}
}

/* Install button inside the sign-in card: quiet, at the bottom */
.auth-v2 .advs-app-install{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:18px 0 0;padding:10px 12px;min-height:0;border-radius:12px;border:1px dashed var(--ad-border,#c2d0dd);background:transparent;color:var(--ad-muted,#60758a);font-size:13.5px;font-weight:600;box-shadow:none}
.auth-v2 .advs-app-install::before{content:"⬇";font-size:14px;color:var(--ad-brand,#2eb0e2)}
.auth-v2 .advs-app-install:hover{border-color:var(--ad-brand,#2eb0e2);color:var(--ad-ink,#172e42)}
.auth-v2 .advs-app-install[hidden]{display:none}
/* Waiting-for-approval box */
.auth-v2 .setup-waiting,.auth-v2 #setup-waiting{margin-top:4px}
.auth-v2 #setup-approval-status{padding:12px 14px;border-radius:12px;background:var(--ad-tint,#eaf6fc);color:var(--ad-ink,#172e42);font-size:14px;line-height:1.5}
.auth-v2 #join-receipt p+p{margin-top:10px}
.auth-v2 #join-receipt p:first-child{font-weight:700;font-size:15px}
.auth-v2 #join-receipt #setup-approval-status{padding:0;background:none}
.auth-v2 #join-receipt button{margin-top:12px;width:100%;min-height:44px;border-radius:12px}

/* Agent calendar: request time off + my reasons */
.agent-request-actions{margin:4px 0 6px}
.agent-request-actions #calendar-request-off{min-height:44px;padding:0 20px;font-weight:700;border-radius:12px}
.agent-requests{margin:8px 0 12px;padding:12px 14px;border-radius:14px;border:1px solid var(--ad-line,#dce5ed);background:var(--ad-soft,#f7f9fc)}
.agent-requests h3{font-size:14px;margin:0 0 8px}
.agent-requests ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.agent-requests li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px}
.agent-requests .ar-date{font-weight:600;min-width:150px}
.agent-requests .ar-kind{color:var(--ad-muted,#60758a)}
.agent-requests .ar-status{margin-left:auto;font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--ad-tint,#eaf6fc);color:var(--ad-brand,#2eb0e2)}
.agent-requests .ar-approved{background:var(--ad-success-bg,#eaf7f0);color:var(--ad-success,#167052)}
.agent-requests .ar-rejected{background:var(--ad-danger-bg,#fff0f2);color:var(--ad-danger,#b5324b)}
.agent-requests small{flex-basis:100%;color:var(--ad-muted,#60758a)}
/* Agent calendar: how-it-works dropdown */
.agent-howto{margin:0 0 12px;border:1px solid var(--ad-line,#dce5ed);border-radius:14px;background:var(--ad-surface,#fff)}
.agent-howto>summary{cursor:pointer;padding:12px 16px;font-weight:700;font-size:14.5px;color:var(--ad-brand,#2eb0e2);list-style:none}
.agent-howto>summary::-webkit-details-marker{display:none}
.agent-howto>summary::before{content:"▸";display:inline-block;margin-right:8px;transition:transform .15s}
.agent-howto[open]>summary::before{transform:rotate(90deg)}
.agent-howto-body{padding:0 18px 16px;font-size:14px;line-height:1.6;color:var(--ad-ink,#172e42)}
.agent-howto-body h2{font-size:15px;margin:16px 0 6px;padding-left:9px;border-left:3px solid var(--ad-brand,#2eb0e2)}
.agent-howto-body ol{padding-left:22px;margin:6px 0}
.agent-howto-body .box{background:var(--ad-tint,#eaf6fc);border-radius:10px;padding:9px 12px;margin:8px 0}
.agent-howto-body table{border-collapse:collapse;width:100%;margin:6px 0}
.agent-howto-body td,.agent-howto-body th{border:1px solid var(--ad-line,#dce5ed);padding:6px 9px;text-align:left}
.agent-howto-body .q{margin:8px 0}.agent-howto-body .q b{display:block}
.agent-howto-pdf{margin-top:14px}.agent-howto-pdf a{font-weight:700;color:var(--ad-brand,#2eb0e2)}

/* HR Desk: simpler tabs + To do inbox */
.hr-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hr-more select{min-height:38px;border-radius:999px;padding:0 14px;font-weight:600;cursor:pointer;background:transparent;color:var(--ad-muted,#60758a);border:1px solid var(--ad-line,#dce5ed)}
.hr-more.is-active select{border-color:var(--ad-brand,#2eb0e2);color:var(--ad-brand,#2eb0e2)}
#hr-todo-count[hidden]{display:none}
.hr-todo-second{margin-top:26px}
.hr-reasons{display:grid;gap:10px;margin:8px 0}
.hr-reason{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;padding:14px 16px;border-radius:14px;border:1px solid var(--ad-line,#dce5ed);background:var(--ad-surface,#fff);border-left:4px solid var(--ad-brand,#2eb0e2)}
.hr-reason.is-done{opacity:.6;border-left-color:var(--ad-success,#167052)}
.hr-reason-main{flex:1;min-width:0}
.hr-reason-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:14px}
.hr-reason-top b{font-size:15px}
.hr-reason-top span{color:var(--ad-muted,#60758a)}
.hr-reason-kind{font-size:12px;font-weight:800;padding:2px 9px;border-radius:999px;background:var(--ad-warning-bg,#fff6df);color:var(--ad-warning,#8a5c0a)!important}
.hr-kind-absent{background:var(--ad-danger-bg,#fff0f2);color:var(--ad-danger,#b5324b)!important}
.hr-reason-date{margin-left:auto;font-weight:600}
.hr-reason p{margin:6px 0 0;font-size:14px;line-height:1.5}
.hr-reason-status{font-weight:700;color:var(--ad-success,#167052)}
.hr-reason-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;max-width:260px}
.hr-reason-actions button{min-height:36px;padding:0 14px;border-radius:10px;font-weight:700}
.hr-reason-more{font-weight:500!important;font-size:13px}
.hr-reason-reject{display:flex;gap:8px;margin-top:8px}.hr-reason-reject[hidden]{display:none}
.hr-reason-reject input{flex:1;min-height:36px;border-radius:10px;padding:0 10px}
.hr-empty-small{padding:18px!important}
@media (max-width:760px){.hr-reason{flex-direction:column}.hr-reason-actions{max-width:none;justify-content:flex-start}.hr-reason-date{margin-left:0}}
.hr-more select{width:auto;max-width:200px}
.hr-reason-actions{max-width:360px;align-items:center}
/* HR Desk: decided reasons stay visible (9 Nov) */
.hr-decided{margin-top:14px}
.hr-decided-box{border:1px solid var(--ad-line,#dce5ed);border-radius:14px;padding:4px 14px;background:color-mix(in srgb,var(--ad-surface,#fff) 70%,transparent)}
.hr-decided-box>summary{cursor:pointer;padding:10px 2px;font-size:15px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.hr-decided-box>summary span{font-size:13px;opacity:.75;font-weight:500}
.hr-decided-list{display:grid;gap:8px;padding:2px 0 12px}
.hr-decided-item{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;padding:12px 14px;border-radius:12px;border:1px solid var(--ad-line,#dce5ed);border-left:4px solid #6b7f93}
.hr-decided-item.hr-out-accepted{border-left-color:#3fbf7f}.hr-decided-item.hr-out-excused{border-left-color:#4aa3ff}.hr-decided-item.hr-out-rejected{border-left-color:#ff7b7b}
.hr-decided-item.is-new{box-shadow:0 0 0 2px rgba(63,191,127,.45)}
.hr-decided-main{flex:1;min-width:0}
.hr-decided-outcome{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin:6px 0 2px}
.hr-decided-outcome strong{font-size:14.5px}.hr-out-accepted .hr-decided-outcome strong{color:#3fbf7f}.hr-out-excused .hr-decided-outcome strong{color:#4aa3ff}.hr-out-rejected .hr-decided-outcome strong{color:#ff8a8a}
.hr-decided-outcome span{font-size:13px;opacity:.75}
.hr-decided-why,.hr-decided-note{margin:2px 0;font-size:13.5px}
.hr-decided-why{opacity:.85}
.hr-decided-item small{opacity:.65;font-size:12px}
.hr-decided-actions{display:grid;justify-items:end;gap:4px}
.hr-decided-actions button{min-height:34px;padding:0 12px;border-radius:10px;font-weight:700}
@media (max-width:760px){.hr-decided-item{flex-direction:column}.hr-decided-actions{justify-items:start}}
.calendar-entry-reason{border-left:4px solid #6b7f93}
.calendar-reason-accepted{border-left-color:#3fbf7f}.calendar-reason-excused{border-left-color:#4aa3ff}.calendar-reason-rejected{border-left-color:#ff7b7b}

.inv-listen{display:grid;gap:6px;margin-top:8px;padding:8px 10px;border-radius:10px;background:rgba(46,176,226,.08);border:1px solid rgba(46,176,226,.3)}.inv-listen span{font-weight:700;font-size:13px}.inv-listen audio{width:100%;max-width:420px;height:36px}.inv-listen small{opacity:.7;font-size:12px}
@media (max-width:640px){table:has(#invalid-rows) thead{display:none}#invalid-rows tr{display:grid;grid-template-columns:1fr auto;gap:4px 12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.08)}#invalid-rows td{border:0;padding:0}#invalid-rows td:nth-child(2){grid-column:1}#invalid-rows td:nth-child(4){grid-row:1;grid-column:2;font-weight:600}#invalid-rows td:nth-child(3){grid-column:1/-1}#invalid-rows .inv-listen,#invalid-rows .inv-listen audio{width:100%;max-width:none}}
.corrections-card{margin-top:16px}.corr-list{display:grid;gap:10px}.corr-item{padding:10px 12px;border-radius:10px;border:1px solid rgba(80,200,140,.35);background:rgba(80,200,140,.07);line-height:1.45}.corr-meta{font-size:12px;opacity:.7;margin-bottom:4px}
