/**Needed to display blazor error footer*/
#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;
    }



/* Sidenav links customize*/
.site-nav.clr-vertical-nav {
    /*White sidenav grabs too much attention when content is displayed, removing*/
    /*background-color: white;*/
}

    .site-nav .clr-vertical-nav .nav-group.active:not(.is-expanded) .nav-group-content {
        /**Override default style to now show white background when group is collapsed*/
        background: inherit;
    }

    .site-nav.clr-vertical-nav .nav-divider {
        border-bottom: .05rem solid #ccc;
        display: block;
        margin: 3px 3px 4px 6px;
        margin-right: 3px;
        margin-left: 6px;
    }


        .site-nav.clr-vertical-nav .nav-link.active {
            border-radius: 0;
        }

    .site-nav.clr-vertical-nav .nav-group .nav-text {
        position: relative;
    }

        .site-nav.clr-vertical-nav .nav-group .nav-text:before {
            position: absolute;
            content: '';
            border-left: 1px solid #ccc;
            height: 46px;
            margin-left: -10px;
            margin-top: -10px;
        }

        .site-nav.clr-vertical-nav .nav-group .nav-text:after {
            position: absolute;
            content: '';
            border-top: 1px solid #ccc;
            width: 7px;
            left: 0px;
            margin-top: 10px;
            top: 6px;
        }

    .site-nav.clr-vertical-nav .nav-group-children .nav-link:last-child .nav-text:before {
        height: 26px;
    }


/** Header customize */
.site-header .settings .nav-link {
    display: flex;
    padding: 10px 20px;
    font-size: 0.72rem;
    align-items: center;
}

    .site-header .settings .nav-link clr-icon {
        position: initial !important;
        transform: initial !important;
    }

    .site-header .settings .nav-link:hover {
        opacity: 1;
        box-shadow: inset 0px 0px 9px 3px #4b5a67;
    }

    .site-header .settings .nav-link + .nav-link {
        border-left: 1px inset #CCC;
    }

.site-header .clr-icon-custom {
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    height: 1.2rem;
    width: 1.2rem;
    position: absolute;
}

    .site-header .clr-icon-custom > * {
        height: 100%;
        width: 100%;
        display: block;
        pointer-events: none;
    }

/**Demo styles*/
.demo-list {
    column-count: 2;
    list-style-position: inside;
}

.demo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.demo-panel {
    box-shadow: 1px 1px 5px 0px #ccc;
    border-radius: 5px;
    padding: 5px 10px;
    min-height: calc(100% - 20px);
}

.demo-grid span {
    background-color: #d8e3e9;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    margin: .3rem 0;
}

.demo-app > .main-container > .content-container .main-container {
    /**
        Clarity .main-container uses 100vh height by default, it makes the use of main-container exampels quite large.
        We overriding the height to fit max content so user does not have to do unnecessary scrolling.
        We also add a border so that they can clearly see where the main-container ends since our demo app also uses .main-container and has same background.
    */
    height: initial; /** For browser that don't support max-content*/
    height: max-content;
    border: 1px solid #ccc;
}

.demo-icon-search {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 14px;
    margin: 9px;
}

    .demo-icon-search clr-icon {
        width: 25px;
        height: 25px;
        margin-right: -25px;
    }

    .demo-icon-search input {
        width: 97%;
        height: 50px;
        max-height: initial;
        line-height: 40px;
        padding-left: 30px;
        font-size: 16px;
    }

.demo-icon-shapes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* see notes below */
    grid-gap: 1em;
    padding: 20px 10px;
}

    .demo-icon-shapes > .demo-icon-shape {
        border: 1px solid #cccccc6e;
        text-align: center;
    }

body.dark-mode {
    color-scheme: dark;
}

.circle-initial {
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 20px;
    margin-top: -40px;
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-align: center;
}

/**Avoid unnecessary spacing between description*/
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p,
h6 + p {
    margin-top: 0 !important;
}

.demo-flex-centered {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

.demo-flex-center-v {
    align-items: center;
    align-content: center;
    display: flex;
}

/**API classes*/
table.api-doc th.left:first-child,
table.api-doc td.left:first-child {
    padding-left: 3em;
}

table.api-doc th, 
table.api-doc td {
    text-align: left;
}

/**Code Snippet*/
code {
    font-size: 12px;
    white-space: pre-line;
}

.code-snippet {
    width: 100%;
    margin-top: 15px;
    font-size: 12px;
}

    .code-snippet button.code-snippet-header {
        margin: 0;
        padding: 0;
        padding: 0 10px;
        border: 1px dashed #ccc;
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
    }

    .code-snippet .code-snippet-header.collapsed {
        border-bottom: 1px dashed #ccc;
        border-radius: 10px;
    }

    .code-snippet .code-snippet-header + .code-snippet-body code {
        white-space: pre-wrap;
    }

    .code-snippet .code-snippet-title {
        padding-right: 10px;
        margin-top: 0;
        display: inline-block;
    }

    .code-snippet .code-snippet-body {
        display: block;
        border-radius: 0 10px 10px 10px;
        border: 1px dashed #ccc;
    }

    .code-snippet.lean .code-snippet-body {
        border-radius: 10px;
    }

    .code-snippet code {
        display: inline-flex;
        padding: 7px;
        position: relative;
        width: 100%;
    }

        .code-snippet code.load-error {
            color: hsl(9, 88%, 61%);
        }

        .code-snippet code::after {
            position: absolute;
            right: 10px;
            content: 'Code';
            bottom: 0;
            font-size: 0.65rem;
            color: #5eb715;
            opacity: 0.5;
        }

/*Responsive classes*/
@media screen and (max-width: 768px) {
    .hide-sm {
        display: none !important;
    }
}

@media screen and (max-width: 500px) {
    .hide-xs {
        display: none !important;
    }
}

@media screen and (max-width: 400px) {
    .hide-xxs {
        display: none !important;
    }
}


/* Custom date class */
.custom-day {
    border: dashed 1px black;
}
