/* ---------------------------------------
CSS potentially common to all c9 products


Principal sections:
    $colour - colours
    $type - type fonts and colours
	$layout - layouts and backgrounds
	$popup - popup for messages
	$initialisation - no javascript / wrong browser
	$accordion - miscellaneous
	$datatables - datatables
    $errors - error highlighting
    $tooltips01 - using c9tooltip class
    $tooltips02 - using data attributes (works on input fields)
    $messages and userInput
    $licence
    $spinner - loading progress widget
    $contextMenu - contextMenu
    $tabs - tabs
    $ribbon - ribbon
    $selectors and drop buttons- selectors used on ribbon
    $misc - miscellaneous

--------------------------------------- */

/*region $colour */
:root {
    /*region c8 colours from Lucy Ward: */
    --c8_lime: #a6ce39;
    --c8_magenta: #ec008c;
    --c8_magenta_darker: #d0007b;
    --c8_orange: #f68b33;
    --c8_sky: #28c0da;
    --c8_ink: #06234b;
    /*endregion c8 colours from Lucy Ward: */
    /*region colour mapping */
    /* map semantic SVG colours colours to actual colours*/
    /*region misc*/
    --arrow_left: var(--play_buttons);
    --arrow_right: var(--play_buttons);
    --c9icon-cookies-fill: var(--color02);
    --c9icon-cookies-stroke: var(--color01);
    --c9icon-email-fill: var(--c8_magenta);
    --c9icon-email-stroke: var(--c8_magenta);
    --c9icon-info-fill: var(--color02);
    --c9icon-info-stroke: var(--color01);
    --c9icon-preamble-stroke: var(--c8_magenta);
    --calendar_blobs: var(--view_date);
    --calendar_body: var(--format_dates_background);
    --calendar_number_number: var(--format_dates_number);
    --disabled_items: #b8b8b8;
    --person_filled_body: var(--view_source);
    --person_filled_head: var(--view_source);
    --rings_highlightsBrowse_ring_00_120_intersect: #F89521;
    --rings_highlightsBrowse_ring_00_60_intersect: #3DB54A;
    --rings_highlightsBrowse_ring_00_fill: #fcee23;
    --rings_highlightsBrowse_ring_120_fill: #ec2227;
    --rings_highlightsBrowse_ring_60_120_intersect: #804099;
    --rings_highlightsBrowse_ring_60_fill: #2075bc;
    --spinner_color: var(--c8_magenta_darker);
    --spinner_text_color: var(--c8_ink);
    --text_default: var(--c8_ink);
    --text_emphasis: var(--c8_orange);
    --text_reference: var(--c8_magenta);
    --vis-selected-emphasis: #666;
    --website_masthead: var(--c8_ink);

    /*endregion misc*/
    /*region $messages and userInput*/
    --message_background: #757575;
    --message_button_background: #f7f7f7;
    --message_button_hover: #f9f9f9;
    --message_header_background: #505050;
    /*endregion $messages and userInput*/
    /*region tooltips*/
    --tooltip-color: var(--c8_ink);
    --tooltip-border-color: var(--c8_sky);
    --tooltip-border-radius: 0;
    --tooltip-background-color: white;
    /*endregion tooltips*/
    /*region contextmenu*/
    --contextmenu-color: var(--c8_ink);
    --contextmenu-background-color: white;
    --contextmenu-border-color: grey;
    --contextmenu-icon-stroke: var(--c8_magenta);
    /*endregion contextmenu*/
    /*endregion colour mapping */
}

/*endregion $colour */
/*region $type*/
/* ------------------------
$type
--------------------------*/

html {
    font-size: 1em;
    /*Inspired by https://metroui.org.ua/typography.html */
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Roboto", "Ubuntu", "Helvetica Neue", sans-serif;
    color: var(--text_default);
}

h1 {
    font-size: 2rem;
    font-family: Calibri, Tahoma, Verdana, sans-serif;
    color: var(--text_default);
    text-align: center;
}

#c9masthead h1 {
    color: #28c0da;
    font-size: 3rem;
}

em {
    color: var(--text_emphasis);
    font-weight: bold;
    font-style: normal;
}

.c9ref {
    font-weight: bold;
    color: var(--text_reference);
}

.c9product {
    color: var(--c8_magenta);
    font-weight: 700;
}

.c9press {
    color: var(--c8_magenta);
    font-style: italic;
    font-weight: 700;
}

.c9boldItal {
    font-weight: bold;
    font-style: italic;
}

#c9productVersion {
    float: right;
    padding-right: 1rem;
    color: white;
    margin-top: 1rem;
}

#c9presentation {
    background-color: var(--presentation_background);
}

#c9AIassistants {
    position: fixed;
    top: 150px;
    display: none;
}

/*endregion*/

/*region $layout*/
/* ------------------------
$layout
--------------------------*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#c9outerwrapper {
    margin: 0 auto;
    min-width: 960px;
    width: 90%;
    max-width: 1920px;
    visibility: hidden;
}

#c9tableWrapper {
    padding-top: 0.5rem;
}

#GetStarted *, #Finish * {
    text-align: center;
}

#fileChooser {
    display: none;
}

.c9rotate180 {
    transform: rotate(180deg)
}

/*endregion*/

/*region $popup*/

/* ------------------------
$popup
--------------------------*/
#c9underlay {
    display: none;
    background-color: var(--message_background);
    opacity: 0.3;
    height: 200%; /* see c9e diary 07sep23 */
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
}

.c9popup {
    display: none;
    background-color: var(--message_background);
    width: 524px;
    position: absolute;
    top: 100px;
    z-index: 20;
    padding: 8px 10px 3px 10px;
    border: 2px solid white;
    border-radius: 10px;
    font-size: 0.8em;
}

/*endregion*/

/*region $initialisation*/

/* ------------------------
$initialisation
--------------------------*/
#c9outerwrapper {
    visibility: hidden;
}

.c9stopError {
    background-color: var(--presentation_background);
    display: table;
    width: 100%;
    padding: 0 2rem;
}

.c9stopError h1 {
    font-size: 4rem;
    color: var(--text_default);
}

.c9stopError p {
    vertical-align: middle;
    text-align: center;
    height: 10rem;
    margin: 3rem;
    font-size: 2rem;
    color: white;
    background-color: var(--c8_magenta_darker);
}

noscript {
    background-color: var(--presentation_background);
    display: table;
    width: 100%;
    padding: 0 2rem;
}

/*endregion*/

/*region $accordion*/

/* ------------------------
$accordion
--------------------------*/
.c9accordion-toggle {
    cursor: pointer;
    color: #2e6e9e;
    background-color: #dfeffc;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding-top: 1rem;
    padding-left: 2rem;
    padding-bottom: 1.5rem;
}

.c9accordion-toggle:hover:after {
    /*.c9accordion-toggle:after{*/
    margin-left: 6px;
    content: url(resources/chevron.svg);
    position: absolute; /* prevents .c9accordion-toggle height jumping a little */
}

.c9accordion-toggle-active:hover:after {
    /*.c9accordion-toggle:after{*/
    margin-left: 6px;
    content: url(resources/chevron.svg);
    position: absolute; /* prevents .c9accordion-toggle height jumping a little */
    transform: rotate(180deg) translate(0px, -2px);
}

.c9accordion-content {
    /*display: none;*/
    padding: 1em 2.2em;
    border-top: 0;
    overflow: auto;
}

.c9accordion-content.default {
    display: block;
}

.c9accordion-button {
    width: 8rem;
    height: 3.5rem;
    color: white;
    font-size: 1.5rem;
    background-color: var(--c8_magenta);
    border: none;
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 0 0.2rem;

}

.c9accordion-button:hover {
    background-color: var(--c8_magenta_darker);
    cursor: pointer;
}

.c9accordion-button:focus {
    outline: none;
}

/*endregion*/

/*region $datatables*/

/* ------------------------
$datatables
Includes overrides from and extensions to the main datatables file
---------------------------*/

#dataTable_info {
    margin-top: 0.5rem;
}

div.DTE_Field div.DTE_Field_Info, div.DTE_Field div.DTE_Field_Message, div.DTE_Field div.DTE_Field_Error {
    font-size: 11px;
    line-height: 1em;
    margin-top: 5px;
    color: red;
}

div.DTED_Lightbox_Background {
    background-color: var(--message_background);
    opacity: 0.3 !important;
}

/* editor form and inline edit */
.DTE_Body {
    & #DTE_Field_startSeq,
    #DTE_Field_startDate,
    #DTE_Field_startTime,
    #DTE_Field_endDate,
    #DTE_Field_endTime {
        max-height: 24px;
    }
}

td.c9mandatory .DTE_Inline::before {
    content: "*";
    color: red;
    font-size: x-large;
    position: relative;
    top: 10px;
    margin-right: 2px;
}

.DTE_Field.c9mandatory label::before {
    content: "*";
    color: red;
    font-size: x-large;
    position: relative;
    top: 8px;
    margin-right: 2px;
}

button.dt-button, div.dt-button, a.dt-button, #c9_showErrors {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    margin-right: 0.333em;
    margin-bottom: 0.333em;
    padding: 0.5em 1em;
    border: 1px solid #999;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.88em;
    line-height: 1.6em;
    color: black;
    white-space: nowrap;
    overflow: hidden;
    background-color: #e9e9e9;

}

#dataTable_filter > label > input[type=search] {
    height: 35px;
    padding-left: 3px;
}

table.dataTable tbody tr {
    background-color: #fff;
}

table.dataTable tbody tr.selected > * {
    background-color: #b0bed9;
    box-shadow: none;
}

@keyframes tableEventHighlight {
    0% {
        opacity: 0.3;
    }
    50% {
        background-color: #28c0da;
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.dataTables_scrollBody {
    height: 750px;
}

/*endregion*/

/*region $errors*/

/* ------------------------
$errors
--------------------------*/
.c9error00 {
    /*no errors*/
}

.c9error01 {
    /*bad errors*/
    background-color: aqua;
}

.c9error02 {
    /*warnings*/
    background-color: yellow;
}

.c9rowError0:hover, .c9rowError1:hover {
    background-color: #217a91 !important;
}

/*endregion*/

/*region $tooltips01 - c9tooltip class method*/
/* ------------------------
$tooltips01
Ref: https://www.w3schools.com/css/css_tooltip.asp
--------------------------*/
.c9tooltip {
    position: relative;
}

.c9tooltip .c9tooltiptext {
    visibility: hidden;
    text-align: center;
    padding: 0.5rem;
    position: absolute;
    min-width: 250px;
    border: 1px solid;
    border-color: var(--tooltip-border-color);
    border-radius: var(--tooltip-border-radius);
    color: var(--tooltip-color);
    font-size: 14px;
    background-color: var(--tooltip-background-color);
    z-index: 3;
}

.c9tooltip:hover .c9tooltiptext {
    visibility: visible;
}

.c9error01 .c9tooltiptext,
.c9error02 .c9tooltiptext {
    color: red;
}

/*endregion*/

/*region $tooltips02 - data-tooltip attribute method*/
/* ------------------------
$tooltips02
Ref:https://freqdec.github.io/Pure-CSS-Tooltips
--------------------------*/
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 30px;
    min-width: 100px;
    white-space: nowrap;
    border: 1px solid;
    border-color: var(--tooltip-border-color);
    border-radius: var(--tooltip-border-radius);
    color: var(--tooltip-color);
    font-size: 14px;
    text-align: center;
    background-color: var(--tooltip-background-color);
    padding: 0.5rem;
    z-index: 3;
}

[data-tooltip].c9disabled:hover::after {
    display: none;
}

.c9button-horizontal[data-tooltip]:hover::after {
    top: 45px;
}

.c9button-vertical[data-tooltip]:hover::after {
    top: 90px;
}

.c9selector[data-tooltip]:hover::after {
    top: 45px;
}

/*endregion*/

/*region $messages and userInput*/

/* ------------------------
$messages and userInput
--------------------------*/

#c9message em, #c9input em {
    color: white;
    /*font-weight: bold;*/
    font-style: italic;
}

.c9msgElement {
    border-color: white;
    border-style: solid;
    border-width: 1px;
    padding: 5px;
    margin: 5px 0;
    color: white;
    text-align: center;
}

#c9msgRef {
    font-size: 1.5rem;
}

.c9msgHeader {
    font-size: 1.5rem;
    background-color: var(--message_header_background);
    font-weight: bold;
    height: 3rem;
}

#c9msgText1 {
}

#c9msgText2 {
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

#c9msgText2.validation-errors {
    /* don't use var for colours - it does not copy through when the Copy button is pressed */
    /*background-color: white;*/
    color: #06234b;
    padding-top: 0;
    /* ref https://css-tricks.com/position-sticky-and-table-headers/*/

    & div {
        margin-top: 5px;
    }

    & table {
        background-color: white;
        border-collapse: collapse;
    }

    & thead {
        /*Don't be tempted to put colour here instead of on th*/
        height: 35px;
    }

    & tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    & td {
        padding: 1px 5px;
    }

    & th {
        padding: 1px 5px;
        position: sticky;
        top: 0;
        background: #28c0da;
        color: white;
    }

}


.c9msgButtons {
    float: right;
    margin: 5px 0;
}

.c9msgButton {
    min-width: 7rem;
    height: 3rem;
    border-radius: 4px;
    border-style: none;
    color: black;
    background-color: var(--message_button_background);

}

.c9msgButton:hover {
    background-color: var(--message_button_hover);
    cursor: pointer;
}

.c9msgButton.c9disabled {
    background: var(--disabled_items);
}

#c9msgButton0 {
    margin-right: 40px;
}

#c9input textarea {
    resize: none;
    width: 100%;
    padding: 12px 20px;
    margin-top: 4px;
    margin-bottom: 10px;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#c9input #c9UserData02 {
    resize: none;
    min-height: 11rem;
    overflow-y: auto;
}

.c9inputErrorMessage {
    background-color: white;
    color: red;
}

.c9userInputField {
    padding: 5px;
    margin: 5px 0;
    border: none;
}

.c9userInputField::placeholder {
    color: grey;
    font-style: italic;
}

.c9userInputField::-ms-input-placeholder {
    /*for Edge as at 25jun19 */
    color: grey;
    font-style: italic;
}


#c9AIassistants {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;

    /* Center the heading */
    & h1 {
        text-align: center;
        margin-top:0;
    }

    #c9AIassistantTable {
        table-layout: fixed;
        border-collapse: collapse;
        max-width: 95%;
        /* Use 'auto' left/right margin to center the table */
        margin: 20px auto;

        & th, & td {
            padding: 8px;
            border: 1px solid #ccc;
            text-align: left;
            vertical-align: top;
            &:first-child {
                text-align: center;
            }
        }

        & .col-select { width: 3.85%; }
        & .col-data   { width: 57.69%; }
        & .col-desc   { width: 38.46%; }

        & #c9AIprompt {
            width: 100%;
            box-sizing: border-box;
            resize: vertical;
            padding: 5px;
            border-color: lightgrey;
        }

        & input[type=checkbox] {
            visibility: visible;
        }
    }

    .ai-selector {
        /* Optional: centers the buttons below the table */
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 20px 0;

        & button {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background-color: #fff;
            border: 1px solid #aaa;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;

            &:hover {
                background-color: #f0f0f0;
                border-color: #888;
            }
        }
    }

    .ai-warning-box {
        border: 1px solid #dcdcdc;
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 8px;
        margin-top: 20px;
        font-size: 0.9em;
        color: #555;

        & h4 { margin-top: 0; color: #333; }
        & p { margin: 10px 0; }
    }
}

/*region password form*/
#c9password {
    width: 260px;
}

#c9password .c9inputArea * {
    width: 100%;
}

/*endregion password form*/

/*region c9abbreviationUIAdd form*/
#c9abbreviationAdd {
    width: 540px;
}

#c9abbreviationsTerm {
    width: 25%;
}

#c9abbreviationsDefinition {
    width: 74%;
    float: right;
}

/*endregion c9abbreviationUIAdd form*/

/*region $checkboxes*/
input[type=checkbox] {
    visibility: hidden;
}

/*region $c9checkbox*/
/**
Ref: https://paulund.co.uk/how-to-style-a-checkbox-with-css - checkbox 5
10jun22 some deficiencies in original link. Wayback is good at https://web.archive.org/web/20130620111426/http://www.paulund.co.uk/style-checkboxes-with-css
Some JL modifications are specific to checkbox use in the password form
 */
.c9checkbox {
    width: 25px;
    margin: 20px 100px;
    position: relative;
}

.c9checkbox label {
    cursor: pointer;
    position: absolute;
    width: 20px;
    height: 20px;
    top: 0;
    left: 115px;
    background: white;
    border: 1px solid #ddd;
}

/* the 'actual' label (JL)*/
#c9ShowPasswordsLabel {
    position: relative;
    top: 2px;
    color: white;
    width: 150px;
    display: inline-block;
}

/**
 * Display the tick inside the checkbox
 */
.c9checkbox label:after {
    opacity: 0;
    content: '';
    position: absolute;
    width: 8px;
    height: 4px;
    background: #0000;
    top: 4px;
    left: 4px;
    border: 3px solid #333;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
}

/**
 * Create the hover event of the tick
 */
.c9checkbox label:hover::after {
    opacity: 0.5;
}

/**
 * Create the checkbox state for the tick
 */
.c9checkbox input[type=checkbox]:checked + label:after {
    opacity: 1;
}

/*endregion $c9checkbox*/

/*region $c9checkbox2*/
/* Ref: https://www.w3schools.com/howto/howto_css_custom_checkbox.asp */
/* Customize the label (the container) */
.c9checkbox2 {
    display: block;
    position: relative;
    top: 12px; /*JL*/
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

.c9checkbox2-legend { /*JL*/
    position: relative;
    top: 3px;
    left: -5px; /*JL*/
    user-select: none;
}

/* Hide the browser's default checkbox */
.c9checkbox2 input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px; /*JL*/
    width: 20px; /*JL*/
    background-color: var(--checkbox2-background-color);
}

/* On mouse-over, add a grey background color */
.c9checkbox2:hover input ~ .checkmark {
    background-color: var(--checkbox2-background-color-hover);
}

/* When the checkbox is checked, add a blue background */
.c9checkbox2 input:checked ~ .checkmark {
    background-color: var(--checkbox2-background-color-checked);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.c9checkbox2 input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.c9checkbox2 .checkmark:after {
    left: 7px; /*JL*/
    top: 3px; /*JL*/
    width: 3px; /*JL*/
    height: 8px; /*JL*/
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/*endregion $c9checkbox2*/
/*endregion $checkboxes*/
/*region $radioButtons*/
/*Ref : https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_custom_radio*/
/*Additional styling is done in c9r.css*/
.radio-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

/* Hide the browser's default radio button */
.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom radio button */
.radio-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.radio-container:hover input ~ .radio-checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.radio-container input:checked ~ .radio-checkmark {
    background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.radio-container input:checked:not(.c9disabled) ~ .radio-checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.radio-container .radio-checkmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/*endregion $radioButtons */

/*endregion $messages and userInput */

/*region $licence*/
/* the following c9msg* definitions are for the benefit of licence messages */
.c9msgElement h1 {
    color: white;
    margin-top: 0;
    font-size: 1.5rem;
}

.c9msgElement h2 {
    font-size: 1.2rem;
}

.c9msgElement a {
    color: white;
    font-style: italic;
}

.c9msgElement dt {
    float: left;
    clear: left;
    width: 100px;
    text-align: right;
}

.c9msgElement dt::after {
    content: ":";
}

.c9msgElement dd {
    margin: 0 0 0 110px;
    padding: 0 0 0.5em 0;
}

#licenceExtendDiv {
    background-color: white;
    color: red;
    padding: 5px;
    border-radius: 4px;
}

#licenceExtendDiv .c9msgButton {
    margin: 5px;
    border: darkgrey solid 1px;
}

#licenceBuyDiv .licenceBuyButton {
    border: none;
}

/*endregion*/

/*region $spinner*/

/*
Ref: https://loading.io/css/
Ref: https://css-tricks.com/quick-css-trick-how-to-center-an-object-exactly-in-the-center/
*/
.c9spinner {
    position: relative; /* to allow z-index setting */
}

.lds-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -32px;
    margin-left: -32px;
    padding: 5px;
    z-index: 30;
    background-color: white;
    border: 1px solid black;
    border-radius: 5px;
    height: 75px;
    width: 350px;
}

.lds-spinner div {
    transform-origin: 32px 32px;
    animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3px;
    left: 29px;
    width: 5px;
    height: 14px;
    border-radius: 20%;
    background-color: var(--spinner_color);
}

.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

.lds-spinnerText {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: 50px;
    font-size: 1rem;
    font-weight: bold;
    font-style: italic;
    color: var(--spinner_text_color);
    animation: lds-spinner-text 3s linear infinite;
    /*animation: lds-spinner 3s linear infinite;*/
}

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes lds-spinner-text {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/*endregion $spinner*/

/*region $contextMenu*/
.cm_container {
    position: fixed;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.1s;
    transform-origin: top left;
    padding: 0;
}

.cm_container.display {
    opacity: 1;
    transform: scale(1);
    z-index: 2; /* required for c9r */
}

.cm_container, .cm_container * {
    box-sizing: border-box;
}

.cm_container * {
    position: relative;
}

.cm_container ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #ccc;
    box-shadow: 0 0 5px #333;
}

.cm_container li {
    padding: 5px 10px;
    padding-right: 1.7em;
    cursor: pointer;
    white-space: nowrap;
}

.cm_container li:hover {
    background-color: #bbb;
}

.cm_container li .cm_icon_span {
    width: 1.5em;
    height: 1.2em;
    vertical-align: bottom;
    display: inline-block;
    border-right: 1px solid #aaa;
    margin-right: 5px;
    padding-right: 5px;
    text-align: center;
}

.cm_container li .cm_sub_span {
    width: 1em;
    display: inline-block;
    text-align: center;
    position: absolute;
    top: 50%;
    right: 0.5em;
    transform: translateY(-50%);
}

.cm_container li > ul {
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    transition: opacity 0.2s;
    visibility: hidden;
}

.cm_container li:hover > ul {
    opacity: 1;
    visibility: visible;
}

.cm_container li.cm_divider {
    border-bottom: 1px solid #aaa;
    margin: 5px;
    padding: 0;
    cursor: default;
}

.cm_container li.cm_divider:hover {
    background-color: inherit;
}

.cm_container.cm_border_right > ul ul {
    left: -100%;
}

.cm_container.cm_border_bottom > ul ul {
    top: unset;
    bottom: 0;
}

.cm_container li[disabled=""] {
    color: #777;
    cursor: default;
}

.cm_container li[disabled=""]:hover {
    background-color: inherit;
}

/*JL overrides*/
.c9icon-contextmenu {
    height: 12px;
    width: 12px;
}

.cm_container {
    color: var(--contextmenu-color);
    border: 1px solid var(--contextmenu-border-color);
}

.cm_container ul {
    background-color: var(--contextmenu-background-color);
    box-shadow: inherit;
}

/*endregion $contextMenu */

/*region $misc*/
span.markJS {
    background: orange;
    color: black;
}

input:disabled,
input:disabled:hover,
.c9disabled,
.c9disabled:hover {
    opacity: 0.5;
}

#c9licenceTraceTable {
    margin-top: 5px;
}

#c9licenceTraceTable tr, #c9licenceTraceTable td, #c9licenceTraceTable th {
    border: 1px solid white;
}

#c9licenceTraceTable th {
    padding: 5px;
}

#c9licenceStatus {
    width: 350px;
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
    border: 1px solid white;
    border-radius: 8px;
    display: inline-block;
    position: relative;
    top: -7px;
    left: 50px;
    height: 26px;
    padding-top: 3px;
    margin-top: 3px;
    background: goldenrod;
}

.c9flasher {
    animation: blinker 1.5s linear infinite;
    color: red;
}

.c9filter {
    background-color: #ccffff;
}

#c9glossaryFilter::placeholder {
    font-style: italic;
}

#c9glossaryFilter {
    height: 49px;
    width: 200px;
    position: relative;
    left: 50px;
    border: none;
    border-radius: 4px;
    padding-left: 10px;
}

#btnGlossaryFilterClear {
    background-color: white;
    color: red;
    font-size: 1.5em;
    margin-left: 20px;
}

#btnAI p {
    font-size: x-large;
}

@keyframes blinker {
    0% {
        opacity: 0;
    }
}

/*endregion $misc*/
/*region appOptions*/
#c9appOptions-container {
    color: white;
    font-size: 15px;

    & h1 {
        color: white;
        text-align: left;
        margin-top: 0;
        margin-bottom: 0;
        font-size: 1.5rem
    }

    /*nav settings are based on c9d cdw */

    & nav ul {
        margin-left: 0;
    }

    & nav li {
        font-weight: normal;
        border: 1px solid white;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;
        border-bottom: none;
        margin-right: 1px;
        color: white;
    }

    & nav li:not.c9selected {
        background-color: var(--message_background);
    }

    & nav li.c9selected {
        background-color: var(--message_header_background);
    }

    & nav li:not(.c9disabled):not(.c9selected):hover {
        color: var(--c8_ink);
        background-color: var(--ribbon_nav_background);
    }

    & ul.c9tabs-content li {
        padding: 0;
    }

    & table {
        table-layout: fixed;
        border-collapse: collapse;
        width: 100%;

        & tr {
            color: black;

            & td:first-of-type {
                text-align: right;
                padding-right: 15px;
            }

            &:nth-child(even) {
                background-color: rgba(255, 255, 255, 0.8);
            }

            &:nth-child(odd) {
                background-color: rgba(255, 255, 255, 0.9);
            }
        }

        & td {
            padding: 3px 0;
        }
    }

    & .c9checkbox label {
        left: 30px;
    }

    & .radio-container {
        margin-top: 5px;
        font-size: inherit;
    }

    & .radio-container:not(.c9disabled):hover input ~ .radio-checkmark {
        background-color: var(--button_hover_background);
    }

    & .radio-checkmark {
        top: -4px;
        background-color: #eee;
    }

    & .c9checkbox label {
        left: -97px;
    }

}

.c9appOptions-group {
    border: 1px solid white;
    padding: 5px;
}

/*endregion appOptions*/

/*region c9logs c9reports*/
#c9logs,
#c9reports {
    width: 850px;
}

#c9logSelector,
#c9reportSelector {
    display: inline-block;
    margin-top: 18px;
    margin-left: 25px;
    color: white;

    & .radio-container {
        display: inline-block;
        margin-right: 25px;
        font-size: 1.2em;
    }
}

#c9logEvents,
#c9report {
    height: 500px;
    overflow-y: scroll;
    padding: 5px;
    background-color: white;
    font-family: Consolas, "Lucida Console", monospace;
    white-space: pre;

    & h1 {
        margin: 5px 0;
    }
}

#c9report h2 {
    margin-bottom: 2px;
}

.c9logError {
    font-weight: bold;
    color: indianred;
}

/*endregion c9logs c9reports*/
/*region adapted from c8*/

/* Table01 has borders and a header row */
table.c8table01 {
    /*not in c8 original, which uses an old normalize.css that includes it*/
    border-collapse: collapse;
    border-spacing: 0;
}

.c8table01 td {
    padding: .5rem;
    vertical-align: top;
    text-align: left;
    border-style: solid;
    border-width: 1px;
    border-color: var(--c8_ink);
    /* c8 ink */
}

.c8table01 tr:first-of-type {
    background-color: #A9A9A9;
    color: #FFF;
}

.c8table01 p {
    margin-top: 0;
}

.c8table01 td p:last-of-type {
    margin-bottom: 0;
}

/*endregion*/
