/*
    GENERAL CHART FORMATS
*/

.chart {
    background: white;
}

.bar {
    fill: #aaa;
    height: 21px;
    transition: fill 0.3s ease;
    cursor: pointer;
    font-family: Helvetica, sans-serif;
}

    .bar text {
        fill: #555;
    }

.chart:hover .bar,
.chart:focus .bar {
    fill: #aaa;
}

.bar:hover,
.bar:focus {
    fill: red !important;
}

    .bar:hover text,
    .bar:focus text {
        fill: red;
    }

.grid {
    stroke: darkgray;
    stroke-width: 1;
}

.axis {
    stroke: black;
    stroke-width: 2;
}

.axis-label {
    font-size: 15px;
    font-family: Verdana, Calibri, Arial, sans-serif;
}

.axis-label-title {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.chart-title {
    font-family: Verdana, Calibri, Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: black;
    text-anchor: middle;
}

.chart-subtitle {
    font-family: Verdana, Calibri, Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
    fill: green;
    text-anchor: middle;
}

.chart .axis-label.x-label {
    text-anchor: middle;
}

.chart .axis-label.y-label {
    text-anchor: end;
}

.chart .axis-label.y2-label {
    text-anchor: start;
}

.legend-text {
    font-size: 15px;
    font-family: Tahoma, Calibri, Arial, sans-serif;
    text-anchor: start;
}

.legend-box {
    stroke: darkgray;
    stroke-width: 1;
    fill: lightgray;
    fill-opacity: .25;
}

/*
    PLAN STATISTIC LABELS
*/

.plan-label {
    stroke: black;
    stroke-width: 1;
}

.plan-label-text {
    font-size: 15px;
    font-family: Tahoma, Calibri, Arial, sans-serif;
    text-anchor: middle;
}

.plan-label-gray {
    fill: slategray;
}

.plan-label-green {
    fill: green;
}

.plan-label-red {
    fill: red;
}

.plan-label-blue {
    fill: royalblue;
}

.plan-label-purple {
    fill: purple;
}

.plan-label-maroon {
    fill: maroon;
}

/*
    PLAN SHADING
*/
.plan-shading-even {
    fill: rgb(250, 250, 210);
    fill-opacity: 0.46875;
    stroke-width: 0;
}

.plan-shading-odd {
    fill: rgb(173, 216, 230);
    fill-opacity: 0.46875;
    stroke-width: 0;
}

.plan-shading-free {
    fill: lightgray;
    fill-opacity: 0.46875;
    stroke-width: 0;
}

.plan-shading-flash {
    fill: rgb(255, 215, 0);
    fill-opacity: 0.46875;
    stroke-width: 0;
}

.plan-shading-manual {
    fill: rgb(255, 182, 193);
    fill-opacity: 0.46875;
    stroke-width: 0;
}

/*
    USED BY MULTIPLE METRICS
*/

.max-out {
    fill: red;
    stroke-width: 1;
}

.gap-out {
    fill: green;
    stroke-width: 1;
}

.force-off {
    fill: blue;
    stroke-width: 1;
}

.unknown-termination {
    fill: darkorchid;
    stroke-width: 1;
}

.ped-walk-begin {
    fill: orange;
    stroke-width: 1;
}

.programmed-split {
    stroke: orangered;
    stroke-width: 1;
}

.overlap-termination {
    fill: black;
    stroke-width: 1;
}

/*
    PURDUE COORDINATION DIAGRAM
*/

.pcd-green {
    stroke: rgb(0,192,0);
    stroke-width: 1;
}

.pcd-yellow {
    stroke: yellow;
    stroke-width: 1;
}

.pcd-red {
    stroke: red;
    stroke-width: 1;
}

.pcd-volume {
    stroke: black;
    stroke-width: 1;
}

.pcd-activation {
    fill: black;
    stroke-width: 1;
}

.pcd-platoon-activation {
    fill: blue;
    stroke-width: 1;
}

.pcd-nonplatoon-activation {
    fill: #6c757d;
    stroke-width: 1;
}
/*
    FLOW PROFILE
*/
.flow-profile-green {
    fill: rgb(148,208,80);
    stroke-width: 0;
}

.flow-profile-vehicle {
    fill: black;
    stroke-width: 0;
}

/* 
    PURDUE SPLIT FAILURE METRIC
*/

.splitfail-gorGap {
    fill: limegreen;
    stroke-width: 0;
}

.splitfail-gorForce {
    fill: forestgreen;
    stroke-width: 0;
}

.splitfail-rorGap {
    fill: hotpink;
    stroke-width: 0;
}

.splitfail-rorForce {
    fill: red;
    stroke-width: 0;
}

.splitfail {
    stroke: gold;
    stroke-width: 1;
}

.splitfail-gorAvg {
    stroke: darkgreen;
    stroke-width: 2;
}

.splitfail-rorAvg {
    stroke: darkred;
    stroke-width: 2;
}

.splitfail-binSplitFail {
    stroke: blue;
    stroke-width: 2;
}

/*
    SPLIT TREND METRIC
*/

.splittrend-binSplitFail {
    fill: red;
    stroke-width: 0;
}

.splittrend-binHeavyTraffic {
    fill: purple;
    stroke-width: 0;
}

.splittrend-binGoodTiming {
    fill: green;
    stroke-width: 0;
}

.splittrend-binRandomArrivals {
    fill: orange;
    stroke-width: 0;
}

.splittrend-binSpareCapacity {
    fill: blue;
    stroke-width: 0;
}

/*
    WAIT TIME METRIC
*/

.waitTime-avg {
    stroke: magenta;
    stroke-width: 2;
}

.wait-time {
    fill: black;
    stroke-width: 1;
}

/* 
    PED DELAY METRIC
*/

.ped-delay {
    stroke: blue;
    stroke-width: 5;
}

/* 
    TURNING MOVEMENT COUNT METRIC
*/

.volume-total {
    stroke: black;
    stroke-width: 2;
}

.volume-lane1 {
    stroke: darkred;
    stroke-width: 1;
}

.volume-lane2 {
    stroke: darkorange;
    stroke-width: 1;
}

.volume-lane3 {
    stroke: blue;
    stroke-width: 1;
    border-style: dotted;
}

.volume-lane4 {
    stroke: darkred;
    stroke-width: 1;
    border-style: dotted;
}

.volume-laneLT {
    stroke: darkorange;
    stroke-width: 1;
    border-style: dotted;
}

.volume-laneRT {
    stroke: blue;
    stroke-width: 1;
}

.volume-laneLTR {
    stroke: darkgreen;
    stroke-width: 1;
}

.volume-total-row {
    border-top: 2px solid black;
    border-bottom: 3px double black;
    font-weight: bold;
}

.TMCDirectionTotalColumn {
    background-color: #f0fff0;
}

.TMCMLaneTypeTotalColumn {
    background-color: #cce0f8;
    max-width: 30px;
}

.TMCTable {
    margin-left: 10px;
    text-align: center;
}

.dashPlaceHolder {
    color: #f9f9f9;
}

/*
    TRANSITION METRIC
*/

.transition-add {
    fill: blue;
    stroke-width: 1;
}

.transition-subtract {
    fill: green;
    stroke-width: 1;
}

.transition-dwell {
    fill: red;
    stroke-width: 1;
}

.transition-ped {
    stroke: orange;
    stroke-width: 1;
}

.transition-preempt {
    stroke: purple;
    stroke-width: 1;
}

/*
    PREEMPTION METRIC
*/

.preempt-delay {
    stroke: rgb(241, 113, 96);
    stroke-width: 5;
}

.preempt-timeToService {
    stroke: rgb(255, 193, 94);
    stroke-width: 5;
}

.preempt-trackClear {
    stroke: rgb(151, 206, 245);
    stroke-width: 5;
}

.preempt-dwellTime {
    stroke: rgb(164, 238, 140);
    stroke-width: 5;
}

.preempt-callMaxOut {
    stroke: red;
    stroke-width: 1;
}

.preempt-inputOn {
    fill: green;
    stroke-width: 1;
}

.preempt-inputOff {
    fill: black;
    stroke-width: 1;
}

.preempt-gateDown {
    fill: purple;
    stroke-width: 1;
}

/* 
    WATCHDOG 
*/

.watchdog-error {
    color: darkred;
    font-weight: 700;
    font-size: 15px;
}

.watchdog-noerror {
    font-style: oblique;
    color: darkgreen;
    font-size: 12px;
    font-weight: 600;
}

/* 
    QUEUE METRIC
*/

.queue {
    stroke: darkblue;
    stroke-width: 1;
}

/*
    EVENT LOG
*/

.table-event-log {
    position: relative;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: space-between;
}

/* 
    TIMELINE AND CYCLE TIMELINE METRICS
*/

.cycle-timeline-subtitle {
    font-family: Verdana, Calibri, Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
    fill: black;
    text-anchor: middle;
}



.timeline-green-coord {
    fill: rgb(0,178,89);
    stroke-width: 0.5;
    stroke: black;
}

.timeline-green {
    fill: rgb(0,178,89);
    fill-opacity: 0.65;
    stroke-width: 0.5;
    stroke: black;
}

.timeline-yellow-coord {
    fill: rgb(254,172,13);
    stroke-width: 0.5;
    stroke: black;
}

.timeline-yellow {
    fill: rgb(254,172,13);
    fill-opacity: 0.65;
    stroke-width: 0.5;
    stroke: black;
}

.timeline-red-coord {
    fill: rgb(178,20,0);
    stroke-width: 0.5;
    stroke: black;
}

.timeline-red {
    fill: rgb(178,20,0);
    fill-opacity: 0.65;
    stroke-width: 0.5;
    stroke: black;
}

.timeline-ped-walk {
    fill: white;
    stroke-width: 0.5;
    stroke: black;
}

.timeline-ped-flashing {
    fill: orange;
    stroke-width: 1;
    stroke: black;
    stroke-dasharray: 1;
}

.timeline-ped-solid {
    fill: darkorange;
    stroke-width: 0.5;
    stroke: black;
}

.timeline-detection {
    stroke-width: 5;
    stroke: blue;
}

.timeline-det-presence {
    stroke: #0000d7;
}

.timeline-det-adv-count {
    stroke: #008000;
}

.timeline-det-exit {
    stroke: #ff00fe;
}

.timeline-det-ped {
    stroke: darkorange;
}

.timeline-det-unknown {
    stroke: aqua;
}

.timeline-det-lane-count {
    stroke: #ffb200;
}

.timeline-calls {
    stroke-width: 5;
    stroke: purple;
}

.timeline-holds {
    stroke-width: 5;
    stroke: darkred;
}

.timeline-omits {
    stroke-width: 5;
    stroke: silver;
}

.timeline-phase-label {
    font-family: Verdana;
    fill: white;
    font-size: 12px;
}

.timeline-phase-label-sm {
    font-family: Verdana;
    fill: white;
    font-size: 9px;
}

.timeline-split-label {
    font-family: Verdana;
    fill: white;
    font-size: 12px;
    text-anchor: end;
}

.timeline-split-label-sm {
    font-family: Verdana;
    fill: white;
    font-size: 9px;
    text-anchor: end;
}

.timeline-xaxis-label {
    font-family: Verdana;
    fill: black;
    font-size: 8px;
    text-anchor: middle;
}

.timeline-ticks-minor {
    stroke: black;
    stroke-width: 0.5;
}

.timeline-ticks-major {
    stroke: black;
    stroke-width: 1;
}

.timeline-xaxis-local-label {
    font-family: Verdana;
    fill: #9727d4;
    font-size: 8px;
    text-anchor: middle;
}

.timeline-ticks-local-minor {
    stroke: #9727d4;
    stroke-width: 0.5;
}

.timeline-ticks-local-major {
    stroke: #9727d4;
    stroke-width: 1;
}

.timeline-yaxis-label {
    font-family: Verdana;
    fill: black;
    font-size: 12px;
    text-anchor: end;
}

.timeline-local-zero {
    stroke: #9727d4;
    stroke-width: 2;
    fill: none;
}

.timeline-local-zero-triangle {
    fill: hotpink;
    fill-opacity: 0.75;
}

.timeline-yield {
    stroke: #27A1D4;
    stroke-width: 1;
    stroke-dasharray: 3;
    stroke-opacity: 0.75;
}

.timeline-yield-triangle {
    fill: hotpink;
    fill-opacity: 1;
}

.timeline-transition-add {
    stroke-width: 3;
    stroke: blue;
}

.timeline-transition-subtract {
    stroke-width: 3;
    stroke: green;
}

.timeline-transition-dwell {
    stroke-width: 3;
    stroke: red;
}

/*
    INTERSECTION CONFIGURATION
*/

table.ring-barrier tr {
    border-bottom: 1px solid black;
}

.has-barrier {
    background: black;
}

.ring-phase {
    width: 60px;
    border: none;
    text-align: center;
}

.table-row-approach {
    background: rgb(0,32,92);
    color: white;
}

/*.table > tbody > tr > td {
    text-align: center;
    vertical-align: middle;
}

.table > tbody > tr > th {
    text-align: center;
    vertical-align: middle;
}*/

.btn-primary {
    background-color: rgba(0,32,92,0.85);
    border-color: rgb(0,32,92);
}

.btn-secondary {
    background-color: rgba(0,32,92,0.35);
    border-color: rgba(0,32,92,0.5);
}



h1 {
    font-weight: 700;
    color: rgb(0,32,92);
}

h2 {
    font-weight: 600;
    color: rgb(0,32,92);
    text-decoration: underline;
}

.col-form-label {
    text-align: right;
}

.form-control.no-border {
    background: none;
    border: none;
}

.zero {
    color: lightgray;
}

@media print {
    .btn-primary {
        display: none;
    }

    .btn-secondary {
        display: none;
    }
}
