/* 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. */

html,
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

strong {
    color: inherit;
}

.page-wrap {
    min-height: 100%;
    /* equal to footer height */
    margin-bottom: -3rem;
}

.page-wrap:after {
    content: "";
    display: block;
}

.footer,
.page-wrap:after {
    margin: 0;
    padding: 0;
    height: 3rem;
    line-height: 3rem;
    /* Vertically center the text there */
}

:root {
    --padding-container: 0.5rem;
    --margin-bottom-container: 1.5rem;
    color-scheme: only light;
}

#content-container {
    margin-top: 1rem;
    padding-left: var(--padding-container);
    padding-right: var(--padding-container);
    padding-bottom: var(--padding-container);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.map-container {
    margin-left: calc(-1 * var(--padding-container));
    margin-bottom: calc(-1 * (var(--padding-container) + var(--margin-bottom-container)));
    width: calc(100% + 2 * var(--padding-container));
}

.fa-blank {
    visibility: hidden !important;
}

a {
    text-decoration: none !important;
}

ul {
    list-style-type: none !important;
}

ol {
    list-style-type: none !important;
}

dl.side-by-side {
    display: grid;
    grid-template-columns: max-content auto;
}

@media screen and (min-width: 1024px) {
    .navbar {
        height: 70px;
    }

    .navbar-brand img {
        height: 31px;
    }
}

@media (max-width: 1023px) {
    .navbar-brand img {
        width: 145px;
        height: auto;
    }

    .columns {
        margin-left: 0rem;
        margin-right: 0rem;
    }

    .column {
        padding-left: 0rem;
        padding-right: 0rem;
    }

    .content h2 {
        margin-bottom: 0.35em;
    }

    #content-container {
        margin-top: 0.7rem;
    }
}

table.wrap-cells td {
    word-wrap: break-word;
}

.wrap-cells {
    table-layout: fixed;
}

#map {
    width: 100%;
    height: 100%;
    max-height: 800px;
}

.custom-map-control-button {
    background-color: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 0 0.5em;
    font: 400 18px Roboto, Arial, sans-serif;
    overflow: hidden;
    height: 40px;
    cursor: pointer;
}

.custom-map-control-button:hover {
    background: rgb(235, 235, 235);
}

/* when on small screen shunt the right hand buttons down so they don't overlap the left hand map type buttons */
@media screen and (max-width: 460px) {
    .first-custom-map-control-button {
        margin-top: 60px;
    }
}

.custom-map-div {
    background-color: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 0.5em;
    font: 400 18px Roboto, Arial, sans-serif;
    overflow: hidden;
    max-width: 80%;
}

#instructions-div ul {
    margin-left: 1.5em;
    margin-top: 0.5em;
}

.loader-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    opacity: 0;
    z-index: -1;
    transition: opacity .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0px;

    .loader {
        height: 80px;
        width: 80px;
        border-color: black;
        border-right-color: transparent;
        border-top-color: transparent;
    }

    &.is-active {
        opacity: 0.5;
        z-index: 1;
    }
}

#legend {
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 10px;
    margin: 10px;
    border: 3px solid #000;
}

#legend h3 {
    margin-top: 0;
}

#legend img {
    vertical-align: middle;
}

.text-input {
    max-width: 30em;
}

.numeric-input {
    max-width: 10em;
}

.draggable-marker:focus-visible {
    outline: 0px;
}

.width-100 {
    width: 100px !important;
}

.max-width-25 {
    max-width: 25% !important;
}

.tile {
    align-items: stretch;
    display: block;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    min-height: min-content;
}

.tile.is-parent {
    padding: 0.75rem;
}

.menu-background {
    background: #2e323a !important;
}

.width-fit-content {
    max-width: fit-content;
}

li:hover > a {
    background-color: #f8f8f8 !important;
    color: #2e323a !important;
}

#sidebar-wrapper li:hover > a,
#sidebar-wrapper li:hover a {
    background-color: transparent !important;
}

.transparent {
    background-color: transparent !important;
}

.title-padding {
    padding: 55px 0px 0px 55px;
}

.sub-title-padding {
    padding: 0px 0px 0px 55px;
}

.title-filter-padding {
    padding: 110px 0px 0px 0px;
}

tr:hover {
    background-color: #f8f8f8 !important;
}

table,
th,
td {
    border: 3px solid #f8f8f8;
}

.alerts-canvas {
    canvas {
        width: 80% !important;
        margin: auto;
    }
}

.p-2 {
    padding: 2rem !important;
}

.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.navbar-link:not(.is-arrowless)::after {
    border-color: lightgrey;
}

.navbar-dropdown .navbar-item:not(.is-active, .is-selected) {
    background-color: #2e323a !important;
}

.error-message-color {
    color: black;
}

.error-message-alignment {
    text-align: left;
}

.min-width {
    min-width: 100%
}

.min-height-85pc {
    min-height: 85%;
}

.charts {
    width: 50%;
}

.gm-style-iw button[title="Close"] {
    display: none !important;
}

.min-width-fit-content {
    min-width: fit-content
}

.height-fit-content {
    height: fit-content;
}

/* Apply scroll bar styles for Webkit (Chrome, Safari, Edge) */
.responsive-iframe::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}

.responsive-iframe::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.responsive-iframe::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.responsive-iframe::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* For Firefox Scroll bar */
iframe {
    scrollbar-width: thick;
    scrollbar-color: #888 #f1f1f1;
}

iframe {
    width: 100%;
    height: 85vh;
    border: none;
    overflow: auto;
}

.column-word-break {
    word-break: break-all
}

.speed-circle {
    width: 100px;
    height: 100px;
    line-height: 80px;
    border-radius: 50%;
    font-size: 40px;
    color: black;
    text-align: center;
    background: #fff;
    border: 10px solid red;
}

.traffic-analysis-chart-legend {
    align-items: center;
    justify-content: center;
}

.expand:hover {
    cursor: pointer;
}

.display-none {
    display: none;
}

.display-inline {
    display: inline !important;
}

.black-color {
    color: black;
}

:root {
    --color-bg-main: #f5f1f0;
    --color-bg-card: #fff;
    --border-radius-large: 20px;
    --color-sidebar-dark: #151515;
    --color-text-sidebar: #e5e7eb;
    --color-text-sidebar-muted: #9ca3af;
    --color-accent: #496de4;

    --sidebar-margin: 20px;
    --border-radius-large: 20px;
}

.dashboard-main-content {
    background-color: var(--color-bg-main);
    padding: 20px 30px !important;
    flex-grow: 1;
}

.dashboard-content-card {
    background-color: var(--color-bg-card);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    min-height: calc(100vh - 100px);
}

.partials.bg-dark,
#sidebar-wrapper.bg-dark,
#sidebar-wrapper .bg-dark {
    background-color: var(--color-sidebar-dark) !important;
}

.partials.bg-dark,
#sidebar-wrapper {
    background-color: var(--color-sidebar-dark) !important;
}

#sidebar-wrapper {
    background-color: var(--color-sidebar-dark) !important;
    padding: 20px 15px !important;
}

#sidebar-wrapper .nav-item {
    margin-bottom: 2px;
    width: 100%;
}

#sidebar-wrapper .nav-link {
    color: var(--color-text-sidebar) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#sidebar-wrapper .nav-link i {
    color: var(--color-text-sidebar-muted) !important;
    font-size: 1.1rem;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#sidebar-wrapper .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-text-sidebar) !important;
}

#sidebar-wrapper hr {
    margin-top: 10px;
    margin-bottom: 40px;
    border-color: rgba(255, 255, 255, 0.1);
}

#sidebar-wrapper .sidebar-title {
    font-size: 1rem;
    font-weight: 600;
}

:root {
    --color-text-sidebar-muted: #9ca3af;
}

.logo-divider-line {
    display: block;
    width: 3px;
    height: 24px;
    background-color: var(--color-text-sidebar-muted);
    border-radius: 1px;
    margin-left: 3px;
}

.company-logo {
    flex-shrink: 0;
}

#sidebar-wrapper.collapsed .logo-group {
    display: none !important;
}

@media (max-width: 575.98px) {

    .dashboard-main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .dashboard-content-card {
        padding-left: 0;
        padding-right: 0;
    }

    .main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.breach-alerts-colour-scheme {
    color: #0B5394;
}

:root {
    --client-logo-h-account:  36px;
    --client-logo-h-sidebar:  24px;
    --client-logo-h-mobile:   24px;
    --client-logo-max-w:      120px; 
}

.tenant-logos-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
}

.account-forsite-logo {
    height: var(--client-logo-h-account);
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.tenant-logo-divider {
    display: block;
    width: 1px;
    height: calc(var(--client-logo-h-account) - 4px);
    background-color: #ccc;
    border-radius: 1px;
    margin: 0 14px;
    flex-shrink: 0;
}

.account-client-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--client-logo-h-account);
    width: var(--client-logo-max-w);
    flex-shrink: 0;
}

.account-client-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.sidebar-logo-divider {
    display: inline-block;
    width: 1px;
    height: calc(var(--client-logo-h-sidebar) - 2px);
    background-color: var(--color-text-sidebar-muted);
    border-radius: 1px;
    margin: 0 10px;
    flex-shrink: 0;
    vertical-align: middle;
}

.sidebar-client-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--client-logo-h-sidebar);
    width: var(--client-logo-max-w);
    flex-shrink: 0;
}

.sidebar-client-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.mobile-logo-divider {
    display: inline-block;
    width: 1px;
    height: calc(var(--client-logo-h-mobile) - 2px);
    background-color: rgba(255,255,255,0.4);
    border-radius: 1px;
    margin: 0 10px;
    flex-shrink: 0;
    vertical-align: middle;
}

.mobile-client-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--client-logo-h-mobile);
    width: var(--client-logo-max-w);
    flex-shrink: 0;
}

.mobile-client-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

