/* Sign-in and first-time setup (Blue Axis 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,#dde3f2);border-top:4px solid var(--ad-brand,#2f63d6);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:#2f63d6}
.auth-brand strong{display:block;font-size:17px;line-height:1.1;color:var(--ad-ink,#15264f);letter-spacing:.01em}
.auth-brand small{display:block;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ad-brand,#2f63d6);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,#15264f)}
.advs-portal .auth-v2 #auth-help,.auth-v2 #auth-help{font-size:15px;line-height:1.55;color:var(--ad-muted,#62729a);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,#c4cde6);background:var(--ad-soft,#f7f9fc);color:var(--ad-ink,#15264f);cursor:pointer;font:inherit;transition:border-color .15s,transform .15s,background .15s}
.auth-choice:hover,.auth-choice:focus-visible{border-color:var(--ad-brand,#2f63d6);transform:translateY(-1px)}
.auth-choice.is-new{background:var(--ad-brand,#2f63d6);border-color:var(--ad-brand,#2f63d6);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,#eaf0fc);color:var(--ad-brand,#2f63d6)}
.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,#62729a);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,#dde3f2);color:var(--ad-muted,#62729a)}
.auth-steps li.on{color:var(--ad-ink,#15264f);background:var(--ad-tint,#eaf0fc);box-shadow:inset 0 0 0 1.5px var(--ad-brand,#2f63d6)}
.auth-steps li.on span{background:var(--ad-brand,#2f63d6);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,#15264f)}
.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,#2f63d6);cursor:pointer}
.pw-toggle:hover{background:var(--ad-tint,#eaf0fc)}
.auth-v2 #auth-form .remember-choice{flex-direction:row;align-items:center;gap:10px;font-weight:500;color:var(--ad-muted,#62729a)}
.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,#2f63d6)!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,#62729a)!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,#62729a)!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,#eaf0fc);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,#15264f)}

@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,#c4cde6);background:transparent;color:var(--ad-muted,#62729a);font-size:13.5px;font-weight:600;box-shadow:none}
.auth-v2 .advs-app-install::before{content:"⬇";font-size:14px;color:var(--ad-brand,#2f63d6)}
.auth-v2 .advs-app-install:hover{border-color:var(--ad-brand,#2f63d6);color:var(--ad-ink,#15264f)}
.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,#eaf0fc);color:var(--ad-ink,#15264f);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,#dde3f2);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,#62729a)}
.agent-requests .ar-status{margin-left:auto;font-size:12px;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--ad-tint,#eaf0fc);color:var(--ad-brand,#2f63d6)}
.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,#62729a)}
/* Agent calendar: how-it-works dropdown */
.agent-howto{margin:0 0 12px;border:1px solid var(--ad-line,#dde3f2);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,#2f63d6);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,#15264f)}
.agent-howto-body h2{font-size:15px;margin:16px 0 6px;padding-left:9px;border-left:3px solid var(--ad-brand,#2f63d6)}
.agent-howto-body ol{padding-left:22px;margin:6px 0}
.agent-howto-body .box{background:var(--ad-tint,#eaf0fc);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,#dde3f2);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,#2f63d6)}

/* 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,#62729a);border:1px solid var(--ad-line,#dde3f2)}
.hr-more.is-active select{border-color:var(--ad-brand,#2f63d6);color:var(--ad-brand,#2f63d6)}
#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,#dde3f2);background:var(--ad-surface,#fff);border-left:4px solid var(--ad-brand,#2f63d6)}
.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,#62729a)}
.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}
