/* 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. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

#philips-logo {
    width: 156px;
    height: 40px;
}

#username {
    margin-right: 1rem;
}

#usage-details-table-head {
    display: none;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-primary.disabled, .btn-primary:disabled, .btn-danger:disabled {
    color: #fff;
    background-color: #b5b5b5;
    border-color: #989898;
}

div.dt-container div.dt-search {
    float: left !important;
    margin-bottom: .5rem;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-item > a[class^="nav-link"]:hover, .nav-item > a[class^="nav-link"]:focus {
    text-decoration: underline solid;
    text-decoration-thickness: from-font;
}

/* Select item in main navigation */
.nav-item.active > a,
.nav-item.active > button {
    border-radius: 5px;
    background-color: #c4e5ff;
    margin: 0 3px 0 3px;
}

/* Selected "Alerts" menu item in case of >0 alerts */
.nav-item a.text-bg-danger {
    background-color: transparent !important;
    color: #dc3545 !important;
}

.nav-item.active a.text-bg-danger {
    background-color: #edaeb4 !important;
}

.navbar-nav > li:not(:last-child) {
    border-right: 1px solid #ddd;
}

.table-btn {
    text-align: right;
}

.action-btn {
    text-align: right;
}

.input-controls {
    float: right;
}

.table-bold {
    font-weight: 600;
}

.table-light {
    font-weight: 300;
}

td.critical-alert {
    font-size: 1.0em;
    color: red;
    font-weight: 600;
}

td.error-alert {
    font-size: 1.0em;
    color: darkorange;
    font-weight: 600;
}

td.warning-alert {
    font-size: 1.0em;
    color: goldenrod;
    font-weight: 500;
}

td.information-alert {
    font-size: 1.0em;
    color: grey;
    font-weight: 400;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting:before,
table.dataTable thead .dt-ordering-asc:after,
table.dataTable thead .dt-ordering-asc:before,
table.dataTable thead .dt-ordering-asc_disabled:after,
table.dataTable thead .dt-ordering-asc_disabled:before,
table.dataTable thead .dt-ordering-desc:after,
table.dataTable thead .dt-ordering-desc:before,
table.dataTable thead .dt-ordering-desc_disabled:after,
table.dataTable thead .dt-ordering-desc_disabled:before {
    bottom: .5em;
}

/* Table cell background and icon
-------------------------------------------------- */

.bgnd-ok {
    background: #A7D7B2 !important;
}

.bgnd-warning {
    background: #FAE29C !important;
}

.bgnd-error {
    background: #EDAEB4 !important;
}

td img {
    vertical-align: baseline;
    height: 14px;
}

/* Tooltip styling */

.tooltip-inner {
    max-width: 800px;
    background-color: #0069d9;
    text-align: left;
}

.tooltip.bs-tooltip-right .arrow:before {
    border-right-color: #0062cc !important;
}

.tooltip.bs-tooltip-left .arrow:before {
    border-left-color: #0062cc !important;
}

.tooltip.bs-tooltip-bottom .arrow:before {
    border-bottom-color: #0062cc !important;
}

.tooltip.bs-tooltip-top .arrow:before {
    border-top-color: #0062cc !important;
}

/* Sticky footer styles
-------------------------------------------------- */

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

.footer > div {
    margin: 0 auto;
    text-align: center;
}

/* File import log */
#progressContainer {
    border-style: inset;
    font-size: 10pt;
    padding: 2px;
    background-color: #e9ecef;
}

.progress-error {
    color: red;
    font-weight: bold;
    padding: 3px 3px 3px 3px;
}

.progress-info {
    color: black;
    font-weight: bold;
    padding: 3px 3px 3px 3px;
}

.progress-box-info {
    border-radius: 0.25rem;
    padding: 3px 3px 3px 3px;
    border: 1px solid #adadad;
    background-color: #f6dfb2;
    color: black;
}

.progress-box-error {
    border-radius: 0.25rem;
    border: 2px solid #a84354;
    background-color: #f69a9a;
}

.progress-box-success {
    margin: 1px;
    border-radius: 0.25rem;
    padding: 3px 3px 3px 3px;
    border: 1px solid #828a72;
    background-color: #cee3a4;
}

.progress-box-nop {
    border-radius: 0.25rem;
    border: 1px solid #adadad;
    background-color: #eeeeee;
    color: grey;
}

.progress-box-busy {
    border-radius: 0.25rem;
    border: 1px solid #adadad;
    background-color: #eeeeee;
    color: black;
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    0% {
        background-color: #d3d1d1;
    }
    50% {
        background-color: #e7e7e7;
    }
    100% {
        background-color: #d3d1d1;
    }
}

.infoItem {
    margin: 3px 1px 3px 3px;
    font-weight: bold;
}

.progress-iconItem {
    border-radius: 0.25rem;
    padding: 3px 3px 3px 45px;
    margin: 1px;
    min-height: 40px;
    box-sizing: content-box;
    position: relative;
}

.progress-iconItem::before {
    content: '';
    background-repeat: no-repeat;
    position: absolute;
    width: 32px;
    height: 32px;
    left: 7px;
    top: 7px;
}

.progress-icon-zip::before {
    background-image: url("/images/zip-file-icon.svg");
}

.progress-icon-files::before {
    background-image: url("/images/copy-line-icon.svg");
}

.progress-icon-xml::before {
    background-image: url("/images/xml-file-icon.svg");
}

.progress-icon-encrypted::before {
    background-image: url("/images/encrypted-file-icon.svg");
}

.progress-icon-csv::before {
    background-image: url("/images/csv-file-icon.svg");
}

/* Hide/show collapse labels */

[data-bs-toggle="collapse"].collapsed .if-not-collapsed {
    display: none;
}

[data-bs-toggle="collapse"]:not(.collapsed) .if-collapsed {
    display: none;
}

/* Info icon next to the search box */

.info-icon {
    height: 30px;
    margin-left: 10px;
}

#info-icon {
    height: 30px;
    margin-left: 10px;
}

/* Access Denied icon in file upload screen */
.access-denied-icon {
    vertical-align: -2px;
    height: 14px;
}

/* ISD details distribution report table */
.recipientCell {
    white-space: nowrap;
}

/* For the search spinner */
#reserveSpace {
    width: 200px;
}

/* For the icon on a button */

.icon-button {
    display: inline-flex;
    align-items: center;

    background-repeat: no-repeat;
    background-position: 0.5em center; /* Position the icon */
}

.icon-button.download {
    background-image: url("/images/download-file-icon.svg");
    padding-left: 2.1em;
    background-size: 1.1em;
}

.icon-button.upload {
    background-image: url("/images/cloud-data-upload-icon.svg");
    padding-left: 2.5em;
    background-size: 1.5em;
}

.icon-button.refresh {
    background-image: url("/images/update-icon.svg");
    padding-left: 2.5em;
    background-size: 1.5em;
}

/* File upload classifications */
table.table tr.SkipAlreadyPresent td {
    color: #9e978d !important;
    font-style: italic;
}

table.table tr.UploadRnD td {
    color: #a91bff !important;
    background-color: #f7ebff;
}

table.table tr.DuplicateInCloud td {
    color: #d00000 !important;
    background-color: #f7ebff;
}

table.table tr.DuplicateLocal td,
table.table tr.InvalidFileSize td,
table.table tr.UnexpectedFileType td{
    color: #d00000 !important;
    background-color: #ffecec;
    font-weight: bold;
}

table.table tr.Upload td {
    color: darkgreen;
    font-weight: bold;
}
