/* ========================================
   FONT DEFINITIONS
   ======================================== */

/* Avenir-Light - Light weight font */
@font-face {
  font-family: 'Avenir-Light';
  src: url('/static/fonts/Avenir-Light.woff2') format('woff2'),
       url('/static/fonts/Avenir-Light.woff') format('woff');
  font-weight: 300; /* Light weight */
  font-style: normal;
  font-display: swap;
}

/* AvenirNext - Main body font family */
@font-face {
  font-family: 'AvenirNext';
  src: url('/static/fonts/AvenirNext-Regular.woff2') format('woff2'),
       url('/static/fonts/AvenirNext-Regular.woff') format('woff');
  font-weight: 400; /* Regular weight */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AvenirNext';
  src: url('/static/fonts/AvenirNext-Medium.woff') format('woff');
  font-weight: 500; /* Medium weight */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AvenirNext';
  src: url('/static/fonts/AvenirNext-DemiBold.woff2') format('woff2');
  font-weight: 600; /* DemiBold weight */
  font-style: normal;
  font-display: swap;
}

/* Didot - Heading font family */
@font-face {
  font-family: 'Didot';
  src: url('/static/fonts/didot-htf-l06-light.woff') format('woff');
  font-weight: 300; /* Light weight */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Didot';
  src: url('/static/fonts/Didot-Bold.woff2') format('woff2'),
       url('/static/fonts/Didot-Bold.woff') format('woff');
  font-weight: 700; /* Bold weight */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Didot-Bold';
  src: url('/static/fonts/Didot-Bold.woff2') format('woff2'),
       url('/static/fonts/Didot-Bold.woff') format('woff');
  font-weight: 700; /* Bold weight */
  font-style: normal;
  font-display: swap;
}

/* ========================================
   BASE STYLES
   ======================================== */

body {
  background-color: #eae8e5;
  font-family: 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif; /* Main body font */
  color: #222;
  margin: 0;
  padding: 0;
}

/* ========================================
   HEADING STYLES
   ======================================== */

/* All headings use Didot font */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Didot', 'Times New Roman', serif; /* Heading font */
  font-weight: 700; /* Bold weight */
  text-transform: uppercase;
}

/* Override text-transform for navbar links */
.navbar a {
  text-transform: none;
}

a { 
  text-decoration: none; 
  color: #333; 
}

a:hover {
  color: #818181;
}

/* ========================================
   NAVIGATION STYLING
   ======================================== */

.navbar {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar a {
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-size: 0.4em; /* Very small font size for navbar links */
}

.navbar a:hover {
  background-color: #f5f5f5;
}

.navbar a.active {
  background-color: #e8e8e8;
  color: #333;
}

/* ========================================
   LOGIN PAGE STYLING
   ======================================== */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f9f8f6 0%, #e8e6e3 100%);
}

.login-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2E8B57;
  font-family: 'Didot', 'Times New Roman', serif; /* Heading font */
  font-weight: 700; /* Bold weight */
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px; /* Smaller font size */
  font-family: 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif; /* AvenirNext font */
  font-weight: 400; /* Regular weight */
  box-sizing: border-box;
}

.login-form button {
  width: 100%;
  padding: 12px;
  background-color: #2E8B57;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px; /* Smaller font size */
  font-family: 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif; /* AvenirNext font */
  font-weight: 500; /* Medium weight */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #b6b6b6;
}

/* ========================================
   PAGE CONTENT STYLING
   ======================================== */

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
}

.page-title {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 90px;
  color: #1c1c1c;
  font-size: 2.8em; /* Larger heading size */
  font-family: 'Didot', 'Times New Roman', serif; /* Heading font */
  font-weight: 800; /*Bold weight */
}


/* ========================================
   CARD STYLING
   ======================================== */

.summary-card {
  text-align: center;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.summary-card h3 {
  margin: 0;
  font-size: 2.2em; /* Larger heading size */
  font-family: 'Didot', 'AvenirNext', serif;
  font-weight: 700; /* Bold weight */
}

.summary-card p {
  margin: 5px 0 0 0;
  color: #666;
  font-size: 0.9em; /* Small text size */
}

/* Crypto page — Holdings / Allocation: transparent, no white fills */
.crypto-section,
.crypto-section table,
.crypto-section thead,
.crypto-section tbody,
.crypto-section tr,
.crypto-section th,
.crypto-section td,
.crypto-section .dash-graph,
.crypto-section .js-plotly-plot,
.crypto-section .plot-container,
.crypto-section .svg-container,
.crypto-chart,
.crypto-chart .dash-graph,
.crypto-chart .js-plotly-plot,
.crypto-chart .plot-container,
.crypto-chart .svg-container {
  background: transparent !important;
  background-color: transparent !important;
}

.crypto-section .main-svg,
.crypto-chart .main-svg {
  background: transparent !important;
}

/* Plotly paints a white <rect class="bg"> — kill it */
.crypto-section rect.bg,
.crypto-chart rect.bg,
.crypto-section .bg,
.crypto-chart .bg {
  fill: transparent !important;
}

/* Crypto holdings — headers share alignment with cells */
.crypto-holdings {
  table-layout: fixed;
  width: 100%;
}

.crypto-holdings th,
.crypto-holdings td {
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crypto-holdings td:first-child,
.crypto-holdings th:first-child {
  white-space: normal; /* allow asset subtitle to wrap */
}

.crypto-holdings th {
  text-align: inherit; /* honour inline left/right from layout */
  font-family: 'AvenirNext', Helvetica, sans-serif !important;
  font-weight: 600 !important;
}

/* Portfolio 2 — transparent sections / charts (match Crypto) */
.portfolio2-section,
.portfolio2-section table,
.portfolio2-section thead,
.portfolio2-section tbody,
.portfolio2-section tr,
.portfolio2-section th,
.portfolio2-section td,
.portfolio2-section .dash-graph,
.portfolio2-section .js-plotly-plot,
.portfolio2-section .plot-container,
.portfolio2-section .svg-container,
.portfolio2-chart,
.portfolio2-chart .dash-graph,
.portfolio2-chart .js-plotly-plot,
.portfolio2-chart .plot-container,
.portfolio2-chart .svg-container,
.distribution2-section,
.distribution2-section table,
.distribution2-section thead,
.distribution2-section tbody,
.distribution2-section tr,
.distribution2-section th,
.distribution2-section td,
.distribution2-section .dash-graph,
.distribution2-section .js-plotly-plot,
.distribution2-section .plot-container,
.distribution2-section .svg-container,
.distribution2-chart,
.distribution2-chart .dash-graph,
.distribution2-chart .js-plotly-plot,
.distribution2-chart .plot-container,
.distribution2-chart .svg-container,
.liabilities2-section,
.liabilities2-section table,
.liabilities2-section thead,
.liabilities2-section tbody,
.liabilities2-section tr,
.liabilities2-section th,
.liabilities2-section td,
.liabilities2-section .dash-graph,
.liabilities2-section .js-plotly-plot,
.liabilities2-section .plot-container,
.liabilities2-section .svg-container,
.liabilities2-chart,
.liabilities2-chart .dash-graph,
.liabilities2-chart .js-plotly-plot,
.liabilities2-chart .plot-container,
.liabilities2-chart .svg-container,
.assets2-section,
.assets2-section table,
.assets2-section thead,
.assets2-section tbody,
.assets2-section tr,
.assets2-section th,
.assets2-section td,
.assets2-section .dash-graph,
.assets2-section .js-plotly-plot,
.assets2-section .plot-container,
.assets2-section .svg-container,
.assets2-chart,
.assets2-chart .dash-graph,
.assets2-chart .js-plotly-plot,
.assets2-chart .plot-container,
.assets2-chart .svg-container,
.assets-section,
.assets-section table,
.assets-section thead,
.assets-section tbody,
.assets-section tr,
.assets-section th,
.assets-section td,
.assets-section .dash-graph,
.assets-section .js-plotly-plot,
.assets-section .plot-container,
.assets-section .svg-container,
.assets-chart,
.assets-chart .dash-graph,
.assets-chart .js-plotly-plot,
.assets-chart .plot-container,
.assets-chart .svg-container {
  background: transparent !important;
  background-color: transparent !important;
}

.assets-section .main-svg,
.assets-chart .main-svg {
  background: transparent !important;
}

.assets-section rect.bg,
.assets-chart rect.bg,
.assets-section .bg,
.assets-chart .bg {
  fill: transparent !important;
}

/* Fullscreen Assets chart — dim page behind; panel colour stays on the card */
@keyframes assets-chart-overlay-in {
  from { background-color: rgba(0, 0, 0, 0); }
  to   { background-color: rgba(0, 0, 0, 0.65); }
}

.assets-chart-expanded {
  background-color: rgba(0, 0, 0, 0.65) !important;
  animation: assets-chart-overlay-in 180ms ease-out;
}

.portfolio2-section .main-svg,
.portfolio2-chart .main-svg,
.distribution2-section .main-svg,
.distribution2-chart .main-svg,
.liabilities2-section .main-svg,
.liabilities2-chart .main-svg,
.assets2-section .main-svg,
.assets2-chart .main-svg {
  background: transparent !important;
}

.portfolio2-section rect.bg,
.portfolio2-chart rect.bg,
.portfolio2-section .bg,
.portfolio2-chart .bg,
.distribution2-section rect.bg,
.distribution2-chart rect.bg,
.distribution2-section .bg,
.distribution2-chart .bg,
.liabilities2-section rect.bg,
.liabilities2-chart rect.bg,
.liabilities2-section .bg,
.liabilities2-chart .bg,
.assets2-section rect.bg,
.assets2-chart rect.bg,
.assets2-section .bg,
.assets2-chart .bg {
  fill: transparent !important;
}

.portfolio2-table,
.distribution2-table,
.liabilities2-table,
.assets2-table,
.assets-table {
  table-layout: fixed;
  width: 100%;
}

.portfolio2-table th,
.portfolio2-table td,
.distribution2-table th,
.distribution2-table td,
.liabilities2-table th,
.liabilities2-table td,
.assets2-table th,
.assets2-table td,
.assets-table th,
.assets-table td {
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio2-table th,
.distribution2-table th,
.liabilities2-table th,
.assets2-table th,
.assets-table th {
  font-family: 'AvenirNext', Helvetica, sans-serif !important;
  font-weight: 600 !important;
}

/* Global table styling for html.Table elements */
table {
  font-size: 14px; /* Control font size for all tables */
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table th {
  background-color: #2E8B57;
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600; /* DemiBold weight for headers */
}

.data-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.data-table tr:hover {
  background-color: #f8f8f8;
}

/* ========================================
   CHART CONTAINER STYLING
   ======================================== */

.chart-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Plotly chart font styling */
.plotly-graph-div {
  font-family: 'Avenir-Light', 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.plotly-graph-div * {
  font-family: 'Avenir-Light', 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* More specific Plotly selectors */
div[class*="plotly"] {
  font-family: 'Avenir-Light', 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

div[class*="plotly"] * {
  font-family: 'Avenir-Light', 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* Target specific Plotly elements */
.gtitle, .xtitle, .ytitle, .legend, .g-xtitle, .g-ytitle {
  font-family: 'Avenir-Light', 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .page-content {
    padding: 10px;
  }
  
  .page-title {
    font-size: 2em; /* Smaller heading on mobile */
  }
  
  .summary-card {
    padding: 15px;
  }
  
  .summary-card h3 {
    font-size: 1.5em; /* Smaller card heading on mobile */
  }
  
  .navbar {
    flex-wrap: wrap;
  }
  
  .navbar a {
    padding: 8px 12px;
    font-size: 0.9em; /* Larger navbar text on mobile */
  }
}

/* ========================================
   LOADING AND ERROR STATES
   ======================================== */

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error {
  text-align: center;
  padding: 40px;
  color: #DC143C;
  background-color: #ffe6e6;
  border-radius: 8px;
  margin: 20px 0;
}

/* ========================================
   MONOSPACE NUMERIC STYLING
   ======================================== */

/* Special styling for numerical values in headings */
.monospace-numeric {
  font-family: 'monospace' !important; /* Monospace font for numbers */
  font-weight: 200 !important; /* Very light weight */
  letter-spacing: 0.011em; /* Slight letter spacing */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased !important;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #797979;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b8b8b8;
}

/* ========================================
   MODIFY ENTRIES EXPANDER STYLING
   ======================================== */

details summary {
  list-style: none;
  outline: none;
  transition: all 0.2s ease;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary:hover {
  background-color: #e0ddd8;
}

details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #e0ddd8;
}

details[open] summary::after {
  content: "▼";
  float: left;
  color: "#6c757d";
  font-size: 9px; /* Small arrow size */
  margin-right: 9px; /* Separation from text */
}

details summary::after {
  content: "▶";
  float: left;
  color: "#6c757d";
  font-size: 9px; /* Small arrow size */
  margin-right: 9px; /* Separation from text */
}

/* ========================================
   FORM STYLING FOR MODIFY ENTRIES
   ======================================== */

.modify-entries input, .modify-entries select {
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modify-entries input:focus, .modify-entries select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.modify-entries button {
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.modify-entries button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.modify-entries button:active {
  transform: translateY(0);
}

/* Hide login button when TOTP section is visible */
.totp-section-visible .login-button {
  display: none;
}

/* Ledger filters — quiet type matching date pickers */
.ledger-filters .ledger-search-input::placeholder {
  color: #9aa0a6;
  font-weight: 400;
  font-size: 12px;
}

/* Dash 3 / react-select control shell */
.ledger-filters .dash-dropdown > div,
.ledger-filters .Select-control,
.ledger-filters .Select--single > .Select-control {
  min-height: 34px !important;
  height: 34px !important;
  border-color: #ced4da !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #555 !important;
  box-shadow: none !important;
}

.ledger-filters .dash-dropdown [class*="-singleValue"],
.ledger-filters .dash-dropdown [class*="-placeholder"],
.ledger-filters .dash-dropdown [class*="-input"],
.ledger-filters .Select-value,
.ledger-filters .Select-placeholder,
.ledger-filters .Select-input {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #555 !important;
}

.ledger-filters .dash-dropdown [class*="-placeholder"],
.ledger-filters .Select-placeholder {
  color: #9aa0a6 !important;
}

.ledger-filters .dash-dropdown [class*="-ValueContainer"],
.ledger-filters .dash-dropdown [class*="-IndicatorsContainer"] {
  min-height: 32px !important;
  height: 32px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ledger-filters .dash-dropdown [class*="-menu"],
.ledger-filters .Select-menu-outer {
  font-size: 13px !important;
}

/* ========================================
   DROPDOWNS — Minimal / Linear (global)
   Soft menu, no blue selection, quiet hierarchy
   ======================================== */

/* Closed control — soft warm fill, kill Material blue focus ring */
.dash-dropdown [class*="-control"],
.Select-control {
  border-color: #c8c4be !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  min-height: 36px !important;
  font-family: "AvenirNext", "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #303030 !important;
  background-color: #f5f3f0 !important;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.dash-dropdown [class*="-control"]:hover,
.Select-control:hover {
  border-color: #b0aaa2 !important;
}

.dash-dropdown [class*="-control"][class*="-is-focused"],
.dash-dropdown [class*="-control"]:focus-within,
.Select.is-focused > .Select-control,
.Select.is-open > .Select-control {
  border-color: #9a948c !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04) !important;
}

.dash-dropdown [class*="-singleValue"],
.dash-dropdown [class*="-input"] input,
.Select-value-label,
.Select-input > input {
  color: #303030 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.dash-dropdown [class*="-placeholder"],
.Select-placeholder {
  color: #9a948c !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

.dash-dropdown [class*="-indicatorSeparator"] {
  display: none !important;
}

.dash-dropdown [class*="-indicatorContainer"] svg,
.Select-arrow {
  fill: #8a8680 !important;
  color: #8a8680 !important;
}

/* Open menu — soft warm panel (not hard white) */
.dash-dropdown [class*="-menu"],
.Select-menu-outer,
div[id^="react-select-"][id$="-listbox"],
[class*="-MenuList"] {
  background: #f0eeec !important;
  background-color: #f0eeec !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid #d4d1cc !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(40, 36, 30, 0.10) !important;
  margin-top: 6px !important;
  overflow: hidden !important;
  padding: 4px !important;
  z-index: 10000 !important;
}

.dash-dropdown [class*="-MenuList"],
.Select-menu {
  padding: 2px !important;
  max-height: 280px !important;
}

/* Options — fixed row height (VirtualizedSelect positions by optionHeight=35).
   Extra padding/min-height taller than that causes stacked/overlapping labels. */
.dash-dropdown [class*="-option"],
.Select-option,
[role="listbox"] [role="option"],
div[id^="react-select-"][id*="-option-"],
div[id$="-listbox"] [role="option"] {
  font-family: "AvenirNext", "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  color: #303030 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-radius: 4px !important;
  padding: 7px 10px !important;
  height: 35px !important;
  min-height: 35px !important;
  max-height: 35px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
}

/* Hover / keyboard focus — slightly deeper warm grey */
.dash-dropdown [class*="-option"][class*="-is-focused"],
.dash-dropdown [class*="-option"]:hover,
.Select-option.is-focused,
.Select-option:hover,
[role="listbox"] [role="option"]:hover,
[role="listbox"] [role="option"]:focus,
[role="listbox"] [role="option"][data-focus="true"],
[role="listbox"] [role="option"].focus-visible,
div[id^="react-select-"][id*="-option-"]:hover,
div[id^="react-select-"][id*="-option-"]:focus {
  background: #e6e3de !important;
  background-color: #e6e3de !important;
  background-image: none !important;
  color: #222 !important;
}

/* Selected — warm grey, never pale blue */
.dash-dropdown [class*="-option"][class*="-is-selected"],
.Select-option.is-selected,
[role="listbox"] [role="option"][aria-selected="true"],
div[id^="react-select-"][id*="-option-"][aria-selected="true"],
div[id$="-listbox"] [aria-selected="true"] {
  background: #ddd9d3 !important;
  background-color: #ddd9d3 !important;
  background-image: none !important;
  color: #222 !important;
  font-weight: 500 !important;
}

.dash-dropdown [class*="-option"][class*="-is-selected"][class*="-is-focused"],
.dash-dropdown [class*="-option"][class*="-is-selected"]:hover,
.Select-option.is-selected.is-focused,
.Select-option.is-selected:hover,
[role="listbox"] [role="option"][aria-selected="true"]:hover,
[role="listbox"] [role="option"][aria-selected="true"]:focus,
div[id^="react-select-"][id*="-option-"][aria-selected="true"]:hover {
  background: #e0ddd8 !important;
  background-color: #e0ddd8 !important;
  background-image: none !important;
  color: #1a1a1a !important;
}

/* Portal menus (rendered outside page-content) */
body > div[class*="-menu"],
#react-entry-point [class*="-menu"],
body [class*="-menu"] {
  background: #f0eeec !important;
  background-color: #f0eeec !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Dash VirtualizedSelect — row height MUST match optionHeight (default 35) */
.VirtualizedSelectOption {
  color: #303030 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  height: 35px !important;
  min-height: 35px !important;
  max-height: 35px !important;
  box-sizing: border-box !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
}
.VirtualizedSelectFocusedOption {
  background: #e6e3de !important;
  background-color: #e6e3de !important;
  color: #222 !important;
}
.VirtualizedSelectSelectedOption {
  background: #ddd9d3 !important;
  background-color: #ddd9d3 !important;
  color: #222 !important;
  font-weight: 500 !important;
}
.VirtualizedSelectSelectedOption.VirtualizedSelectFocusedOption {
  background: #d4d0c9 !important;
  background-color: #d4d0c9 !important;
}

/* Transaction ledger — scannable grid */
.ledger-table {
  table-layout: fixed;
  width: 100%;
}

.ledger-table th,
.ledger-table td {
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-table th {
  font-family: 'AvenirNext', Helvetica, sans-serif !important;
  font-weight: 600 !important;
}

.ledger-table .ledger-row:hover td {
  background-color: rgba(0, 0, 0, 0.018);
}

.ledger-table button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Transaction date picker — compact, align with form inputs */
.tx-date-picker,
.tx-date-picker .SingleDatePicker,
.tx-date-picker .SingleDatePickerInput,
.tx-date-picker .DateInput,
.tx-date-picker .DateInput_input {
  width: 100%;
}

.tx-date-picker .SingleDatePickerInput {
  border: none;
  background: transparent;
}

.tx-date-picker .DateInput {
  width: 100%;
}

.tx-date-picker .DateInput_input {
  font-size: 12px;
  font-weight: 400;
  font-family: 'AvenirNext', "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 6px 10px;
  height: 34px;
  line-height: 20px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: #222;
  background: #fff;
}

.tx-date-picker .DateInput_input__focused {
  border-color: #adb5bd;
  box-shadow: none;
  outline: none;
}

/* Slightly smaller calendar popup */
.DateRangePicker_picker,
.SingleDatePicker_picker {
  font-size: 12px;
}

.CalendarDay {
  font-size: 11px;
}

/* Plotly chart rollover — larger type + roomier padded box */
.js-plotly-plot .hoverlayer g.hovertext path {
  stroke: #222222 !important;
  stroke-width: 16px !important;
  stroke-opacity: 1 !important;
  stroke-linejoin: round !important;
  paint-order: stroke fill !important;
}

.js-plotly-plot .hoverlayer g.hovertext text {
  font-size: 14px !important;
  font-family: "AvenirNext", "Helvetica Neue", Helvetica, sans-serif !important;
}

.js-plotly-plot .hoverlayer g.hovertext tspan {
  font-size: 14px !important;
}
