/* ==========================================================================
   MD Viewer - Base Design System & CSS Variables (Obsidian Dark Theme)
   ========================================================================== */

:root {
  /* Core Color Tokens */
  --bg-app: #111115;
  --bg-sidebar: #18181c;
  --bg-active-tab: #1e1e24;
  --bg-inactive-tab: #141418;
  --bg-editor: var(--bg-inactive-tab);
  --bg-content: #1e1e24;
  --bg-card: #25252d;
  --bg-secondary: #1a1a22;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-active: rgba(124, 58, 237, 0.18);
  
  /* Borders & Dividers */
  --border-subtle: #292932;
  --border-strong: #383844;
  --border-focus: #7c3aed;
  
  /* Typography Colors */
  --text-normal: #dcddde;
  --text-muted: #8b8d98;
  --text-faint: #565866;
  --text-accent: #a78bfa;
  --text-accent-hover: #c4b5fd;
  --text-on-accent: #ffffff;
  
  /* Brand & Status Accents */
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --accent-rgb: 124, 58, 237;
  --color-blue: #3b82f6;
  --color-green: #10b981;
  --color-yellow: #f59e0b;
  --color-red: #ef4444;
  --color-purple: #8b5cf6;
  --color-cyan: #06b6d4;

  /* Fonts */
  --font-interface: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-code: "JetBrains Mono", "Fira Code", Consolas, Menlo, Monaco, monospace;
  
  /* Spacing & Sizes */
  --tab-height: 38px;
  --header-height: 42px;
  --status-height: 26px;
  --sidebar-min-width: 180px;
  --sidebar-default-width: 260px;
  --inspector-min-width: 200px;
  --inspector-default-width: 280px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-popup: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  
  /* Animation */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Reset & Global Elements */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-app);
  color: var(--text-normal);
  font-family: var(--font-interface);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Sleek Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

/* Base Form Elements */
button {
  font-family: inherit;
  font-size: 13px;
  color: var(--text-normal);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
}

button:hover {
  background: var(--bg-hover);
}

input[type="text"], input[type="search"] {
  font-family: inherit;
  font-size: 13px;
  background: var(--bg-sidebar);
  color: var(--text-normal);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  outline: none;
  transition: border-color var(--transition-fast);
}

input[type="text"]:focus, input[type="search"]:focus {
  border-color: var(--accent);
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-accent-hover);
  text-decoration: underline;
}

/* Icons styling helper */
.icon-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* File Tree Deep Link Icon (Left to the pencil on mouseover) */
.file-link-btn {
  background: transparent;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-left: auto;
}

.tree-file .file-edit-btn {
  margin-left: 0;
}

.tree-file:hover .file-link-btn {
  opacity: 0.85;
  pointer-events: auto;
}

.file-link-btn:hover {
  opacity: 1 !important;
  color: var(--text-accent) !important;
  background: rgba(124, 58, 237, 0.18) !important;
  transform: scale(1.1);
}

/* Tab Deep Link Icons (Right side of single tabs and drop-down group tabs) */
.tab-link-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  flex-shrink: 0;
  transition: all var(--transition-fast);
  cursor: pointer;
  opacity: 0.65;
}

.tab-link-icon:hover {
  opacity: 1;
  color: var(--text-accent);
  background: rgba(124, 58, 237, 0.2);
}

/* Popover Item Deep Link Icon (On mouse over of each md in tab group dropdown) */
.tab-group-popover-item .tab-item-link-icon {
  opacity: 0;
  pointer-events: none;
  margin-left: auto;
  margin-right: 2px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.tab-group-popover-item:hover .tab-item-link-icon {
  opacity: 0.75;
  pointer-events: auto;
}

.tab-group-popover-item .tab-item-link-icon:hover {
  opacity: 1 !important;
  color: var(--text-accent) !important;
  background: rgba(124, 58, 237, 0.2) !important;
  transform: scale(1.1);
}

/* Disconnected Vault & Folder Icon Alert (Red icon when refresh / permission needed) */
.vault-root-node.is-disconnected .vault-root-icon,
.vault-root-icon.is-disconnected,
.tree-node.tree-folder.is-disconnected .folder-icon-slot svg,
.folder-icon-slot.is-disconnected svg {
  color: var(--color-red) !important;
  stroke: var(--color-red) !important;
}

.vault-root-node.is-disconnected .vault-reconnect-badge,
.tree-folder.is-disconnected .vault-reconnect-badge {
  border-color: rgba(239, 68, 68, 0.45);
  color: var(--color-red);
}

.vault-root-node.is-disconnected .vault-reconnect-badge:hover,
.tree-folder.is-disconnected .vault-reconnect-badge:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--color-red);
  color: #ffffff;
}

/* Right-Click Context Menu (Solid, 100% opaque, non-transparent background) */
.mdv-context-menu {
  background: #18181f !important;
  background-color: #18181f !important;
  border: 1px solid #33333f !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

.mdv-context-menu-item {
  color: var(--text-normal) !important;
  background: transparent !important;
}

.mdv-context-menu-item:hover {
  background: rgba(124, 58, 237, 0.25) !important;
  color: #ffffff !important;
}

.mdv-context-menu-sep {
  height: 1px;
  background: #2a2a36 !important;
  margin: 3px 0;
}

.vault-trash-btn svg {
  pointer-events: none;
}

/* Settings modal tabs */
.settings-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle, #2a2a36);
  margin-bottom: 14px;
}

.settings-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 14px;
}

.settings-tab-btn:hover {
  color: var(--text-normal);
}

.settings-tab-btn.active {
  color: var(--text-normal);
  border-bottom-color: #7c3aed;
  font-weight: 600;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.active {
  display: block;
}

.settings-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-normal);
  cursor: pointer;
  margin-bottom: 6px;
}

.settings-checkbox-row.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Markdown Renderer Enhancements: Table Wrapper, Overflow, BiDi, Tasks, and Callouts */
.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.markdown-rendered p,
.markdown-rendered h1,
.markdown-rendered h2,
.markdown-rendered h3,
.markdown-rendered h4,
.markdown-rendered h5,
.markdown-rendered h6,
.markdown-rendered li,
.markdown-rendered blockquote {
  overflow-wrap: anywhere;
  word-break: normal;
  unicode-bidi: plaintext;
}

.markdown-rendered pre {
  overflow-x: auto;
  white-space: pre;
}

.internal-link.is-unresolved {
  color: var(--text-muted, #888);
  opacity: 0.75;
  border-bottom: 1px dashed var(--text-muted, #888);
  text-decoration: none;
}

/* ==========================================================================
   Obsidian Alternate Checkboxes / Custom Task States
   Matches Obsidian Minimal theme checklist styling:
   - [ ] Incomplete (subtle rounded square)
   - [/] In-progress (amber circle with top-left progress arc)
   - [x] Completed (purple rounded square with purple checkmark & strikethrough)
   - [-] Cancelled (grey rounded square with dash & strikethrough)
   - [>] Rescheduled (blue rounded square with right arrow)
   - [?] Question (amber circle with question mark)
   ========================================================================== */

#reading-view input.task-list-checkbox,
.markdown-rendered input.task-list-checkbox {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  margin-top: 3px !important;
  flex-shrink: 0 !important;
  position: relative !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: border-color var(--transition-fast), background var(--transition-fast) !important;
}

/* Suppress default ::after checkmark for all custom / alternate states */
#reading-view input.task-list-checkbox[data-task]::after,
.markdown-rendered input.task-list-checkbox[data-task]::after,
#reading-view input.task-list-checkbox[data-task]:checked::after,
.markdown-rendered input.task-list-checkbox[data-task]:checked::after {
  display: none !important;
}

/* 1. Incomplete / Todo: - [ ] */
#reading-view input.task-list-checkbox[data-task=" "],
.markdown-rendered input.task-list-checkbox[data-task=" "] {
  border: 1.5px solid var(--border-strong, #666) !important;
  border-radius: 4px !important;
  background: transparent !important;
}

/* 2. In-progress: - [/] */
#reading-view input.task-list-checkbox[data-task="/"],
.markdown-rendered input.task-list-checkbox[data-task="/"] {
  border: none !important;
  border-radius: 50% !important;
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none"><circle cx="8" cy="8" r="6.2" stroke="%23e59934" stroke-width="1.6" stroke-opacity="0.3"/><circle cx="8" cy="8" r="6.2" stroke="%23e59934" stroke-width="1.6" stroke-dasharray="19.5 19.5" stroke-linecap="round" transform="rotate(-135 8 8)"/></svg>') no-repeat center / 16px 16px !important;
}

/* 3. Completed: - [x] or - [X] */
#reading-view input.task-list-checkbox[data-task="x"],
#reading-view input.task-list-checkbox[data-task="X"],
.markdown-rendered input.task-list-checkbox[data-task="x"],
.markdown-rendered input.task-list-checkbox[data-task="X"] {
  border: 1.5px solid #a855f7 !important;
  border-radius: 4px !important;
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%23a855f7" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3.5 8 6.5 11 12.5 5"/></svg>') no-repeat center / 12px 12px !important;
}

#reading-view .task-list-item[data-task="x"] > .task-list-label,
#reading-view .task-list-item[data-task="X"] > .task-list-label,
.markdown-rendered .task-list-item[data-task="x"] > .task-list-label,
.markdown-rendered .task-list-item[data-task="X"] > .task-list-label {
  text-decoration: line-through !important;
  color: var(--text-muted, #888) !important;
  opacity: 0.65;
}

/* 4. Cancelled / Dropped: - [-] */
#reading-view input.task-list-checkbox[data-task="-"],
.markdown-rendered input.task-list-checkbox[data-task="-"] {
  border: 1.5px solid #9ca3af !important;
  border-radius: 4px !important;
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%239ca3af" stroke-width="2" stroke-linecap="round"><line x1="4" y1="8" x2="12" y2="8"/></svg>') no-repeat center / 10px 10px !important;
}

#reading-view .task-list-item[data-task="-"] > .task-list-label,
.markdown-rendered .task-list-item[data-task="-"] > .task-list-label {
  text-decoration: line-through !important;
  color: var(--text-muted, #888) !important;
  opacity: 0.65;
}

/* 5. Rescheduled / Deferred: - [>] */
#reading-view input.task-list-checkbox[data-task=">"],
.markdown-rendered input.task-list-checkbox[data-task=">"] {
  border: 1.5px solid #3b82f6 !important;
  border-radius: 4px !important;
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="3.5" y1="8" x2="11.5" y2="8"/><polyline points="8 4.5 11.5 8 8 11.5"/></svg>') no-repeat center / 12px 12px !important;
}

/* 6. Question / Review needed: - [?] */
#reading-view input.task-list-checkbox[data-task="?"],
.markdown-rendered input.task-list-checkbox[data-task="?"] {
  border: 1.5px solid #f59e0b !important;
  border-radius: 50% !important;
  background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="%23f59e0b"><path d="M8 3.5a2.5 2.5 0 0 0-2.5 2.5.6.6 0 1 0 1.2 0 1.3 1.3 0 1 1 2.2 1 .7.7 0 0 0-.4.65v.6a.6.6 0 1 0 1.2 0v-.35A2.5 2.5 0 0 0 8 3.5zm0 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5z"/></svg>') no-repeat center / 12px 12px !important;
}

.mermaid-error-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
  font-family: var(--font-monospace, monospace);
  font-size: 12px;
}

.pdf-embed-wrapper {
  width: 100%;
  height: 600px;
  border: 1px solid var(--border-color, #333);
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0;
}

.pdf-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.transclusion-error {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  padding: 8px 12px;
  margin: 8px 0;
  color: #ef4444;
  font-size: 13px;
  border-radius: 0 4px 4px 0;
}

/* ==========================================================================
   In-Editor Find Bar (Ctrl+F inside #md-editor-modal) & Shared Typography
   ========================================================================== */

#md-editor-modal .md-editor-box {
  position: relative;
}

.md-editor-body {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-editor);
  overflow: hidden;
}

#md-editor-modal .md-editor-textarea,
.md-editor-measure-mirror,
.md-editor-highlight-backdrop {
  font-family: var(--font-code);
  font-size: 13.5px;
  line-height: 1.65;
  padding: 16px 20px;
  border: none;
  box-sizing: border-box;
  tab-size: 4;
  letter-spacing: normal;
  font-variant-ligatures: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#md-editor-modal .md-editor-textarea {
  background: transparent;
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  height: 100%;
  margin: 0;
}

.md-editor-highlight-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  color: transparent;
  background: transparent;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.md-editor-highlight-backdrop mark.md-editor-find-hit {
  background-color: rgba(250, 204, 21, 0.32);
  color: transparent;
  border-radius: 2px;
  padding: 0;
}

.md-editor-highlight-backdrop mark.md-editor-find-current {
  background-color: rgba(249, 115, 22, 0.68);
  box-shadow: 0 0 0 1.5px #fb923c;
  color: transparent;
  border-radius: 2px;
}

.md-editor-find-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.md-editor-find-input {
  width: 240px;
  max-width: 45vw;
  padding: 4px 8px;
  font-size: 12.5px;
  background: var(--bg-app);
  color: var(--text-normal);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
}

.md-editor-find-input:focus {
  border-color: var(--accent);
}

.md-editor-find-bar.has-no-matches .md-editor-find-input {
  border-color: var(--color-red);
}

.md-editor-find-count {
  font-size: 11.5px;
  color: var(--text-muted);
  min-width: 56px;
  padding: 0 4px;
}

.md-editor-find-bar.has-no-matches .md-editor-find-count {
  color: var(--color-red);
}

/* ==========================================================================
   Sidebar Filter Input Wrapper & Clear (X) Button
   ========================================================================== */

.sidebar-filter-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

.sidebar-search-box .sidebar-filter-wrap input {
  width: 100%;
  padding-right: 28px;
}

.sidebar-filter-wrap input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.sidebar-filter-clear {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-filter-clear:hover {
  background: var(--bg-hover);
  color: var(--text-normal);
}

.sidebar-filter-clear .icon-svg {
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.sidebar-filter-clear.hidden {
  display: none;
}

/* ==========================================================================
   Apache ECharts Blocks, Canvases, Error Boxes & Print Rules
   ========================================================================== */

.chart-block {
  position: relative;
  width: 100%;
  margin: 18px 0;
  padding: 12px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

html.theme-light .chart-block,
html[data-theme="light"] .chart-block {
  background-color: #ffffff;
  border-color: #d0d7de;
}

.chart-canvas {
  width: 100%;
  min-height: 120px;
  max-height: 1200px;
  overflow: hidden;
}

.chart-canvas svg {
  display: block;
  max-width: 100%;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.chart-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-toolbar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.chart-variant-select {
  background-color: var(--bg-app);
  color: var(--text-normal);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12.5px;
  font-family: var(--font-interface);
  cursor: pointer;
  outline: none;
  min-width: 240px;
}

.chart-variant-select:focus {
  border-color: var(--accent);
}

html.theme-light .chart-variant-select,
html[data-theme="light"] .chart-variant-select {
  background-color: #f6f8fa;
  color: #1f2328;
  border-color: #d0d7de;
}

.chart-toolbar-btn {
  background-color: var(--bg-app);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-interface);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.chart-toolbar-btn:hover,
.chart-toolbar-btn.active {
  background-color: var(--bg-hover);
  color: var(--text-normal);
  border-color: var(--border-strong);
}

.chart-toolbar-btn.copied {
  color: var(--color-green);
  border-color: var(--color-green);
}

.chart-code-drawer {
  margin-top: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.chart-code-drawer.hidden {
  display: none;
}

.chart-code-pre {
  margin: 0 !important;
  padding: 10px 12px !important;
  max-height: 220px;
  overflow: auto;
  background-color: var(--bg-app) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-normal);
}

html.theme-light .chart-code-pre,
html[data-theme="light"] .chart-code-pre {
  background-color: #f6f8fa !important;
  border-color: #d0d7de !important;
  color: #1f2328;
}

.chart-error-box {
  padding: 12px 14px;
  border-left: 3px solid var(--color-red);
  background: rgba(239, 68, 68, 0.08);
  border-radius: var(--radius-sm);
  color: var(--text-normal);
  font-family: var(--font-interface);
}

.chart-error-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--color-red);
  margin-bottom: 6px;
}

.chart-error-source {
  margin: 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

@media print {
  .chart-toolbar,
  .chart-code-drawer {
    display: none !important;
  }

  .chart-block {
    page-break-inside: avoid;
    break-inside: avoid;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #d0d7de !important;
    box-shadow: none !important;
  }

  .chart-canvas,
  .chart-canvas svg {
    max-width: 100% !important;
    overflow: hidden !important;
  }
}


