/* CSS isolation doesn't work with Telerik */

@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

html, body {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #424242;
    background-color: #fafafa;
    height: 100%;
    overflow: auto;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

hr {
    background-color: transparent !important;
    border: 0;
    border-top: thin solid black;
}

a {
    color: #1976d2;
}

.epri-blue {
    color: #1976d2 !important;
}

.high-zindex {
    z-index: 99999;
}

.k-drawer-container {
    height: calc(100% - 65px);
    max-height: calc(100% - 65px);
}

@media (max-width: 640px) {
    .k-drawer-container {
        height: calc(100% - 130px);
        max-height: calc(100% - 130px);
    }
}

.k-drawer {
    background-color: #212121;
    color: white;
    border: 0;
}

.k-drawer-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.k-drawer-separator {
    background-color: white;
}

li.k-drawer-item.k-state-focused:not(.k-state-selected), li.k-drawer-item:focus:not(.k-state-selected) {
    color: #424242;
    background-color: #ececec;
}

.k-drawer-content {
    height: 100%;
    overflow: auto;
}

#drawer-toggler {
    color: white;
    width: 48px;
    height: 100%;
}

span.k-icon.k-i-menu.k-button-icon {
    font-size: 25px;
}

.primary-tech-menu {
    background-color: #212121 !important;
    height: 45px;
}

    .primary-tech-menu li.k-item.k-menu-item {
        color: white !important;
    }

.secondary-tech-menu {
    background-color: #212121 !important;
    height: 45px;
}

    .secondary-tech-menu li.k-item.k-menu-item {
        color: white !important;
    }

span.k-menu-link.selected {
    background-color: #1976d2 !important;
    color: white !important;
    font-weight: bold;
}

.tech-col {
    padding: 10px;
    margin: 15px;
    border: 1px solid #212121;
    border-radius: 4px;
}

.form-no-buttons .k-form-buttons {
    margin: 0px;
}

.validation-message-error {
    color: #b71c1c;
    font-size: 12px;
    font-style: italic;
    white-space: pre-line;
}

.error-content {
    padding-top: 1.1rem;
}

#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;
    }

/* CSS rules for DataGrid pages */

.k-form-field {
    margin: 0 !important;
}

.k-grid-header {
    background-color: #35d3f2;
    color: white;
}

.k-icon.k-i-filter {
    color: white;
}

.k-grid-filter:hover {
    background-color: gray;
}

/* Telerik Control overrides */
.k-card-header {
    padding: 2px 8px;
}

.k-form-legend {
    margin-bottom: 0px !important;
}

.k-grid td.k-selected, .k-grid td.k-state-selected, .k-grid tr.k-selected > td, .k-grid tr.k-state-selected > td {
    background-color: rgba(18,116,172,.25);
}

.k-checkbox, .k-numerictextbox, k-textbox, .k-input, .k-radio {
    border-color: rgb(0 0 0 / 50%) !important;
}

span.k-icon.k-i-arrowhead-w, span.k-icon.k-i-arrowhead-e {
    color: black !important;
}

.kendo-scrollview.k-scrollview-wrap, kendo-scrollview.k-scrollview, div.k-scrollview {
    border-color: inherit;
    color: #424242;
    background-color: #ffffff;
}

.k-scrollview-pageable > .k-button, .k-scrollview-nav > .k-link:not(.k-primary) {
    background: #000000 !important;
}

.k-pager {
    border-color: rgba(0, 0, 0, 0.08);
    color: #424242;
    padding: 8px 8px;
    border-width: 1px;
    font-size: inherit;
    border-style: solid;
    box-sizing: border-box;
    outline: 0;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4285714286;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: default;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    border-top: 1px solid rgba(0, 0, 0, 0.25);
}

/* Global control overrides */
textarea {
    height: 150px;
}

/* Global CSS rules for edit section (below page grid) */
.edit-section {
    border: 1px solid #9e9e9e;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 4px;
    background-color: #fff;
}

.edit-header-area {
    display: flex;
    flex-direction: row;
}

@media only screen and (max-width: 1000px) {
    .edit-header-area {
        flex-direction: column;
    }
}

.edit-header-text {
    font-size: 1.3rem;
    margin-bottom: 0;
    height: 100%;
    flex: 1;
    line-height: 1.4;
}

.edit-header-buttons {
    flex: 1;
    text-align: right;
}

.edit-section-error-box {
    background-color: #ffa6a6;
    color: black;
    padding: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 1.2rem;
    border: 1px solid black;
}

.edit-section-error-box-list {
    list-style-type: circle;
    margin-bottom: 0;
    padding-left: 1rem;
}

.tabs {
    border: 1px solid black;
    display: flex;
    background-color: #616161;
    margin-bottom: 8px;
}

.tab {
    padding: 0.2rem 0.5rem 0.15rem 0.5rem;
    cursor: pointer;
    border-right: 1px solid white;
    color: white;
}

    .tab:hover {
        background-color: #BBDEFB;
        color: black;
    }

.tab-selected {
    background-color: #BBDEFB;
    color: black;
    font-weight: bold;
}

#technology-parent-tab {
    background-color: #1565c0;
}

#technology-child-tab {
    background-color: #4f7eac;
}

/* Custom Tagweb classes */
.tg-bg-blue {
    background-color: #1976d2 !important;
}

.tg-bg-lightblue {
    background-color: #468ed5 !important;
}

.tg-dropdown {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    padding: 0.25rem;
    background-color: #f5f5f5;
}

.tg-form-validation-error {
    color: red;
    padding: 0.25rem;
    font-size: 1.25rem;
    background-color: #ffffab;
    font-style: italic;
}

.no-tagweb-user-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-tagweb-user-box {
    border: 2px solid cyan;
    padding: 2rem;
}

.bottom-toolbar {
    padding: 8px;
    border: 1px solid black;
    border-top: none;
    display: flex;
    align-items: center;
}

.show-ellipsis {
    overflow: hidden;
    max-height: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .technology-selection {
        flex-direction: column;
    }

    #technology-group-list {
        flex: 1;
    }

    #technology-record-list {
        flex: 1;
    }
}

.technology-selection {
    display: flex;
    gap: 1rem;
}

#technology-group-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#technology-record-list {
    flex: 7;
}

ol.two-columns {
    -moz-column-count: 2;
    -moz-column-gap: 20px;
    -webkit-column-count: 2;
    -webkit-column-gap: 20px;
    column-count: 2;
    column-gap: 10px;
}

    ol.two-columns > li {
        margin-bottom: 4px;
        font-size: 1.3rem;
    }

        ol.two-columns > li:last-child {
            margin-bottom: 0px;
        }

        ol.two-columns > li::marker {
            font-weight: bold;
            color: black;
        }

/* Hacky solution to make the first Telerik ROW non-editable (e.g. edit button disabled, multicheckbox disabled */
/* If Telerik UI updates, chances are this breaks. */
.non-editable-row > .k-command-cell > span > button {
    pointer-events: none;
    opacity: 0.6;
}

.non-editable-row > td:first-child > span > input {
    pointer-events: none;
    opacity: 0.6;
    background-color: white;
}

.highlighted-cell {
    border: 2px solid #424242 !important;
}

.li-link {
    color: #1976d2;
    cursor: pointer;
    width: max-content;
}

.alternate-header-color > .k-grid-aria-root > .k-grid-header {
    background-color: #757575;
}

.validation-message {
    color: #b71c1c;
    margin-top: 4px;
    display: -ms-flexbox;
    display: flex;
    font-size: 12px;
    font-style: italic;
}

.gray-border {
    border: 1px solid #9e9e9e !important;
}

.border-bottom-none {
    border-bottom: none !important;
}

.responsive-img {
    width: 100%;
    height: auto;
}

.tech-summary-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.k-scrollview-next .k-icon, .k-scrollview-prev .k-icon {
    color: black;
}
