/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\ 
for details on configuring this project to bundle and minify static web assets. */
body {
    padding-bottom: 20px;
}

/*------------------------*/
/* Bootstrap/Kendo tweaks/fixes */
/*------------------------*/
.k-grid td { /* reduce the padding in grid cells*/
    padding: .5em .5em;
}

.body-content { /*bit of spacing around the main body area*/
    padding: 15px;
}

.k-filter-row th, .k-grid-header th.k-header { /* reduce the padding of grid header cells */
    padding: 0.75em 0.5em;
}

.k-command-cell { /* keep the command buttons on the right side */
    text-align: right;
}

.k-tabstrip-items .k-item { /* allow the tabs on a tabstrip to wrap */
    display: inline-block;
}

.k-menu .k-animation-container .k-menu-group { /*a little less padding on the top/bottom of the menu */
    padding: 0.5em 0;
}

.k-edit-form-container-custom { /*used on popup windows to override the width of k-edit-form-container*/
    width: unset;
}

.k-grid .k-grid-toolbar .k-grid-add,
.k-grid tbody .k-grid-edit,
.k-grid tbody .k-grid-update,
.k-grid tbody .k-grid-cancel,
.k-grid tbody .k-grid-copy,
.k-grid tbody .k-grid-delete { /*in-row command buttons icon only and a bit smaller*/
    min-width: 0;
}

.k-grid .k-grid-toolbar .k-grid-add .k-icon,
.k-grid tbody .k-grid-edit .k-icon,
.k-grid tbody .k-grid-update .k-icon,
.k-grid tbody .k-grid-cancel .k-icon,
.k-grid tbody .k-grid-copy .k-icon,
.k-grid tbody .k-grid-delete .k-icon { /*in-row command buttons icon only and a bit smaller*/
    margin: 0;
}

.k-checkbox-label:active:after { /* remove the tapped highlight from checkboxes */
    box-shadow: none !important; /* todo */
    background: none !important;
}

.k-grid tr {
    cursor: pointer;
}

.k-grid table td .smalltext {
    color: #909090;
    font-size: small;
}

.k-grid table td .center {
    text-align: center;
}

.k-grid table td .nowrap {
    white-space: nowrap;
}

/*--------------------*/
/* compact grid table */
/*--------------------*/
.k-grid.compact .k-header {
    padding: .5em .3em;
}

.k-grid.compact td {
    padding: .2em .3em;
}

.k-grid.compact .k-button {
    padding: 2px;
}

.k-grid.compact .k-numeric-wrap .k-select {
    line-height: 1.2em;
}

.k-grid.compact .k-numeric-wrap .k-link {
    height: 0.75em;
}

.k-grid.compact input.k-input {
    line-height: 1.2em;
}

.k-grid.compact input.k-textbox {
    line-height: 1.2em;
}

.k-grid.compact th .k-button-icontext {
    padding-right: 3px;
}

/* toolbar menu */
.k-menu-titlebar {
    background-color: transparent;
}

.k-menu-titlebar > li.k-item {
    color: #ffffff;
}

.k-menu-titlebar > li {
    background-color: transparent;
}

    .k-menu-titlebar > li > span {
        background-color: transparent !important;
    }

.k-menu-titlebar span.k-menu-expand-arrow {
    display: none;
}

.k-menu-titlebar > .k-item > .k-link > .k-icon {
    margin: 0;
}


/*--------*/
/* navbar */
/*--------*/
.navbar-right {
    float: right;
    height: 50px;
    padding: 15px 30px 15px 15px;
    /*font-size: 18px;
line-height: 20px;*/
}

/*--------*/
/* vertical view/edit field */
/*--------*/
.vertical-view-field, .vertical-edit-field {
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
}

.vertical-view-field:first-child, .vertical-edit-field:first-child {
    padding-left: 0px;
}

.vertical-view-field:last-child, .vertical-edit-field:last-child {
    padding-right: 0px;
}

.vertical-view-field > div:first-child, .vertical-edit-field > div:first-child { /* holds the title*/
    font-weight: bold;
    border-bottom: 1px solid #c0c0c0;
    margin-bottom: 2px;
    padding-bottom: 4px;
    text-align: center;
}

.vertical-view-field > span { /* holds the value */
    padding: 8px 5px;
    text-align: center;
    display: block;
}

/* template tweaks */
.ViewTemplate .TemplateBody {
    padding: 16px;
}

.EditTemplate .TemplateBody {
    padding: 0px 16px;
}

.TemplateButtons {
    padding: 10px;
    border-top: #c0c0c0 1px solid;
    text-align: right;
}

.roundedLikeKButton {
    height: 2em;
    border-radius: 5px;
    background-color: lightgray;
}

.alignTextWithFormControl {
    padding-top: 0.5em;
}

.hand span {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
}

.hand, .pseudo-link {
    cursor: pointer;
}

.pseudo-link {
    text-decoration: underline;
    color: blue;
}


/*--------*/
/** The following styles are used in search panels */
/*--------*/
.SearchParamsPanel .SearchField {
    display: inline-block;
    /*float:left;*/
    margin-right: 10px;
}

    .SearchParamsPanel .SearchField > span:first-child {
        font-weight: bold;
        font-size: small;
        color: #404040;
        margin-left: 5px;
    }

.SearchParamsPanel::after {
    content: "";
    clear: both;
    display: table;
}
/** End of search panel stles */

/***
    These styles are used to make the plain Kendo Dialog buttons look more like the built-in Kendo grid editor popup ones.
*/
.c-edit-buttons {
    background-color: #fafafa;
    border-top: #e6e6e6 1px solid;
    width: 100%;
    height: 3em;
    padding-top: 0.5em;
}

.c-primary {
    color: #00b0ff !important;
}

.validationMessage {
    color: red;
}

.infolabel {
    font-weight: bold;
}

.infovalue {
    padding-left: 1em;
}

.infoAreaPair {
    float: left;
    margin-right: 2em;
}

.right {
    text-align: right;
}

.detailsTable > tbody > tr > td {
    height: 1.7em;
}

.empty-grid {
    margin-top: 1em;
    margin-bottom: 1em;
    /*font-size: larger;*/
    font-weight: bold;
}

a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.DashboardItem-label {
    padding-right: 10px;
}

.DashboardItem-title {
    font-weight: bold;
}


#navbarContainerMain {
    background-color: #f0f0f0;
    /*height: 50px;    */
    margin-bottom: 0.5em;
    padding-top: 5px;
    padding-bottom: 5px;
}

.navbar {
    padding-top: 0;
}

#pageTitle {
    font-size: 1.25em;
    font-weight: bold;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 6px;
    white-space: nowrap;
}

.container {
    /*Remove the weird bootstrap pseudo-but-not-at-all centering */
    margin-left: unset;
    margin-right: unset;
}

.navbar {
    justify-content: unset;
}

#brandImgContainer, #userNameContainer, #userControlsContainer {
    float: left;
}

#endUserAreaContainer {
    clear: both;
}

#userLogoImage {
    height: 35px;
}

#userNameContainer {
    vertical-align: middle;
    margin-left: 0.5em;
    margin-right: 0.5em;
    padding-top: 0.5em;
}

#userControlsContainer {
    padding-top: 0.4em;
}

#navbar-right-container {
    margin-top: -50px;    
}

main {
    margin-top: 55px;
}

#NavMenu {
    margin-top: 3px;
}

/* Kendo dropdownlist override colors if they are ugly */
.k-picker-solid {
    background-color: lightgray;
    color: #000000;
}

.bold {
    font-weight: bold;
}

.red {
    color: red;
}

.orderInputLong {
    width: 150px;
}

.orderInputXL {
    width: 194px;
}

.orderInputXXL {
    width: 250px;
}

.orderInputShort {
    width: 75px;
}

.orderInputTbl > tbody > tr > td {
    padding-left: 0.5em;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    vertical-align: top;
}

.orderInputTbl > tbody > tr > td.right {
    font-weight: bold;
}

.valignWithInput {
    padding-top: 0.75em !important;
}

.noBold {
    font-weight: normal;
}

.assign-tm-link {
    text-decoration: underline !important;
    color: blue !important;
}

.order-send-to-agent {
    text-decoration: underline !important;
}

