.topbar { box-sizing: border-box; width: 100%; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px 20px; background: #fff; } .topbar.chat-mode { padding-bottom: 16px; border-bottom: 1px solid #eef2f7; } .title-group { min-width: 0; max-width: 100%; } .eyebrow { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 6px; background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.12), rgba(59, 130, 246, 0.08)); color: var(--theme-primary-active); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; } .topbar h1 { color: #0f172a; font-size: 26px; font-weight: 800; letter-spacing: 0; line-height: 1.2; } .topbar p { margin-top: 6px; max-width: 720px; color: #64748b; font-size: 14px; line-height: 1.5; } .top-actions { min-width: 0; max-width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; } .range-combo { position: relative; display: inline-flex; align-items: center; gap: 8px; } .range-shell { height: 42px; display: inline-flex; align-items: center; padding: 3px; border: 1px solid #d7e0ea; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); } .range-meta { height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid #e2e8f0; color: #334155; font-size: 13px; font-weight: 650; white-space: nowrap; } .range-meta .mdi { color: var(--theme-primary); } .range-tabs { display: inline-flex; align-items: center; gap: 2px; padding-left: 3px; } .range-tabs button { height: 34px; min-width: 54px; padding: 0 14px; border: 0; border-radius: 4px; background: transparent; color: #64748b; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease; } .range-tabs button:hover:not(.active) { background: #f1f5f9; color: #334155; } .range-tabs button.active { background: var(--theme-primary); color: #fff; box-shadow: 0 6px 14px rgba(var(--theme-primary-rgb, 58, 124, 165), .18); } .custom-range-wrap { position: relative; } .dashboard-switch-wrap { width: 190px; flex: 0 0 190px; height: 44px; display: flex; align-items: center; } .dashboard-switch-select { width: 100%; } .dashboard-switch-select :deep(.el-select__wrapper) { height: 44px; min-height: 44px; border-radius: 4px; background: #f8fbfd; box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb, 58, 124, 165), .48) inset, 0 1px 2px rgba(15, 23, 42, .05); } .dashboard-switch-select :deep(.el-select__wrapper:hover) { background: #f3f9fd; box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb, 58, 124, 165), .72) inset, 0 0 0 3px rgba(var(--theme-primary-rgb, 58, 124, 165), .08); } .dashboard-switch-select :deep(.el-select__wrapper.is-focused) { background: #ffffff; box-shadow: 0 0 0 2px var(--theme-primary) inset, 0 0 0 3px rgba(var(--theme-primary-rgb, 58, 124, 165), .14); } .dashboard-switch-select :deep(.el-select__placeholder), .dashboard-switch-select :deep(.el-select__selected-item) { color: #1e293b; font-size: 13px; font-weight: 800; } .custom-range-btn { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #d7e0ea; border-radius: 4px; background: #fff; color: #334155; font-size: 13px; font-weight: 750; white-space: nowrap; } .custom-range-btn:hover, .custom-range-btn.active { border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), .34); background: #f5fbff; color: var(--theme-primary-active); } .calendar-popover { position: absolute; top: calc(100% + 10px); right: 0; width: 336px; z-index: 40; display: grid; gap: 14px; padding: 16px; border: 1px solid #d7e0ea; border-radius: 4px; background: #fff; box-shadow: 0 18px 42px rgba(15, 23, 42, .16); } .calendar-popover header, .calendar-popover footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .calendar-popover header strong { color: #0f172a; font-size: 15px; } .calendar-popover header button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #64748b; } .date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .date-fields label { display: grid; gap: 6px; } .date-fields span { color: #64748b; font-size: 12px; font-weight: 700; } .date-fields input { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #d7e0ea; border-radius: 4px; color: #0f172a; font-size: 13px; } .ghost-btn, .apply-btn { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 750; } .ghost-btn { border: 1px solid #d7e0ea; background: #fff; color: #334155; } .apply-btn { border: 0; background: var(--theme-primary); color: #fff; } .apply-btn:disabled { cursor: not-allowed; background: #cbd5e1; } .kpi-chips { min-width: 0; max-width: 100%; display: flex; gap: 10px; } .detail-topbar-actions { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; flex-wrap: wrap; } .detail-kpi-chips { justify-content: flex-end; gap: 8px; } .detail-kpi-chip { min-width: 112px; padding: 6px 10px; gap: 1px 8px; } .detail-kpi-chip .chip-value { font-size: 16px; font-weight: 820; letter-spacing: 0; } .detail-kpi-chip .chip-label { font-size: 11px; } .detail-kpi-chip .chip-delta { font-size: 10px; } .detail-alert-strip { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; } .detail-alert-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid #fed7aa; border-radius: 999px; background: #fff7ed; color: #ea580c; font-size: 12px; font-weight: 800; white-space: nowrap; } .detail-alert-pill i { font-size: 14px; } .detail-alert-pill.neutral { border-color: #d7e0ea; background: #f8fafc; color: #334155; } .detail-alert-pill.success { border-color: var(--success-line); background: var(--success-soft); color: var(--success); } .detail-alert-pill.danger { border-color: #fecaca; background: #fff1f2; color: #dc2626; } .topbar-toolset { display: inline-flex; align-items: center; justify-content: flex-end; gap: 18px; min-width: 0; } .topbar-icon-btn { position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent; color: #111827; font-size: 23px; line-height: 1; transition: color 160ms var(--ease), background 160ms var(--ease); } .topbar-icon-btn:hover { background: var(--theme-primary-light-9); color: var(--theme-primary-active); } .notification-wrap { position: relative; display: inline-flex; } .notification-btn { position: relative; overflow: visible; } .notification-badge { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: #ef4444; color: #fff; font-size: 9px; font-weight: 850; line-height: 1; box-shadow: 0 5px 10px rgba(239, 68, 68, .22); } .notification-popover { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 60; width: min(392px, calc(100vw - 32px)); display: grid; gap: 12px; padding: 14px; border: 1px solid #e5edf5; border-radius: 4px; background: #fff; box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92); } .notification-popover::before { content: ""; position: absolute; top: -6px; right: 18px; width: 10px; height: 10px; border-top: 1px solid #e5edf5; border-left: 1px solid #e5edf5; background: #fff; transform: rotate(45deg); } .notification-head, .notification-tabs { position: relative; z-index: 1; display: flex; align-items: center; } .notification-head { justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #edf2f7; } .notification-head-copy { display: grid; gap: 3px; } .notification-head strong { color: #0f172a; font-size: 15px; font-weight: 850; } .notification-head small { color: #64748b; font-size: 12px; font-weight: 650; } .notification-head button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 4px; color: #64748b; } .notification-head button:hover { background: #f1f5f9; color: #0f172a; } .notification-tabs { gap: 6px; padding: 3px; border: 1px solid #edf2f7; border-radius: 4px; background: #f8fafc; } .notification-tabs button { flex: 1 1 0; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 3px; color: #64748b; font-size: 12px; font-weight: 800; } .notification-tabs button em { min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: #e2e8f0; color: #475569; font-style: normal; font-size: 11px; line-height: 1; } .notification-tabs button.active { background: #fff; color: var(--theme-primary-active); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); } .notification-tabs button.active em { background: var(--theme-primary-light-8); color: var(--theme-primary-active); } .notification-list { position: relative; z-index: 1; display: grid; gap: 8px; max-height: 320px; overflow: auto; } .notification-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 16px; align-items: start; gap: 10px; min-height: 72px; padding: 10px; border: 1px solid #edf2f7; border-radius: 4px; background: #fff; text-align: left; transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease); } .notification-row:hover { border-color: var(--theme-primary-light-5); background: #f8fbff; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08); } .notification-type-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--theme-primary-light-6); border-radius: 4px; background: var(--theme-primary-light-9); color: var(--theme-primary-active); font-size: 18px; } .notification-type-icon.danger { border-color: #fecaca; background: #fff5f5; color: #dc2626; } .notification-type-icon.warning { border-color: #fde68a; background: #fffbeb; color: #d97706; } .notification-type-icon.success { border-color: #bbf7d0; background: #f0fdf4; color: #16a34a; } .notification-type-icon.info { border-color: #bfdbfe; background: #eff6ff; color: #2563eb; } .notification-copy { min-width: 0; display: grid; gap: 5px; } .notification-copy strong, .notification-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .notification-title-line { min-width: 0; display: flex; align-items: center; gap: 6px; } .notification-copy strong { min-width: 0; color: #0f172a; font-size: 13px; font-weight: 850; } .notification-title-line b { flex: 0 0 auto; min-width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; line-height: 1; } .notification-copy small { color: #475569; font-size: 12px; } .notification-meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; } .notification-meta em, .notification-meta time { color: #94a3b8; font-size: 11px; font-style: normal; } .notification-row > .mdi { align-self: center; color: #94a3b8; font-size: 16px; } .notification-empty { min-height: 112px; display: grid; place-items: center; gap: 8px; color: #94a3b8; font-size: 13px; } .notification-empty .mdi { font-size: 24px; } .company-switcher { max-width: min(220px, 28vw); height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 16px; border: 1px solid #edf1f5; border-radius: 999px; background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), inset 0 1px 0 rgba(255, 255, 255, .92); font-size: 13px; font-weight: 700; white-space: nowrap; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease); } .company-switcher:hover { border-color: rgba(var(--theme-primary-rgb, 58, 124, 165), .26); color: var(--theme-primary-active); box-shadow: 0 6px 16px rgba(var(--theme-primary-rgb, 58, 124, 165), .08); } .company-switcher span { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .company-switcher .mdi { flex: 0 0 auto; color: #64748b; font-size: 16px; } .kpi-chip { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 2px 10px; padding: 8px 16px; border-radius: 4px; background: linear-gradient(135deg, color-mix(in srgb, var(--chip-color) 8%, #fff), color-mix(in srgb, var(--chip-color) 3%, #f8fafc)); border: 1px solid color-mix(in srgb, var(--chip-color) 18%, #e2e8f0); } .chip-value { grid-row: 1 / 3; align-self: center; color: #0f172a; font-size: 22px; font-weight: 850; line-height: 1; } .chip-value small { font-size: 13px; font-weight: 700; margin-left: 2px; } .chip-label { color: #64748b; font-size: 12px; font-weight: 700; } .chip-delta { color: #94a3b8; font-size: 11px; font-weight: 700; } .chip-delta.up { color: var(--success); } .chip-delta.down { color: #f59e0b; } .topbar-spacer { flex: 1; min-width: 0; } .create-top-btn { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--theme-primary); color: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 8px 18px rgba(var(--theme-primary-rgb, 58, 124, 165), 0.18); white-space: nowrap; } .create-top-btn:hover { background: var(--theme-primary-active); } @media (max-width: 1120px) { .range-combo { width: 100%; justify-content: flex-end; } } @media (max-width: 960px) { .topbar { width: 100%; min-width: 0; max-width: 100%; flex-direction: column; align-items: stretch; } .top-actions, .search-wrap, .search-wrap.wide, .topbar-toolset, .detail-alert-strip, .month-chip, .qa-filter, .new-question-btn { width: 100%; } .range-combo { justify-content: stretch; } .topbar-toolset { justify-content: flex-end; } .range-shell { flex: 1; } .range-meta { flex: 1; } .custom-range-btn { width: 100%; justify-content: center; } .dashboard-switch-wrap { width: 100%; flex: 1 1 100%; } .calendar-popover { right: auto; left: 0; } } @media (max-width: 760px) { .title-group { padding-right: 56px; } .topbar.detail-mode { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 14px; } .topbar.detail-mode .title-group { min-width: 0; padding-right: 50px; } .topbar.detail-mode .eyebrow { display: none; } .topbar.detail-mode h1 { font-size: 22px; line-height: 1.12; } .topbar.detail-mode p { max-width: 100%; margin-top: 3px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; font-size: 12px; line-height: 1.35; } .topbar.detail-mode .top-actions, .topbar.detail-mode .detail-topbar-actions { width: 100%; min-width: 0; justify-content: flex-end; } .topbar.detail-mode .detail-alert-strip { width: auto; max-width: 100%; min-width: 0; justify-content: flex-end; gap: 6px; } .topbar.detail-mode .detail-alert-pill { min-height: 26px; max-width: 100%; padding: 0 9px; border-radius: 4px; font-size: 11px; } } @media (max-width: 640px) { .topbar { gap: 14px; padding: 16px 16px 14px; } .topbar h1 { font-size: 24px; } .kpi-chips { width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; } .kpi-chip { min-width: 0; padding: 8px 12px; } .chip-value, .chip-label, .chip-delta { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .topbar-toolset { gap: 10px; } .company-switcher { flex: 1 1 auto; max-width: none; justify-content: space-between; } .range-combo { display: grid; gap: 8px; } .range-shell { height: auto; display: grid; gap: 4px; } .range-meta { width: 100%; border-right: 0; border-bottom: 1px solid #e2e8f0; justify-content: center; } .range-tabs { width: 100%; padding-left: 0; } .range-tabs button { flex: 1; padding: 0 8px; } .calendar-popover { width: min(336px, calc(100vw - 32px)); } .date-fields { grid-template-columns: 1fr; } } @media (max-width: 420px) { .topbar.detail-mode { gap: 6px; padding: 8px 12px; } .topbar.detail-mode h1 { font-size: 20px; } .topbar.detail-mode p { font-size: 11.5px; } .topbar.detail-mode .detail-alert-pill { min-height: 24px; } }