:root {
    --bar_height: 2em;
    /* for menu and footer */
    /* --menu_color: rgb(158, 158, 158); */
    --bar_color: rgb(232, 232, 232);
    /* --bar_text_color: #5d5d5d; */
}

/* BULMA OVERRIDES */
svg {
    height: inherit;
    width: inherit;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: sans-serif;
    overflow: hidden;
}

.navbar-item.selected {
    background-color: #f2ff3a;
    /* color: white; */
}

.navbar-item.is-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* NESTED DROPDOWN */
.nested.dropdown:hover > .dropdown-menu {
    display: block;
  }
  .nested.dropdown .dropdown-menu {
    top: -12px;
    margin-left: 100%;
  }
  .nested.dropdown .dropdown-trigger button::after {
  
  }
  .nested.dropdown .dropdown-trigger button {
    padding: 0px 0px;
    border: 0px;
    font-size: 14px;
    font-weight: 400;  
  }

  .nested.dropdown .icon{
    color: var(--bulma-navbar-dropdown-arrow);
    /* font-weight: bold; */
  }
  /* END NESTED DROPDOWN */

/* MOBILE MENU (below Bulma's 1024px desktop breakpoint, when the burger
   shows). Both Bulma's own .navbar-dropdown and this app's .nested.dropdown
   flyout above are built around :hover, which doesn't exist on touch — on
   mobile they're driven as closed-by-default accordions instead, toggled by
   .is-active classes the burger/menu JS in main.js adds on tap. */
@media screen and (max-width: 1023px) {
    .navbar-item.has-dropdown > .navbar-dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        margin: 0;
        padding-left: 0.75rem;
    }
    .navbar-item.has-dropdown.is-active > .navbar-dropdown {
        display: block;
    }
    .navbar-item.has-dropdown.is-active > .navbar-link::after {
        transform: rotate(135deg);
    }

    .nested.dropdown > .dropdown-menu {
        display: none;
        position: static;
        margin-left: 1rem;
        top: auto;
        box-shadow: none;
        border: none;
    }
    .nested.dropdown.is-active > .dropdown-menu {
        display: block;
    }
    .nested.dropdown > .navbar-item {
        justify-content: space-between;
        padding-inline-end: 1rem;
    }
    .nested.dropdown .dropdown-content {
        padding: 0.25rem 0;
    }
    .nested.dropdown .dropdown-item {
        white-space: normal;
    }
}


#menu {
    height: var(--bar_height);
    line-height: var(--bar_height);
    padding: 0 0.5em;
    /* background-color: var(--menu_color); */
}

#load_show_table tbody tr {
    cursor: pointer;
}

#container {
    height: calc(100vh - var(--bulma-navbar-height) - var(--bar_height));
    overflow: hidden;
}

/* Follows the cursor while speed-numbering mode is active, showing the
   channel/dimmer number about to be stamped on the next fixture clicked. */
#speed_number_badge {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(14px, 14px);
    z-index: 100;
    pointer-events: none;
    background-color: #f2ff3a;
    color: #111111;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 13px;
    line-height: 1;
    padding: 4px 8px;
    border: 1px solid #111111;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}


#floating-panel {
    position: fixed;
    top: var(--bulma-navbar-height);
    left: 0;
    width: 250px;
    height: calc(100vh - var(--bulma-navbar-height) - var(--bar_height));
    overflow: hidden;
    z-index: 9;
    background-color: white;
    transition: transform 0.3s ease;
    transform: translateX(-92%);
}

#floating-panel.expanded {
    transform: translateX(0);
}

#toggle-panel {
    /* float: right; */
    position: absolute;
    right: 3px;
    top: 50%;
    height: 3em;
    background: #ddd;
    line-height: 3em;
    width: 0.7em;
    border-radius: 1em;
}


#paper {
    background: #f2f2f2;
}

#footer {
    display: flex;
    justify-content: space-between;
    height: var(--bar_height);
    line-height: var(--bar_height);
    padding: 0 0.5em;
    background-color: var(--bar_color);
}

#status_2 {
    font-weight: bold;
    display: none;
    animation: pulsate 1.5s infinite;
}

@keyframes pulsate {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

#status_2.good {
    color: green;
}
#status_2.bad {
    color: red;
}

image.selected {
    /* https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(61%) sepia(46%) saturate(6396%) hue-rotate(78deg) brightness(98%) contrast(106%);
}


#inspector .field-label .label, #show_inspector .field-label .label {
    text-align: left !important;
}