html,
body {
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}

/* Keep notifications compact and consistent across the Authentication Service UI. */
.k-notification {
    padding-block: 5px !important;
    font-family: inherit !important;
}

.k-notification-content {
    font-size: 14px !important;
}

/* Circle outline (no fill) with a checkmark inside, matching the app's other circular icon
   (glyphicon-question-sign) without turning it into a solid filled badge. */
.k-notification-success .k-notification-status svg {
    display: none;
}

.k-notification-success .k-notification-status {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background-color: transparent;
    box-sizing: border-box;
}

.k-notification-success .k-notification-status::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f00c";
    font-size: 9px;
    line-height: 1;
    color: currentColor;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Modern Kendo themes size grid cells/notifications off this variable rather than
   inheriting the ancestor's font-size, so the Kendo bootstrap-main theme's own default
   (smaller than 14px) was winning over site.css's ".k-grid { font-size: 1.5rem }" rule.
   Keep this consistent with Insights' kendo-overrides.css. */
:root {
    --kendo-font-size: 1rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
}

p {
    margin-bottom: 10px;
}

label {
    font-weight: 550;
}

label strong {
    font-weight: 550;
}

.page-header {
    padding-bottom: 9px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #eee;
}

.panel {
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.panel-default {
    border-color: #ddd;
}

.panel-heading {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-color: #ddd;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-body {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-control:focus {
    color: #555;
    background-color: #fff;
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.form-signin label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 550;
}

.form-signin .form-control {
    display: block;
    width: 100%;
    visibility: visible;
    opacity: 1;
}

/* Kendo widgets (AutoComplete/DropDownList/etc.) default to a smaller font than .form-control; match the 14px baseline used elsewhere on this form. */
#impersonationForm .k-input,
#impersonationForm .k-picker,
#impersonationForm .k-input-inner,
#impersonationForm .k-input-value-text {
    font-size: 14px;
    line-height: 1.42857143;
}

.form-horizontal > .form-group,
.form-horizontal #userOverrideContainer > .form-group,
.row > .form-group {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.form-horizontal > .form-group > *,
.form-horizontal #userOverrideContainer > .form-group > *,
.row > .form-group > * {
    padding-right: 15px;
    padding-left: 15px;
}

.col-sm-offset-1 {
    margin-left: 8.33333333%;
}

.col-sm-offset-2 {
    margin-left: 16.66666667%;
}

@media (min-width: 768px) {
    .form-horizontal .col-sm-2 {
        width: 16.66666667%;
    }

    .form-horizontal .col-sm-5 {
        width: 41.66666667%;
    }

    .form-horizontal .col-sm-10 {
        width: 83.33333333%;
    }

    .form-horizontal .col-sm-11 {
        width: 91.66666667%;
    }

    .form-horizontal .col-sm-12 {
        width: 100%;
    }
}

.control-label {
    padding-top: 0.375rem;
    margin-bottom: 0;
    text-align: right;
}

#impersonationForm .column-map-listbox,
#impersonationForm .column-map-listbox .k-list,
#impersonationForm .column-map-listbox .k-list-item,
#impersonationForm .column-map-listbox .k-item {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.42857143;
}

/* Match the ListBox selected-item color to the standard login button brand color. */
#impersonationForm .column-map-listbox .k-list-item.k-selected {
    background-color: #337ab7 !important;
    border-color: #337ab7 !important;
}

#impersonationForm .column-map-listbox .k-list-item.k-selected .k-list-item-text {
    color: #fff !important;
}

/* Keep the selected Role and GL Security options on the existing ListBox brand blue. */
#RoleCode-list .k-list-optionlabel.k-selected,
#RoleCode-list .k-list-optionlabel.k-state-selected,
#RoleCode-list .k-list-item.k-selected,
#RoleCode-list .k-list-item.k-state-selected,
#GLSecurityId-list .k-list-optionlabel.k-selected,
#GLSecurityId-list .k-list-optionlabel.k-state-selected,
#GLSecurityId-list .k-list-item.k-selected,
#GLSecurityId-list .k-list-item.k-state-selected {
    color: #fff !important;
    background-color: #337ab7 !important;
    background-image: none !important;
}

#RoleCode-list .k-list-optionlabel.k-hover:not(.k-selected):not(.k-state-selected),
#RoleCode-list .k-list-optionlabel:hover:not(.k-selected):not(.k-state-selected),
#RoleCode-list .k-list-item.k-hover:not(.k-selected):not(.k-state-selected),
#RoleCode-list .k-list-item:hover:not(.k-selected):not(.k-state-selected),
#GLSecurityId-list .k-list-optionlabel.k-hover:not(.k-selected):not(.k-state-selected),
#GLSecurityId-list .k-list-optionlabel:hover:not(.k-selected):not(.k-state-selected),
#GLSecurityId-list .k-list-item.k-hover:not(.k-selected):not(.k-state-selected),
#GLSecurityId-list .k-list-item:hover:not(.k-selected):not(.k-state-selected) {
    color: #333 !important;
    background-color: #f5f5f5 !important;
    background-image: none !important;
}

/* Old Bootstrap 3-era Kendo ComboBox look, confirmed against the live rendered widget DOM:
   span.k-combobox.k-input > (input.k-input-inner, button.k-input-button > span.k-svg-icon > svg). */
#authenticationResetForm .k-combobox {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 34px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075) !important;
}

#authenticationResetForm .k-combobox .k-input-inner {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    line-height: 1.42857143 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#authenticationResetForm .k-combobox .k-input-button {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-left: 1px solid #ccc !important;
    border-radius: 0 3px 3px 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

/* The Kendo theme's default arrow icon is blue; recolor it black to match the old look
   (the SVG icon inherits `fill` from `color`). */
#authenticationResetForm .k-combobox .k-input-button {
    color: #000 !important;
}

/* Match the Authentication Reset employee selection to the Audit filter's standard blue. */
#Employee-list .k-list-item.k-selected {
    color: #fff !important;
    background-color: #428bca !important;
    background-image: none !important;
}

/* The navbar search AutoComplete's wrapper carries .form-control alongside its own inner
   input.form-control, doubling up Bootstrap's border/padding into a "box inside a box". */
.search-box .k-autocomplete {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 100% !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.search-box .k-autocomplete .k-input,
.search-box .k-autocomplete input.form-control {
    height: 100% !important;
}

.search-box .k-input-inner {
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

#search-input-list,
#search-input-list .k-list-item {
    font-family: "Open Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn {
    border-radius: 4px;
}

.btn-default,
.btn-secondary {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-default:hover,
.btn-secondary:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

/* Restore pre-Bootstrap5-upgrade brand color for primary buttons (e.g. Login, Impersonate). */
/* !important needed to beat Bootstrap 5's --bs-btn-bg vars and the Kendo bootstrap theme CSS from the CDN. */
.btn-primary {
    color: #fff !important;
    background-color: #337ab7 !important;
    border-color: #2e6da4 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus {
    color: #fff !important;
    background-color: #286090 !important;
    border-color: #204d74 !important;
}

.btn-primary:active,
.btn-primary.active {
    color: #fff !important;
    background-color: #286090 !important;
    border-color: #204d74 !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    color: #fff !important;
    background-color: #337ab7 !important;
    border-color: #2e6da4 !important;
    opacity: 0.65;
}

.pull-left {
    float: left !important;
}

@media (max-width: 767.98px) {
    .hidden-xs {
        display: none !important;
    }

    .control-label {
        text-align: left;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hidden-sm {
        display: none !important;
    }
}

/* Everything below is ported verbatim (same selectors/colors) from MenuServiceBuilder.Web's
   Site.css so both grids render identically. !important needed to beat the Kendo
   bootstrap-main.css CDN theme. */
.k-button, .k-button.k-button-base, .k-button.k-button-solid, .k-button.k-button-solid.k-button-base {
    border-color: var(--kendo-color-base);
    color: var(--kendo-color-on-base);
    background-color: var(--kendo-color-base);
    background-image: none;
    border-radius: 4px;
    font-size: 14px;
}

.k-button-sm {
    font-size: 12px !important;
}

/* Matches MenuBuilder's Filter/Save button color exactly. */
/* !important required: the Save button also carries k-button/k-button-solid, whose
   2-class specificity would otherwise beat this single-class .k-primary selector. */
.k-primary {
    color: #fff !important;
    border-color: #357ebd !important;
    background-color: #428bca !important;
}

.k-primary:hover {
    color: #fff !important;
    border-color: #357ebd !important;
    background-color: #286090 !important;
}

#saveButton {
    cursor: pointer;
}

.k-button-solid-primary {
    border-color: #357ebd !important;
    color: #fff !important;
    background-color: #428bca !important;
}

/* Same color as .k-primary above, not the theme's default --kendo-color-primary. */
.k-button.k-button-primary,
.k-button.k-button-solid.k-button-primary {
    border-color: #357ebd !important;
    color: #fff !important;
    background-color: #428bca !important;
    background-image: none;
}

/* Keyboard-focused grid header cells/rows/list items were a visible blue glow pre-upgrade
   (kendo.bootstrap.min.css 2020.3.1118: ".k-state-focused { box-shadow: inset 0 0 7px 0
   #76abd9 }"); the modern theme renamed the class to .k-focus and its default is a barely
   visible 10%-opacity ring, making focus effectively invisible. */
.k-grid-header th.k-focus,
.k-grid td.k-focus,
.k-list-item.k-focus,
.k-focus {
    box-shadow: inset 0 0 7px 0 #76abd9 !important;
}



/* Colors the Grid pager's prev/next/refresh icon buttons; matches MenuBuilder exactly.
   Scoped to .k-pager so it doesn't also color unrelated .k-icon-button elements elsewhere
   on the page (e.g. the PurgeDays NumericTextBox's up/down spinner buttons). */
.k-pager .k-icon-button {
    color: #428bca !important;
}

/* The NumericTextBox spinner picked up the theme's default grey button fill and, before the
   scoping fix above, the pager's blue icon color too; keep it plain/transparent like the
   surrounding input instead. */
.k-numerictextbox:has(#PurgeDays) .k-spinner-increase,
.k-numerictextbox:has(#PurgeDays) .k-spinner-decrease {
    background-color: transparent !important;
    color: #333 !important;
    border-color: #ccc !important;
}

.k-font-icon-large {
    font-size: 24px !important;
    vertical-align: baseline !important;
}

.k-treeview {
    color: #337ab7 !important;
}

.k-dialog-titlebar {
    background: #075b7f;
    color: #fff;
    font-size: 16px;
}

.k-pager-info {
    display: block !important;
    font-size: 14px;
    font-family: inherit;
}

/* Pre-upgrade active-filter style (.k-grid-filter.k-state-active), ported to the modern
   .k-active class name the current grid actually applies. */
.k-grid-header .k-grid-filter.k-active,
.k-grid-header .k-header-column-menu.k-active,
.k-grid-header .k-grid-header-menu.k-active,
.k-grid-header .k-hierarchy-cell .k-icon.k-active {
    border-color: #aeaeae !important;
    background-color: #ebebeb !important;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .075) inset !important;
    /* The theme's own .k-active default is white text/icon (meant to contrast its blue
       background); now that the background is light grey, force the icon back to its
       normal dark color instead of leaving it invisible. */
    color: inherit !important;
}

/* Keep pager numbers neutral so the Kendo theme provides the same light selected-page
   styling as Menu Builder. */
.k-pager-numbers .k-button {
    background-color: transparent !important;
    border-color: transparent !important;
    color: #428bca !important;
    background-image: none !important;
}

/* Keep the selected page light blue while retaining blue page-number text. */
.k-pager-numbers .k-button.k-selected,
.k-pager-numbers .k-button.k-selected:hover,
.k-pager-numbers .k-button.k-selected:focus,
.k-pager-numbers .k-button.k-selected.k-hover {
    background-color: #cfe2ff !important;
    border-color: #cfe2ff !important;
    color: #052c65 !important;
    background-image: none !important;
}

.k-pager-md .k-pager-numbers-wrap .k-button {
    min-width: calc(var(--kendo-line-height, normal) * 1em + var(--kendo-spacing-1\.5, 0.375rem) * 2 + 2px);
}

.k-pager-numbers .k-selected {
    cursor: inherit;
    z-index: 2;
}

.k-pager-sizes {
    font-size: 14px;
    font-family: inherit;
}

.k-pager-numbers {
    display: flex !important;
}
