#settingsPanel, .buttons, #zonePoints  {
  margin: 2px;
}
#settingsPanel {
	max-width: 600px;
  width: 50%;
  float: right;
}

#zoneSettings {
  border-collapse: collapse;
  width: 100%;
}

#zoneSettings th,
#zoneSettings td {
  border: 1px solid #7f7fb2;
  padding: 3px;
  text-align: left;
}

#zoneSettings th[scope=row] {
  padding: 4px 3px 3px;
  vertical-align: top;
  white-space: nowrap;
}

#imageAndPoints {
  position: relative;
  min-width: 647px; /* extra 6 px for padding */
  float: left;
  width: 50%;
}

/* NB: The size of the imageFrame determines the area within which the markers
 * may be moved.  When adjusting the padding and margins of the imageFrame and
 * the DIVs within it, test that the markers behave sensibly when dragged to
 * the extreme edges of the imageFrame. */
#imageFrame {
    position: relative;
    padding: 3px 4px 4px 3px;
}
#imageFrame .monitor {
  width: 100%;
}
#imageFrame svg {
  box-sizing: border-box;
 position:absolute;
 top: 3px;
 left: 3px; 
 right: 3px;
 background: none;
 }
#imageFrame img {
  width: 100%;
  display: block;
}
#imageFrame img.alarm ,
#imageFrame img.alert {
  padding: 1px;
}

#imageFrame div.zonePoint {
    position: absolute;
    width: 7px;
    height: 7px;
    margin-left: -3px;
    margin-top: -3px;
    z-index: 5;
}

#imageFrame div.zonePoint {
    background-image: url(../skins/classic/graphics/point-g.png);
}

#imageFrame div.zonePoint.highlight {
    background-image: url(../skins/classic/graphics/point-o.png);
}

#imageFrame div.zonePoint.active {
    background-image: url(../skins/classic/graphics/point-r.png);
}

#zonePoints {
  width: 100%;
}

#zonePoints td {
    vertical-align: top;
}

#zonePoints table {
  border-collapse: collapse;
	width: 100%;
}
#zonePoints table table {
}

#zonePoints table table tr.highlight {
    background-color: #f0e68c;
}

#zonePoints table table tr.active {
    background-color: #ffa07a;
}

#zonePoints table table th,
#zonePoints table table td {
    border: 1px solid #7f7fb2;
    padding: 3px;
    text-align: center;
}

#zonePoints table a {
    margin: 0 2px;
}
.zones polygon {
	fill-opacity: 0.25;
  stroke-width: 0;
}
.zones polygon.Editing {
  stroke-width: 2px;
}
.Active {
	stroke: #ff0000;
	fill: #ff0000;
}
.Inclusive {
	stroke: #FFA500;
	fill: #FFA500;
}
.Exclusive {
	stroke: #800080;
	fill: #800080;
}
.Preclusive {
	stroke: #0000FF;
	fill: #0000FF;
}

input[name="newZone[Name]"] {
width: 100%;
}
input[name="newAlarmRgbR"],
input[name="newAlarmRgbG"],
input[name="newAlarmRgbB"] {
width: 25%;
}
input[name="newZone[MinPixelThreshold]"],
input[name="newZone[MaxPixelThreshold]"],
input[name="newZone[FilterX]"],
input[name="newZone[FilterY]"],
input[name="newZone[MinFilterPixels]"],
input[name="newZone[MaxFilterPixels]"],
input[name="newZone[MinBlobPixels]"],
input[name="newZone[MaxBlobPixels]"],
input[name="newZone[MinBlobs]"],
input[name="newZone[MaxBlobs]"],
input[name="newZone[MinAlarmPixels]"],
input[name="newZone[MaxAlarmPixels]"] {
  width: 90px;
}
input.ZonePoint {
    width: 75px;
}
svg {
  overflow: visible;
}
svg circle {
  fill: green;
    overflow: visible;
}
#monitorState {
  display: inline;
  float: left;
}
#StreamControlButtons {
  display: inline;
  float: right;
}
