/*
Copyright © 2023 FirstWave. All Rights Reserved.
SPDX-License-Identifier: LicenseRef-Proprietary-FirstWave-202502
*/

@font-face
{
    font-family: 'Inter';
    font-weight: 700;
    font-style: normal;

    src: url(../fonts/Inter.woff2) format('woff2');
    unicode-range: U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+2000-206F,
    U+2074,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}


html
{
    font-size: 16px;
}

body
{
    font-family: Inter, -apple-system, Helvetica, 'sans-serif',BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,Icons16,sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;

    color: #181c32;
    background-color: #F9FAFB;

    -moz-osx-font-smoothing: grayscale;
}

.card {
    /* border-color: white; */
}
.card-header {
    background: white;
    border-bottom: white;
}

[class^="icon-"] {
    display:inline-block;
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
    padding-bottom: 4px;
    vertical-align: middle !important;
}

.widget-icon {
    display:inline-block;
    font-size: 28px;
    font-weight: 400;
    line-height: 28px;
    padding-bottom: 4px;
    vertical-align: middle !important;
}

.alert-high {
    border-color: rgba(253, 126, 20, 0.4); !important;
    background-color: rgba(253, 126, 20, 0.1);
}

/*[class^="icon-"].[class^="text-"] {
    padding-right: 6px;
}*/

/* General colors */
.text-oa-success {
    color: #8cc152;
    padding-right: 6px;
}

.text-oa-primary {
    color: #0d6efd;
    padding-right: 6px;
}

.text-oa-warning {
    color: #ffc107;
    padding-right: 6px;
}

.text-oa-danger {
    color: #dc3545;
    padding-right: 6px;
}

h6,
.h6,
h5,
.h5,
h4,
.h4,
h3,
.h3,
h2,
.h2,
h1,
.h1
{
    font-weight: 400;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: .5rem;
    color: var(--bs-heading-color, inherit);
}

.popover {
    /* width:400px; */
    max-width: 410px;
}


/* All below is for the select2 dropdoiwn boxes */
.select2-container--bootstrap-5 .select2--small.select2-selection {
  min-height: calc(1.5em + .5rem + 8px);
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection, .select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection {
  background-color: #f8f9fa;
}

.select2-container--bootstrap-5 .select2--small.select2-selection {
    font-size: 1rem;
    border: 1px solid #dee2e6;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
}

.select2-container--bootstrap-5 .select2--small.select2-selection:enabled {
    background-color: #fff;
}

.input-group.has-validation > :nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu).select2-container--bootstrap-5 .select2-selection, .input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu).select2-container--bootstrap-5 .select2-selection {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.select2-selection__rendered {
    color: #16325c;
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}


/* ApplicationsRead page for the map */
/*
#diagram-container { position: relative; overflow: hidden; }
#diagram-container .oa-map { width: 100%; height: 100%; overflow: hidden; }
*/
  .oa-map { position: relative; width: 100%; height: 100%; overflow: hidden; cursor: grab; user-select: none; font-family: system-ui, -apple-system,
  sans-serif; background: #f8fafc; color: #334155; }
  .oa-map.dragging { cursor: grabbing; }
  .oa-map__diagram { transform-origin: 0 0; will-change: transform; }
  .oa-map__diagram svg { display: block; }
  .oa-map__zoom-controls { position: absolute; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 4px; z-index: 100; }
  .oa-map__zoom-controls button { width: 36px; height: 36px; border: 1px solid #cbd5e1; border-radius: 6px; background: white; color: #334155; font-size:
  18px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); transition:
  background 0.15s, border-color 0.15s; line-height: 1; }
  .oa-map__zoom-controls button:hover { background: #f1f5f9; border-color: #94a3b8; }
  .oa-map__zoom-controls button:active { background: #e2e8f0; }
  .oa-map__zoom-controls button.is-active { background: #1e293b; color: #f8fafc; border-color: #1e293b; }
  .oa-map__zoom-controls button.is-active:hover { background: #334155; border-color: #334155; }
  .oa-map__legend { position: absolute; bottom: 20px; left: 20px; z-index: 100; pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.10)); }
  .oa-map__diagram.zoom-overview .node-label, .oa-map__diagram.zoom-overview .edge-label { display: none; }
  .tile-icon-overview { display: none; }
  .oa-map__diagram.zoom-overview .tile-icon { display: none; }
  .oa-map__diagram.zoom-overview .tile-icon-overview { display: inline; }
  @media (prefers-color-scheme: dark) {
    .oa-map { background: #0f172a; color: #e2e8f0; }
    .oa-map__zoom-controls button { background: #1e293b; color: #e2e8f0; border-color: #475569; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
    .oa-map__zoom-controls button:hover { background: #334155; border-color: #64748b; }
    .oa-map__zoom-controls button:active { background: #475569; }
    .oa-map__zoom-controls button.is-active { background: #e2e8f0; color: #0f172a; border-color: #e2e8f0; }
    .oa-map__zoom-controls button.is-active:hover { background: #cbd5e1; border-color: #cbd5e1; }
    .oa-map__legend { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.30)); }
  }

/* NAVBAR */
.navbar-brand
{
    font-size: 1rem;
}
.navbar
{
    background-color: #1f284f !important;
}

/* MENUS */
.dropdown-menu
{
    font-size: 14px;
}
.dropdown-item
{
    color: #16325c;
}
/* to right align the carets in the menus */
.first-level-dropdown-toggle::after
{
    position: absolute;
    left: 80%;
    margin-top: .7em;
    transform: rotate(270deg);
    color: #aaa;
}
/* to right align the carets in the menus */
.second-level-dropdown-toggle::after
{
    position: absolute;
    left: 90%;
    margin-top: .7em;
    transform: rotate(270deg);
    color: #aaa;
}

/* BREADCRUMBS */
.link-secondary
{
    text-decoration: none;
    /* color: #16325c !important; */
}
.second-nav
{
    font-size: 14px;
    margin-bottom: 15px;
    padding-left: 15px;
    box-shadow: 0 1px 4px 0 #ddd;
}
/*
Disabled as the light grey is a bit too light
.breadcrumb > li:last-child > a {
    color: #999 !important;
}
*/


/* DIFF for devices::cli_config and database::compare schema */
.diffInserted {
    background: #cdebac;
}
.diffDeleted {
    background: rgb(242, 208, 211);
}

.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3),
.input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-control,
.input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-select {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}






/* Used when $user->list_table_size === 'compact' ($GLOBALS['table']), otherwise use btn-sm */
.btn-xs, .btn-group-xs > .btn {
  --bs-btn-padding-y: 0.0;
  --bs-btn-padding-x: 0.2rem;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: 0.25rem;
}






/* The listed items in the device menu, left hand side. */
.device-menu-icon
{
    width: 18pt;
    margin-right: 10px;
}
.oa-menu-icon {
    color: inherit;
}
.section_toggle:hover
{
    cursor: pointer;
    cursor: hand;
    background-color: #f5f5f5;
}




/* PANELS */
/* Used for the Advanced buttons in the panels on Collections templates */
.card-header
{
    padding-bottom: 2px;
}
/* Used in collection Defaults and collection Import. Old style. TODO - remove */
.oa-card-button
{
    border: 0;
}
.oa-icon
{
    margin-right: 10px;
}
.panel-button
{
    border: 1px solid rgba(0,0,0,.125);
}



/* FORMS */
.form_bottom
{
    margin: 0 0 1rem 0;
}
.form-control
{
    color: #16325c;
}
.form-control:disabled
{
    color: #16325c;
}
.form-control:disabled,
.form-control[readonly]
{
    opacity: 1;
    background-color: #f8f9fa;
}
.form_label
{
    font-weight: 300;
    font-size: 1rem;
    margin: 0 0 0 0;
    color: lightslategrey;
}
.form-select
{
    color: #16325c;
}
.form-select:disabled
{
    background-color: #f8f9fa;
}
.link_button
{
    font-size: 1.2rem;
    color: lightslategrey;
    border: var(--bs-border-width) solid var(--bs-border-color);
    background-color: #f8f9fa;
}
.edit
{
    font-size: 1.2rem;
    color: lightslategrey;
    border: var(--bs-border-width) solid var(--bs-border-color);
    background-color: #f8f9fa;
}
.edit:hover
{
    cursor: pointer;
    color: rgba(0, 0, 0, 1);
}

/* PILLS */
.text-bg-primary
{
    background-color: #4fc1e9 !important;
}
.text-bg-success
{
    background-color: #8cc152 !important;
}
.text-bg-danger
{
    background-color: #da4453 !important;
}

.text-bg-none
{
    background-color: RGBA(108, 117, 125, var(--bs-bg-opacity, 1)) !important;
}
.text-bg-low
{
    background-color: #4fc1e9 !important;
}
.text-bg-medium
{
    background-color: RGBA(255, 193, 7, var(--bs-bg-opacity, 1)) !important;
}
.text-bg-high
{
    background-color: #fd7e14 !important;
}
.text-bg-critical
{
    background-color: #da4453 !important;
}

.text-none
{
    color: RGBA(108, 117, 125, var(--bs-bg-opacity, 1)) !important;
}
.text-low
{
    color: #4fc1e9 !important;
}
.text-medium
{
    color: RGBA(255, 193, 7, var(--bs-bg-opacity, 1)) !important;
}
.text-high
{
    color: #fd7e14 !important;
}
.text-critical
{
    color: #da4453 !important;
}


/* BUTTONS */
/* the custom 'devices' type button */
.btn-devices,
.btn-devices:active,
.btn-devices.active,
.btn-devices.disabled,
.btn-devices[disabled]
{
    color: #fff;
    border-color: #9265ce;
    background-color: #9265ce;
}
.btn-devices:hover,
.btn-devices:focus
{
    color: #fff;
    border-color: #9f85c0;
    background-color: #9f85c0;
}
.open .dropdown-toggle.btn-devices
{
    color: #fff;
    border-color: #9265ce;
    background-color: #9265ce;
}
.btn-close
{
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    padding: 1.25rem 1rem;
}
.btn-default
{
    color: #434a54;
    border-color: #aab2bd !important;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active
{
    border-color: #ccd1d9;
    background-color: #ccd1d9;
}
.btn-default,
.btn-default.disabled,
.btn-default[disabled]
{
    background-color: white;
}
.btn-primary,
.btn-primary:active,
.btn-primary.active,
.btn-primary.disabled,
.btn-primary[disabled]
{
    border-color: #287794;
    background-color: #287794;
}
.btn-primary:hover,
.btn-primary:focus
{
    border-color: #4fc1e9;
    background-color: #4fc1e9;
}
.open .dropdown-toggle.btn-primary
{
    border-color: #4fc1e9;
    background-color: #4fc1e9;
}
.btn-danger,
.btn-danger:active,
.btn-danger.active,
.btn-danger.disabled,
.btn-danger[disabled],
.btn-danger .open .dropdown-toggle.btn
{
    border-color: #da4453;
    background-color: #da4453;
}
.btn-danger:hover,
.btn-danger:focus
{
    border-color: #ed5565;
    background-color: #ed5565;
}
.open .dropdown-toggle.btn-danger
{
    border-color: #ed5565;
    background-color: #ed5565;
}
.btn-success,
.btn-success:active,
.btn-success.active,
.btn-success.disabled,
.btn-success[disabled]
{
    border-color: #8cc152;
    background-color: #8cc152;
}
.btn-success:hover,
.btn-success:focus
{
    border-color: #a0d468;
    background-color: #a0d468;
}
.open .dropdown-toggle.btn-success
{
    border-color: #a0d468;
    background-color: #a0d468;
}
.btn-info,
.btn-info:active,
.btn-info.active,
.btn-info.disabled,
.btn-info[disabled]
{
    border-color: #37bc9b;
    background-color: #37bc9b;
}
.btn-info:hover,
.btn-info:focus
{
    border-color: #48cfad;
    background-color: #48cfad;
}
.open .dropdown-toggle.btn-info
{
    border-color: #48cfad;
    background-color: #48cfad;
}
/* Panel Header buttons on Collections for create, import, et al */
.btn-light a
{
    font-weight: 300;
    color: #000;
}
.btn-light a:hover
{
    text-decoration: none;
}
.btn-outline-secondary a
{
    color: var(--bs-btn-color);
}

.btn-clear a
{
    background-color: #fff;
    border-color: #fff;
}
.btn-clear a:hover
{
    text-decoration: none;
    border-color: #fff;
}
.btn-clear a:click
{
    text-decoration: none;
    border-color: #fff;
}


/* GENERAL HTML */
a
{
    text-decoration: none;
    color: --bs-primary;
}
a.greyout
{
    color: #adb5bd;
}
a:hover
{
    text-decoration: underline;
}
a.dropdown-item
{
    text-decoration: none;
}
a.nav-link
{
    text-decoration: none;
}
a.btn
{
    text-decoration: none;
}
.col-xs-1
{
    width: 8.33%;
}
.delete_link:hover
{
    background-color: red;
}
.mb-2
{
    border: var(--bs-border-width) solid var(--bs-border-color);
}
.nav-link
{
    color: #333;
}
.nav-pills .nav-link.active
{
    background-color: #a1a1a1;
}
.oa-li-hover:hover
{
    cursor: pointer;
    cursor: hand;
    background-color: #f5f5f5;
}
.oa-li-hover img
{
    width: 32pt;
    padding-right: 10px;
}
.page-link
{
    color: #0245a8;
}
/* the dropdown on devices_collection to select columns */
.toggle-vis
{
    /* font-weight: bold; */
    padding: 3px 20px 3px 20px;
    color: #212529;
}
.dash-drop {
    border: 1px solid #adb5bd;
}
/* Shown on the Help pages for each Collection */
.helpImage {
    width:600px;
    max-width:45%;
    cursor:zoom-in
}

/* The help screenshot floats right and the Markdown content wraps around it.
   Capping the float keeps the wrapped column readable on narrow viewports;
   below 768px the image goes full width and the text runs beneath it. */
@media (max-width: 767.98px) {
    .helpBody .helpImage {
        float:none !important;
        width:100%;
        max-width:100%;
        margin-left:0 !important
    }
}

/* The zoomed copy in the modal fills the dialog: the 600px width and the 45%
   cap above are for the floated thumbnail only. */
.modal .helpImage {
    width:100%;
    max-width:100%;
    height:auto;
    cursor:default
}


/* TABLES */
/* to pass WCAG on dataTables striped rows */
tr:nth-child(odd) a
{
    color: #064cb3;
}
tr:nth-child(odd) a.btn-primary
{
    color: #fff;
}
tr:nth-child(odd) a.btn-devices
{
    color: #fff;
}
tr:nth-child(odd) a.btn-success
{
    color: #fff;
}
table.dataTable > thead .sorting::after,
table.dataTable > thead .sorting_asc::after,
table.dataTable > thead .sorting_desc::after,
table.dataTable > thead .sorting_asc_disabled::after,
table.dataTable > thead .sorting_desc_disabled::after
{
    right: .2em;
}
/* dataTables pagination colour */
.page-item.active .page-link
{
    border-color: #8cc152;
    /* green */
    background-color: #8cc152;
}




.c_change_primary {
  animation: colorchange_primary alternate infinite;  
  animation-duration: 2s;
  animation-iteration-count: 2;
  animation-direction: alternate;
  
}

@keyframes colorchange_primary
{
  0%  {background-color: rgba(79, 193, 233, 0)}
  5%  {background-color: rgba(79, 193, 233, 0.05)}
  10% {background-color: rgba(79, 193, 233, 0.10)}
  15% {background-color: rgba(79, 193, 233, 0.15)}
  20% {background-color: rgba(79, 193, 233, 0.20)}
  25% {background-color: rgba(79, 193, 233, 0.25)}

  30% {background-color: rgba(79, 193, 233, 0.30)}
  35% {background-color: rgba(79, 193, 233, 0.35)}
  40% {background-color: rgba(79, 193, 233, 0.40)}
  45% {background-color: rgba(79, 193, 233, 0.45)}
  50% {background-color: rgba(79, 193, 233, 0.50)}

  55% {background-color: rgba(79, 193, 233, 0.55)}
  60% {background-color: rgba(79, 193, 233, 0.60)}
  65% {background-color: rgba(79, 193, 233, 0.65)}
  70% {background-color: rgba(79, 193, 233, 0.70)}
  75% {background-color: rgba(79, 193, 233, 0.75)}

  80% {background-color: rgba(79, 193, 233, 0.80)}
  85% {background-color: rgba(79, 193, 233, 0.85)}
  90% {background-color: rgba(79, 193, 233, 0.90)}
  95% {background-color: rgba(79, 193, 233, 0.95)}
  100% {background-color: rgba(79, 193, 233, 1)}
}

.c_change_warning {
  animation: colorchange_warning alternate infinite;  
  animation-duration: 2s;
  animation-iteration-count: 2;
  animation-direction: alternate;
  
}

@keyframes colorchange_warning
{
  0%  {background-color: rgba(255, 193, 7, 0)}
  5%  {background-color: rgba(255, 193, 7, 0.05)}
  10% {background-color: rgba(255, 193, 7, 0.10)}
  15% {background-color: rgba(255, 193, 7, 0.15)}
  20% {background-color: rgba(255, 193, 7, 0.20)}
  25% {background-color: rgba(255, 193, 7, 0.25)}

  30% {background-color: rgba(255, 193, 7, 0.30)}
  35% {background-color: rgba(255, 193, 7, 0.35)}
  40% {background-color: rgba(255, 193, 7, 0.40)}
  45% {background-color: rgba(255, 193, 7, 0.45)}
  50% {background-color: rgba(255, 193, 7, 0.50)}

  55% {background-color: rgba(255, 193, 7, 0.55)}
  60% {background-color: rgba(255, 193, 7, 0.60)}
  65% {background-color: rgba(255, 193, 7, 0.65)}
  70% {background-color: rgba(255, 193, 7, 0.70)}
  75% {background-color: rgba(255, 193, 7, 0.75)}

  80% {background-color: rgba(255, 193, 7, 0.80)}
  85% {background-color: rgba(255, 193, 7, 0.85)}
  90% {background-color: rgba(255, 193, 7, 0.90)}
  95% {background-color: rgba(255, 193, 7, 0.95)}
  100% {background-color: rgba(255, 193, 7, 1)}
}

.c_change_danger {
  animation: colorchange_danger alternate infinite;  
  animation-duration: 2s;
  animation-iteration-count: 2;
  animation-direction: alternate;
  
}

@keyframes colorchange_danger
{
  0%  {background-color: rgba(237, 85, 101, 0)}
  5%  {background-color: rgba(237, 85, 101, 0.05)}
  10% {background-color: rgba(237, 85, 101, 0.10)}
  15% {background-color: rgba(237, 85, 101, 0.15)}
  20% {background-color: rgba(237, 85, 101, 0.20)}
  25% {background-color: rgba(237, 85, 101, 0.25)}

  30% {background-color: rgba(237, 85, 101, 0.30)}
  35% {background-color: rgba(237, 85, 101, 0.35)}
  40% {background-color: rgba(237, 85, 101, 0.40)}
  45% {background-color: rgba(237, 85, 101, 0.45)}
  50% {background-color: rgba(237, 85, 101, 0.50)}

  55% {background-color: rgba(237, 85, 101, 0.55)}
  60% {background-color: rgba(237, 85, 101, 0.60)}
  65% {background-color: rgba(237, 85, 101, 0.65)}
  70% {background-color: rgba(237, 85, 101, 0.70)}
  75% {background-color: rgba(237, 85, 101, 0.75)}

  80% {background-color: rgba(237, 85, 101, 0.80)}
  85% {background-color: rgba(237, 85, 101, 0.85)}
  90% {background-color: rgba(237, 85, 101, 0.90)}
  95% {background-color: rgba(237, 85, 101, 0.95)}
  100% {background-color: rgba(237, 85, 101, 1)}
}

.toast-ent .toast-header {
    background-color: var(--bs-success-bg-subtle);
    --bs-border-color: var(--bs-primary-border-subtle);
    color: var(--bs-success-text);
}

.toast-pro .toast-header {
    background-color: var(--bs-primary-border-subtle);
    color: var(--bs-primary-text);
}

.toast-perm .toast-header {
    background-color: var(--bs-danger-bg-subtle);
    --bs-border-color: var(--bs-danger-border-subtle);
    color: var(--bs-danger-text);
}

.toast-success .toast-header {
    background-color: var(--bs-success-bg-subtle);
    --bs-border-color: var(--bs-success-border-subtle);
    color: var(--bs-success-text);
}

.toast-failure .toast-header {
    background-color: var(--bs-danger-bg-subtle);
    --bs-border-color: var(--bs-danger-border-subtle);
    color: var(--bs-danger-text);
}


@media (prefers-color-scheme: dark) {
    body {
        background-color: #212529;
    }
    .card-body {
        background-color: #212529;
        border-dark-subtle;
    }
    .card-header {
        background: #212529;
        border-bottom: #212529;
    }
    .nav-link
    {
        color: #fff;
    }

    .toast-body {
        background: #ddd;
    }

    .table > :not(caption) > * > * {
      padding: 0.5rem 0.5rem;
      background-color: #333;
      border-bottom-width: var(--bs-border-width);
      box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
    }

    .table-striped > tbody > tr:nth-of-type(2n+1) > * {
        --bs-table-accent-bg: #333;
        color: var(--bs-table-striped-color);
    }
    div.dataTables_wrapper div.dataTables_length label {
        color: white;
    }
    div.dataTables_wrapper div.dataTables_filter label {
        color: white;
    }
    .form-select {
       color: white;
    }
    .dropdown-item {
        color: white;
    }
    .second-nav {
        color: white;
    }
    .card-body {
        color: white;
    }
    .modal-body {
        color: white;
    }
    .form-control {
        color: var(--bs-secondary-color);
        opacity: 1;
    }
    .form-control:disabled, .form-control[readonly] {
        opacity: 1;
        background-color: #333;
        color: white;
    }
    .edit {
        font-size: 1.2rem;
        color: white;
        border: var(--bs-border-width) solid var(--bs-border-color);
        background-color: #333;
    }
    .form-select:disabled {
        background-color: #333;
        color: white;
    }
    .section_toggle:hover
    {
        cursor: pointer;
        cursor: hand;
        background-color: #444;
    }
    .mb-2,
    button.btn-light,
    a.btn-light
    {
        border-color: #888;
        color: white;
        background-color: #555;
    }
    .link_button
    {
        font-size: 1.2rem;
        color: white;
        border: var(--bs-border-width) solid var(--bs-border-color);
        background-color: #333;
    }
    .btn-light a
    {
        font-weight: 300;
        background-color: #999;
    }
    .btn-light a:hover
    {
        text-decoration: none;
    }
    .btn-outline-secondary a
    {
        color: var(--bs-btn-color);
    }
}

[role=tabpanel]:focus-visible,
.tab-panel:focus-visible {
    outline: 0;
}

/*


body {
   background-color: #000;
   background-image: url("/images/background.png");
   background-position: right bottom;
   background-repeat: no-repeat;
   background-attachment: fixed;
   background-size: 100% 100% ;
   color: white !important;
}

.table {
    color: white;
}

.table-striped > tbody > tr:nth-of-type(2n+1) > * {
    --bs-table-accent-bg: var(--bs-table-striped-bg);
    color: white;
    font-weight: bold;
}

.table > :not(caption) > * > * {
    font-weight: bold;
}

.dropdown-toggle {
    background-color: transparent !important;
    font-size: 1rem;
}

.dropdown-menu {
    background-color: transparent !important;
    background: rgba(0,0,0,0.5) !important;
    opacity: 5;
    font-family: verdana;
    font-size: 1rem;
    box-shadow: none;
}

.highcharts-background {
    background: rgba(0,0,0,0.5) !important;
}

.list-group-item {
    background: rgba(0,0,0,0.3);
}

.oa-li-hover:hover
{
    background-color: rgba(0,0,0,0.5);
}

.dropdown-item {
    font-size: 0.9rem;
}

a.dropdown-item {
    color: white;
}

a {
    color: white;
}

.oa-menu-icon {
    color: white;
}

.navbar {
    background-color: transparent !important;
    background: rgba(0,0,0,0.4) !important;
    opacity: 1.2;
    font-family: verdana;
    font-size: 1rem;
}

.navbar-brand {
    font-size: 1rem;
}

.second-nav {
    background-color: transparent !important;
    background: rgba(0,0,0,0.2) !important;
    opacity: 1.2;
    font-family: verdana;
    font-size: 1rem;
    box-shadow: none;
}

.link-secondary {
    color: white !important;
}

.dropdown-toggle {
    color: white !important;
}

.dash-drop {
    border: 1px solid white !important;
}

.btn-primary {
    background: rgba(0,0,255,0.3) !important;
    border: 1px solid rgba(0,0,0,0.3) !important;
}
.btn-danger {
    background: rgba(255,0,0,0.3) !important;
    border: 1px solid rgba(0,0,0,0.3) !important;
}

.form-control-sm {
    border: 1px solid white !important;
}

.btn-outline-secondary {
    border: 1px solid white !important;
    color: white !important;
}

.btn-light {
    background: rgba(0,0,0,0.2) !important;
    color: white !important;
}

.card-header {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(0,0,0,0.3) !important;
}

code {
    color: white;
    font-weight: bold;
}

.text-danger {
    color: hwb(0 56.5% 5.5%) !important;
}

.card {
    background-color: transparent !important;
}
*/

/* Network topology map (mapRead.php) */
.oa-topology { padding: 0.5rem 0.25rem; font-size: 0.9rem; overflow: auto; min-height: 600px; position: relative; }
/* Each node lays its children out to the right of the parent card, top-aligned
   so a node lines up with its parent's other children. */
/* Size to content (not the full container width) so a node's absolutely
   positioned children start right after its card, not off to the right. */
.oa-topo-node { display: flex; flex-direction: row; align-items: flex-start; position: relative; width: max-content; }
.oa-topo-node.oa-topo-device { padding-top: 4px; }
/* Curved elbow connectors drawn from each parent card to each child card. */
.oa-topo-links { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; overflow: visible; }
.oa-topo-links path { fill: none; stroke: var(--bs-border-color); stroke-width: 1; }
.oa-topo-card { position: relative; z-index: 1; }
.oa-topo-loading, .oa-topo-hint { color: var(--bs-secondary-color); padding: 0.5rem 0; }
.oa-topo-error { color: var(--bs-danger); }
.oa-topo-row { display: flex; align-items: center; gap: 0.35rem; flex: 0 0 auto; }
.oa-topo-toggle {
    flex: 0 0 auto; width: 1.5rem; height: 1.5rem; padding: 0;
    border: 1px solid var(--bs-border-color); border-radius: 0.25rem;
    background: var(--bs-body-bg); color: var(--bs-body-color); cursor: pointer;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
.oa-topo-toggle:hover { background: var(--bs-tertiary-bg); }
.oa-topo-toggle span { transition: transform 0.15s ease; }
.oa-topo-toggle.open span { transform: rotate(90deg); }
.oa-topo-card {
    display: flex; align-items: center; gap: 0.6rem;
    border: 1px solid var(--bs-border-color); border-radius: 0.5rem;
    background: var(--bs-body-bg); padding: 0.4rem 0.75rem; min-width: 16rem; max-width: 32rem;
}
.oa-topo-card:hover { border-color: var(--bs-primary); }
.oa-topo-card-network { border-left: 4px solid var(--bs-primary); }
.oa-topo-card-switch { border-left: 4px solid var(--bs-success); }
.oa-topo-card-group { border-left: 4px solid var(--bs-secondary); }
/* Guests of a virtualisation host. Unlinked guests are known to the host but were
   not matched to a discovered device, so they are muted and carry no link. */
.oa-topo-card-vm { border-left: 4px solid var(--bs-info); }
.oa-topo-card-unlinked { border-left-style: dashed; opacity: 0.75; }
.oa-topo-card-unlinked .oa-topo-name { font-weight: 500; color: var(--bs-secondary-color); }
.oa-topo-card-unlinked:hover { border-color: var(--bs-border-color); }
.oa-topo-node.oa-topo-vm { padding-top: 4px; }
.oa-topo-icon { width: 28px; height: 28px; flex: 0 0 auto; font-size: 22px; line-height: 28px; text-align: center; }
.oa-topo-body { display: flex; flex-direction: column; min-width: 0; }
.oa-topo-name { font-weight: 600; color: var(--bs-body-color); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.oa-topo-name:hover { color: var(--bs-primary); text-decoration: underline; }
.oa-topo-meta { font-size: 0.78rem; color: var(--bs-secondary-color); }
.oa-topo-status { width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-left: auto; background: var(--bs-secondary); }
.oa-topo-status-up, .oa-topo-status-production { background: var(--bs-success); }
.oa-topo-status-down { background: var(--bs-danger); }
/* Children indent with a tree connector line. */
/* Children sit to the right of the parent, stacked with a small vertical gap. */
/* Children arranged as columns (max 12 devices each) to limit vertical height.
   Positioned absolutely to the right so a node's subtree does not reserve
   vertical space in its parent column (expanding never pushes siblings down). */
/* Children flow in line to the right of their parent so the browser reserves horizontal space
   for each subtree (see the note in open-audit-new.css). The connector lines are drawn from
   measured rectangles, so they still line up. */
.oa-topo-children { display: flex; flex-direction: row; align-items: flex-start; gap: 1.75rem; margin-left: 1.5rem; }
.oa-topo-column { display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }
/* Network node: card with a DHCP/DNS info panel stacked beneath it. */
.oa-topo-node-main { display: flex; flex-direction: column; }
.oa-topo-info { margin-top: 0.4rem; padding: 0.4rem 0.6rem; border: 1px dashed var(--bs-border-color); border-radius: 0.4rem; font-size: 0.8rem; max-width: 26rem; }
.oa-topo-info-row { display: flex; gap: 0.5rem; }
.oa-topo-info-row + .oa-topo-info-row { margin-top: 0.2rem; }
.oa-topo-info-label { font-weight: 600; color: var(--bs-secondary-color); flex: 0 0 7rem; }
.oa-topo-info-val { color: var(--bs-body-color); word-break: break-word; }

/* MapLibre map popup sizing (maps collection page) */
.maplibregl-popup-content { width: 500px; border-radius: 10px; }
.maplibregl-popup { max-width: 500px !important; }
