﻿/***********/
/* General */
/********** */

h1 {
    font: bold 18px/1 Verdana, Arial, sans-serif;
    color: navy;
}

.font-size-smaller {
    font-size: smaller;
}

.text-red {
    color: red !important;
}

.text-lightgray {
    color: lightgray !important;
}

.text-navy {
    color: navy !important;
}

.background-lightgray {
    background-color: lightgray;
}

.background-gainsboro {
    background-color: gainsboro;
}

.print-display-none {
    display: initial;
}

.hidden {
    display: none;
}

/***********/
/* Reports */
/***********/

div.report {
    margin: 0 0 30px 0;
    width: 210mm; /* A4 width */
    font: 13px/1.5 Calibri, Arial, sans-serif;
    color: black;
}

table.scaled {
    transform: scale(0.94);
    transform-origin: left;
}

table.report {
    width: 100%;
    table-layout: fixed;
    border: 0;
    border-spacing: 0;
}

    table.report td,
    table.report th {
        padding: 2px;
        font-weight: inherit;
    }

    table.report tr.tr-underline {
        border-bottom: solid;
        border-bottom-width: thin;
    }

    table.report tr.tr-underline-thick {
        border-bottom: solid;
        border-bottom-width: 2px;
    }

    /*****************/
    /* Report header */
    /*****************/

    table.report col.user-report-header-column-width {
        width: 79mm;
    }

    table.report col.user-report-value-column-width {
        width: 26mm;
    }

    table.report col.report-title-column-width {
        width: 99mm;
    }

    table.report col.report-value-column-width {
        width: 22mm;
    }

    table.report col.report-dropdown-column-width {
        width: 44mm;
    }

    table.report col.report-spacer-column-width {
        width: 1mm;
    }

    table.report col.interim-title-column-width {
        width: 146mm;
    }

    table.report col.interim-value-column-width {
        width: 32mm;
    }

    table.report th.header-company {
        font: bold 16px/1.4 Verdana, Arial, sans-serif;
        color: navy;
    }

    table.report th.header-report-info {
        font: bold 14px/1.4 Verdana, Arial, sans-serif;
        color: navy;
    }

    table.report td.header-fiscal-info {
        font: 11px/1.4 Verdana, Arial, sans-serif;
        color: black;
    }

    table.report td.header-fiscal-year {
        font: bold 13px/1.4 Verdana, Arial, sans-serif;
        color: black;
    }

    table.report tr.header-box {
        font-weight: bold;
    }

    table.report tr.header-box-top td:nth-child(n+2):nth-child(-n+5) {
        border-top: thin solid black;
    }

    table.report tr.header-box-bottom td:nth-child(n+2):nth-child(-n+5) {
        border-bottom: thin solid black;
    }

    table.report tr.header-box td:nth-child(2) {
        border-left: thin solid black;
    }

    table.report tr.header-box td:nth-child(5) {
        border-right: thin solid black;
    }

    table.report tr.report-header-body-separator {
        height: 10px;
    }

    /*****************/
    /* Report body   */
    /*****************/

    .report-title {
        font: bold 16px/1.4 Verdana, Arial, sans-serif;
        color: navy;
    }

    .section-title-primary {
        font: bold 14px/1.4 Verdana, Arial, sans-serif;
        padding-top: 10px;
        color: navy;
    }

    table.report th.section-title-primary {
        font: bold 14px/1.4 Verdana, Arial, sans-serif;
        padding-top: 10px;
        color: navy;
    }

    table.report th.section-title-secondary {
        font: bold 13px/1.4 Calibri, Arial, sans-serif;
        padding-top: 4px;
    }

    table.report th.subtotal-primary {
        font: bold 14px/1.4 Verdana, Arial, sans-serif;
        color: navy;
    }

    table.report th.subtotal-secondary {
        font: bold 13px/1.4 Calibri, Arial, sans-serif;
        padding-left: 10px;
    }

    table.report th.subtotal-cashflow {
        font: bold 13px/1.4 Verdana, Arial, sans-serif;
        color: navy;
    }

    table.report th.indented {
        padding-left: 10px;
    }

    table.report td.border-excluding-right {
        border-style: solid;
        border-width: 0.5px 0px 0.5px 0.5px;
    }

    table.report td.border-top-bottom {
        border-style: solid;
        border-width: 0.5px 0px 0.5px 0px;
    }

    table.report td.border-excluding-left {
        border-style: solid;
        border-width: 0.5px 0.5px 0.5px 0px;
    }

.data-td {
    cursor: default;
}

div.input-visible,
div.input-hidden {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -0.5ch;
    left: 0.5ch;
    z-index: 1000;
}

.input-cell {
    width: 100%;
    text-align: right;
}

div.input-hidden {
    /*display:none;*/
    visibility: hidden;
}

.chart-container-canvas,
.chart-container-img {
    width: 100%;
    border: 0.5px solid lightgrey;
    margin-top: 20px;
    padding: 10px 10px 0 10px;
}

.chart-container-img {
    display: none;
}

span.valuation-multiplier {
    display: inline-block;
    width: 30px;
    margin-right: 5px;
    background-color: gainsboro;
    color: black;
    font-weight: bold;
    text-align: center;
}

span.expected-return {
    display: inline-block;
    width: 40px;
    margin-left: 5px;
    background-color: gainsboro;
    color: black;
    font-weight: bold;
    text-align: center;
}

.custom-select-xs {
    height: calc(0.9em + 0.5rem + 2px);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0.5rem;
    font-size: 0.8rem;
}

/*************/
/* 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);
    } 

/************************/
/* Print and PDF export */
/************************/

.print-page-main {
    width: 70%;
    display: table;
    padding-left: 5em;
}

div.print-page-settings {
    /*display: table-row;
            position: fixed;
            margin-left: 5em;
            */
    display: flex;
    /*width: 20%;*/
}

.print-page-cancel {
    height: 10px;
    display: table;
    text-align: left;
    position: fixed;
}

.print-page-select {
    border: 1px solid black;
    height: 300px;
    width: 250px;
    overflow-y: scroll;
    padding: 0;
}

.print-dialog-buttons-pane {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.selection-order-pill {
    display: inline-block;
    border: none;
    border-radius: 10px;
    background-color: lightgrey;
    font-size: .8rem;
    width: 1.8rem;
    margin-top: .2rem;
    margin-right: .5rem;
    text-align: center
}

@media screen {
    /*div .print-page-reports {*/
    /* display: none; */
    /*position: absolute;
        left: -9999px;
        top: -9999px;
    }*/

    div.print-page-reports {
        position: absolute;
        left: -9999px;
        top: -9999px;
    }

    .print-component {
        display: none;
    }
}

/***********/
/* Borders */
/***********/

.border-top-light {
    border-top: 1px solid;
    border-color: #343a40;
}

.border-top-strong {
    border-top: 2px solid;
    border-color: black;
}

.border-top-col-margin-left {
    margin-left: 15px
}

.border-top-col-margin-right {
    margin-right: 15px;
}

.border-top-col-margin-both {
    margin-left: 15px;
    margin-right: 15px;
}

/***********/
/* Dialogs */
/***********/

.input-control-overrides {
    width: 100%;
    border: 1px solid #ced4da;
}

.select-control-overrides {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
}

.form-control-sm-condensed {
    height: calc(1rem + 0.5rem + 2px);
    padding: 0 0.25rem;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: 0.2rem;
}

.input-element-shallow {
    height: calc(1.5em + .5rem + 2px);
    padding-top: .25rem;
    padding-bottom: .25rem;
    padding-left: .5rem;
    padding-right: .5rem;
}

.col-form-label-sm-condensed {
    padding-top: calc(0.25rem + 1px);
    padding-bottom: 0;
    margin-bottom: .25rem;
    font-size: 0.875rem;
    line-height: 1;
}

.col-sm-8-first-fifth {
    -ms-flex: 0 0 calc(13.333334% + 10px);
    flex: 0 0 calc(13.333334% + 10px);
    max-width: calc(13.333334% + 10px);
    position: relative;
    width: 100%;
    padding-right: 0px;
    padding-left: 15px;
}

.col-sm-8-last-fifth {
    -ms-flex: 0 0 calc(13.333334% + 10px);
    flex: 0 0 calc(13.333334% + 10px);
    max-width: calc(13.333334% + 10px);
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 0px;
}

.col-sm-8-four-fifths {
    -ms-flex: 0 0 calc(53.333334% - 10px);
    flex: 0 0 calc(53.333334% - 10px);
    max-width: calc(53.333334% - 10px);
    position: relative;
    width: 100%;
    padding-right: 0px;
    padding-left: 15px;
}

.condensed-bottom-margin {
    margin-bottom: 2px;
}

.dialog-info-box {
    border-style: solid;
    border-width: 1px;
    padding: 10px;
    margin: 15px 0px 15px 0px;
    font-size: 80%;
}

img.image-button-24px {
    width: 24px;
    height: 24px;
    cursor: default;
}

    img.image-button-32px:hover {
        cursor: pointer;
    }

img.image-button-32px {
    width: 32px;
    height: 32px;
    cursor: default;
}

    img.image-button-32px:hover {
        cursor: pointer;
    }

.image-button-tooltip {
    position: relative;
    display: inline-block;
}

    .image-button-tooltip .tooltiptext {
        visibility: hidden;
        font-size: 65%;
        width: 100px;
        bottom: 110%;
        left: 50%;
        margin-left: -50px;
        background-color: lightgray;
        color: black;
        text-align: center;
        border-radius: 6px;
        padding: 5px 0;
        position: absolute;
        z-index: 1;
    }

    .image-button-tooltip:hover .tooltiptext {
        visibility: visible;
        transition-delay: 0.5s;
    }

    .image-button-tooltip .tooltiptext::after {
        content: " ";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: lightgray transparent transparent transparent;
    }

.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;
}

.carousel-content {
    width: 95%;
    padding-right: 15px;
    padding-left: 7%;
    height: 490px;
    overflow-y: auto
}

.carousel-title {
    font: bold 20px/1 Verdana, Arial, sans-serif;
    color: navy;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

.carousel-section-title {
    font: bold 16px/1 Verdana, Arial, sans-serif;
    color: navy;
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.carousel-control-prev-overrides {
    width: 5%;
    justify-content: left;
}

.carousel-control-next-overrides {
    width: 5%;
    justify-content: right;
}

/* Bootstrap carousel control icons are white by default. This needs 
   to be inverted for quick help, which has white background. */
.carousel-control-icon-overrides {
    filter: invert(100%)
}

.compare-versions-content {
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.compare-versions-header-container {
    background-color: lightgrey;
    border: solid;
    border-width: thin;
    border-color: lightgrey;
    border-radius: 7px;
}

.compare-versions-header-item {
    display: flex;
    justify-content: center;
    font-weight: bold;
    color: navy;
}

.compare-versions-feature-item {
    border-bottom: solid;
    border-width: thin;
    border-color: #e6e6e6;
}

/**************/
/* Quick help */
/**************/

.quickhelp-section-margins {
    margin-top: 30px;
    margin-bottom: 30px
}

.quickhelp-section-box {
    border-width: 2px;
    border-style: solid;
    border-color: darkgray;
    padding: 0.5em;
    font-weight: bold;
    color: navy;
}


/***************/
/* Online help */
/***************/
.online-help-flex-page {
    display: flex;
    flex: 1 1 100vh;
    flex-direction: column;
    width: 100vw;
}

.online-help-header {
    display: flex;
    flex: 0 0 60px;
    min-height: 0;
    background: #2C5D88;
}

.online-help-body {
    display: flex;
    flex: 1 1 calc(100vh - 60px);
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.online-help-iframe {
    flex: 1 1 auto;
    border: 0;
}

.online-help-back-button {
    color: white;
    background: green;
    margin: 10px 20px 10px 20px;
}

    .online-help-back-button:hover {
        color: lightgrey;
    }

.online-help-header-label {
    font-size: 1.25em;
    color: white;
    margin-top: 15px;
}

/* ************************** */
/* Print media specifications */
/* ************************** */

@media print {

    .screen-display-none {
        display: initial;
    }

    .print-display-none {
        display: none;
    }

    div.sidebar {
        display: none;
    }

    div.report {
        width: 100%;
        font: 11pt/1.5 Calibri, Arial, sans-serif;
        margin: 0;
    }

    table.report th.header-company {
        font: bold 15pt/1.4 Verdana, Arial, sans-serif;
    }

    table.report th.header-report-info {
        font: bold 13pt/1.4 Verdana, Arial, sans-serif;
    }

    table.report td.header-fiscal-info {
        font: 10pt/1.5 Verdana, Arial, sans-serif;
    }

    table.report td.header-fiscal-year {
        font: bold 11pt/1.4 Verdana, Arial, sans-serif;
    }

    table.report th.section-title-primary {
        font: bold 13pt/1.4 Verdana, Arial, sans-serif;
    }

    table.report th.section-title-secondary {
        font: bold 11pt/1.4 Calibri, Arial, sans-serif;
    }

    table.report th.subtotal-primary {
        font: bold 13pt/1.4 Verdana, Arial, sans-serif;
    }

    table.report th.subtotal-secondary {
        font: bold 11pt/1.4 Calibri, Arial, sans-serif;
    }

    div.print-page-reports {
        display: block;
        padding: 0;
        width: 100%; /*100vw;*/
        z-index: 1050; /* to show it above modal background */
    }

    div.print-page-single-report {
        display: table;
        margin: auto;
        height: 100vh;
        width: 100%;
        page-break-after: always;
        justify-content: center;
    }

    .print-page-main {
        padding-left: unset;
        display: none;
    }

    div.main-menu,
    div.print-page-settings,
    .print-page-cancel {
        display: none;
    }

    div.print-footer {
        width: 100%;
        display: table-footer-group;
    }

    div.print-footer-part {
        width: 33%;
        display: inline-flex;
    }
    /*.chart-container {
                position: relative; 
                width: 80vw
            }*/
    .chart-container-canvas {
        /*display: none;*/
        /*visibility: hidden;*/
    }

    .chart-container-img {
        /*display: block;*/
    }
}
