/* Notifications */
.notification-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
}

.notification {
    display: none;
    animation: slide-in 0.5s forwards;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Alerts */
#alertModal {
  display: none;
}

.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ddd;
  min-width: 500px;
  font-weight: 600;
}

.alert-left {
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
  margin-right: 1rem;
}

.alert-counter {
  background-color: #2e333d;
  color: var(--bulma-text);
  border-radius: 12px;
  min-width: 42px;
}

.alert-symbol {
    font-size: x-large;
}

#navbar-alert-count {
    border-radius: 20px;
    margin-right: 0rem;
    min-width: 40px;
}

.alert-description {
  flex-grow: 1;
}

.alert-button {
  flex-shrink: 0;
  min-width: 74px;
  margin-left: 1rem;
}

.alert-list {
  max-height: 360px;
  overflow-y: auto;
  overflow-x: clip;
  box-shadow: 0 0.5em 0.5em hsl(221, 14%, 9%);
}

/* c1: red flashing */
.alert-c1 {
    background-color: var(--bulma-danger);
    color: var(--bulma-danger-invert);
    -webkit-animation: c1-FLASH 1s infinite; /* Safari 4+ */
    -moz-animation:    c1-FLASH 1s infinite; /* Fx 5+ */
    -o-animation:      c1-FLASH 1s infinite; /* Opera 12+ */
    animation:         c1-FLASH 1s infinite; /* IE 10+, Fx 29+ */
}

@-webkit-keyframes c1-FLASH {
0%, 49% {
    background-color: var(--bulma-danger);
}
50%, 100% {
    background-color: var(--bulma-danger-light);
}
}

.alert-c1 button, .alert-c1 span {
    border-color: var(--bulma-danger);
    border-width: 3px;
    border-style: solid;
}

/* c2: red (after ack) */
.alert-c2 {
    background-color: var(--bulma-danger);
    color: var(--bulma-danger-invert);
}

/* c3: yellow new notification */
.alert-c3 {
    background-color: var(--bulma-warning);
    color: var(--bulma-warning-invert);
}

/* c1: old notification (not yet cleared) */
.alert-c4 {
    background-color: var(--bulma-info-soft);
    color: var(--bulma-info-soft-invert);
}

/* Tables */
.beacon-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.map-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.button-col {
    width: 100px;
}

.epc-col {
    width: 300px;
}

.status-col {
    width: 100px;
}

.beacon-table th, .beacon-table td {
    min-width: 100px;
}

.beacon-table .button {
    width: 80%;
}

.beacon-table input {
    width: 100%;
    box-sizing: border-box;
}

.map-table input {
    width: 100%;
    box-sizing: border-box;
}

.cell-border-right {
    /*border-right: 1px solid !important;*/
    /*border-right-color: var(--bulma-table-cell-border-color);*/
}

/* Canvas */
.beacon-canvas-container {
    position: relative;
    display: flex;
    justify-content: left;
    align-items: center;
}


/* Tags */
.tag-fixed-width {
    width: 100px;
    text-align: center;
}

.tag-fixed-width-small {
    width: 70px;
    text-align: center;
}

/* Buttons */

.tsr-action-button {
    width: 110px;
}

.tsr-secondary-action-button {
    width: 75px;
}

/* Containers */
.tsr-summary-container {
    display: block;
    border-bottom: 1px solid #949494;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.vehicle-summary-container {
    display: block;
    border-bottom: 1px solid #949494;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Colours */
:root {
    --usig-blue: hsl(233deg, 100%, 63%); /* Example color */
}

/* Crossing Container */
.lx-grid-container {
    display: flex;
    flex-wrap: wrap;
    /* width: 2344px; */
}

/* Crossing Box */
.lx-grid-box {
    border: 2px solid var(--bulma-border-color);
    border-radius: 5px;
    /* width: 250px; */
    flex: 0 0 10%;
    height: 250px;

    font-weight: 700;
    margin: 5px;
    display: flex;
    flex-direction: column;
}

/* Text */
.lx-grid-box > div {
    margin: 5px;
    padding: 1px;
    border-radius: 5px;

    text-align: center;
}

.nameplate {
    background-color: antiquewhite;
    color: black;
    height: 50px;
}

.timeplate {
    border-color: antiquewhite;
    color: black;
}

.unknown {
    background-color: rgb(255, 102, 133);
}

.passed {
    background-color: rgb(80, 157, 47);
}

.warning {
    background-color: rgb(178, 128, 10);

}

.danger {
    background-color: rgb(255, 102, 133);
}

/* Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}

/* Default state - will be overridden by Bulma classes */
.slider.is-danger {
  background-color: var(--bulma-danger, #ff0000);
}
.slider.is-primary {
  background-color: var(--bulma-primary, #00ff00);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
}

/* Move the slider button when checked */
input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 20px;
}
.slider.round:before {
  border-radius: 50%;
}
