﻿/***********/
/* General */
/********** */

h1 {
    font: bold 18px/1 Verdana, Arial, sans-serif;
    color: navy;
}

.font-size-0875 {
    font-size: .875rem !important;
}

.text-red {
    color: red !important;
}

.text-lightgray {
    color: lightgray !important;
}

.text-gray {
    color: gray;
}

.text-navy {
    color: navy !important;
}

.bg-red {
    background-color: red;
}

.bg-orange {
    background-color: orange;
}

.bg-yellow {
    background-color: yellow;
}

.bg-greenyellow {
    background-color: greenyellow;
}

.bg-green {
    background-color: green;
}

.bg-gray {
    background-color: gainsboro;
}

.hidden {
    display: none;
}

.gradeLamp {
    height: 11px;
    width: 11px;
    margin-right: 7px;
    border-radius: 50%;
    display: inline-block;
}

.lamp-dash-circle {
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: -1px;
}

.grade-value-pill {
    display: inline-block;
    border: none;
    border-radius: 10px;
    font-size: .8rem;
    width: 2rem;
    text-align: center
}

.label-to-button {
    border-style: solid;
    border-width: 2px;
    cursor: pointer;
}



/***********/
/* Reports */
/***********/
div.report {
    margin: 0 0 30px 0;
    width: 210mm; /* A4 width */
    font: 14px/1.5 Calibri, Arial, sans-serif;
    color: black;
}

.report-landscape {
    width: 297mm; /* A4 width landscape */
}

.report-header {
    font: bold 22px Ubuntu, sans-serif;
    color: navy;
}

.report-header-as-link {
    font: bold 22px Ubuntu, sans-serif;
    color: navy;
    border: none;
    padding: 0;
    text-decoration: none;
    background-color: white;
}

.report-section-title {
    color: navy;
    margin-bottom: .5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.report-sub-section-title {
    color: navy;
    font-size: 0.95rem;
    font-weight: 700;
}

.report-table-title {
    font: bold 14px/1.4 Verdana, Arial, sans-serif;
    padding-bottom: 10px;
    color: navy;
}

.report-no-data-message {
    font-size: 1.2rem;
    font-weight: 700;
}

.reportitem-holding-name {
    font: bold 16px/1.4 Calibri, Arial, sans-serif;
    color: navy;
}

.reportitem-holding-info {
    font: bold 14px/1.4 Calibri, Arial, sans-serif;
    color: navy;
}

table {
    width: 100%;
    table-layout: fixed;
    border: 0;
    border-spacing: 0;
}

td, th {
    padding: 2px;
    font-weight: inherit;
}

table .table-bottom-border {
    border-bottom: solid;
    border-bottom-width: thin;
}

table .table-bottom-border-thick {
    border-bottom: solid;
    border-bottom-width: 2px;
}

table .table-top-border {
    border-top: solid;
    border-top-width: thin;
}

table .table-text-as-link {
    border: none;
    text-decoration: none;
    background-color: white;
    padding-left: 0;
    padding-right: 0;
}

table .table-header-as-link {
    border: none;
    text-decoration: none;
    background-color: white;
    padding-left: 0;
    padding-right: 0;
    font-weight: bold;
}

.stock-grade-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
}

.stock-grade-text {
    margin: 0; /* Remove default paragraph margin */
    text-align: center;
    font-size: 42px;
}

.grade-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Tooltip text */
.grade-tooltip-text {
    visibility: hidden; /* Hidden by default */
    top: -5px;
    right: 20px;
    width: 70px;
    background-color: white;
    color: black;
    text-align: center;
    border: 1px solid black;
    border-radius: 6px;
    position: absolute;
    z-index: 1; /* Ensure tooltip is displayed above content */
}

/* Show the tooltip text on hover */
.grade-tooltip:hover .grade-tooltip-text {
    visibility: visible;
}

.report-page-break {
    page-break-after: always; /* fallback */
    break-after: page;
}

.caret {
    border-top: 10px solid navy;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    height: 0px;
    width: 0px;
    transition: 0.5s ease all;
    margin-top: 4px;
}

/* Dummy class and action for rotating caret when clicking to show/hide report description */
.rotate-description-caret {
}

button[aria-expanded='false'] > .rotate-description-caret {
    transform: rotate(-180deg);
}

/**********/
/* Charts */
/**********/

.chart-container-canvas, .chart-container-img {
    width: 100%;
    border: 0.5px solid lightgrey;
    margin-top: 10px;
}

.chart-padding-line {
    padding: 5px 10px 5px 10px;
}

.chart-padding-bar {
    padding: 5px 15px 5px 10px;
}

.chart-padding-recommendation {
    padding: 5px 15px 10px 10px;
}


.chart-container-img {
    display: none;
}

/*************/
/* Main menu */
/*************/

.sbb-menu-item.dropdown-toggle::after {
    display: none;
}

.main-menu-item .dropdown-header {
    padding: .2rem .5rem;
    margin: .25rem 0;
    font-weight: bold;
}

.main-menu-item-icon {
    width: 1.8rem;
    height: 1.8rem;
    fill: #5F5F5F;
}

.dropdown-item > .main-menu-item-icon {
    width: 1rem;
    height: 1rem;
}

.main-menu-group {
    border-right-style: solid;
}

.dropdown-item-checked::before {
    position: absolute;
    left: .4rem;
    content: '✓';
    font-weight: 600;
}

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
    }

    .dropdown-submenu.show > a:after {
        text-decoration: underline;
        transform: rotate(-90deg);
    }

.main-menu-stock-name-link {
    font-weight: 700;
    color: navy;
    background-color: #f7f7f7;
    border: none;
    padding: 0;
    text-decoration: none;
}

/***********/
/* Dialogs */
/***********/

.stock-info-header {
    color: navy;
    font-size: 1.2rem;
    font-weight: 700;
}

.dialog-section-title {
    color: navy;
    margin-bottom: .5rem;
    font-size: 1rem;
    font-weight: 700;
}

.grade-parameter-header {
    display: flex;
    height: 1.45rem;
    justify-content: center;
    border: 1px solid;
    border-color: gainsboro;
    background-color: whitesmoke;
}

.grade-color-header {
    display: flex;
    height: 1.45rem;
    justify-content: center;
    padding-top: 1px;
}

.spinner-transparent {
    color: transparent;
}

.spinner-border-overrides {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 1.5rem;
    height: 1.5rem;
    border-width: .3em;
}

/************/
/* Tooltips */
/************/

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Show the tooltip text on hover */
.tooltip-container:hover .tooltip-config-share-valuation {
    visibility: visible;
}

/* Show the tooltip text on hover */
.tooltip-container:hover .tooltip-config-average-profit {
    visibility: visible;
}

/* Show the tooltip text on hover */
.tooltip-container:hover .tooltip-config-usd-eur-rates {
    visibility: visible;
}

.info-pill {
    background-color: gainsboro;
    height: 16px;
    width: 16px;
    margin-right: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* Tooltip config */
.tooltip-config-share-valuation {
    font-size: 14px;
    font-weight: 400;
    visibility: hidden; /* Hidden by default */
    top: -30px;
    left: -120px;
    width: 350px;
    background-color: white;
    color: black;
    text-align: center;
    border: 1px solid black;
    border-radius: 6px;
    position: absolute;
    z-index: 1; /* Ensure tooltip is displayed above content */
}

.tooltip-config-average-profit {
    font-size: 14px;
    font-weight: 400;
    visibility: hidden; 
    top: -30px;
    left: 30px;
    width: 250px;
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 6px;
    position: absolute;
    z-index: 1; 
}

.tooltip-config-usd-eur-rates {
    font-size: 14px;
    font-weight: 400;
    visibility: hidden;
    top: -30px;
    left: 35px;
    width: 200px;
    background-color: white;
    color: black;
    text-align: left;
    border: 1px solid black;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
}

/* ************************** */
/* Print media specifications */
/* ************************** */

@media print {

    .print-display-none {
        display: none;
    }

    div.report {
        width: 100%;
        font: 12pt/1.5 Calibri, Arial, sans-serif;
        margin: 0;
    }

    div.main-menu {
        display: none;
    }

    div.sidebar {
        display: none;
    }

    div.print-page-reports {
        display: block;
        padding: 0;
        width: 100%; /*100vw;*/
        z-index: 1050; /* to show it above modal background */
    }
}

