﻿/* Customizations to Telerik Components */


/* ----- TelerikForm ----- */

/* applied when formgroup-styling added to TelerikForm Class attribute, and following added to FormGroup Class attribute */
.formgroup-styling .k-grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    padding: 16px;
}

.formgroup-styling .group-title {
    font-size: var(--font-size-h6, 16px);
}

.formgroup-styling .group-title .validation-message {
    font-size: initial;
    font-weight: normal;
}

.formgroup-styling .group-title-padding {
    padding: 16px 16px 0px 16px;
}

.formgroup-styling .border {
    background-color: white;
    border: 1px solid #686868;
    border-radius: 8px;
}

.formgroup-styling .no-margin {
    margin: 0px;
}

.formgroup-styling .field-top-margin {
    margin-top: 16px;
}

.formgroup-styling .top-margin-8px {
    margin-top: 8px;
}

.formgroup-styling .k-form-legend {
    text-transform: none;
    font-weight: bold;
}

.formgroup-styling .k-dropzone {
    background-color: unset;
}

.formgroup-styling hr {
    margin: 10px 0 10px 0;
    color: var(--studs-kendo-color-border-alt);
}

.formgroup-styling label.required::after {
    content: "*";
}

.dropzone-container {
    width: 324px;
    justify-self: right;
}

/* fieldsets immediately proceeding a header within a k-form */
.k-form h1 + .k-form-fieldset,
.k-form h2 + .k-form-fieldset,
.k-form h3 + .k-form-fieldset,
.k-form h4 + .k-form-fieldset,
.k-form h5 + .k-form-fieldset {
    margin-top: 0;
}

/* headers which are immediately proceeding fieldsets within a k-form,
    or headers immediately proceeding a k-form */
.k-form .k-form-fieldset + h1,
.k-form .k-form-fieldset + h2,
.k-form .k-form-fieldset + h3,
.k-form .k-form-fieldset + h4,
.k-form .k-form-fieldset + h5,
.k-form + h1,
.k-form + h2,
.k-form + h3,
.k-form + h4,
.k-form + h5 {
    margin-top: 20px;
}

/* Hide the legend for nested form groups */
.nested-form-group .k-form-legend {
    display: none;
}

.indent-style {
    margin-left: 20px;
}

/* ----- TelerikGrid ----- */

/* ensures header cells with and without content have the same background */
.k-header.k-table-th, .k-grid-header {
    background-color: var(--studs-kendo-color-surface-alt);
}

/* hides vertical scrollbar */
.grid-no-scroll .k-grid-content {
    overflow-y: auto;
}

.grid-no-scroll .k-grid-header,
.grid-no-scroll .k-grid-footer {
    padding-right: 0;
}

.grid-no-scroll .k-grid-header-wrap,
.grid-no-scroll .k-grid-footer-wrap {
    border-right-width: 0;
}

/* ensures inactive grid row is always this color */
.k-table-row .k-master-row .grid-row-inactive,
.k-grid.k-grid-md .k-table .k-table-tbody .k-master-row.k-table-row.k-alt.k-table-alt-row .grid-row-inactive,
.k-grid.k-grid-md .k-table .k-table-tbody .k-master-row.k-table-row.k-alt.k-table-alt-row .grid-row-inactive .k-grid-content-sticky,
.k-master-row.grid-row-inactive .k-grid-content-sticky,
.grid-row-inactive {
    background-color: var(--studs-error-00) !important;
}

/* ensures contents of grid command cell is always aligned to the right */
.k-table-td .k-command-cell {
    text-align: right;
}

.gridcommand-moreoptions {
    display: inline-block;
}

/* Add rounded corners to the Grid */
.k-grid {
    border-radius: 8px;
    overflow: hidden;
}

/* Remove vertical borders in Grid */
.k-grid td,
.k-grid th {
    border-left: none !important;
    border-right: none !important;
}

/* Centers inline buttons and dropdown */
.inline-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Allows for text overflow and ellipsis....*/
.grid-no-scroll .k-grid-header .k-header, /* Header Cells */
.grid-no-scroll .k-grid-table tr td { /* Data Cells */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ensures background of sorted columns have standard color */
.k-grid.k-grid-md .k-table .k-sorted {
    background-color: var(--studs-kendo-color-surface-alt);
}

/* ----- TelerikTabStrip ----- */
/* applied when tabstrip-styling added to TelerikTabStrip Class attribute*/
.tabstrip-styling .k-tabstrip-content {
    padding: 0;
    padding-top: 5px;
    border: none;
    background: none
}

.phone-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
}

.tabstrip-styling .k-tabstrip-content.k-content.k-active {
    padding: 0;
    padding-top: 5px;
    border: none;
    background: none
}

/* Matches drawer background color with studs kendo*/
.k-drawer-content .k-drawer-container {
    background: var(--kendo-color-app-surface);
}


/* ----- TelerikDropDownButton ----- */

/* removes errant shadow around first item within a dropdown button menu */
.k-menu-group .k-item:focus > .k-link, .k-menu-group .k-item.k-focus > .k-link, .k-menu.k-context-menu .k-item:focus > .k-link, .k-menu.k-context-menu .k-item.k-focus > .k-link {
    box-shadow: none;
}

/* ----- TelerikWindow ----- */

/* Rounds window corners */
div.k-window.custom-rounded-window {
    border-radius: 12px;
    overflow: hidden;
}


/* ----- TelerikDrawer ----- */
.k-drawer-push .k-drawer {
    height: 100vh;
    position: sticky;
    top: 0;
}

.k-drawer-content {
    height: 100vh;
}


/* ----- TelerikAppBar ----- */
.project-layout-appbar {
    background: #fff;
    box-shadow: none;
    border-bottom: 1px solid var(--kendo-color-border, rgba(0, 0, 0, 0.08)); /* match main nav border */
}

.project-body {
    margin: 15px 0 0 15px;
}

/* ----- TelerikTileLayout ----- */
.k-tilelayout {
    background: none;
}

.project-summary-dashboard {
    padding: 0px 16px 16px 0px !important;
    max-width: 1900px !important;
}

.k-card-header {
    display: none;
}

.k-tilelayout .k-card {
    border-style: none;
}

.k-tilelayout-item.k-card.under-development {
    border-style: dashed;
}