﻿@media (min-width: 1300px) {.container {width: 1270px; max-width: 1270px;}}
@media (min-width: 1400px) {.container {width: 1370px; max-width: 1370px;}}
@media (min-width: 1500px) {.container {width: 1470px; max-width: 1470px;}}
@media (min-width: 1600px) {.container {width: 1570px; max-width: 1570px;}}
@media (min-width: 1700px) {.container {width: 1670px; max-width: 1670px;}}
@media (min-width: 1800px) {.container {width: 1770px; max-width: 1770px;}}
@media (min-width: 1900px) {.container {width: 1870px; max-width: 1870px;}}
@media (min-width: 2000px) {.container {width: 1970px; max-width: 1970px;}}
@media (min-width: 2200px) {.container {width: 2170px; max-width: 2170px;}}
@media (min-width: 2400px) {.container {width: 2370px; max-width: 2370px;}}
@media (min-width: 2600px) {.container {width: 2570px; max-width: 2570px;}}

:root {
    --vh: 1dvh;
    --vw: 1vw;
    --border-colour: lightgray;
    --border-light: #e8e8e8;
    --primary-low-key: #4682B4;
    --primary-low-key-background: #f8f9fa;
    --selected-low-key: #FFB600;
    --selected-low-key-background: #343a40;
    --side-menu-width: 128px;
    --max-width: 1800px;

    --mat-standard-button-toggle-height: 32px;
    --form-font-size: 0.75rem;
}

body {
    overflow-y: hidden;
}

table thead .sorting {
    background-attachment: scroll;
    background-clip: border-box;
    background-color: rgba(0, 0, 0, 0);
    background-image: url("/assets/images/sort_both.png");
    background-origin: padding-box;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto auto;
    line-height: 16px;
}

table thead .sorting_asc {
    background-image: url("/assets/images/sort_asc.png");
    background-position: right top;
}

table thead .sorting_desc {
    background-image: url("/assets/images/sort_desc.png");
    background-position: right bottom;
}

table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.fill-table td:last-child {
    width: 100%;
}

a.country-flag {
    margin: 0;
}

a.country-flag > img {
    width: 25px;
    height: 20px;
    padding: 0 !important;
    margin: 0 2px 4px 2px;
}

tr.expanded-row,
td.expanded-row {
    border-right: 0;
    border-left: 1px solid #dddddd;
}

tr.expanded-row > td{
    border: 0;
    border-left: solid 3px var(--secondary);
    background-color: #FBFBFF;
    padding-left: 1em;
    padding-right: 1em;
    padding-top: 1em;
}

.flag-menu {
    min-width: 0;
}

td.sortable-icon-column,
th.sortable-icon-column {
    width: 24px;
    padding-left: 0.0rem;
    padding-right: 0.0rem;
    text-align: left;
    vertical-align: center;
    font-size: 0.75rem;
}

td.icon-column,
th.icon-column {
    width: 14px;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    text-align: center;
    vertical-align: center;
    font-size: 0.75rem;
}

td.chevron-column,
th.chevron-column{
    width: 20px;
}

h3.card-title,
h4.card-title,
h5.card-title {
    margin-bottom: 0.25rem;
}

h6.card-title {
    margin-bottom: 0.1rem;
}

.ng-select.custom {
    min-height: 32px;
}

    .ng-select.custom .ng-select-container {
        min-height: 32px;
    }

.ng-select-close-character:after {
    font-family: arial, sans-serif;
    content: "×";
}

.dialog-header {
    border-bottom: 0;
}

.dialog-body {
    color: #555;
    font-size: .85rem;
    padding-top: 0.5rem;
}

.input-group-text{
    font-size: 0.75rem;
}

.fa-chevron-down, .fa-chevron-right {
    font-size: 1rem;
}

/* Remove X for deletion from input using IE*/
input[type=text]::-ms-clear {
    display: none;
}

/* AGM custom map control to hide and show blast notification radiuses */
.ncvib-radius-dropdown-container {
    z-index: 1 !important;
}

.ncvib-radius-dropdown-container,
.ncvib-cad-slider {
    margin: 7px
}

    .ncvib-radius-dropdown-container > button {
        font-size: 18px;
        font-family: Roboto, Arial, sans-serif;
        color: rgb(86, 86, 86);
        border-radius: 2px;
        height: 30px;
        line-height: 22px;
    }

.ncvib-radius-dropdown {
    position: absolute;
    transform: translate3d(0, 38px, 0);
    top: -8px;
    right: -1px;
    z-index: 1000;
    min-width: 10rem;
    padding: .5rem 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
}

.ncvib-radius-dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 2rem;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.ncvib-radius-dropdown-item-sub {
    border-left: 1px solid #EEEEEE;
    margin-left: 10px;
    padding-left: 40px;
    margin-top: 4px;
}

/* AGM custom map control to change opacity of the CAD drawing */
div.ncvib-cad-opacity-bar {
    background: url(/assets/images/opacity-slider3d14.png) no-repeat;
    cursor: pointer;
    height: 22px;
    margin: 5px;
    width: 71px;
}

.ncvib-cad-opacity-bar > input.slider {
    max-width: 93%;
    height: 0;
    margin-top: 8px;
}

/* Blast notification list */
#notificationsList > tbody > tr.expanded-row:last-child {
    border-bottom: 1px solid #dddddd;
}

.code pre {
    background: var(--light);
    border: 1px solid var(--dark);
    border-left: 3px solid var(--primary);
    font-family: monospace;
    font-size: unset;
    line-height: 1.6;
    margin-bottom: 1.6em;
    padding: 1em 1.5em;
    color: var(--secondary);
}

.excel-button {
    background: url("/assets/images/excel-icon-16670.png") no-repeat;
    background-size: 18px 18px;
    background-position-x: 4px;
    background-position-y: 4px;
}

.excel-button span {
        margin: 0 0 0 20px;
}

.notice-body {
    margin-top: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.well-sm {
    min-height: 20px;
    padding: 9px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}

.radio-button input[type="radio"] + span:before {
    font-family: "Font Awesome 5 Free";
    content: "\f111";
    display: inline-block;
    padding-right: 5px;
    font-weight: 400;
    font-size: 0.75rem;
}

.radio-button input[type="radio"]:checked + span:before {
    font-family: "Font Awesome 5 Free";
    content: "\f192";
    display: inline-block;
    padding-right: 5px;
    font-weight: 400;
    font-size: 0.75rem;
}

.date-picker {
    min-width: 12em;
    max-width: 12em;
    flex-wrap: nowrap;
}

.markerStyleMeasurementPoint {
    background: #9CCC3D99;
    border: 1px solid #5f5f5f;
    border-radius: 5px;
    padding: 2px;
}

.markerStyleMeasurementPointPeak {
    background: var(--info);
    border: 1px solid #dddddd;
    border-radius: 5px;
    padding: 5px;
    white-space: pre;
    word-wrap: break-word;
    text-align: left;
    color: white;
    font-size: 12px;
    font-weight: normal;
    opacity: 0.95;
    z-index: 1;
}

.markerStyleMeasurementPointPeakAlert {
    background: var(--danger);
    border: 1px solid #dddddd;
    border-radius: 5px;
    padding: 5px;
    white-space: pre;
    word-wrap: break-word;
    text-align: left;
    color: white;
    font-size: 12px;
    font-weight: normal;
    opacity: 0.95;
    z-index: 2;
}

.markerStyleInspectionObject {
    background: #721c2499;
    border: 1px solid #5f5f5f;
    border-radius: 5px;
    padding: 2px;
}

.markerStylePointOfInterest {
    background: #8a6d3b99;
    border: 1px solid #5f5f5f;
    border-radius: 5px;
    padding: 2px;
}

.markerStyleInventoryObject {
    background: #1c743099;
    border: 1px solid #5f5f5f;
    border-radius: 5px;
    padding: 2px;
}

.markerStyleInspection {
    background: #1c743099;
    border: 1px solid #5f5f5f;
    border-radius: 5px;
    padding: 2px;
}

.markerStyleEvent {
    background: #3a86bc99;
    border: 1px solid #5f5f5f;
    border-radius: 5px;
    padding: 2px;
}

.markerStyleBlast {
    background: #e58d2e99;
    border: 1px solid #5f5f5f;
    border-radius: 5px;
    padding: 2px;
}

.markerStyleProject {
    background: #D0021B99;
    border: 1px solid #5f5f5f;
    border-radius: 5px;
    padding: 2px;
}

.markerStyleCreateNew {
    background: #1c7430;
    border: 2px solid white;
    border-radius: 5px;
    padding: 2px;
}

/*Map InfoWindow*/
.gm-style-iw button.gm-ui-hover-effect {
    outline: none;
}

.gm-style-iw  {
    opacity: 0.9;
}

/*Angular Material Table*/
.compact-mat-table tr.cdk-row {
    border: solid 1px var(--border-colour);
    height: 2.5em;
    vertical-align: middle;
}

.compact-mat-table tr.mat-header-row{
    height: 2em;
}

.compact-mat-table td.cdk-cell{
    border-bottom: solid 1px var(--border-light);
    padding-right: 0.5rem;
}

.compact-mat-table th.cdk-header-cell {
    border-bottom: solid 1px var(--border-light);
}

.compact-mat-table th.mat-sort-header {
    border-bottom: solid 1px var(--border-light);
}

.compact-mat-table table.cdk-table{
    font-size: 0.75rem;
}

@supports selector(:has(*)) {
    .action-column:has(ul.dropdown-menu.show) {
        z-index: 2;
    }

    .table tr:nth-child(odd) > .action-column {
        position: sticky;
        right: 0;
        background-color: rgba(240, 240, 240, 0.85);
    }

    .table tr:nth-child(even) > .action-column {
        position: sticky;
        right: 0;
        background-color: rgba(255, 255, 255, 0.85);
    }

    .table tr > .action-column {
        border-left: solid 2px var(--border-light);
    }

    .table thead tr > .action-column {
        position: sticky;
        right: 0;

        background-color: rgba(255, 255, 255, 0.85);
        border-left: solid 2px var(--border-light);
    }

    .compact-mat-table .cdk-row:nth-child(odd) > .action-column {
        position: sticky;
        right: 0;
        background-color: rgba(240, 240, 240, 0.85);
    }

    .compact-mat-table .cdk-row:nth-child(even) > .action-column {
        position: sticky;
        right: 0;
        background-color: rgba(255, 255, 255, 0.85);
    }

    .compact-mat-table .cdk-row > .action-column {
        border-left: solid 2px var(--border-light);
    }

    .compact-mat-table .mat-header-row > .action-column {
        position: sticky;
        right: 0;

        background-color: rgba(255, 255, 255, 0.85);
        border-left: solid 2px var(--border-light);
    }

    .compact-mat-table tr:not(hover) td {
        border-top: solid 1px transparent;
        border-bottom: solid 1px transparent;
    }

    .compact-mat-table tr:not(.expanded-row):hover td{
        border-top: solid 1px var(--selected-low-key-background);
        border-bottom: solid 1px var(--selected-low-key-background);
        background-color: aliceblue;
    }
}

.checker-table tr:nth-child(odd) > td:not(:hover):nth-child(even) {
    background: #FFFFFF44;
}

.compact-mat-table .cdk-row:nth-child(odd){
    background: rgba(0,0,0,0.05);
}

.compact-mat-table .cdk-row:hover {
    background-color: rgba(240, 248, 255,1);
}

.compact-mat-table th.cdk-header-cell:first-of-type {
    padding-left: 5px;
}

.compact-mat-table td.cdk-cell:first-of-type {
    padding-left: 5px;
}

.compact-mat-table td.cdk-footer-cell:first-of-type {
    padding-left: 5px;
}

.compact-mat-paginator .mat-icon-button:focus{
    background-color: aliceblue;
}

.compact-mat-paginator .mat-icon-button{
    background-color: transparent;
}

.compact-mat-paginator button:focus, button:active:focus, button.active:focus {
    outline: none !important;
}

/*http://tom-jaeschke.blogspot.com/2018/11/flickering-scrollbar-when-using.html*/
.cdk-overlay-container {
    display:none !important;
}

.custom-slider .ngx-slider .ngx-slider-pointer {
    background: var(--primary-low-key);
}

.custom-slider .ngx-slider .ngx-slider-pointer:focus {
    background: var(--selected-low-key);
}

.custom-slider .ngx-slider .ngx-slider-selection {
    background: var(--selected-low-key-background);
}

.custom-slider .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{
    background: var(--selected-low-key-background);
}

.max-cell-width-100{
    max-width: 100px;
}

.modal-icon {
    color: var(--primary-low-key);
}

.form-control[readonly]{
    background-color: #fff;
}

.input-group-label {
    color: var(--secondary);
    background-color: var(--light);
    border: 1px solid #ced4da;
    padding: 0.4rem 0.5rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem 0 0 0.2rem;
}

.input-group-label-secondary {
    color: #fff;
    background-color: #6c757d;
    border: 1px solid #6c757d;
    padding: 0.4rem 0.5rem 0.25rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem 0 0 0.2rem;
}

@media (min-width: 768px){
    .fa-chevron-down, .fa-chevron-right {
        font-size: 0.75rem;
    }
}

.data-list-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: start;
    justify-items: stretch;
    align-items: start;
    row-gap: 2em;
    column-gap: clamp(3em, 10%, 15em);
}

.h-ruler {
    width: 100%;
    border-bottom: solid 1px var(--border-light);
}

label.edit-link {
    position:relative;
    cursor: pointer;
    color: var(--primary-low-key);
    margin-left: 10px;
    padding-left: 2px;
    padding-right: 2px;
}

label.edit-link:hover {
    position:relative;
    cursor: pointer;
    background-color: var(--primary-low-key);
    color: var(--white);
    border-radius: 2px;
}

label.edit-link:before {
    content: "\f044";
    font-size: xx-small;
    font-family: 'Font Awesome 5 Free';
    left: -10px;
    position: absolute;
    top: 2px;
    color: var(--primary-low-key);
    opacity: 0.7;
}

label.navigation-link {
    position:relative;
    cursor: pointer;
    color: var(--primary);
    padding-left: 2px;
    padding-right: 2px;
}

label.navigation-link:hover {
    position:relative;
    cursor: pointer;
    background-color: var(--primary);
    color: var(--white);
}

.no-cell-wrap td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    table {
        display: table;
    }
}
