﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html {
    scroll-behavior: smooth;
}

.xo-coloured-header {
    color: #56c392 !important;
}

*::selection {
    background-color: #56c392;
    color: white;
}

.form-control.invalid {
    border: 1px solid #c92b1f;
}

.validation-message {
    color: #c92b1f
}

#main-menu-wrapper li a.active {
    background-color: #eef2f7;
}

.xo-notifications_container {
    margin-top: 5rem;
}

.main-loading-page .xo-busy-spinner_container {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

.main-loading-page .xo-busy-spinner_spinner::before {
    border-left-color: #505458;
    border-right-color: #505458;
}

.main-loading-page .xo-busy-spinner_spinner::after {
    border-top-color: #505458;
    border-bottom-color: #505458;
}

.main-loading-page > h1 {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    margin-top: 2rem;
}

.dismissable-validation-errors_container {
    margin: 0;
    padding-left: 1rem;
}

    .dismissable-validation-errors_container .alert.alert-danger {
        padding: .25rem;
        margin: 0;
    }

/* XoTabControl */
.xo-tab-control .error > a {
}

    .xo-tab-control .error > a::before {
        content: '';
    }

    .xo-tab-control .error > a::after {
        content: '\f06a';
        color: #c92b1f;
        box-sizing: border-box;
        display: inline-block;
        font-family: "Font Awesome 5 Free";
        font-style: normal;
        font-variant: normal;
        font-variant-alternates: normal;
        font-variant-caps: normal;
        font-variant-east-asian: normal;
        font-variant-ligatures: normal;
        font-variant-numeric: normal;
        font-variant-position: normal;
        font-weight: 900;
        line-height: 14px;
        list-style-image: none;
        list-style-position: outside;
        list-style-type: none;
        text-align: left;
        text-rendering: auto;
        background-color: white;
        border-radius: 50%;
    }

/* Telerik */
.k-text-selection ::selection, .k-widget ::selection, .k-block ::selection, .k-panel ::selection {
    background-color: #56c392;
    color: white;
}

.k-textbox::selection, .k-textarea::selection, .k-input.k-textbox::selection {
    color: white;
    background-color: #56c392;
}

.k-textbox::selection, .k-input::selection, .k-textarea::selection {
    color: white;
    background-color: #56c392;
}

/* Telerik grid*/
.k-grid {
    border: none;
}

    .k-grid .k-grid-header {
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

    .k-grid .k-grid-container {
        border: 1px solid rgba(0, 0, 0, 0.08);
    }

.k-pager-wrap {
    background-color: white;
    color: black;
    padding: 1rem 0 0 0;
    border: none;
}

    .k-pager-wrap .k-link {
        padding: 1rem;
        border: 1px solid #eaeaea;
    }

    .k-pager-wrap li:not(:last-child) > .k-link {
        border-right: none;
    }

.k-grid-pager .k-link {
    background-color: white;
    color: #c7c7c7;
}

    .k-grid-pager .k-link.k-state-disabled {
        color: #888;
    }


    .k-grid-pager .k-link.k-state-selected {
        background-color: #56C392;
        color: white;
    }

        .k-grid-pager .k-link.k-state-selected:hover {
            background-color: #56C392;
            color: white;
        }

.k-grid-pager .k-link {
    color: inherit;
}

    .k-grid-pager .k-link:hover {
        color: inherit;
    }


.telerik-filter-4--center .k-header:nth-of-type(4) .k-grid-filter {
    right: unset;
}

.telerik-no-sort-1 .k-header:nth-of-type(1),
.telerik-no-sort-2 .k-header:nth-of-type(2),
.telerik-no-sort-3 .k-header:nth-of-type(3),
.telerik-no-sort-4 .k-header:nth-of-type(4),
.telerik-no-sort-5 .k-header:nth-of-type(5),
.telerik-no-sort-6 .k-header:nth-of-type(6),
.telerik-no-sort-7 .k-header:nth-of-type(7),
.telerik-no-sort-8 .k-header:nth-of-type(8),
.telerik-no-sort-9 .k-header:nth-of-type(9),
.telerik-no-sort-10 .k-header:nth-of-type(10) {
    pointer-events: none;
}

/* TelerikWindow */
.telerik-window_content--no-scroll .k-content.k-window-content.k-dialog-content {
    overflow: initial;
    position: relative;
}

.k-window-title.k-dialog-title {
    padding: 0.1rem;
}

.fill-parent {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.fill-parent--1rem {
    position: absolute;
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
}

/* Scrollable Div*/
.scrollableDiv {
    max-height: 45em;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.incomingFilesTimeline-dialog-outerContainer {
    max-height: 80vh !important;
}

#main-menu-wrapper > ul .disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.5;
}

.custom-file {
    max-height: calc(42vh - 100px);
}

.custom-file-input {
    position: absolute;
    height: 100%;
}

.custom-file-label {
    position: relative;
    width: 100%;
    height: auto;
    padding: .375rem 6rem .375rem .75rem;
}

    .custom-file-label::after {
        height: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

/* xoserve colour palette - see design system */
:root {
    --corp-blue-highlighted: #7188c7;
    --corp-blue-txt: #32477e;
    --corp-blue-txthighlight: #5672bd;
    --corporate-blue: #405ba3;
    --dark-grey: #838383;
    --dark-slate-blue: #1e3e5e;
    --fire-engine-red: #d2232a;
    --light-grey: #f0f0f0;
    --light-sea-green: #56cf9e;
    --medium-grey: #d9d9d9;
    --operationally-excellent: #9ccb3b;
    --springtime-sun: #fcbc55;
    --text-primary: #262626;
    --text-secondary: #454545;
    --white: #ffffff;
}

/* css variables for common colours (both production/sandbox) */
:root {
    --grid-header-background: var(--light-grey);
    --grid-border-colour: var(--medium-grey);
    --grid-hover-highlight: #ededed;
    --heading-text-colour: #505458;
}


span.k-dropdown span.k-dropdown-wrap {
    border-radius: 0.35rem;
    border-right-width: 0px;
}

    span.k-dropdown span.k-dropdown-wrap span.k-select {
        border-left: 1px solid;
    }

button.btn.k-button.telerik-blazor {
    font-size: 16px;
    line-height: 24px;
}

.renewed .table {
    margin-top: 2rem;
    width: 100%;
    margin-bottom: 2rem;
    color: #212529;
}

    .renewed .table th {
        padding: 1rem;
        position: relative;
        text-transform: uppercase;
    }
    .renewed .table td {
        padding: 0.5625rem 1rem;
        vertical-align: top;
        border-top: 1px solid #d9d9d9;
        position: relative;
    }

    .renewed .table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #d9d9d9;
    }

    .renewed .table tbody + tbody {
        border-top: 2px solid #d9d9d9;
    }

.renewed .table-light,
.renewed .table-light > th,
.renewed .table-light > td {
    background-color: #fdfdfe;
}

    .renewed .table-light th,
    .renewed .table-light td,
    .renewed .table-light thead th,
    .renewed .table-light tbody + tbody {
        border-color: #fbfcfc;
    }

.renewed .table .thead-light th {
    color: #32477e;
    background-color: #f0f0f0;
    border-color: #d9d9d9;
}

table.table {
    border: #d9d9d9 1px solid;
}

    table.table thead th {
        border-width: 1px;
        border-top-width: 1px;
        border-bottom-width: 1px;
        font-weight: normal;
        padding: 1rem;
        font-size: .75rem;
        line-height: 1;
        padding: 1rem;
    }

.renewed p {
    margin-bottom: 1rem;
}