/* Investments CSS */

.mv-chart-wrapper {
    width: 100%;
    height: 170px;
}

.mv-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width:768px) {
    .mv-chart-wrapper {
        height: 130px;
    }
}

.portfolio-mini .label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.portfolio-mini .value {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-link-wrap {
    color: inherit;
    text-decoration: none;
}

.card-link-wrap .hover-card {
    transition: box-shadow .15s ease, transform .15s ease;
}

.card-link-wrap .hover-card:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, .09);
    transform: translateY(-1px);
}

/* Symbol details drawer */
.symbol-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .35);
    z-index: 1040;
}

.symbol-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    max-width: 380px;
    width: 100%;
    background: #ffffff;
    box-shadow: -12px 0 30px rgba(15, 23, 42, .20);
    z-index: 1041;
    transform: translateX(100%);
    transition: transform .18s ease-out;
    display: flex;
    flex-direction: column;
}

.symbol-drawer-open {
    transform: translateX(0);
}

.symbol-drawer-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.symbol-drawer-body {
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
}

.symbol-drawer-close {
    border: none;
    background: transparent;
    padding: .25rem .5rem;
    font-size: 1.1rem;
    line-height: 1;
}

.symbol-meta-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}

.symbol-meta-value {
    font-size: .95rem;
}

tr.js-symbol-row {
    cursor: pointer;
}

tr.js-symbol-row:hover {
    background-color: #f9fafb;
}

.inv-symbol-link {
    text-decoration: none;
    color: inherit;
}

.inv-symbol-link:hover {
    text-decoration: underline;
}

/* --- Compact stacked bar (storage-style) --- */

.usage-bar {
    margin: 0.25rem 0 0.75rem;
}

.usage-bar-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    display: flex;
}

.usage-bar-segment {
    height: 100%;
    display: block;
}

.usage-bar-segment.seg-domestic {
    background: #2563eb;
}

/* blue */
.usage-bar-segment.seg-international {
    background: #60a5fa;
}

/* light blue */
.usage-bar-segment.seg-mixed {
    background: #22c55e;
}

/* green */
.usage-bar-segment.seg-other {
    background: #a5b4fc;
}

/* indigo-ish */
.usage-bar-segment.seg-unclassified {
    background: #e5e7eb;
}

/* grey */

.usage-bar-segment.seg-taxable {
    background: #2563eb;
}

.usage-bar-segment.seg-taxadv {
    background: #22c55e;
}

.usage-bar-segment.seg-taxunknown {
    background: #e5e7eb;
}

.usage-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    font-size: .875rem;
}

.usage-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.usage-dot {
    width: 10px;
    height: 10px;
    border-radius: 4px;
    display: inline-block;
}

.usage-dot.dot-domestic {
    background: #2563eb;
}

.usage-dot.dot-international {
    background: #60a5fa;
}

.usage-dot.dot-mixed {
    background: #22c55e;
}

.usage-dot.dot-other {
    background: #a5b4fc;
}

.usage-dot.dot-unclassified {
    background: #e5e7eb;
    border: 1px solid #d1d5db;
}

.usage-dot.dot-taxable {
    background: #2563eb;
}

.usage-dot.dot-taxadv {
    background: #22c55e;
}

.usage-dot.dot-taxunknown {
    background: #e5e7eb;
    border: 1px solid #d1d5db;
}

.usage-legend-label {
    color: #4b5563;
}

.usage-legend-value {
    margin-left: .25rem;
    font-variant-numeric: tabular-nums;
    color: #111827;
}

.trade-table-summary {
    flex: 1 0 0;
}
.trade-table-action {
    flex: 0 0 auto;
    width: auto;
}

.trade-table-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* quote change colors */

/*Styling for custom multicolored button starts */
.custom-control {
    position: relative;
    display: inline-block;
    padding-left: 1rem;
    cursor: pointer;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-indicator {
    position: absolute;
    display: block;
    border-radius: 100%;
    height: 12px;
    width: 12px;
    top: 5px;
    left: 0px;
    z-index: 0;
    transition: border 0.25s linear;
    -webkit-transition: border 0.25s linear;
}

.indicator-src-info {
    border: 3px solid #0074d9;
}

.indicator-src-danger {
    border: 3px solid #FF0000;
}


/* Alpha Vantage – primary blue */
.indicator-src-av {
    border: 3px solid #0d6efd;
}

/* Finnhub – teal-ish success tone */
.indicator-src-finnhub {
    border: 3px solid #20c997;
}

/* Yahoo – purple accent */
.indicator-src-yahoo {
    border: 3px solid #6f42c1;
}

/* Cache – neutral gray */
.indicator-src-cache {
    border: 3px solid #6c757d;
}

/* Basis – warning-ish amber */
.indicator-src-basis {
    border: 3px solid #ffc107;
}

/* Failed – strong danger red */
.indicator-src-failed {
    border: 3px solid #dc3545;
}

.indicator-src-unknown {
    border: 3px solid #9ca3af;
}

/* */

.custom-radio .custom-control-indicator {
    border-radius: 50% !important;
}
