  /* Coffee Price Sync frontend layout */
  .cps-dashboard {
    --bg-page: #f5f6f8;
    --bg-card: #ffffff;
    --border-subtle: #e2e4ea;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-soft: #9ca3af;
    --accent: #FF1F8F;
    --accent-soft: #e7f7ec;
    --divider: #eef0f4;
    --chip-bg: #f3f4f6;
    --chip-border: #e5e7eb;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
    background: transparent;
    color: var(--text-main);
    padding: 16px 0;
    width: 100%;
  }

  .cps-dashboard * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  .cps-dashboard select,
  .cps-dashboard button {
    font-family: inherit;
  }

  .cps-dashboard .page {
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 20px 20px 24px;
    background: #ffffff;
  }

  .cps-dashboard .page-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .cps-dashboard .page-header-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.45;
    color: #111827;
  }

  .cps-dashboard .page-header-title a {
    color: inherit;
    text-decoration: none;
  }

  .cps-dashboard .page-header-title a:hover {
    text-decoration: underline;
    color: #ff1f8f;
  }

  .cps-dashboard .page-header-sub {
    font-size: 15px;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 4px;
  }

  .cps-dashboard .page-header-updated {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .cps-dashboard .page-header-note {
    font-size: 14px;
    color: #5e5e5e;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .cps-dashboard .sub-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #f9fafb;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
    gap: 6px;
  }

  .cps-dashboard .predict-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
  }

  .cps-dashboard .predict-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .cps-dashboard .predict-status-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-soft);
    background: #ffffff;
  }

  .cps-dashboard .layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 16px;
  }

  .cps-dashboard.cps-dashboard-chart-only .layout {
    grid-template-columns: 1fr;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-average {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-average span:first-child {
    font-weight: 500;
    color: #9ca3af;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-average-value {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    color: #111827;
    background: #ffffff;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-change.is-negative {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fff1f2;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-change.is-positive {
    border-color: #faa3ce;
    color: #FF1F8F;
    background: #f0fdf4;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-link {
    font-size: 12px;
    color: #111827;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .cps-dashboard.cps-dashboard-chart-only .cps-chart-link:hover {
    text-decoration: underline;
  }

  .cps-dashboard.cps-dashboard-compact .layout {
    grid-template-columns: 1.05fr 1fr;
  }

  .cps-dashboard.cps-dashboard-compact .page {
    padding: 18px;
  }

  .cps-dashboard.cps-dashboard-compact .card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: none;
  }

  .cps-compact-summary-card {
    gap: 14px;
  }


  .cps-compact-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .cps-compact-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
  }

  .cps-compact-updated {
    font-size: 11px;
    color: #6b7280;
  }

  .cps-compact-summary {
    font-size: 13px;
    line-height: 1.5;
    color: #1f2937;
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .cps-compact-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cps-compact-average {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 12px;
    color: #4b5563;
  }

  .cps-compact-average-value {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
  }

  .cps-compact-change {
    font-size: 12px;
    color: #16a34a;
  }

  .cps-compact-change.is-negative {
    color: #dc2626;
  }

  .cps-compact-table {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
  }

  .cps-compact-table-head,
  .cps-compact-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.6fr);
    align-items: center;
  }

  .cps-compact-table-head {
    background: #f9fafb;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    padding: 8px 10px;
  }

  .cps-compact-table-body {
    max-height: 260px;
    overflow-y: auto;
  }

  .cps-compact-row {
    padding: 8px 10px;
    font-size: 12px;
    border-top: 1px solid #f1f5f9;
  }

  .cps-compact-row.is-active {
    background: #f0fdf4;
  }

  .cps-compact-row-name {
    font-weight: 500;
    color: #111827;
  }

  .cps-compact-row-price {
    text-align: center;
    color: #111827;
  }

  .cps-compact-row-change {
    text-align: right;
    font-weight: 600;
  }

  .cps-compact-row-change.is-positive {
    color: #16a34a;
  }

  .cps-compact-row-change.is-negative {
    color: #dc2626;
  }

  .cps-compact-empty {
    padding: 12px 10px;
    font-size: 12px;
    color: #6b7280;
  }




  @media (max-width: 960px) {
    .cps-dashboard.cps-dashboard-compact .layout {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 960px) {
    .cps-dashboard .layout {
      grid-template-columns: 1fr;
    }
  }

  .cps-dashboard .card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .cps-dashboard .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
  }

  .cps-dashboard .filters-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .cps-dashboard .chip-select {
    position: relative;
  }

  .cps-dashboard .chip-select select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
  }

  .cps-dashboard .chip-select-display {
    width: 100%;
    padding: 6px 6px 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--chip-border);
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: border 0.15s ease, box-shadow 0.15s ease;
  }

  .cps-dashboard .chip-select-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cps-dashboard .chip-select-display:hover {
    border-color: #c7cad3;
  }

  .cps-dashboard .chip-select-display:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.35);
    outline-offset: 2px;
  }

  .cps-dashboard .chip-select-caret {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: var(--text-soft);
    transition: transform 0.15s ease;
  }

  .cps-dashboard .chip-select.is-open .chip-select-caret {
    transform: rotate(180deg);
  }

  .cps-dashboard .chip-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--chip-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    padding: 4px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 15;
  }

  .cps-dashboard .chip-select.is-open .chip-select-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  min-width: 160px;
  }

  .cps-dashboard .chip-select-options {
    max-height: 220px;
    overflow-y: auto;
  }

  .cps-dashboard .chip-select-option {
    width: 100%;
    padding: 7px 14px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 13px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
  }

  .cps-dashboard .chip-select-option:hover {
    background: #f3f4f6;
  }

  .cps-dashboard .chip-select-option.is-selected {
    font-weight: 600;
    color: var(--accent);
  }

  .cps-dashboard .chip-select-option.is-selected::after {
    content: "✓";
    font-size: 12px;
  }

  .cps-dashboard .date-pill-wrapper {
    position: relative;
    display: inline-block;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .cps-dashboard .date-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-size: 13px;
    color: #111827;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  }

  .cps-dashboard .date-pill-icon {
    font-size: 14px;
  }

  .cps-dashboard .date-pill:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  .cps-dashboard .date-pill:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  }

  .cps-dashboard .filters-left .date-pill {
    justify-content: flex-start;
    text-align: left;
  }

  .cps-dashboard .date-picker {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 30;
    min-width: 200px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    padding: 6px 12px 8px;
    font-size: 11px;
    color: #111827;
    transform-origin: top left;
    animation: cpsDateFadeIn 0.14s ease-out;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(-2px);
  }

  .cps-dashboard .date-pill-wrapper.is-open .date-picker {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
  }

  .cps-dashboard .date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
  }

  .cps-dashboard .date-picker-title {
    font-weight: 600;
    font-size: 11px;
  }

  .cps-dashboard .date-picker-nav {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  }

  .cps-dashboard .date-picker-nav:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  }

  .cps-dashboard .date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 2px;
    font-size: 9px;
    color: #c4c7cf;
  }

  .cps-dashboard .date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
  }

  .cps-dashboard .date-picker-day {
    border: none !important;
    background: transparent !important;
    border-radius: 4px !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    color: #111827;
    transition:
      background-color 0.12s ease,
      color 0.12s ease,
      box-shadow 0.12s ease;
  }

  .cps-dashboard .date-picker-day:hover:not(.is-disabled) {
    background-color: #f3f4f6;
  }

  .cps-dashboard .date-picker-day.is-active {
    background-color: #111827 !important;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.3);
  }

  .cps-dashboard .date-picker-day.is-other {
    color: #d1d5db;
  }

  .cps-dashboard .date-picker-day.is-disabled,
  .cps-dashboard .date-picker-day.is-disabled:hover {
    cursor: default;
    color: #d1d5db;
    background: transparent !important;
    box-shadow: none;
  }

  @keyframes cpsDateFadeIn {
    from {
      opacity: 0;
      transform: scale(0.96) translateY(-2px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  @media (max-width: 480px) {
    .cps-dashboard .date-picker {
      left: 50%;
      transform: translateX(-50%) scale(0.96);
      transform-origin: top center;
    }

    .cps-dashboard .date-pill-wrapper.is-open .date-picker {
      transform: translateX(-50%) scale(1);
    }
  }

  .cps-dashboard .price-block {
    text-align: right;
  }

  .cps-dashboard .price-main {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .cps-dashboard .price-main span {
    font-size: 20px;
    font-weight: 500;
    color: #FF1F8F;
    margin-left: 2px;
  }

  .cps-dashboard .price-change {
    font-size: 14px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .cps-dashboard .price-change.is-negative {
    color: #dc2626;
  }

  .cps-dashboard .price-change-up {
    font-size: 10px;
  }

  @media (max-width: 640px) {
    .cps-dashboard .layout > .card:first-child {
      background: linear-gradient(180deg, #ffffff 0%, #fef6f6 100%);
    }
    .cps-dashboard .card-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
      gap: 12px;
      align-items: center;
    }
    .cps-dashboard .filters-left {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
    .cps-dashboard .chip-select,
    .cps-dashboard .filters-left .date-pill-wrapper {
      width: 80%;
      max-width: 260px;
    }
    .cps-dashboard .chip-select-display,
    .cps-dashboard .filters-left .date-pill {
      width: 100%;
    }
    .cps-dashboard .price-block {
      text-align: right;
      justify-self: right;
    }
  }

  .cps-dashboard .divider {
    border-top: 1px solid var(--divider);
    margin: 8px 0 10px;
  }

  .cps-dashboard .table-header,
  .cps-dashboard .table-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 0.7fr);
    font-size: 12px;
    align-items: center;
  }

  .cps-dashboard .table-header {
    font-size: 12px;
    font-weight: 600;
    padding: 0 4px 4px;
  }

  .cps-dashboard .table-body {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
  }

  .cps-dashboard .table-row {
    padding: 6px;
    border-radius: 8px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background 0.12s ease, transform 0.08s ease;
  }

  .cps-dashboard .table-row:hover {
    background: #f3f4f6;
  }

  .cps-dashboard .table-row.is-active {
    background: var(--accent-soft);
  }

  .cps-dashboard .table-row-name {
      font-size: 13px;
      color: var(--text-main);
      font-weight: 500;
  }

  .cps-dashboard .table-row-price {
    text-align: center;
    font-weight: 500;
    font-size: 12px;
  }

  .cps-dashboard .table-row-change {
    text-align: right;
    font-size: 11px;
  }

  .cps-dashboard .table-row-change.is-positive,
  .cps-dashboard .table-row.is-up .table-row-change {
    color: #16a34a;
  }

  .cps-dashboard .table-row-change.is-negative,
  .cps-dashboard .table-row.is-down .table-row-change {
    color: #dc2626;
  }

  .cps-dashboard .table-row-change .change-icon {
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cps-dashboard .table-row-change .change-value {
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
    margin-left: 6px;
  }

  .cps-dashboard .table-row-change .pct {
    display: block;
    font-size: 10px;
    color: var(--text-soft);
  }

  .cps-dashboard .scrollbar-thin::-webkit-scrollbar {
    width: 5px;
  }

  .cps-dashboard .scrollbar-thin::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
  }

  .cps-dashboard .scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
  }

  .cps-dashboard .chart-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    gap: 6px;
  }

  .cps-dashboard .chart-drag-handle {
    align-self: flex-end;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: grab;
  }

  .cps-dashboard .chart-drag-handle:active {
    cursor: grabbing;
  }

  .cps-dashboard .card.is-dragging {
    opacity: 0.65;
  }

  .cps-dashboard .layout.is-dragging {
    outline: 1px dashed var(--border-subtle);
    outline-offset: 6px;
  }

  .cps-dashboard .chart-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    width: 100%;
  }

  .cps-dashboard .chart-select {
    position: relative;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* .cps-dashboard .chart-select::before {
    content: "Chọn sản phẩm:";
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
  } */

  .cps-dashboard .chart-select select {
    appearance: none;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border-radius: 999px;
    border: 1px solid #d8deef;
    padding: 7px 34px 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    width: auto;
    min-width: 190px;
    flex: 0 0 auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 14px rgba(15, 23, 42, 0.08);
    transition: border 0.15s ease, box-shadow 0.15s ease;
  }

  .cps-dashboard .chart-select select:hover {
    border-color: #c2c9de;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 18px rgba(15, 23, 42, 0.12);
  }

  .cps-dashboard .chart-select select:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.4);
    outline-offset: 2px;
    border-color: #7c8cf1;
  }

  /*.cps-dashboard .chart-select::after {*/
  /*  content: "▾";*/
  /*  position: absolute;*/
  /*  right: 9px;*/
  /*  top: 50%;*/
  /*  transform: translateY(-50%);*/
  /*  font-size: 10px;*/
  /*  color: var(--text-soft);*/
  /*  pointer-events: none;*/
  /*}*/

  .cps-dashboard .chart-wrapper {
    position: relative;
    background: #fdfdfd;
    border-radius: 14px;
    padding: 16px 18px 22px;
    border: 1px solid #ebeef5;
    overflow: visible;
    flex: 1;
    min-height: 260px;
  }

  .cps-dashboard .chart-svg {
    width: 100%;
    height: 200px;
    display: block;
  }

  .cps-dashboard .chart-grid-line {
    stroke: #e2e6f0;
    stroke-width: 1;
  }

  .cps-dashboard .chart-fill {
    fill: url(#gradArea);
  }

  .cps-dashboard .chart-line {
    stroke: #FF1F8F;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .cps-dashboard .chart-tooltip-line {
    position: absolute;
    width: 1px;
    background: #d1d5db;
    top: 0;
    height: 100%;
    opacity: 0.9;
    pointer-events: none;
  }

  .cps-dashboard .chart-tooltip-point {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #FF1F8F;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%);
    pointer-events: none;
  }

  .cps-dashboard .chart-tooltip {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    padding: 8px 10px;
    font-size: 11px;
    font-family: inherit;
    color: var(--text-main);
    pointer-events: none;
    min-width: 140px;
    white-space: nowrap;
    z-index: 5;
  }

  .cps-dashboard .chart-tooltip div + div {
    margin-top: 2px;
  }

  .cps-dashboard .chart-tooltip-price {
    color: var(--accent);
  }

  .cps-dashboard .chart-axis-labels {
    position: absolute;
    left: 8px;
    top: 16px;
    height: 200px;
    padding-top: 40px;
    padding-bottom: 10px;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 500;
  }

  .cps-dashboard .chart-x-labels {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    font-size: 10px;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
    padding: 0 8.7%;
    font-weight: 500;
  }

  .cps-dashboard .chart-legend {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(209, 213, 219, 0.7);
    font-size: 10px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .cps-dashboard .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #FF1F8F;
  }

  .cps-dashboard .chart-footer-note {
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-soft);
    text-align: right;
  }

  .cps-dashboard .table-empty {
    font-size: 12px;
    color: var(--text-muted);
    padding: 14px 8px;
  }

  .cps-dashboard .table-row-change .pct.is-negative {
    color: #dc2626;
  }
  .cps-dashboard .table-row-change .pct.is-positive {
    color: #16a34a;
  }
  .cps-dashboard .chart-select select option {
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    background: #ffffff;
    padding: 6px 8px;
  }
  .cps-dashboard .chart-select select option:checked {
    background: #e0e7ff;
    color: #1e3a8a;
    font-weight: 600;
  }
.cps-dashboard svg defs linearGradient stop:first-child {
  stop-color: #ff1f8f !important;
  stop-opacity: 0.25 !important;
}

.cps-dashboard svg defs linearGradient stop:last-child {
  stop-color: #ffb6d9 !important;
  stop-opacity: 0 !important;
}

/* Target vào gradient bên trong SVG được plugin tạo ra */
.cps-dashboard svg linearGradient stop:first-child {
  stop-color: #ff1f8f !important; /* hồng đậm */
  stop-opacity: 0.35 !important;
}

.cps-dashboard svg linearGradient stop:last-child {
  stop-color: #ffd6ec !important; /* hồng nhạt */
  stop-opacity: 0.05 !important;
}
