body {
  margin: 10px;
  padding: 0;
  font-size: 12px;
  color: #333333;
  background-color: #FFFFFF;
}

form {
  margin: 0;
  padding: 0;
}

img {
  border: 0;
}

table {
  border-collapse: collapse;
  font-size: 12px;
}

th,
td {
  margin: 0;
  padding: 0;
  vertical-align: top;
}

.d-flex {
  display: flex;
}

.header {
  box-sizing: border-box;
  margin-bottom: 10px;
}

table.titleTb {
  border: 2px solid #deba6b;
}
table.titleTb td {
  background-color: #efdbad;
  color: #840000;
  line-height: 25px;
  font-weight: bold;
}
table.titleTb td.titleTbTt {
  font-size: 12pt;
  padding: 1px 5px;
}
table.titleTb td.titleTbCtrlTt {
  font-size: 9pt;
  padding: 1px 3px;
  text-align: right;
}

/* ヘッダー表 */
table#mainTbl {
  width: 582px;
  background-color: #ffffff;
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  border-top: 1px solid #333333;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid #333333;
}

table#mainTbl th,
table#mainTbl td {
  border-top: none;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-left: none;
  padding: 2px;
}

table#mainTbl th {
  background-color: #18428C;
  color: #ffffff;
  text-align: center;
}

table#mainTbl td.menu {
  width: 120px;
  background-color: #6793E3;
  color: #F8F8F8;
  text-align: center;
}

/* グラフ */
div#graphArea {
  padding-top: 1px;
  width: 580px;
  height: 286px;
  border: 1px solid #333333;
  border-top: none;
  background-color: #ffffff;
}

div#graphArea p.debugRiverTime {
  font-size: 11px;
}

div#graphArea div#riverGraph {
  position: relative;
  height: 200px;
}

div#graphArea div#riverGraph img {
  position: absolute;
  top: 0;
  left: 0;
}

div#graphArea div#riverGraph #riverPo {
  top: 10px;
  left: 73px;
  cursor: pointer;
  display: none;
}

/* カメラ画像 */
div#cameraArea {
  margin: 0;
  padding: 10px;
  width: 560px;
  border: 1px solid #333333;
  border-top: none;
  background-color: #ffffff;
  font-size: 12px;
}

div#cameraArea div#riverCamera {
  margin: 10px auto 0;
  padding: 0;
  width: 320px;
  height: 240px;
  border: 1px solid #666;
}

div#cameraArea div#cameraForm {
  margin: 0 auto;
  padding: 10px 0;
  width: 500px;
  text-align: center;
}

div#cameraArea div#cameraForm div#slider {
  margin: 0 auto;
}

/* カメラ画像時刻 */
#cameraTime {
  text-align: center;
}

/* カメラ画像 */
div#cameraArea img.itvimg {
  width: 320px;
  height: 240px;
  display: none;
}

/* 凡例 */
table#hanTbl {
  margin: 0 0 0 2px;
  width: 180px;
  background-color: #ffffff;
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  border-top: 1px solid #333333;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid #333333;
  font-size: 12px;
}

table#hanTbl th,
table#hanTbl td {
  border-top: none;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-left: none;
  padding: 2px 4px;
  font-size: 12px;
}

table#hanTbl th {
  background-color: #18428C;
  color: #ffffff;
  text-align: center;
}
table#hanTbl td.itvTbIg{
  border:1px solid #333333;
  background-color:#FFFFFF;
  padding:2px;
  text-align:center;
  color:#000000;
}

table#hanTbl .box {
  margin: 0 auto;
  padding: 0;
  width: 10px;
  height: 10px;
  background-color: #000;
}

table#hanTbl .river1 {
  background-color: #00cc00;
}

table#hanTbl .river2 {
  background-color: #ffc0cb;
}

table#hanTbl .river3 {
  background-color: #990099;
}

table#hanTbl .river4 {
  background-color: #ff0000;
}

table#hanTbl .icon {
  vertical-align: middle;
  text-align: center;
  width: 30px;
}
table#hanTbl .griver2 {
  background-color: #f5c400;
}

/* 現在水位 */
table#nowRiverTbl {
  margin: 4px 0 0 2px;
  width: 180px;
  background-color: #ffffff;
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  border-top: 1px solid #333333;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid #333333;
  font-size: 12px;
}

table#nowRiverTbl th,
table#nowRiverTbl td {
  border-top: none;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-left: none;
  padding: 2px 4px;
}

table#nowRiverTbl th {
  background-color: #18428C;
  color: #ffffff;
  text-align: center;
}

table#nowRiverTbl td {
  padding-right: 20px;
  text-align: right;
}

/* 警報状態 */
table#statusTbl {
  margin: 4px 0 0 2px;
  width: 180px;
  background-color: #ffffff;
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
  border-top: 1px solid #333333;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid #333333;
  font-size: 12px;
}

table#statusTbl th,
table#statusTbl td {
  border-top: none;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-left: none;
  padding: 2px 4px;
}

table#statusTbl th {
  background-color: #18428C;
  color: #ffffff;
  text-align: center;
}

table#statusTbl td {
  padding-right: 20px;
  text-align: right;
}

/* 説明 */
#stmtxt {
  margin: 4px 0 10px 2px;
  padding: 0;
  width: 180px;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 1px;
}

/* ボタンサイズ変更 */
#cameraForm input.ui-button {
  margin-right: 0.3em;
  padding: 0.2em 1em;
}

#comment {
  width: 100%;
  font-size: 10pt;
  text-align: center;
}