﻿/* MudBlazor search bar */
.docs-search-bar .mud-input {
    height: 32px;
    margin-block-start: 4px !important;
}

.docs-search-bar.mud-input-control {
    background-color: rgba(255, 255, 255, .15);
    margin-block-end: 3px !important;
    height: 36px;
    border-radius: var(--mud-default-borderradius);
}

    .docs-search-bar.mud-input-control .mud-input-root, .docs-search-bar.mud-input-control .mud-icon-default {
        color: #fafafa;
    }

.docs-search-bar .mud-input.mud-input-outlined .mud-input-outlined-border {
    border: none;
    border-radius: var(--mud-default-borderradius);
}

/* Loading spinner */
.ring {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 150px;
    height: 150px;
    background: transparent;
    border: 3px solid #E0E0E0;
    border-radius: 50%;
    text-align: center;
    line-height: 150px;
    font-family: sans-serif;
    font-size: 20px;
    color: #594AE2;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px #594AE2;
    box-shadow: 0 0 20px rgba(0,0,0,.5);
}

    .ring:before {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        width: 100%;
        height: 100%;
        border: 3px solid transparent;
        border-top: 3px solid #594AE2;
        border-right: 3px solid #594AE2;
        border-radius: 50%;
        animation: animateRing 2s linear infinite;
    }

    .ring span {
        display: block;
        position: absolute;
        top: calc(50% - 2px);
        left: 50%;
        width: 50%;
        height: 4px;
        background: transparent;
        transform-origin: left;
        animation: animateDot 2s linear infinite;
    }

        .ring span:before {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #594AE2;
            top: -6px;
            right: -8px;
            box-shadow: 0 0 20px #594AE2;
        }

@keyframes animateRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes animateDot {
    0% {
        transform: rotate(45deg);
    }

    100% {
        transform: rotate(405deg);
    }
}

/* Header and Footer for print */
.page-header, .page-header-space {
    height: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.page-header2, .page-header2-space {
    height: 40px;
}

.page-footer, .page-footer-space {
    height: 20px;
}

.page-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    border-block-start: 1px solid black;
    background-color: white;
    text-align: end;
}

.page-header {
    position: fixed;
    top: 0mm;
    width: 100%;
    border-block-end: 1px solid black;
    background-color: white;
    text-align: start;
}

.page {
    page-break-after: always;
}

@page {
    margin: 10mm
}

@media print {
    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }

    body {
        margin: 0;
    }

    .no-print, .no-print * {
        display: none !important;
    }
}

@media screen {
    .page-header {
        display: none;
    }

    .page-footer {
        display: none;
    }
}

/* tables for printing */

table.table, .table {
    text-align: left;
    border-collapse: collapse;
    margin-inline: 24px;
    font-size: 0.85rem;
}

    table.table td, table.table th {
        padding: 3px 8px;
    }

    table.table.table-stripped tr:nth-child(even) {
        background-color: rgba(0,0,0, 0.02);
    }

    table.table.table-bordered {
        font-size: 0.7rem;
    }

        table.table.table-bordered tr th, table.table.table-bordered tr td {
            border-width: 1px;
            border-style: solid;
            /*border-color: #000;*/
            border-color: #dee2e6;
        }

        table.table.table-bordered tr th {
            border-bottom-style: double;
            border-bottom-width: medium;
        }

.keeptogether {
    page-break-inside: avoid;
}

@media print {
    table.table {
        margin-inline: unset;
    }

        table.table.table-bordered thead tr th, table.table.table-bordered tbody tr td {
            border-width: 1px;
            border-color: #000;
        }

        table.table.table-bordered tr th {
            border-bottom-style: double;
            border-bottom-width: medium;
        }

    table.printable {
        margin-top: -72px;
    }
}

/* other custom css */
.fit {
    white-space: nowrap;
    width: 1%;
    padding-inline-start: 4px !important;
    padding-inline-end: 4px !important;
}

.multiline {
    white-space: pre-line;
}

.cursor-pointer {
    cursor: pointer;
}

.card-text-4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* number of lines to show */
    -webkit-box-orient: vertical;
}

/* navbar tables */
.navbartable {
    padding: 0px 4px;
    margin-inline-end: -14px;
}

    .navbartable thead tr th, .navbartable tbody tr td {
        padding: 2px 4px !important;
        line-height: unset !important;
        text-align: end !important;
    }

    .navbartable tbody tr:last-child td {
        border-block-end: none !important;
    }

.mud-table-toolbar {
    height: 40px !important;
}

.lowprofile {
    height: 40px;
    margin-block-start: -16px !important;
}

/* dirty fix for "combobox" */
.transparent-text, .transparent-text .mud-input-root {
    color: transparent !important;
}

/* fix for td with tooltip */
td .portal {
    height: unset;
}