﻿/***********/
/* 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;
}

.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;
}

.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;
}

/***********/
/* Reports */
/***********/

div.report {
    margin: 0 0 30px 0;
    width: 210mm; /* A4 width */
    font: 14px/1.5 Calibri, Arial, sans-serif;
    color: black;
}

.report-title {
    font: bold 16px/1.4 Verdana, Arial, sans-serif;
    color: navy;
}

.report-header-stock-name-link {
    font-size: 1.4rem;
    font-weight: 700;
    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-top: 10px;
    color: navy;
}

.report-no-data-message {
    font-size: 1.2rem;
    font-weight: 700;
}

.reportitem-holding-name {
    font: bold 15px/1.4 Calibri, Arial, sans-serif;
    padding-top: 10px;
}

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;
}

.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;
}

/**********/
/* 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: black;
    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;
}

/* ************************** */
/* Print media specifications */
/* ************************** */

@media print {

    .print-display-none {
        display: none;
    }

    div.print-page-reports {
        display: block;
        padding: 0;
        width: 100%; /*100vw;*/
        z-index: 1050; /* to show it above modal background */
    }
}

