
.employee-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.employee-card{display:block;padding:20px;border:1px solid #d6e3dd;border-radius:12px;background:#f8fbf9;color:inherit;text-decoration:none}.employee-card:hover{border-color:#2e786e;background:#edf6f2}.employee-card small{display:block;margin-top:5px;color:#526b65}.employee-profile{border:0;border-radius:14px;padding:26px;width:min(1120px,95vw);max-height:92vh;overflow:auto}.employee-profile::backdrop{background:#183b3266}.profile-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px;margin:22px 0}.profile-metric{padding:18px;border-radius:12px;background:#e5f2ee}.profile-metric:nth-child(2n){background:#e7effb}.profile-metric:nth-child(3n){background:#fff2d9}.profile-metric strong{display:block;font-size:1.8rem;margin:6px 0}.profile-metric small{color:#526365;display:block}.profile-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;padding:18px 0}.profile-info dt{color:#61736b;font-size:.9em}.profile-info dd{margin:4px 0;font-weight:600}.profile-training{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.profile-training a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border:1px solid #d9e5df;border-radius:10px;color:inherit;text-decoration:none}.profile-training small{display:block}.assignment-bar{display:grid;grid-template-columns:minmax(140px,1fr) 2fr 75px;align-items:center;gap:14px;margin:10px 0}.assignment-bar meter{width:100%;height:22px}.profile-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}

.profile-equipment-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px}.profile-equipment-card{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 10px;border:1px solid #d9e5df;border-radius:14px;color:inherit;text-decoration:none;background:#fff}.profile-equipment-card[href]:hover{background:#f0f7f4;border-color:#2e786e}.profile-oee-ring{--ring-color:#98a4ad;display:grid;place-items:center;width:146px;height:146px;border-radius:50%;background:conic-gradient(var(--ring-color) calc(var(--oee,0)*1%),#e6ebed 0);padding:7px;box-sizing:border-box}.profile-oee-ring.good{--ring-color:#27824a}.profile-oee-ring.medium{--ring-color:#e2b326}.profile-oee-ring.low{--ring-color:#c94747}.profile-oee-center{width:100%;height:100%;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;padding:12px;box-sizing:border-box;overflow-wrap:anywhere}.profile-oee-center strong{font-size:.95rem;line-height:1.2}.profile-oee-center span{font-size:1.1rem;font-weight:700}.profile-equipment-values{display:flex;align-items:center;justify-content:center;gap:28px}.profile-equipment-values .profile-grade{display:grid;place-items:center;min-width:32px;height:32px;border-radius:50%;font-weight:700}.profile-equipment-values .profile-grade.grade-0{background:#e6ebed}.profile-equipment-values .profile-grade.grade-1{background:#f7cccc}.profile-equipment-values .profile-grade.grade-2{background:#fff0b1}.profile-equipment-values .profile-grade.grade-3{background:#c8e9d2}.profile-equipment-values .profile-grade.grade-4{background:#b7dfef}.profile-equipment-legend{display:flex;align-items:center;gap:24px;flex-wrap:wrap;background:#f3f7f5;border-radius:12px;padding:16px;margin:16px 0}.profile-equipment-example{display:flex;align-items:center;gap:16px}.profile-equipment-example .profile-oee-ring{width:112px;height:112px}.profile-equipment-legend p{margin:5px 0}.profile-equipment-title{display:block;text-align:center;padding:15px}

.profile-shortcuts{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.profile-period{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:20px 0}.profile-period label{max-width:180px}.profile-days{display:grid;gap:8px}.profile-day{display:grid;grid-template-columns:1.5fr 1fr auto auto;gap:14px;align-items:center;padding:14px;border:1px solid #d7e2de;border-radius:10px}.profile-day span,.profile-day small{display:block}.profile-day small{color:#526365}.profile-equipment-card{cursor:pointer}.profile-equipment-card:hover,.profile-equipment-card:focus-visible{border-color:#2e786e;background:#f0f7f4}.profile-equipment-card strong{overflow-wrap:anywhere}.profile-links-label{margin-bottom:0}.employee-list-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.employee-directory-search{max-width:480px;margin:16px 0}.employee-profile [hidden]{display:none!important}
@media(max-width:640px){.employee-profile{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:16px;box-sizing:border-box}.profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-metric{padding:12px}.profile-metric strong{font-size:1.4rem}.profile-equipment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-oee-ring{width:120px;height:120px}.profile-day{grid-template-columns:1fr auto}.profile-day>a{grid-column:1/-1}.profile-info{grid-template-columns:1fr}.profile-equipment-legend{display:none}.profile-period input,.profile-period select{font-size:16px}.profile-shortcuts>a{flex:1 1 140px;text-align:center}.profile-actions{align-items:start}.profile-actions h2{font-size:1.3rem;margin:0}.profile-metric small{overflow-wrap:anywhere}}

.entity-profile-content .profile-actions > [data-dialog-close]{display:none}
.entity-profile-dialog button.secondary,.entity-profile-dialog a.secondary{background:#edf2ef;color:#193c33}
.entity-profile-dialog button.secondary:hover,.entity-profile-dialog a.secondary:hover{background:#ddeae3;color:#193c33}
