/* Salary screen styles */
.screen-salary .page-head{padding:24px 20px 0}.screen-salary main{padding-top:4px}
.screen-salary .page-head h1{font-size:27px}
.screen-salary .page-head .small{font-size:13px}
.screen-salary .card{padding:20px}
.screen-salary .payrow{font-size:15px;padding:15px 0}
.screen-salary .section-title h2{font-size:18px}

.screen-salary .salary-title{font-size:18px;font-weight:700;line-height:1.35;margin:0}

.modal.salary-tool-modal .sheet{height:60vh;min-height:60vh;max-height:60vh;box-sizing:border-box;display:flex;flex-direction:column}
.modal.salary-tool-modal #modalBody{flex:1;min-height:0;overflow:auto}
.modal.salary-tool-modal .insurance-list .payrow{font-size:15px}
.modal.salary-tool-modal .salary-benefit-list .ititle{font-size:15px;font-weight:650}
.modal.salary-tool-modal .salary-benefit-list .right{font-size:15px;font-weight:700;color:#20242a}
@supports (height:60dvh){.modal.salary-tool-modal .sheet{height:60dvh;min-height:60dvh;max-height:60dvh}}

/* Expanded monthly payroll statements */
.pay-history-stack{display:grid;gap:14px}
.pay-history-card{padding:17px;border:1px solid #e9edf0;border-radius:18px;background:#fff;box-shadow:0 5px 18px rgba(24,36,48,.06)}
.history-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.history-card-head h3{margin:0;color:#20242a;font-size:17px;line-height:1.35}
.history-time{margin-top:6px;color:#77808a;font-size:12px;line-height:1.4}
.history-status{flex:0 0 auto;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.history-status.paid{background:#e9f8ef;color:#23824e}.history-status.partial{background:#fff3df;color:#a46a00}.history-status.pending{background:#f1f3f5;color:#68717a}
.history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0;padding:12px 10px;border-radius:13px;background:#f6f8f9}
.history-summary>div{min-width:0;display:flex;flex-direction:column;gap:5px}
.history-summary span{color:#737d86;font-size:11px;line-height:1.25}
.history-summary b{color:#20242a;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.history-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.history-breakdown section{min-width:0;padding:11px;border:1px solid #eef0f2;border-radius:13px}
.history-breakdown h4{margin:0 0 7px;color:#303840;font-size:13px}
.history-item-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:5px 0;color:#626b74;font-size:12px;line-height:1.35}
.history-item-row b{flex:0 0 auto;color:#303840;font-size:12px;font-weight:650}
.history-empty{padding:5px 0;color:#8b939a;font-size:12px}
.history-accounts{display:grid;gap:8px;margin-top:13px;padding-top:11px;border-top:1px solid #edf0f2}
.history-accounts>div{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;font-size:12px;line-height:1.4}
.history-accounts span{flex:0 0 auto;color:#7b848c}.history-accounts b{color:#3b434a;text-align:right;font-weight:600;overflow-wrap:anywhere}
.history-edit-card{padding:15px;margin-bottom:14px;border:1px solid #e9edf0;border-radius:15px;background:#fff}
.history-edit-card h3{margin:0 0 12px;font-size:16px}
.history-edit-form textarea{min-height:78px;resize:vertical}
@media(max-width:420px){.history-breakdown{grid-template-columns:1fr}.pay-history-card{padding:15px}.history-summary{gap:6px;padding:11px 8px}}@media(max-width:420px){.history-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:10px 6px}.history-summary span{font-size:10px;white-space:nowrap}.history-summary b{font-size:12px;white-space:nowrap;overflow-wrap:normal}}
/* Salary history is a full-screen child page */
#salaryHistoryPage{position:fixed;inset:0;z-index:40;width:min(100%,430px);height:100vh;height:100dvh;margin:0 auto;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;background:var(--bg);padding-bottom:env(safe-area-inset-bottom)}
.salary-history-open .bottom{display:none}
.salary-history-header{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 18px 12px;background:rgba(247,249,250,.96);backdrop-filter:blur(14px);border-bottom:1px solid #e9edf0}
.salary-history-header h1{margin:0;font-size:20px;line-height:1.3;text-align:center;white-space:nowrap}
.history-back{justify-self:start;display:flex;align-items:center;gap:5px;padding:7px 0;border:0;background:none;color:#343b42;font-size:14px;font-weight:600;white-space:nowrap}
.history-back:first-letter{font-size:24px;line-height:16px}
.history-head-spacer{justify-self:end;width:72px}
.salary-history-content{padding:16px 16px 26px}
.salary-history-content .pay-history-stack{gap:18px}
#salary .history-list{display:grid;gap:18px;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#salary .history-list .pay-history-card{margin:0}
.salary-history-content .history-edit-card{background:#fff}
@media(max-width:360px){.salary-history-header{padding-left:14px;padding-right:14px}.salary-history-content{padding-left:12px;padding-right:12px}}
.history-year-select{justify-self:end;min-width:82px;height:36px;padding:0 8px;border:1px solid #dfe5e9;border-radius:10px;background:#fff;color:#26323a;font-size:14px;font-weight:650;text-align:center}
