﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: var(--primary);
}

button.btn-primary,
button.btn-primary.form-control {
    background-color: var(--primary);
    background-image: linear-gradient( 180deg, var(--primary-accent) 0%, var(--primary) 70% );
    color: #fff;
    border: none;
    border-radius: 7px;
    margin-top: 7px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 14px;
    height: 26px;
}

button.btn-outline.btn-primary,
button.btn-outline.btn-primary.form-control {
    background-color: #fff;
    background-image: none;
    color: var(--primary);
    border: var(--primary) solid;
    border-width: 1px;
    border-radius: 7px;
    margin-top: 7px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 14px;
    height: 26px;
}

button.btn-small {
    font-size: 10px;
    padding: 2px 10px;
    margin-top: 0;
}

button:disabled,
button.form-control:disabled {
    opacity: 0.3;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.profile-block {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: normal;
    margin-right: 10px;
}

    .profile-block div:first-of-type {
        font-size: 14px;
    }

    .profile-block div:last-of-type {
        font-size: 12px;
        text-transform: uppercase;
        font-weight: 600;
    }

button.btn.btn-primary.form-control.running {
    color: transparent;
}

button.btn.btn-primary.form-control.running {
    background-image: url(../images/activity.svg);
    background-color: var(--primary-accent);
    background-size: 100% 100%;
    background-position-x: 0;
    background-repeat: no-repeat;
    border: 1px solid var(--primary);
    color: transparent;
}

input.numeric,
input.percentage {
    text-align: right;
}

.card {
    box-shadow: 0px 2px 4px -1px rgb(0 0 0 / 10%);
    transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    border-radius: 10px;
}

    .card div.card-header h1, h1 {
        display: inline-block;
        font-size: 18px;
        font-weight: bold;
        margin: 0;
    }

    .card div.card-header,
    .modal-header {
        background-color: #fff;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        margin-right: 0;
        padding-left: 15px;
        padding-top: 12px;
        padding-right: 15px;
        padding-bottom: 5px;
        color: var(--primary);
        border: transparent solid 1px;
        margin-right: 1px;
    }

        .modal-header h3 {
            font-size: 20px;
        }

        .modal-header button.close {
            background: none;
            background-image: none;
        }

.modal-footer {
    background-color: #eaf4f7;
    background-image: linear-gradient(90deg, #fff 0%, #f0f0f0 70%);
}

.modal-header button.link {
    display: inline-block;
}

.model-header div.row {
    margin-bottom: 15px;
}

.modal-body {
    background-color: #efefef;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-dialog {
    overflow-y: initial !important
}

label {
    font-size: 12px;
    margin-bottom: 3px;
    white-space: nowrap;
}

button.form-control {
    width: auto;
}

.model-info .form-control {
    font-size: 12px;
    height: auto;
    padding: 5px;
}

table.model-fund-allocation, table.suggested-models {
    font-size: 12px;
    margin-left: 15px;
    margin-right: 15px;
}

    table.model-fund-allocation td, table.model-fund-allocation th,
    table.suggested-models td, table.suggested-models th {
        padding: 0.4rem;
        vertical-align: middle;
    }

    table.model-fund-allocation .form-control, table.suggested-models .form-control {
        font-size: 12px;
    }

textarea {
    width: 100%;
}

.prepared-header {
    display: none;
}

.export-logo {
    content: var(--logo-url)
}

div.signature {
    border: 1px solid #000;
    padding: 20px;
    text-align: center;
}

    div.signature span {
        color: #ccc;
    }

    .print {
        display: none;
    }

@media print {
    @page {
        transform: scale(0.9);
        transform-origin: 0 0;
    }

    a,
    .sidebar,
    .top-row,
    button {
        display: none !important;
    }

    .prepared-header {
        display: flex;
    }

    div.row {
        page-break-inside: avoid;
        page-break-before: auto;
    }

    .print {
        display: block;
    }
}

.btn-outline-secondary:hover {
    background-color: var(--secondary);
    color: #fff;
    background-image: linear-gradient( 180deg, var(--secondary) 0%, var(--secondary-accent) 70% );
    outline: none;
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: var(--secondary);
    border-width: 1px;
    color: var(--secondary);
    border-radius: 8px;
    margin-top: 7px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 14px;
    height: 26px;
}

    .btn-outline-secondary.running {
        background-image: url(images/activity.svg);
        background-color: var(--secondary);
        background-size: 100% 100%;
        background-position-x: 0;
        background-repeat: no-repeat;
        border: 1px solid var(--secondary);
        color: transparent;
    }

.btn-danger {
    color: #dc3545;
    border-color: #dc3545;
}

    .btn-danger.running {
        background-image: url(images/activity.svg);
        background-color: #dc3545;
        background-size: 100% 100%;
        background-position-x: 0;
        background-repeat: no-repeat;
        border: 1px solid #dc3545;
        color: transparent;
    }

    .btn-danger:hover {
        background-color: #dc3545;
        color: #fff;
        outline: none;
    }
