/* Qeen CRM V1.3.21 — home is dedicated to personal performance and entry reminders. */
body.qeen-ui.home-page .app-main{max-width:none}
.home-alert-board{color:#182c48;padding-bottom:28px}
.home-alert-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0}
.home-alert-toolbar>div{min-width:0;flex:1}
body.qeen-ui .home-alert-toolbar>button{width:auto!important;flex:0 0 auto!important}
.home-alert-toolbar h2{margin:0 0 5px;font-size:23px;letter-spacing:-.5px}
.home-alert-toolbar p,.home-alert-footnote{margin:0;font-size:12px;color:#64748b;line-height:1.7}
.home-alert-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.home-alert-summary article{padding:16px 20px;border:1px solid #dce5f2;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:8px}
.home-alert-summary article.is-alert{border-color:#f7b8b3;background:#fff0ef;color:#aa2922}
.home-alert-summary strong{font-size:30px;line-height:1}
.home-alert-summary span{font-size:13px;font-weight:650}
.home-alert-list{display:grid;gap:12px}
.home-person{display:grid;grid-template-columns:130px minmax(240px,1.35fr) repeat(2,minmax(185px,1fr));gap:18px;align-items:stretch;background:#fff;border:1px solid #dce5f2;border-left:5px solid #ced9e8;border-radius:14px;padding:20px}
.home-person[data-urgent=true]{border-left-color:#dc3e37}
.home-person-identity{display:flex;flex-direction:column;justify-content:center;gap:7px}
.home-person-identity h3{margin:0;font-size:22px;color:#142b4c}
.home-person-identity span{font-size:12px;color:#718198}
.home-person-identity b{font-size:11px;color:#b42c26}
.home-metric{min-width:0;padding:0 16px 0 0;border-right:1px solid #e9edf4}
.home-metric-title{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:12px;color:#51647e;margin-bottom:9px}
.home-pill{display:inline-block;font-size:11px;font-weight:750;line-height:1.5;padding:4px 8px;border-radius:6px;white-space:nowrap}
.home-pill.critical{background:#ffe5e2;color:#ac271f}.home-pill.warning{background:#fff0d5;color:#905500}.home-pill.good,.home-pill.achieved{background:#dcf5eb;color:#09694b}.home-pill.unknown{background:#eaf0f7;color:#50647d}
.home-rate{display:flex;align-items:baseline;gap:8px}.home-rate strong{font-size:35px;line-height:1.2;letter-spacing:-1px}.home-rate small{font-size:11px;color:#64748b}
.home-progress{position:relative;height:8px;border-radius:8px;background:#eaf0f7;margin:12px 0 10px;overflow:hidden}
.home-progress>span{display:block;height:100%;background:#21806c;border-radius:8px}.home-progress.critical>span{background:#dc3e37}.home-progress.warning>span{background:#de971f}.home-progress.unknown>span{background:#99a8bb}
.home-progress>i{position:absolute;top:0;bottom:0;width:2px;background:#142b4c}
.home-metric p{margin:4px 0;font-size:11px;color:#617188;line-height:1.6}.home-metric .home-gap{color:#243954;font-weight:650}
.home-activity{border:1px solid #dce8e3;border-radius:10px;padding:13px 15px;background:#f3fbf7;display:flex;flex-direction:column;align-items:flex-start}
.home-activity.warning{background:#fff6e7;border-color:#f0cc8b}.home-activity.critical{background:#fff0ef;border-color:#f3b3ad}.home-activity.unknown{background:#f4f6fa;border-color:#dce3ee}
.home-activity h4{margin:0 0 9px;font-size:12px;color:#4c5e75}.home-activity strong{font-size:19px;line-height:1.4;color:#09694b}.home-activity.warning strong{color:#935700}.home-activity.critical strong{color:#ad2820}.home-activity.unknown strong{color:#50647d}
.home-activity p{margin:7px 0 10px;font-size:11px;line-height:1.7;color:#607087}.home-activity a{font-size:12px;font-weight:700;margin-top:auto;color:#285aca;text-decoration:none}.home-activity a:hover{text-decoration:underline}
.home-alert-rules{margin-top:16px;border-top:1px solid #dce5f2;padding-top:14px;font-size:12px;color:#64748b;line-height:1.8}.home-alert-rules summary{cursor:pointer;color:#355578}.home-alert-rules p{margin:8px 0}
.home-alert-empty{padding:36px;background:#fff;border:1px solid #dce5f2;border-radius:14px;text-align:center;color:#64748b}.home-alert-error{padding:12px 16px;background:#fff0ef;border:1px solid #f3b3ad;color:#ad2820;border-radius:8px;margin-bottom:14px}
.home-alert-board [hidden]{display:none!important}
@media(max-width:1400px){.home-person{grid-template-columns:105px minmax(210px,1.2fr) repeat(2,minmax(170px,1fr));padding:16px;gap:12px}}
@media(max-width:1050px){.home-person{grid-template-columns:110px 1fr 1fr}.home-metric{grid-column:2/4;border:0;padding:0}.home-activity{grid-column:auto}.home-person-identity{grid-row:1/3}.home-activity h4{margin-bottom:6px}}
@media(max-width:640px){.home-alert-summary{gap:7px}.home-alert-summary article{padding:12px 9px;display:block}.home-alert-summary strong{display:block;font-size:27px;margin-top:9px}.home-alert-summary span{font-size:11px}.home-alert-toolbar{align-items:flex-start}.home-person{grid-template-columns:1fr 1fr;gap:12px}.home-person-identity{grid-column:1/3;grid-row:auto;flex-direction:row;justify-content:flex-start;align-items:center}.home-metric{grid-column:1/3}.home-activity{padding:12px}.home-activity strong{font-size:17px}.home-alert-toolbar h2{font-size:20px}}

/* V1.3.29: performance and entry reminders have separate meanings. */
body.qeen-ui.home-page .home-person{grid-template-columns:115px minmax(380px,1.65fr) minmax(210px,1fr);gap:14px;border-left-color:#b8c9df}
body.qeen-ui.home-page .home-person[data-performance=exceeded],body.qeen-ui.home-page .home-person[data-performance=achieved]{border-left-color:#15916f}
body.qeen-ui.home-page .home-person[data-performance=ahead]{border-left-color:#2d6ed1}
body.qeen-ui.home-page .home-person[data-performance=warning]{border-left-color:#d99627}
body.qeen-ui.home-page .home-person[data-performance=critical]{border-left-color:#dc3e37}
.home-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0;align-items:center}
body.qeen-ui.home-page .home-metric{padding:0;border:0;min-width:0;grid-column:auto}
body.qeen-ui.home-page .home-metric+ .home-metric{padding-left:16px;border-left:1px solid #e4eaf3}
.home-activities{display:grid;gap:8px;min-width:0}
body.qeen-ui.home-page .home-activity{padding:10px 12px!important}
body.qeen-ui.home-page .home-activity h4{margin-bottom:4px}
body.qeen-ui.home-page .home-activity strong{font-size:16px!important}
body.qeen-ui.home-page .home-activity p{margin:5px 0;line-height:1.5}
body.qeen-ui.home-page .home-person-identity h3{font-size:19px}
body.qeen-ui.home-page .home-person-identity{grid-row:auto}
body.qeen-ui.home-page .home-person-message.exceeded,body.qeen-ui.home-page .home-person-message.achieved,.home-progress-message.exceeded,.home-progress-message.achieved{color:#087656!important}
body.qeen-ui.home-page .home-person-message.ahead,.home-progress-message.ahead{color:#255eb9!important}
body.qeen-ui.home-page .home-person-message.good,.home-progress-message.good{color:#247461!important}
body.qeen-ui.home-page .home-person-message.warning,.home-progress-message.warning{color:#956008!important}
body.qeen-ui.home-page .home-person-message.unknown,.home-progress-message.unknown{color:#62758d!important}
.home-entry-note{color:#9b6414;background:#fff5e5;border-radius:5px;padding:4px 6px;font-size:11px;line-height:1.5}
.home-pill.exceeded{background:#d7f5e8;color:#086644}.home-pill.ahead{background:#e7f0ff;color:#2256a4}
.home-progress.exceeded>span{background:#15916f}.home-progress.ahead>span{background:#2d6ed1}
.home-progress-message{font-weight:650}
body.qeen-ui.home-page .home-rate{flex-wrap:wrap;gap:4px 8px}
body.qeen-ui.home-page .home-rate strong{font-size:28px!important}
body.qeen-ui.home-page .home-metric-title{align-items:flex-start;flex-wrap:wrap;gap:5px;margin-bottom:7px}
@media(max-width:1250px){body.qeen-ui.home-page .home-person{grid-template-columns:110px minmax(0,1fr)}.home-metrics{grid-column:2}.home-activities{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr))}body.qeen-ui.home-page .home-person-identity{grid-row:1/3}}
@media(max-width:640px){body.qeen-ui.home-page .home-person{grid-template-columns:minmax(0,1fr);gap:12px!important}.home-metrics{grid-column:1;grid-template-columns:minmax(0,1fr);gap:12px}body.qeen-ui.home-page .home-metric+.home-metric{padding:12px 0 0;border-left:0;border-top:1px solid #e4eaf3}.home-activities{grid-column:1;gap:8px}body.qeen-ui.home-page .home-person-identity{grid-column:1;grid-row:auto;gap:8px!important}body.qeen-ui.home-page .home-person-identity h3{font-size:17px}.home-entry-note{font-size:10px}body.qeen-ui.home-page .home-progress{margin:9px 0 7px}body.qeen-ui.home-page .home-metric p{margin:3px 0}body.qeen-ui.home-page .home-activity strong{font-size:14px!important}}
