.performance-page { --pf-navy: #18394f; --pf-blue: #2776a2; --pf-green: #218a66; --pf-orange: #d78a2f; --pf-red: #c85959; --pf-muted: #748591; padding: 22px; color: #263d4b; font-family: Tahoma, Arial, sans-serif; }
.performance-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding: 28px 32px; color: #fff; background: linear-gradient(135deg, #17394f, #286f98); border-radius: 18px; box-shadow: 0 12px 30px rgba(24, 68, 94, .2); }
.performance-hero span { color: #a7daf4; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.performance-hero h2 { margin: 8px 0; font-size: 26px; font-weight: 800; }
.performance-hero p { margin: 0; color: rgba(255,255,255,.8); }
.performance-hero-score { min-width: 130px; padding: 15px 20px; text-align: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; }
.performance-hero-score strong { display: block; font-size: 28px; }
.performance-hero-score small { color: rgba(255,255,255,.72); }
.performance-filter { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; padding: 17px; background: #fff; border: 1px solid #dee8ee; border-radius: 14px; }
.performance-filter > div { min-width: 190px; }
.performance-filter label, .performance-settings label { display: block; margin-bottom: 7px; color: #355568; font-size: 12px; font-weight: 700; }
.performance-visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.performance-chart-card, .performance-presence { min-width: 0; padding: 22px; background: #fff; border: 1px solid #dfe8ed; border-radius: 17px; box-shadow: 0 8px 28px rgba(26, 65, 88, .06); }
.performance-chart-card header { margin-bottom: 17px; }
.performance-chart-card h3, .performance-presence h3 { margin: 0 0 5px; color: var(--pf-navy); font-size: 18px; font-weight: 800; }
.performance-chart-card header p { margin: 0; color: var(--pf-muted); font-size: 12px; }
.performance-team-bars { display: grid; gap: 10px; }
.performance-team-bar { display: grid; grid-template-columns: minmax(110px, 145px) minmax(0, 1fr) 40px; gap: 10px; align-items: center; padding: 6px 8px; color: #355568; border-radius: 9px; text-decoration: none; }
.performance-team-bar:hover, .performance-team-bar.is-selected { color: #165c82; background: #eff7fb; text-decoration: none; }
.performance-team-bar > span { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.performance-team-bar > i { display: block; height: 10px; overflow: hidden; background: #edf2f5; border-radius: 99px; }
.performance-team-bar > i > b { display: block; height: 100%; background: linear-gradient(90deg, #2b86b0, #31b58b); border-radius: inherit; }
.performance-team-bar > strong { font-size: 13px; text-align: left; }
.performance-insight-list { display: grid; gap: 13px; }
.performance-insight-list > div { display: flex; align-items: flex-start; gap: 12px; padding: 13px; color: #406275; background: #f5fafc; border: 1px solid #e8f1f5; border-radius: 10px; font-size: 12px; line-height: 1.65; }
.performance-insight-list i { margin-top: 3px; color: var(--pf-blue); font-size: 16px; }
.performance-activity { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.performance-activity:before { content: ''; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.performance-activity.is-recent { color: #157d55; background: #e4f7ec; }
.performance-activity.is-quiet { color: #687b86; background: #eef2f4; }
.performance-presence { margin-bottom: 20px; border-top: 4px solid #238a70; }
.performance-presence-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.performance-presence-icon { display: grid; width: 47px; height: 47px; color: #177857; background: #e5f5ed; border-radius: 13px; place-items: center; font-size: 24px; }
.performance-presence-head small { color: #688493; font-size: 10px; }
.performance-presence-head p { margin: 0; color: var(--pf-muted); font-size: 11px; }
.performance-presence-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.performance-presence-cards > div { min-width: 0; padding: 14px 16px; background: #f7fafb; border: 1px solid #e5edf1; border-radius: 11px; }
.performance-presence-cards small, .performance-presence-cards strong, .performance-presence-cards span { display: block; }
.performance-presence-cards small { color: #718895; font-size: 10px; }
.performance-presence-cards strong { margin: 8px 0 5px; color: var(--pf-navy); font-size: 15px; overflow-wrap: anywhere; }
.performance-presence-cards span { color: #728590; font-size: 10px; line-height: 1.5; }
.performance-presence-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.performance-presence-footer p { max-width: 760px; margin: 0; color: var(--pf-muted); font-size: 11px; line-height: 1.6; }
.performance-presence-footer button { flex: 0 0 auto; }
.performance-presence-error { margin-top: 12px; padding: 10px 12px; color: #a34444; background: #fff2f2; border-radius: 8px; font-size: 11px; }
.performance-daily-charts { margin-bottom: 20px; }
.performance-column-chart { display: flex; align-items: stretch; gap: 6px; min-height: 215px; padding: 5px 4px 0; overflow-x: auto; border-bottom: 1px solid #dce7ec; background: repeating-linear-gradient(to top, #edf3f6 0, #edf3f6 1px, transparent 1px, transparent 25%); }
.performance-column { display: flex; flex: 1 0 34px; min-width: 34px; max-width: 62px; flex-direction: column; align-items: center; justify-content: flex-end; height: 210px; color: #526a78; text-decoration: none; }
.performance-column:hover, .performance-column.is-selected { color: var(--pf-blue); text-decoration: none; }
.performance-column > span { min-height: 20px; font-size: 10px; font-weight: 800; }
.performance-column > i { flex-shrink: 0; width: 72%; min-height: 0; max-height: calc(100% - 42px); border-radius: 5px 5px 0 0; transition: opacity .2s; }
.performance-column > i.is-score { background: linear-gradient(0deg, #2776a2, #51b99a); }
.performance-column > i.is-messages { background: linear-gradient(0deg, #8767b6, #b9a1de); }
.performance-column.is-selected > i { outline: 2px solid #17394f; outline-offset: 2px; }
.performance-column > small { display: block; min-height: 22px; padding-top: 5px; color: #8094a0; font-size: 9px; white-space: nowrap; }
.performance-idle-chart { margin-bottom: 20px; }
.performance-idle-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; max-height: 415px; overflow-y: auto; }
.performance-idle-row { display: grid; grid-template-columns: 85px minmax(0, 1fr) 60px 48px; align-items: center; gap: 9px; padding: 7px 8px; color: #4c6675; border-radius: 8px; text-decoration: none; }
.performance-idle-row:hover, .performance-idle-row.is-selected { color: #a26020; background: #fff6e9; text-decoration: none; }
.performance-idle-row time, .performance-idle-row strong, .performance-idle-row small { font-size: 10px; white-space: nowrap; }
.performance-idle-row strong { text-align: left; }
.performance-idle-row small { color: var(--pf-muted); text-align: left; }
.performance-idle-row > i { display: block; height: 10px; overflow: hidden; background: #eaf3ee; border-radius: 99px; }
.performance-idle-row > i > b { display: block; height: 100%; background: linear-gradient(90deg, #f2b46b, #db7e31); border-radius: inherit; }
.performance-inactivity > p { margin: 0 0 14px; color: var(--pf-muted); font-size: 12px; }
.performance-day-timeline { position: relative; height: 35px; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), #dce9ed calc(25% - 1px), #dce9ed 25%), #eaf5ef; border: 1px solid #dce9ed; border-radius: 8px; direction: ltr; }
.performance-day-timeline span { position: absolute; top: 3px; bottom: 3px; background: #e49546; border-radius: 5px; }
.performance-timeline-labels { display: flex; justify-content: space-between; margin: 5px 0 16px; color: #7c909b; font-size: 11px; direction: ltr; }
.performance-table-card, .performance-history, .performance-breakdown, .performance-inactivity, .performance-settings { margin-bottom: 20px; padding: 23px; background: #fff; border: 1px solid #dfe8ed; border-radius: 17px; box-shadow: 0 8px 28px rgba(26, 65, 88, .06); }
.performance-table-card header, .performance-history header, .performance-breakdown header { margin-bottom: 15px; }
.performance-table-card h3, .performance-history h3, .performance-breakdown h3, .performance-inactivity h3 { margin: 0 0 5px; color: var(--pf-navy); font-weight: 800; }
.performance-table-card header p, .performance-history header p, .performance-breakdown header p { margin: 0; color: var(--pf-muted); }
.performance-ranking td { vertical-align: middle !important; }
.performance-ranking td:first-child a { display: grid; grid-template-columns: 28px 1fr; color: inherit; text-decoration: none; }
.performance-ranking td:first-child small { grid-column: 2; color: var(--pf-muted); }
.performance-rank { grid-row: 1 / 3; align-self: center; justify-self: start; display: grid; width: 23px; height: 23px; place-items: center; color: #447084; background: #eaf2f6; border-radius: 50%; font-size: 11px; font-weight: 800; }
.performance-score { min-width: 85px; }
.performance-score strong { display: block; margin-bottom: 4px; font-size: 17px; }
.performance-score > span { display: block; width: 78px; height: 5px; overflow: hidden; background: #edf1f3; border-radius: 99px; }
.performance-score i { display: block; height: 100%; background: var(--pf-green); border-radius: inherit; }
.performance-score.is-mid i { background: var(--pf-orange); }
.performance-score.is-low i { background: var(--pf-red); }
.performance-ranking td > small { display: block; color: var(--pf-muted); }
.performance-trend { display: inline-block; padding: 4px 8px; border-radius: 99px; font-weight: 700; }
.performance-trend.is-up { color: #19704f; background: #e5f7ee; }
.performance-trend.is-down { color: #a64b4b; background: #fdeaea; }
.performance-trend.is-flat { color: #657883; background: #edf1f3; }
.performance-history td { vertical-align: middle !important; }
.performance-breakdown header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.performance-breakdown header > strong { color: var(--pf-green); font-size: 22px; }
.performance-breakdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.performance-breakdown-item { padding: 14px; background: #f8fafb; border: 1px solid #e3eaee; border-radius: 11px; }
.performance-breakdown-item > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.performance-breakdown-item span, .performance-breakdown-item small { color: var(--pf-muted); font-size: 11px; }
.performance-breakdown-bar { height: 6px; margin: 10px 0 8px; overflow: hidden; background: #e5ecef; border-radius: 99px; }
.performance-breakdown-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pf-blue), var(--pf-green)); border-radius: inherit; }
.performance-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.performance-period-grid > div { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 12px; background: #f8fafb; border: 1px solid #e3eaee; border-radius: 10px; }
.performance-period-grid i { color: #c77d29; }
.performance-period-grid span { font-size: 12px; }
.performance-period-grid strong { color: #925c20; font-size: 12px; }
.performance-settings > summary { color: var(--pf-navy); cursor: pointer; font-size: 17px; font-weight: 800; }
.performance-settings > form { margin-top: 22px; }
.performance-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.performance-toggle { display: flex !important; align-items: center; gap: 9px; min-height: 60px; padding: 12px; background: #f5fafc; border-radius: 10px; }
.performance-toggle input { width: 18px; height: 18px; }
.performance-work-days { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; padding: 14px; background: #f7fafb; border-radius: 11px; }
.performance-work-days > strong { width: 100%; color: #355568; }
.performance-work-days label { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.performance-weights input { max-width: 150px; }
.performance-weights td { vertical-align: middle !important; }
.performance-weights td label { color: var(--pf-muted); font-weight: 400; }
.performance-shared-target { display: inline-block; padding: 8px 11px; color: #356276; background: #edf5f8; border-radius: 8px; }
.performance-weight-total { margin: 14px 0; padding: 12px 15px; color: #22684f; background: #e9f7f0; border-radius: 10px; font-size: 15px; }
.performance-weight-total.is-invalid { color: #9b4444; background: #fdecec; }
.performance-method-note { display: flex; gap: 11px; margin: 15px 0; padding: 15px; color: #3d6072; background: #edf6fa; border: 1px solid #d5e8f1; border-radius: 11px; }
.performance-method-note i { margin-top: 3px; color: var(--pf-blue); }
.performance-method-note p { margin: 0; line-height: 1.7; }
.performance-empty { padding: 35px; text-align: center; color: var(--pf-muted); background: #f8fafb; border-radius: 12px; }
@media (max-width: 950px) { .performance-settings-grid { grid-template-columns: 1fr 1fr; } .performance-period-grid, .performance-visual-grid, .performance-idle-rows { grid-template-columns: 1fr; } .performance-presence-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .performance-page { padding: 12px; } .performance-hero { align-items: flex-start; flex-direction: column; padding: 22px; } .performance-hero-score { width: 100%; } .performance-filter { align-items: stretch; flex-direction: column; } .performance-filter > div { min-width: 0; } .performance-settings-grid, .performance-breakdown-grid, .performance-presence-cards { grid-template-columns: 1fr; } .performance-chart-card, .performance-presence { padding: 16px; } .performance-presence-footer { align-items: stretch; flex-direction: column; } .performance-idle-row { grid-template-columns: 72px minmax(0, 1fr) 50px; gap: 5px; } .performance-idle-row small { display: none; } }
