﻿/* Shared between WebCA proper, Overview and login.aspx */

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft Sans Serif';
    font-size: 12px;
    line-height: normal;
    margin: 0;
}

[class^="icon-"]:before, [class*=" icon-"]:before {
    line-height: 1.2em;
}

.dps-hover {
    outline: none;
}

.dps-hover:not(:disabled):hover {
    background-color: #bbb;
    border-color: #bbb;
}

.dps-hover:focus {
    background-color: #c0d5f2;
    border-color: #c0d5f2;
}

.high-contrast .dps-hover:not(:disabled):focus {
    background-color:darkblue;
    border-color: darkblue;
    color: white;
}

.low-contrast .dps-hover:not(:disabled):hover:focus {
    background-color: #769BCC;
    border-color: #769BCC;
}

/* Bootstrap-like classes */
.form-group {
    margin-bottom: 5px;
}

.form-control {
    height: 28px;
    padding: 4px 7px;
    width: 100%;
}

.form-control, .btn, select {
    font-size: 12px;
}

.btn {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 0;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn:hover {
    background-color: #bbb;
}

.btn:focus {
    outline: -webkit-focus-ring-color auto 1px;
}

.btn-primary {
    color: #fff;
    background-color: #428bca;
    border-color: #357ebd;
}

.high-contrast .btn-primary {
    background-color:darkblue;
    border-color: darkblue;
}

.high-contrast .btn-primary:focus {
    background-color: white;
    border-color: black;
    color: black;
}

.btn-block {
    width: 100%;
}

.btn-block + .btn-block {
    margin-top: 5px;
}

.dps-hide {
    display: none !important;
}

a.dps-icon-button {
    user-select: none;
    color: #787878;
    height: 28px;
    vertical-align: middle;
    display: inline-block;
    width: 28px;
    text-align: center;
    text-decoration: none;
}

.high-contrast a.dps-icon-button {
    color: black;
}

a.dps-icon-button:before {
    margin: 0;
    vertical-align: sub;
    margin-top: 3px;
    font-size: 19px;
}

/* fight Bootstrap */
a.dps-icon-button:focus, a.dps-icon-button:hover {
    outline: none;
    text-decoration: none;
    color: inherit;
}


.tabulator-col-title {
    position: relative;
}

.tabulator-col-title-text {
    overflow:hidden;
}

.tabulator-col-select {
    margin-left: 10px;
    margin-right: 40px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.tabulator-col-group {
    float: left;
    margin-top: -2px;
}

.tabulator .tabulator-header .tabulator-col, .tabulator .tabulator-tableHolder .tabulator-table, .tabulator-footer  {
    color: #333;
    background-color: white;
    font-size: 12px;
}

.high-contrast .tabulator .tabulator-header .tabulator-col,
.high-contrast .tabulator .tabulator-tableHolder .tabulator-table,
.high-contrast .tabulator .tabulator-footer .tabulator-page,
.high-contrast .tabulator-footer {
    color: black;
}

.high-contrast .tabulator .tabulator-footer .tabulator-page.active {
    background-color: darkblue;
    color: white;
}

.tabulator-footer  {
    background-color: white ;
    font-weight: normal !important;
    min-height: 30px;
}

.tabulator .tabulator-cell {
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 14px;
}

/* SLA warnings: */
.tabulator .tabulator-cell.icon-bell-alt:before {
    font-size: 11px;
}

.low-contrast .tabulator .tabulator-row.tabulator-row[row-sla-status='r'] .icon-bell-alt,
.high-contrast .tabulator .tabulator-row.tabulator-row[row-sla-status='r'] .icon-bell-alt:before {
    color: red
}

.low-contrast .tabulator .tabulator-row.tabulator-row[row-sla-status='y'] .icon-bell-alt,
.high-contrast .tabulator .tabulator-row.tabulator-row[row-sla-status='y'] .icon-bell-alt:before {
    color: darkorange;
}

.tabulator .tabulator-header .tabulator-col, .tabulator .tabulator-row .tabulator-cell, .tabulator .tabulator-header {
    border-color: #d4d4d4;
}

.tabulator .tabulator-header .tabulator-header-filter {
    font-weight: normal;
    color: red;
}

.high-contrast .tabulator .tabulator-header .tabulator-header-filter {
    color: darkred;
}

.tabulator {
    background-color: #EEE;
}

.tabulator .tabulator-tableHolder.no-vert-scrollbar {
    overflow-y: hidden;
}

.tabulator .tabulator-loader .tabulator-loader-msg.tabulator-loading {
  border-width: 0px;
  background-color: transparent;
}

.tabulator .tabulator-loader {
    background-color: white;
    opacity: 0.4;
}

.dps-tabulator-spinner {
    background-image: url("../images/ajax-loader.gif");
    opacity: 0.5;
    height: 31px;
    width: 31px;
}

.tabulator .tabulator-footer .tabulator-page {
    height: 22px;
    width: 22px;
    border-radius: 2px;
    border-color: lightgrey;
    color:gray;
    font-size: 90%;
}

.tabulator-page[data-page="first"], .tabulator-page[data-page="prev"],
.tabulator-page[data-page="next"], .tabulator-page[data-page="last"], 
.tabulator-page.tabulator-export {
    font-family: "fontello";
}

.tabulator .tabulator-footer .tabulator-page.tabulator-export {
    margin-right: 15px;
}

.tabulator-row.tabulator-selected {
    background-color: #c0d5f2;
}

.high-contrast .tabulator-row.tabulator-selected {
    background-color: darkblue;
    color: white;
}

.low-contrast .tabulator-tableHolder:not(:focus) .tabulator-row.tabulator-selected:hover {
    background-color: #769BCC;
}

.tabulator-menu {
    font-size: 12px;
    z-index: 1000001;
}

.dropdown {
    position: relative;
    width: 200px;
}

.dropdown select {
    width: 100%;
}

.dropdown > * {
    box-sizing: border-box;
}

.dropdown input {
    position: absolute;
    width: calc(100% - 19px);
    height: calc(100% - 2px);
    top: 1px;
    left: 1px;
    border-style: none;
}

.dropdown input:focus {
    border-right-style: solid;
}

.view-buttons {
    display:inline-block;
}

/* WorkItemGroupingDialog */
.form-control {
    box-sizing: border-box;
}

.column-sel {
    margin: 5px;
}

/* PopupToConfirm */

.dps-popup-message {
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: pre-line;
}

.dps-popup-button {
    margin: 3px;
}

.popup-value {
    margin: 10px;
}

/* Popup */

.dps-popup-footer {
    position: absolute;
    right: 14px;
    bottom: 10px;
    width: calc(100% - 25px);
}

.dps-popup {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000000;
}

.dps-popup.popup-level2 {
    z-index: 1000020;
}

.popup-dialog {
    display: none;
    min-width: 18em;
    z-index: 99999999;
    position: relative;
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 1px 1px 5px black;
    border-radius: 6px;
}

.popup-header {
    font-size: 120%;
    color: #555;
    padding: 6px;
    padding-left: 10px;
    border-bottom: 1px solid lightgrey;
    background-color: #f6f6f6;
    border-radius: 6px 6px 0 0;
}

.popup-header, .popup-dialog { user-select: none; }
.popup-header, .popup-dialog { -webkit-user-select: none; }
.popup-header, .popup-dialog { -ms-user-select: none; }

.popup-content {
    padding: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    overflow-y: auto;
    height: calc(100% - 65px);
}

.popup-content span {
    display:inline-block;
}

.popup-content td, .popup-content th {
    padding-right: 10px;
    padding-top: 8px;
}

.popup-buttons {
    float: right;
}

.popup-buttons-only-one {
    float: unset;
    text-align: center;
}

.popup-buttons div {
    color: #555;
    float: none;
    display: inline-block;
}

.high-contrast .popup-buttons div {
    color: black;
}

.popup-buttons [class*="icon-"]:before {
    font-size: 14px;
}
    
.popup-buttons div:hover, .popup-buttons div:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.dps-resize {
    position: absolute;
    display: block;
}

.dps-resize-n {
    top: -3px;
    left: 0;
    width: 100%;
    height: 6px;
    cursor: n-resize;
}

.dps-resize-e {
    top: 0;
    right: -3px;
    width: 6px;
    height: 100%;
    cursor: e-resize;
}

.dps-resize-s {
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 6px;
    cursor: s-resize;
}

.dps-resize-w {
    top: 0;
    left: -3px;
    width: 6px;
    height: 100%;
    cursor: w-resize;
}

.dps-resize-se {
    bottom: -3px;
    right: -3px;
    width: 6px;
    height: 6px;
    cursor: se-resize;
}

.dps-resize-sw {
    bottom: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    cursor: sw-resize;
}

.dps-resize-ne {
    top: -3px;
    right: -3px;
    width: 6px;
    height: 6px;
    cursor: ne-resize;
}

.dps-resize-nw {
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    cursor: nw-resize;
}

.dps-lightbox, .popup-lightbox {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    opacity: 0.8;
    background: rgba(0,0,10,0.2);
}

#toast-container {
    z-index: 9999999;
}

.high-contrast .dps-lightbox, .high-contrast .popup-lightbox {
    background: rgba(0,0,10,0.8);
}

.popup-lightbox.popup-level1 { z-index: 999999; }
.popup-lightbox.popup-level2 { z-index: 1000001; }
.dps-lightbox { z-index: 2000000; }
.dps-lightbox.lightbox-partial { z-index: 9999; /* menu over lightbox */ }

.dps-lightbox.fadedin, .popup-lightbox.fadein {
    animation: fadein linear 0.5s;
    opacity: 0.3;
}

@keyframes fadein {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 0.3;
    }
}

#button-help {
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
}

#button-errors:not(.understated) {
    color: red;
}

#error-table {
    height: 100%;
}

#error-table td {
    vertical-align: text-top;
    padding: 5px;
}

#error-report-button {
    margin: 8px;
}

.error-hint {
    color: darkred;
}

/* Menu */

.dps-dropdown-title {
    display: inline-block;
}

.dps-dropdown-title.has-text {
    vertical-align: middle;
}

.dps-dropdown {
    border: 3.5px solid transparent;
    border-left-width: 2px;
    border-right-width: 2px;
    border-radius: 3px;
    height: 30px;
    display: inline-block;
    font-size: 19px;
    vertical-align: sub;
}

.high-contrast .dps-dropdown.dps-hover:not(:disabled):focus {
    border-color: white;
}

.dps-dropdown-button {
    display: inline-block;
    font-size: 15px;
}

.dps-dropdown-button::before {
    margin-left: 0px;
    font-size: 13px;
}

.dps-menu {
    position: absolute;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    z-index: 10000;
    padding: 5px 2px;
}

.dps-menu-button {
    color: #555;
    border: 6px solid transparent;
    border-left-width: 15px;
    border-right-width: 15px;
    display: block;
}

.high-contrast .dps-menu-button {
    color: black;
}

.dps-menu-button[class*="icon-check"]:before {
    font-size: 12px;
    line-height: 1em;
    margin-left: 0;
}

#username {
    display: inline-block;
    font-size: 14px;
    vertical-align: middle;
}

#username.is-menu {
    vertical-align: top;
}

.div-disabled {
    pointer-events: none;
    opacity: 0.5;
}

.multi-select {
    position: relative;
    border: 1px solid black;
    border-radius: 4px;
    height: 27px;
    border-color: #ccc;
    overflow: hidden;
}

.multi-select .combobox-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 16px;
    color: grey;
    cursor: pointer;
    line-height: 24px;
    text-align: center;
    font-size: 10px;
}

.multi-select:focus {
    outline: -webkit-focus-ring-color auto 1px;
}

.high-contrast .multi-select .combobox-button {
    color: black;
}

.multi-select-text {
    line-height: 24px;
    margin-left: 10px;
    color: #555;
}

.high-contrast .multi-select-text {
    color: black;
}

.multi-select-menu {
    padding-bottom: 3px;
}

.multi-select-menu .dps-menu-button {
    border-left-width: 5px;
    border-right-width: 5px;
    line-height: 10px;
}

