@media (min-width: 1200px) {  .container { max-width: 95%; }  }
@media (max-width: 600px) {
    .cashflow { font-size: 0.7rem; }
}
.navbar { padding:0;}
.text-warning { color: orange !important; }

.one { border:1px solid #000; width:10%;display:block;float:left; text-align:center; }
.oneStock { border:1px solid #000; width:16.5%;display:block;float:left; text-align:center; }
.clear{clear:both;}

.box { width:3px; margin-right:1px; height:5px; margin-bottom:3px; }
.boxBig { width:20px; margin-right:1px; height:5px; margin-bottom:3px; font-size: 8px; text-align: center;}

#portfolioDashboard { zoom:0.85 }
#portfolioDashboard th { color:#fff; background-color:#666;}

#tradingview { width:100%; height:700px; border:none; ; }

#gobacklink { display:block; position:absolute; top:22px; right:0px; margin-right:20px; background: #3490dc; color:#fff; padding: 0 10px; z-index: 1000}
.stocksTable { margin-top:10px; }
.stocksTable a { color:black; border-bottom: 1px dashed #888; text-decoration: none; }
.chartContainer .selected, .selectedHint { border-left:2px solid #0033cc; padding-left:5px; }
.col-history { background-color:#ddd;}

.bear { background-color:red; color:#fff; }
.bull { background-color: green; color:#fff; }

.cashflow table { width:100%; }
.cashflow table.disabled tr { background: lightgrey; }
.cashflow .title { color:white; background: dimgray; text-align: center; padding: 0.25rem; margin:0.25rem 0;}

.badge-priority { background-color: blue; color: #fff; font-weight: bold; border-radius: 3px; padding: 1px 4px; font-size: 0.8em; }

/* Swap Screener shared */
.sw-table      { width: 100%; }
.sw-meta       { font-size: 0.85em; }
.sw-cell       { font-size: 0.85em; }
.sw-cell-sm    { font-size: 0.80em; }
.sw-sub-value  { font-size: 0.9em; }
.sw-hash       { font-size: 0.78em; color: #888; }
.sw-db-link    { opacity: 0.6; }
.sw-db-link:hover { opacity: 1; color: #6c757d; text-decoration: none; }
.sw-pct-badge  { color: #fff; }
.sw-rate-input     { width: 72px; }
.sw-amount-input   { width: 120px; }
.sw-select-red     { color: red; }
.sw-debit-input    { width: 80px; color: #28a745; font-weight: bold; border: 1px solid #28a745; background: transparent; padding: 0 2px; font-size: inherit; text-align: center; }
.sw-tabnav { background: #f8f9fa; border-bottom: 1px solid #dee2e6; margin-bottom: 1rem; margin-top: 1rem; }
.sw-wide    { margin-left: -15px; margin-right: -15px; padding-left: 4px; padding-right: 4px; }
.sw-tabnav .nav-link { color: #495057; padding: 6px 14px; font-size: 0.9em; border-radius: 4px 4px 0 0; }
.sw-tabnav .nav-link:hover { color: #007bff; background: #fff; }
.sw-tabnav .nav-link.active { color: #212529; background: #fff; border: 1px solid #dee2e6; border-bottom-color: #fff; font-weight: 600; }
.sw-row        { cursor: pointer; }
.sw-row-selected { background-color: #fff3ee !important; outline: 2px solid #ffd1b7; }
.sw-ytm        { cursor: help; border-bottom: 1px dotted #888; }

/* Trends page — signal badges */
.sw-signal         { display:inline-block; padding:1px 7px; border-radius:3px; font-size:0.82em; font-weight:600; white-space:nowrap; }
.sw-signal-buy     { background:#fde68a; color:#78350f; }   /* amber solid  — Cumpără?        */
.sw-signal-rising  { background:#fef3c7; color:#92400e; }   /* amber light  — Cumpără curând? */
.sw-signal-sell    { background:#bfdbfe; color:#1e3a8a; }   /* blue solid   — Vinde?          */
.sw-signal-falling { background:#dbeafe; color:#1e40af; }   /* blue light   — Vinde curând?   */
.sw-signal-neutral { background:#f3f4f6; color:#9ca3af; }   /* gray         — —               */

/* Swap Trends — layout */
.tr-meta         { font-size:0.9em; }
.tr-section-note { font-size:0.8em; }
.tr-scroll       { overflow-x:auto; }

/* Swap Trends — legend */
.tr-legend       { background:#f8f9fa; border:1px solid #dee2e6; border-radius:4px; padding:10px 14px; font-size:0.82em; line-height:1.65; }
.tr-legend-grid  { display:grid; grid-template-columns:1fr 1fr; gap:0 28px; }
.tr-ex-up        { color:#b45309; }   /* amber-700 — matches heatmap amber (yield ↑) */
.tr-ex-down      { color:#1d4ed8; }   /* blue-700 — matches heatmap blue (yield ↓) */
.tr-swatch-blue  { background:rgba(13,110,253,0.6); color:#fff; padding:0 5px; border-radius:2px; }
.tr-swatch-amber { background:rgba(255,152,0,0.75); color:#333; padding:0 5px; border-radius:2px; }

/* Swap Trends — tables */
.tr-table              { font-size:0.8em; border-collapse:collapse; white-space:nowrap; }
.tr-table th,
.tr-table td           { padding:2px 6px; }
.tr-table .tr-pad8     { padding:2px 8px; }
.tr-table .tr-pad4     { padding:2px 4px; }
.tr-table thead tr     { border-bottom:2px solid #dee2e6; font-weight:600; }
.tr-table tbody tr     { border-bottom:1px solid #f0f0f0; }
.tr-heatmap-table      { font-size:0.75em; }
.tr-seg-table          { font-size:0.8em; width:auto; }
.tr-bold               { font-weight:600; }
.tr-mono               { font-family:monospace; font-size:0.9em; color:#555; }
.tr-empty              { color:#ccc; }

/* Swap Trends — spread quality */
.tr-sp-ok   { color:#198754; }
.tr-sp-warn { color:#fd7e14; }
.tr-sp-bad  { color:#dc3545; font-weight:600; }

/* Swap Trends — row backgrounds */
.tr-row-cheap     { background:#d1fae5; }
.tr-row-expensive { background:#fde8e8; }

/* Swap Trends — heatmap cell colors (intensity via CSS var --tr-i) */
.tr-amber { background-color:rgba(255,152,0,var(--tr-i,0.5)); }
.tr-blue  { background-color:rgba(13,110,253,var(--tr-i,0.5)); color:#fff; }

/* Swap Trends — column widths */
.tr-col-isin    { min-width:115px; }
.tr-col-mat     { min-width:80px; }
.tr-col-cup     { min-width:38px; }
.tr-col-yield   { min-width:64px; }
.tr-col-bp      { min-width:70px; }
.tr-col-sp      { min-width:58px; }
.tr-col-sig     { min-width:130px; }
.tr-col-day     { min-width:44px; }
.tr-col-seg     { min-width:90px; }
.tr-col-cnt     { min-width:28px; }
.tr-col-delta   { min-width:64px; }
.tr-col-seg-day { min-width:54px; }
