.canvas {
   -fx-background-image: url("grid16.png");
}

.canvas-editable{
   -fx-background-color:  #c8d9e9;
}

.canvas-failed {
    -fx-background-color: #e9c8d9;
}

.canvas-fixed {
    -fx-background-color: #d9e9c8;
}

.canvas-future-reservation {
    -fx-background-color: #d8c8e9;
}

.canvas-expired {
    -fx-background-color: #e9d8c8;
}


.canvas-node{
    -fx-font-weight: normal;
    -fx-cursor: hand;
    -fx-content-display: left;
    -fx-text-alignment: center;
    -fx-text-wrap: true;
    -fx-border-color: white;
    -fx-border-width: 3px;
    -fx-background-color: rgb(170,187,203); /* #aabbcb */
    -fx-border-insets: 1;
    -fx-background-insets: 1;
    -fx-border-radius: 5px;
    -fx-background-radius: 5px;
}

.canvas-node:focused{
    /*-fx-background-color: rgba(155,172,188,0.9); */  /* #9bacbc */
    -fx-font-weight: bold;
    -fx-border-color: green;
    -fx-border-width: 3px;
    -fx-text-fill: white;
}

.canvas-node-ready{
    -fx-background-color: green;
    -fx-text-fill: white;
}

.canvas-node-ready-nologin{
    -fx-background-color: lawngreen;
}

.canvas-node-changing{
    -fx-background-color: yellow;
}

.canvas-node-fail{
    -fx-background-color: red;
    -fx-text-fill: white;
}

.canvas-node-unallocated{
    -fx-background-color: black;
    -fx-text-fill: white;
}

.canvas-node-uninitialised{
    -fx-background-color: deeppink;
    -fx-text-fill: white;
}

.canvas-node-unknown{
    -fx-background-color: indigo;
    -fx-text-fill: white;
}

.canvas-node-reservation-failed{
    -fx-background-color: orangered;
    -fx-text-fill: white;
}

.canvas-node:focused .canvas-node-text{
    -fx-font-weight: bold;
    -fx-text-fill: white;
}

.canvas-node-ready  .canvas-node-text{
    -fx-text-fill: white;
}


.canvas-node-fail  .canvas-node-text{
    -fx-text-fill: white;
}

.canvas-node-unallocated  .canvas-node-text{
    -fx-text-fill: white;
}

.canvas-node-uninitialised  .canvas-node-text{
    -fx-text-fill: white;
}

.canvas-node-unknown  .canvas-node-text{
    -fx-text-fill: white;
}


/****************
* Canvas links  *
****************/

.canvas-link {
     -fx-stroke-width: 4;
     -fx-stroke-line-cap: round;
 }

.canvas-link-selected {

     -fx-stroke-width: 5;
     -fx-stroke-line-cap: round;
}

.canvas-link-editable {
     -fx-stroke: darkblue;
 }

.canvas-link-editable-selected {
     -fx-stroke: darkcyan;
}


.canvas-link-ready{
    -fx-stroke: green;
}

.canvas-link-changing{
    -fx-stroke: yellow;
}

.canvas-link-fail{
    -fx-stroke: red;
}

.canvas-link-unallocated{
    -fx-stroke: black;
}

.canvas-link-uninitialised{
    -fx-stroke: deeppink;
}

.canvas-link-unknown{
    -fx-stroke: indigo;
}



.new-canvas-link-line {
    -fx-stroke: darkblue;
    -fx-stroke-line-cap: butt;
    -fx-stroke-width: 4;
}

.new-canvas-link-end {
    -fx-stroke: darkblue;
    -fx-stroke-line-cap: butt;
    -fx-stroke-width: 4;
}

.new-canvas-link-line:invalid {
    -fx-stroke: darkred;
}

.new-canvas-link-end:invalid {
    -fx-stroke: darkred;
}


/* Link center */

.link-center{
    -fx-background-color: null;
    -fx-font-weight: normal;
    -fx-cursor: hand;
    -fx-content-display: left;
    -fx-text-alignment: center;
    -fx-text-wrap: true;
    -fx-border-color: darkblue;
    -fx-border-width: 3px;
    -fx-background-color: rgb(170,187,203); /* #aabbcb */
    -fx-border-insets: 1;
    -fx-background-insets: 1;
    -fx-border-radius: 5px;
    -fx-background-radius: 5px;
}

.link-center:focused{
    -fx-background-color: rgb(155,172,188);   /* #9bacbc */
    -fx-font-weight: bold;
    -fx-border-color: darkcyan;
    -fx-border-width: 3px;
    -fx-text-fill: white;
}


.gts-link-center{
    -fx-background-color: null;
    -fx-font-weight: normal;
    -fx-cursor: hand;
    -fx-content-display: left;
    -fx-text-alignment: center;
    -fx-text-wrap: true;
    -fx-border-color: #8b0000;
    -fx-border-width: 3px;
    -fx-background-color: #cbaabb;
    -fx-border-insets: 1;
    -fx-background-insets: 1;
    -fx-border-radius: 5px;
    -fx-background-radius: 5px;
}

.link-center:focused{
    -fx-background-color:  #cbaabb;
    -fx-font-weight: bold;
    -fx-border-color: #8b0023;
    -fx-border-width: 3px;
    -fx-text-fill: white;
}

.impaired-link-center{
    -fx-border-color: #ff8c00;
    -fx-background-color: #ffc073;
}

.impaired-link-center:focused{
    -fx-background-color: #ff9473;
    -fx-font-weight: bold;
    -fx-border-color: #ff3d00;
    -fx-border-width: 3px;
    -fx-text-fill: white;
}

.shared-link-center{
    -fx-border-color: #00a7ff;
    -fx-background-color: #73e2ff;
}

.shared-link-center:focused{
    -fx-background-color: #85efff;
    -fx-font-weight: bold;
    -fx-border-color: #71ceff;
    -fx-border-width: 3px;
    -fx-text-fill: white;
}

.link-center-ready{
    -fx-background-color: derive(green,50%);
    -fx-text-fill: white;
    -fx-border-color: white;
}

.link-center-changing{
    -fx-background-color: derive(yellow,50%);
    -fx-border-color: white;
}

.link-center-fail{
    -fx-background-color: derive(red,50%);
    -fx-text-fill: white;
    -fx-border-color: white;
}

.link-center-unallocated{
    -fx-background-color: derive(black,50%);
    -fx-text-fill: white;
    -fx-border-color: white;
}

.link-center-uninitialised{
    -fx-background-color: derive(deeppink,50%);
    -fx-text-fill: white;
    -fx-border-color: white;
}

.link-center-unknown{
    -fx-background-color: derive(indigo,50%);
    -fx-text-fill: white;
    -fx-border-color: white;
}
