.realtime-analytics { height: 100%; gap: 16px; }
.realtime-analytics > .segmented { flex-shrink: 0; }
.monitor-pane { flex: 1; min-height: 0; background: #fff; border-radius: 8px; padding: 24px; display: flex; flex-direction: column; }
.monitor-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.monitor-filters { display: flex; flex-wrap: wrap; gap: 12px; max-width: 1248px; flex: 1; min-width: 0; }
.monitor-filter { position: relative; width: 240px; flex: 0 0 240px; font-size: 14px; }
.monitor-filter-control { display: flex; align-items: center; height: 32px; border: 1px solid #d9d9d9; border-radius: 6px; padding: 0 11px; cursor: pointer; background: #fff; }
.monitor-filter-control:hover, .monitor-filter.open .monitor-filter-control { border-color: #f60; }
.monitor-filter.open .monitor-filter-control { box-shadow: 0 0 0 2px #fff2e8; }
.monitor-filter-selection { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; }
.monitor-filter .placeholder { color: #bfbfbf; }
.monitor-filter .chevron { width: 6px; height: 6px; margin-left: 8px; border-color: #bfbfbf; }
.monitor-chip { background: #f5f5f5; border-radius: 2px; display: inline-flex; align-items: center; padding: 0 4px; font-size: 12px; height: 22px; max-width: 130px; flex-shrink: 0; }
.monitor-chip button, .monitor-single-value button { background: none; border: 0; padding: 0 0 0 4px; color: #666; line-height: 18px; }
.monitor-single-value { display: inline-flex; width: 100%; justify-content: space-between; align-items: center; }
.monitor-filter-panel { position: absolute; top: 36px; left: 0; width: 100%; padding: 4px; background: #fff; border-radius: 8px; z-index: 40; box-shadow: 0 6px 16px #0000001f, 0 3px 6px #0000001f; }
.monitor-filter-panel.multi { padding: 12px; }
.monitor-filter-heading { color: #f60; height: 38px; border-bottom: 1px solid #f0f0f0; margin-bottom: 8px; }
.monitor-filter-heading span { display: inline-block; height: 38px; border-bottom: 2px solid #f60; }
.monitor-filter-search { width: 100%; height: 28px; border: 0; border-bottom: 1px solid #f0f0f0; margin: 0 0 5px; padding: 0 8px; font-size: 12px; }
.monitor-filter-search:focus { box-shadow: none; }
.monitor-filter-options { max-height: 285px; overflow: auto; scrollbar-width: thin; }
.monitor-option { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 8px; border: 0; background: #fff; padding: 6px 12px; text-align: left; color: #262626; line-height: 22px; }
.monitor-option:hover, .monitor-filter-panel.single .monitor-option.selected { background: #f5f5f5; }
.monitor-select-all { border-bottom: 1px solid #f0f0f0; margin-bottom: 6px; }
.monitor-checkbox { width: 16px; height: 16px; border: 1px solid #d9d9d9; border-radius: 2px; flex-shrink: 0; position: relative; }
.monitor-checkbox.checked { background: #f60; border-color: #f60; }
.monitor-checkbox.checked::after { content: ''; width: 5px; height: 9px; position: absolute; left: 4px; top: 1px; transform: rotate(45deg); border: solid #fff; border-width: 0 2px 2px 0; }
.monitor-checkbox.partial::after { content: ''; position: absolute; inset: 3px; background: #f60; }
.monitor-department-tree summary { cursor: pointer; padding: 5px 10px; }
.monitor-department-tree .monitor-option { padding-left: 30px; min-height: 28px; }
.monitor-empty-options { text-align: center; padding: 18px; color: #bfbfbf; }
.monitor-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.monitor-countdown { font-size: 12px; color: #a8abb2; white-space: nowrap; min-width: 64px; text-align: right; }
.monitor-refresh { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #d9d9d9; background: #fff; border-radius: 4px; color: #8c8c8c; }
.monitor-refresh:disabled { background: #f5f5f5; opacity: 1; }
.monitor-refresh:disabled svg { animation: monitor-spin .6s linear infinite; }
.monitor-hide-offline { height: 36px; border-color: #e5e7ef; font-size: 14px; padding: 0 16px; }
.monitor-metrics { display: flex; flex-wrap: wrap; gap: 16px; flex-shrink: 0; margin-bottom: 20px; }
.monitor-metric { width: 266px; height: 86px; padding: 16px; border: 1px solid #ffd8bf; border-radius: 8px; background: linear-gradient(120deg, #fffbf8, #fff7f1); cursor: default; }
.monitor-metric-label { height: 22px; line-height: 22px; font-size: 12px; cursor: default; font-weight: 400; }
.monitor-metric-label > span { border-bottom: 1px dashed #aaa; padding-bottom: 2px; }
.monitor-metric-value { font-size: 24px; line-height: 30px; font-weight: 600; }
.module-tooltip.monitor-tooltip { width: 250px; max-width: calc(100vw - 16px); font-size: 12px; line-height: 20px; border-radius: 6px; }
.monitor-table-scroll { flex: 1; min-height: 120px; overflow: auto; scrollbar-width: thin; }
.monitor-table { width: 3548px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.monitor-table th { background: #fafafa; font-weight: 500; position: sticky; top: 0; z-index: 1; text-align: left; height: 46px; border-bottom: 1px solid #f0f0f0; padding: 0 16px; white-space: nowrap; }
.monitor-table th::after { content: ''; position: absolute; right: 0; top: 12px; height: 22px; width: 1px; background: #f0f0f0; }
.monitor-table th button { border: 0; background: none; width: 100%; padding: 0; display: flex; align-items: center; justify-content: space-between; white-space: nowrap; font-weight: 500; }
.monitor-table td { height: 57px; padding: 0 16px; border-bottom: 1px solid #f0f0f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-table tr:hover td { background: #fafafa; }
.monitor-table td.monitor-empty { text-align: center; color: #bfbfbf; height: 160px; }
.monitor-attendance { display: inline-block; background: #f0f0f0; border-radius: 5px; line-height: 24px; padding: 0 8px; }
.monitor-attendance.present { background: #f0fff6; color: #35c882; }
.monitor-seat-state { display: flex; align-items: center; gap: 8px; }
.monitor-seat-state .chevron { margin-left: auto; width: 6px; height: 6px; border-color: #262626; }
.monitor-state-dot { width: 8px; height: 8px; border-radius: 50%; background: #38be86; flex-shrink: 0; }
.monitor-state-dot.offline { background: #bfbfbf; }
.monitor-sort-arrows { display: flex; flex-direction: column; gap: 2px; margin-left: 12px; }
.monitor-sort-arrows i { width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 4px solid #bfbfbf; }
.monitor-sort-arrows i:last-child { transform: rotate(180deg); }
.monitor-sort-arrows.asc i:first-child, .monitor-sort-arrows.desc i:last-child { border-bottom-color: #f60; }
.chat-group-message-count { margin-left: auto; background: #fff1f0; color: #ff4d4f; font: 11px/16px Arial,sans-serif; border-radius: 9px; padding: 0 5px; flex-shrink: 0; }
.global-rail .nav-message-count { position: absolute; right: 6px; top: 1px; padding: 0 5px; border-radius: 10px; background: #ff4d4f; color: #fff; font: 12px/18px Arial,sans-serif; border: 1px solid #fff; }
.global-rail .nav-message-count + .nav-label { margin-right: 12px; }
.monitor-unimplemented { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; }
@keyframes monitor-spin { to { transform: rotate(360deg); } }
@media (min-width: 1800px) { .monitor-filter:nth-child(6) { margin-right: 900px; } }
@media (max-width: 1650px) { .monitor-filters { max-width: 996px; } .monitor-filter { width: 220px; flex-basis: 220px; } }
@media (max-width: 1450px) { .monitor-filter { width: 200px; flex-basis: 200px; } .monitor-countdown { min-width: 58px; } .monitor-actions { gap: 8px; } }
@media (max-width: 1200px) { .monitor-toolbar { flex-wrap: wrap; } .monitor-actions { margin-left: auto; } .monitor-pane { padding: 20px; } }
