﻿:root {
    --grey-text: #333333;    
}

/* #region Tooltips */
.info-tooltip {
    text-decoration: none;
    background-image: url('../images/info-icon.png');
    background-size: cover;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}
/* #endregion Tooltips */

.loading-backdrop {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);    
    z-index: 100;
}

.loading-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loading-spinner-top {
    position: fixed; /* Sticks the element relative to the viewport */
    top: 50%; /* Aligns it to the top of the viewport */
    left: 50%; /* Aligns it in the center of the viewport */
    width: 10%; /* sets the width */   
    padding: 10px;    
}

/* #region Report Pages */
.report-results-container,
.dwc-datagrid-container {
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    border-left-width: 0px;
    border-color: #ccc;
    margin-bottom: 20px;
}

.report-results,
.dwc-datagrid-table {
    background-color: white;
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    border-width: 0;
    outline: 0;
    font-size: 12px;
    font-weight: 400;
    color: #333;
}

.report-results td,
.dwc-datagrid-table tbody td {
    padding: .25em .6em .2em .6em;
    border-style: solid;
    border-width: 0px 1px 0px 1px;
    border-color: #ccc;
    line-height: 2em;
}

.report-results:first-child tr:first-child th {
    border-top-width: 0;
}

.report-results tr:last-child th {
    border-bottom-width: 0;
}

.report-results th,
.dwc-datagrid-table thead th {
    padding: .25em .6em .2em .6em;
    background-color: rgb(245, 245, 245);
    border-style: solid;
    border-width: 1px 0 1px 1px;
    border-color: #ccc;
    line-height: 2em;
    font-weight: 600;
}

.report-results tr th:last-child, .report-results tr td:last-child,
.dwc-datagrid-table tr th:last-child, .dwc-datagrid-table tr td:last-child {
    border-right-width: 0;
}

.report-results tr.alt, .report-results tr:nth-child(even),
.dwc-datagrid-table tr.alt, .dwc-datagrid-table tr:nth-child(even) {
    background-color: #ebebeb;
}

.report-results-secondary-text {
    font-size: 95%;
    font-style: italic;
    color: #AA0000;
}

.report-parameters tr > td:first-child {
    width: 15em;
}

.grey-text {
    color: var(--grey-text);
}

/* #endregion Report Pages */

/* #region Table Format */
.table-condensed td,
.table-condensed th {
    margin: 0.2em !important;
    padding: 0.1em !important;
}
/* #endregion Table Format */

/* #region Landing Page*/
h2 {
    font-size: 1.15rem;
}

h3 {
    font-size: 1.05rem;
}

h4 {
    font-size: 1.0rem;
}

.landing-menu ul,
.landing-menu ol {
    margin-left: 0 !important;
    padding-left: 0 !important;    
}

.landing-header {    
    padding-top: 0.5em;    
}

.btn-outline-secondary:hover {
    color: #fff !important;
}
/* #endregion Landing Page*/
/* #region accordion-muted */
/* ---- muted accordion header ---- */
.accordion-muted .accordion-item {
    border: 1px solid #cdd6e1;
}

.accordion-muted .accordion-button,
.accordion-muted .accordion-button:not(.collapsed) {
    background-color: #f5f7fb; /* steady gray */
    color: #2b2f33;
    font-weight: 600; /* bold text */
    box-shadow: inset 0 -1px 0 #cdd6e1; /* subtle divider like a card header */
}

/* make the chevron always black */
.accordion-muted .accordion-button::after {
    filter: none; /* remove Bootstrap's grayscale filter */
    background-image: none; /* reset Bootstrap’s SVG */
    width: 0.65em;
    height: 0.65em;
    border-right: 2px solid #000; /* black */
    border-bottom: 2px solid #000; /* black */
    transform: rotate(45deg);  /*down arrow shape */
}

.accordion-muted .accordion-button:not(.collapsed)::after {
    transform: rotate(-135deg); /* arrow points up when expanded */
}

/* #endregion accordion-muted*/
/* #region dwc-datagrid (public theme)*/

.dwc-datagrid-container {
    padding: 8px 0 0 0 !important;
    border-top-width: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-right-width: 0 !important;
}

.dwc-datagrid-header-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 2em !important;
    color: #333 !important;
}

.dwc-datagrid-table {
    border: 0 !important;
    border-right: 1px solid #ccc !important;
    border-collapse: collapse !important;
}

.dwc-datagrid-table thead th {
    font-size: 12px !important;
}

.dwc-datagrid-table tbody tr:nth-child(even) {
    background-color: #ebebeb !important;
}

/* Library bug workaround: suppress filter UIs globally */
.dwc-datagrid-filter,
.dwc-datagrid-filter-modal {
    display: none !important;
}

/* #endregion dwc-datagrid (public theme)*/