/**
 * Platform Agent Dashboard CSS
 * Production-ready styles for Agent Cost & Usage Dashboard
 * @version 1.0.0
 */

/* ================= BASE STYLES ================= */
.platform-agent-dashboard {
  /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; */
  background: #fafafa;
  padding: 25px;
  color: #1e293b;
  min-height: 100vh;
  position: relative;
}

.platform-agent-dashboard * {
  box-sizing: border-box;
}

/* ================= DASHBOARD CONTROLS ================= */
.platform-agent-dashboard .dashboard-controls {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  border: 1px solid #f1f5f9;
  flex-wrap: nowrap;
  gap: 16px;
}

.platform-agent-dashboard .date-filter-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: calc(100% - 8%);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.platform-agent-dashboard .date-filter-container label {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin: 0;
  white-space: nowrap;
}

.platform-agent-dashboard .date-filter-select {
  padding: 9px !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px !important;
  background: #ffffff;
  font-size: 13px !important;
  color: #8d8d8d !important;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  width: 25%;
  min-width: 150px;
  height: auto !important;
  margin: 0 !important;
}

.platform-agent-dashboard .custom-date-range .date-range-input {
  border: 1px solid #e2e8f0;
  border-radius: 8px !important;
  background: #ffffff;
  font-size: 13px !important;
  height: auto;
  color: #8d8d8d !important;
  padding: 7px 9px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}

.platform-agent-dashboard .date-filter-select:hover,
.platform-agent-dashboard .date-range-input:hover {
  border-color: #cbd5e1;
}

.platform-agent-dashboard .date-filter-select:focus,
.platform-agent-dashboard .date-range-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.platform-agent-dashboard .custom-date-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease-out;
  flex-wrap: nowrap;
  width: 55%
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.platform-agent-dashboard .date-input {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s ease;
  outline: none;
  min-width: 140px;
}

.platform-agent-dashboard .date-input:hover {
  border-color: #cbd5e1;
}

.platform-agent-dashboard .date-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.platform-agent-dashboard .date-separator {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.platform-agent-dashboard .apply-filter-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
  color: #ffffff;
  background: linear-gradient(135deg, #255fa6, #4a90e2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 2px rgba(59, 130, 246, 0.2);
  border: 0px;
}

.platform-agent-dashboard .apply-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.25);
  color: #ffffff;
  background: linear-gradient(135deg, #255fa6, #4a90e2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 2px rgba(59, 130, 246, 0.2);
  border: 0px;
}

.platform-agent-dashboard .apply-filter-btn:active {
  transform: translateY(0);
  color: #ffffff;
  background: linear-gradient(135deg, #255fa6, #4a90e2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 2px rgba(59, 130, 246, 0.2);
  border: 0px;
}

.platform-agent-dashboard .date-error {
  font-size: 12px;
  color: #ef4444;
  font-weight: 500;
  white-space: nowrap;
  width: 100%;
  margin-top: 4px;
}

.platform-agent-dashboard .refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
  width: 8%;
  min-width: 120px;
  margin-left: auto;
  color: #ffffff;
  background: linear-gradient(135deg, #255fa6, #4a90e2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 2px rgba(59, 130, 246, 0.2);
  border: 0px;
}

.platform-agent-dashboard .refresh-btn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #255fa6, #4a90e2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 2px rgba(59, 130, 246, 0.2);
  border: 0px;
}

.platform-agent-dashboard .refresh-btn:active {
  transform: scale(0.98);
}

.platform-agent-dashboard .refresh-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.platform-agent-dashboard .refresh-btn svg.spinning {
  animation: spin 0.5s linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ================= DATE RANGE PICKER BUTTONS ================= */
.daterangepicker .cancelBtn,
.daterangepicker .applyBtn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap;
  min-width: 80px;
  border: none;
  box-shadow: none;
}

.daterangepicker .applyBtn,
.daterangepicker .cancelBtn {
  color: #ffffff;
  background: linear-gradient(135deg, #255fa6, #4a90e2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 2px rgba(59, 130, 246, 0.2);
}

.daterangepicker .applyBtn:hover,
.daterangepicker .cancelBtn:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1e4a8a, #3b82f6);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4), 0 2px 4px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.daterangepicker .applyBtn:active,
.daterangepicker .cancelBtn:active {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 2px rgba(59, 130, 246, 0.2);
}

.daterangepicker .applyBtn.disabled,
.daterangepicker .applyBtn[disabled],
.daterangepicker .cancelBtn.disabled,
.daterangepicker .cancelBtn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background: #cbd5e1;
  box-shadow: none;
}

.daterangepicker .applyBtn.disabled:hover,
.daterangepicker .applyBtn[disabled]:hover,
.daterangepicker .cancelBtn.disabled:hover,
.daterangepicker .cancelBtn[disabled]:hover {
  transform: none;
  box-shadow: none;
}

/* ================= CARDS ================= */
.platform-agent-dashboard .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.platform-agent-dashboard .card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0 !important;
}

.platform-agent-dashboard .card:nth-child(1) {
  animation-delay: 0s;
}

.platform-agent-dashboard .card:nth-child(2) {
  animation-delay: 0.05s;
}

.platform-agent-dashboard .card:nth-child(3) {
  animation-delay: 0.1s;
}

.platform-agent-dashboard .card:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.platform-agent-dashboard .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .1), 0 4px 8px rgba(0, 0, 0, .06);
  border-color: #e2e8f0;
}

.platform-agent-dashboard .card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .04);
}

.platform-agent-dashboard .card h4 {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  position: relative;
  z-index: 10;
}

.platform-agent-dashboard .card h2 {
  font-size: 28px !important;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  z-index: 10;
  line-height: 1.2;
  margin: 0;
}

.platform-agent-dashboard .card .growth {
  color: #22c55e;
  font-size: 12px;
  margin-left: 8px;
  font-weight: 600;
  background: rgba(34, 197, 94, .12);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
  vertical-align: middle;
}

.platform-agent-dashboard .card-chart {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: .2;
  pointer-events: none;
  z-index: 1;
}

/* ================= GRID PANELS ================= */
.platform-agent-dashboard .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 100%;
}

.platform-agent-dashboard .panel {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  border: 1px solid #f1f5f9;
  min-width: 0;
}

.platform-agent-dashboard .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 !important;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-agent-dashboard .panel h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.platform-agent-dashboard .tabs {
  display: inline-flex;
  gap: 4px;
  background: #ffffff;
  padding: 3px;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.platform-agent-dashboard .tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.platform-agent-dashboard .tab:hover {
  color: #255fa6;
  background: rgba(59, 130, 246, 0.08);
}

.platform-agent-dashboard .tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #255fa6, #4a90e2);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3), 0 1px 2px rgba(59, 130, 246, 0.2);
}

.platform-agent-dashboard input[type=text].filter-input,
.platform-agent-dashboard .filter-input {
  padding: 8px 16px !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px !important;
  font-size: 13px !important;
  /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
  outline: none;
  transition: all 0.2s;
  width: 200px;
  max-width: 100%;
}

.platform-agent-dashboard input[type=text].filter-input:focus .platform-agent-dashboard .filter-input:focus {
  border-color: #255fa6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.platform-agent-dashboard .grid-wrapper {
  margin-top: 15px;
  overflow: hidden;
}

/* ================= AG-GRID CUSTOM STYLES ================= */
.platform-agent-dashboard .ag-theme-custom {
  --ag-header-height: 44px;
  --ag-row-height: 50px;
  /* --ag-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
  --ag-font-size: 13px;
  --ag-border-radius: 12px;
  /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
}

.platform-agent-dashboard .ag-theme-custom .ag-root-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.platform-agent-dashboard .ag-theme-custom .ag-root {
  border: none;
}

.platform-agent-dashboard .ag-theme-custom .ag-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid #e2e8f0;
  border-top: none;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-viewport {
  overflow: visible !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-container {
  overflow: visible !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-row {
  background: transparent;
  overflow: visible !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-cell {
  padding: 14px 8px;
  border: none;
  background: transparent;
  overflow: visible !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-cell-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: clip;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-cell-text {
  white-space: nowrap;
  overflow: visible !important;
  text-overflow: clip;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-cell-label .ag-header-icon {
  display: none !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-cell:hover {
  background: transparent;
}

.platform-agent-dashboard .ag-theme-custom .ag-body-viewport {
  overflow-y: hidden !important;
  overflow-x: hidden !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-body-horizontal-scroll-viewport {
  overflow-x: hidden !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-row {
  border-bottom: 1px solid #f1f5f9;
  border-top: none;
  background: #ffffff;
  transition: all 0.2s ease;
}

.platform-agent-dashboard .ag-theme-custom .ag-row:hover {
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.platform-agent-dashboard .ag-theme-custom .ag-cell {
  padding: 12px 8px;
  border: none;
  line-height: normal;
  display: flex;
  align-items: center;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-cell-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-panel {
  border-top: none;
  padding: 0;
  background: transparent;
  border-bottom: none;
  height: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
  padding: 0 6px;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-row-summary-panel {
  display: none;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-page-summary-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  flex-wrap: wrap;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-button {
  padding: 10px 14px;
  border: none;
  background: #ffffff;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 70px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-button:hover:not(.ag-disabled) {
  background: #255fa6;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border-color: #255fa6;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-button.ag-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8fafc;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-button .ag-icon {
  font-size: 16px;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-number {
  padding: 10px 14px;
  border: none;
  background: #ffffff;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 44px;
  margin: 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-number:hover {
  background: #f8fafc;
  color: #255fa6;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
  border-color: #255fa6;
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-number.ag-paging-page-number-active {
  background: linear-gradient(135deg, #255fa6, #4a90e2);
  border-color: #255fa6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.platform-agent-dashboard .ag-theme-custom .ag-paging-description {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  margin: 0 16px;
}

.platform-agent-dashboard .ag-theme-custom .ag-tooltip {
  display: none !important;
}

.platform-agent-dashboard .ag-theme-custom .ag-cell.ag-right-aligned-cell {
  justify-content: flex-end;
}

.platform-agent-dashboard .ag-theme-custom .ag-header-cell.ag-right-aligned-header .ag-header-cell-label {
  justify-content: flex-end;
}

/* ================= CUSTOM CELL STYLES ================= */
.platform-agent-dashboard .text-cell {
  font-weight: 500;
  color: #0f172a;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  width: 100%;
  display: block;
}

.platform-agent-dashboard .cost-value {
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 100%;
  display: block;
}

.platform-agent-dashboard .user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow: hidden !important;
  min-width: 0;
}

.platform-agent-dashboard .user-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.platform-agent-dashboard .user-name {
  font-weight: 600;
  color: #0f172a;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex: 1;
  min-width: 0;
}

.platform-agent-dashboard .execution-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 32px;
  overflow: hidden !important;
  min-width: 0;
}

.platform-agent-dashboard .execution-bg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  border-radius: 6px;
  opacity: 0.2;
  width: 0;
  background: linear-gradient(90deg, rgba(99, 102, 241, 1), rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0));
}

.platform-agent-dashboard .execution-bg.animated {
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-agent-dashboard .execution-value {
  position: relative;
  z-index: 2;
  font-weight: 600;
  color: #0f172a;
  padding-right: 8px;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0;
  max-width: 100%;
}

.platform-agent-dashboard .sparkline-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 32px;
  overflow: hidden !important;
  min-width: 0;
}

.platform-agent-dashboard .sparkline-bg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
}

.platform-agent-dashboard .sparkline-value {
  position: relative;
  z-index: 2;
  font-weight: 600;
  color: #0f172a;
  padding-right: 8px;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  min-width: 0;
  max-width: 100%;
}

/* ================= CUSTOM TOOLTIP ================= */
.platform-agent-dashboard .custom-tooltip {
  position: fixed;
  background: #ffffff;
  color: #334155;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10000;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  opacity: 0;
  transition: opacity 0.2s;
  max-width: 300px;
}

.platform-agent-dashboard .custom-tooltip.show {
  opacity: 1;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1400px) {
  .platform-agent-dashboard .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .platform-agent-dashboard .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .platform-agent-dashboard {
    padding: 20px;
  }

  .platform-agent-dashboard .cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .platform-agent-dashboard .panel {
    padding: 16px;
  }

  .platform-agent-dashboard input[type=text].filter-input,
  .platform-agent-dashboard .filter-input {
    width: 100%;
  }
}

/*** Custom platform scroll css fix ***/
#agent-dashboard-container .mCustomScrollBox>.mCSB_scrollTools.mCSB_scrollTools_vertical {
  margin-right: 4px;
}