/* ARTIVA client and team app shell. This file does not style checkout or payment. */
.staff-profile-card{display:flex;align-items:center;gap:18px;padding:18px;margin-bottom:20px;border:1px solid #e7deef;border-radius:18px;background:linear-gradient(115deg,#fff,#f8f4fc)}.staff-profile-card h3{margin:6px 0}.staff-profile-card p{margin:4px 0;color:#766984}.staff-avatar{width:86px;height:86px;flex:0 0 86px;object-fit:cover;border-radius:24px;border:3px solid #fff;box-shadow:0 8px 25px #321b5320}.staff-avatar-empty{display:grid;place-items:center;background:linear-gradient(135deg,#321b53,#8d45c3);color:white;font-size:32px;font-weight:800}
.pin-login{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:10px;row-gap:7px;margin:12px 0 0;padding:11px 13px;border:1px solid #e8e0ef;border-radius:14px;background:#faf8fc}.pin-login-heading{display:flex;align-items:baseline;gap:8px;min-width:0}.pin-login-heading strong{font-size:13px;color:#402363}.pin-login-heading small,.pin-login-status{font-size:11px;color:#766984;line-height:1.5}.pin-login form{grid-column:2;grid-row:1 / span 2;display:flex;align-items:center;gap:7px;margin:0}.pin-login input{width:132px;min-height:40px;padding:7px 11px;border:1px solid #ded4e9;border-radius:10px;background:#fff;font:inherit;letter-spacing:.25em;text-align:center}.pin-login input::placeholder{letter-spacing:normal}.pin-login .button{width:auto;min-height:40px;padding:8px 16px;border-radius:10px;box-shadow:none}.pin-login .button:disabled,.pin-login input:disabled{opacity:.55}.pin-login-status{grid-column:1;grid-row:2}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.theme-toggle-inline{touch-action:manipulation}
@media(max-width:760px){
 body.client-portal-page,body.employee-portal-page{padding-bottom:calc(82px + env(safe-area-inset-bottom));}
 .portal-grid{display:block!important;width:100%;margin:0 auto!important;padding-inline:12px!important;padding-bottom:calc(22px + env(safe-area-inset-bottom))!important}
 .portal-nav{position:fixed!important;z-index:100;inset:auto 0 0!important;top:auto!important;width:100%;height:calc(70px + env(safe-area-inset-bottom));margin:0!important;padding:7px 8px calc(7px + env(safe-area-inset-bottom))!important;display:flex!important;align-items:stretch;gap:4px!important;overflow-x:auto!important;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;border:0!important;border-top:1px solid #e8e0ef!important;border-radius:18px 18px 0 0!important;background:#fffF!important;backdrop-filter:blur(22px);box-shadow:0 -8px 30px #27143b16!important}
 .portal-nav::-webkit-scrollbar{display:none}.portal-nav button{position:relative;flex:1 1 0!important;width:33.333%;min-width:0!important;min-height:58px!important;height:58px;padding:5px 3px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;white-space:normal!important;border:0!important;border-radius:13px!important;background:transparent!important;color:#70647f;font-size:10px!important;line-height:1.2;text-align:center!important;scroll-snap-align:center}
 .portal-nav button.active{background:#f1e9fa!important;color:#321b53!important;box-shadow:none!important;font-weight:800}.portal-nav button.active:after{content:"";position:absolute;top:0;left:calc(50% - 13px);width:26px;height:3px;border-radius:99px;background:#843dc0}.nav-icon{display:block;font-size:19px;line-height:1}.nav-label{display:block;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .portal-content{padding-bottom:8px}.portal-content>.section-head{padding-inline:2px}.client-welcome{margin-top:10px}.staff-profile-card{padding:14px;gap:13px}.staff-avatar{width:70px;height:70px;flex-basis:70px;border-radius:20px}.portal-content .button,.portal-content a.button{min-height:44px}
 body.theme-dark.client-portal-page .portal-nav,body.theme-dark.employee-portal-page .portal-nav{background:#120d1bee!important;border-color:#34263f!important;box-shadow:0 -8px 30px #0005!important}body.theme-dark .portal-nav button{color:#b5a8c2}body.theme-dark .portal-nav button.active{background:#2b1c39!important;color:#f0e5fb!important}body.theme-dark .staff-profile-card{background:linear-gradient(115deg,#18121f,#20172a);border-color:#3a2a48}
}
@media(max-width:600px){.install-app-card{display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;padding:13px}.install-app-card>img{grid-column:1;grid-row:1;width:44px;height:44px}.install-app-card>div{grid-column:2;grid-row:1}.install-app-card>.button{grid-row:2;white-space:normal;min-height:42px;padding:9px 7px;font-size:11px}.install-app-card>.button:nth-of-type(1){grid-column:1}.install-app-card>.button:nth-of-type(2){grid-column:2}.payroll-preview-head{align-items:flex-start;flex-direction:column}.payroll-remaining{text-align:right}.payroll-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-movement-chip{align-items:flex-start;flex-direction:column}}

/* Polished mobile app surfaces shared by the employee and client portals. */
.install-app-card>.install-compact{flex:0 0 auto;min-height:36px!important;padding:7px 11px!important;border-radius:11px!important;font-size:11px!important;line-height:1.2;box-shadow:0 5px 14px #321b5315;white-space:nowrap}
.portal-load-error{max-width:620px;margin:clamp(28px,8vh,90px) auto;padding:clamp(22px,5vw,42px);display:grid;justify-items:center;gap:12px;text-align:center;border:1px solid #eadff3;border-radius:22px;background:linear-gradient(145deg,#fff,#faf7fd);box-shadow:0 22px 60px #321b5310}.portal-load-error h2{margin:0;font-size:clamp(20px,4vw,27px);color:#321b53}.portal-load-error p{margin:0 0 6px;color:#73647f;line-height:1.8;overflow-wrap:anywhere}.portal-load-error .button{min-width:170px}.load-error-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#fff2e7;color:#c4662c;font-size:24px;font-weight:900}
.app-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:14px 0 18px}.app-shortcut{min-width:0;min-height:104px;display:grid;place-items:center;align-content:center;gap:9px;padding:12px 8px;border:1px solid #e4dceb;border-radius:20px;background:linear-gradient(145deg,#fff,#f7f2fa);color:#392052;font:inherit;font-size:12px;font-weight:750;box-shadow:0 8px 22px #2512380a;transition:transform .18s,border-color .18s,box-shadow .18s}.app-shortcut:hover{transform:translateY(-2px);border-color:#c9addf;box-shadow:0 12px 26px #321b5315}.shortcut-icon{width:48px;height:48px;display:grid;place-items:center;border:1px solid #e4d8ec;border-radius:16px;background:#fff;color:#27a7c8}.shortcut-icon svg{width:27px;height:27px}.employee-home-welcome{margin-top:8px}.employee-profile-hero{display:flex;align-items:center;gap:16px;padding:19px;border:1px solid #e8deef;border-radius:20px;background:linear-gradient(115deg,#fff,#f8f3fc);box-shadow:0 10px 28px #321b530a}.employee-profile-intro{flex:1;min-width:0}.employee-profile-intro small{font-size:9px;letter-spacing:1.5px;color:#867791}.employee-profile-intro h3{margin:5px 0;font-size:20px}.employee-profile-intro p{margin:3px 0;color:#746582;font-size:12px}.profile-status{display:inline-flex;margin-top:7px;padding:5px 10px;border:1px solid #d5eddf;border-radius:99px;background:#effaf3;color:#28714b;font-size:11px;font-weight:750}.profile-edit-shortcut{white-space:nowrap}.profile-section-title{margin:20px 0 12px}.account-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.account-info-grid .metric-box{min-height:70px;padding:12px 14px;border-radius:14px;background:linear-gradient(135deg,#fff,#faf8fc)}.account-info-grid .metric-box strong{font-size:13px!important;line-height:1.6;overflow-wrap:anywhere}.profile-security-note{display:grid;gap:5px;margin-top:16px;padding:14px 16px;border:1px solid #e5d8ef;border-radius:15px;background:#faf7fd}.profile-security-note strong{color:#392052}.profile-security-note span{color:#746582;font-size:12px;line-height:1.7}
body.theme-dark .app-shortcut,body.theme-dark .employee-profile-hero,body.theme-dark .account-info-grid .metric-box,body.theme-dark .profile-security-note,body.theme-dark .portal-load-error{background:linear-gradient(145deg,#181220,#20172a);border-color:#3a2b47;color:#eee5f5}body.theme-dark .employee-profile-intro h3,body.theme-dark .profile-security-note strong,body.theme-dark .portal-load-error h2{color:#f3eafb}body.theme-dark .employee-profile-intro p,body.theme-dark .profile-security-note span,body.theme-dark .portal-load-error p{color:#bcaec8}body.theme-dark .shortcut-icon{background:#20172a;border-color:#44344f}
@media(max-width:760px){.app-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.app-shortcut{min-height:92px;border-radius:18px}.install-app-card>.install-compact{min-height:34px!important;padding:6px 9px!important;font-size:10px!important}.employee-profile-hero{padding:15px;gap:12px}.employee-profile-hero .staff-avatar{width:64px;height:64px;flex-basis:64px;border-radius:20px}.profile-edit-shortcut{padding:8px 10px!important;font-size:11px!important;min-height:38px!important}.portal-load-error{margin:26px 0}}
@media(max-width:420px){.app-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.app-shortcut{min-height:82px;padding:9px 5px;font-size:10px;border-radius:16px}.shortcut-icon{width:42px;height:42px;border-radius:14px}.account-info-grid{gap:8px}.account-info-grid .metric-box{padding:10px}.employee-profile-hero{flex-wrap:wrap}.profile-edit-shortcut{margin-inline-start:auto}}
