/* original */
:root {
  --background-color-body: rgb(32, 160, 96);
  --background-color-alarm: rgb(80, 192, 112);
  --background-color-config: rgba(32, 160, 104, 0.85);
  --background-color-input-label: rgb(192, 248, 216);
  --border-input-label-top-left: 1px solid #cfffdf;
  --border-input-label-bottom-right: 1px solid #b0e0c0;
  --border-box-nop-top-left: 1px solid #70f0b0;
  --border-box-nop-bottom-right: 1px solid #30b070;
  --background-color-box-nop-bottom-right: #50d090;
  --border-box-rec-top-left: 1px solid #b0f0b0;
  --border-box-rec-bottom-right: 1px solid #70b070;
  --background-color-box-rec-bottom-right: #90d090;
  --border-box-off-top-left: 1px solid #60e0b0;
  --border-box-off-bottom-right: 1px solid #20a070;
  --background-color-box-off-bottom-right: #40c090;
  --border-box-man-top-left: 1px solid #c0e0a0;
  --border-box-man-bottom-right: 1px solid #80a060;
  --background-color-box-man-bottom-right: #a0c080;
  --background-color-title: #505050;
  --color-has-tip: #000000;
  --color-text: rgb(50, 60, 50);
}
/* dark */
/*
:root {
  --background-color-body: rgb(7, 39, 23);
  --background-color-alarm: rgb(13, 68, 29);
  --background-color-config: rgba(16, 83, 54, 0.85);
  --background-color-input-label: rgb(32, 74, 50);

  --border-input-label-top-left: 1px solid #cfffdf;
  --border-input-label-bottom-right: 1px solid #b0e0c0;

  --border-box-nop-top-left: 1px solid #1b5638;
  --border-box-nop-bottom-right: 1px solid #30b070;
  --background-color-box-nop-bottom-right: #50d090;
  --border-box-rec-top-left: 1px solid #088008;
  --border-box-rec-bottom-right: 1px solid #70b070;
  --background-color-box-rec-bottom-right: #90d090;
  --border-box-off-top-left: 1px solid #18362b;
  --border-box-off-bottom-right: 1px solid #20a070;
  --background-color-box-off-bottom-right: #40c090;
  --border-box-man-top-left: 1px solid #5c7741;
  --border-box-man-bottom-right: 1px solid #80a060;
  --background-color-box-man-bottom-right: #a0c080;

  --background-color-title: #bdbdbd;
  --color-has-tip: #929292;
  --color-text: rgb(200,240,200);
}
*/
* {
  margin: 0px;
  padding: 0px;
  font-family: "Arial", sans-serif;
  color: var(color-text);
}
body {
  background-color: var(--background-color-body);
}
#tvalarmbackground {
  padding-top: 8px;
  display: table;
  /*inline-block;*/
  width: 100%;
  background-color: var(--background-color-alarm);
}
#tvalarm {
  margin: 0px auto;
  width: 803px;
  /*overflow: visible;*/
}
#tvtablebackground {
  overflow: auto;
}
#tvtable {
  width: 787px;
  margin: 0px auto;
}
#tvconfigbackground {
  display: none;
  position: absolute;
  top: 0px;
  width: 100%;
  height: 100%;
  background-color: var(--background-color-config);
}
#tvconfig {
  margin: 0px auto;
  width: 800px;
}
.tvdate {
  float: left;
  text-align: left;
  width: 100%;
  height: 38px;
  margin: 22px 0px 0px 0px;
}
.tvrow {
  float: left;
  width: 782px;
}
.nop {
  /* 0 */
  border-top: var(--border-box-nop-top-left);
  border-left: var(--border-box-nop-top-left);
  border-bottom: var(--border-box-nop-bottom-right);
  border-right: var(--border-box-nop-bottom-right);
  background-color: var(--background-color-box-nop-bottom-right);
}
.rec {
  /* 1 */
  border-top: var(--border-box-rec-top-left);
  border-left: var(--border-box-rec-top-left);
  border-bottom: var(--border-box-rec-bottom-right);
  border-right: var(--border-box-rec-bottom-right);
  background-color: var(--background-color-box-rec-bottom-right);
}
.off {
  /* 2 */
  border-top: var(--border-box-off-top-left);
  border-left: var(--border-box-off-top-left);
  border-bottom: var(--border-box-off-bottom-right);
  border-right: var(--border-box-off-bottom-right);
  background-color: var(--background-color-box-off-bottom-right);
}
.man {
  /* 3 */
  border-top: var(--border-box-man-top-left);
  border-left: var(--border-box-man-top-left);
  border-bottom: var(--border-box-man-bottom-right);
  border-right: var(--border-box-man-bottom-right);
  background-color: var(--background-color-box-man-bottom-right);
}
.tvcheck {
  float: left;
  width: 16px;
  margin: 8px 2px 0px 8px;
}
.tvtitle {
  color: var(--background-color-title);
  float: left;
  width: 250px;
  margin: 4px;
}
.has-tip {
  color: var(--color-has-tip);
}
.tvtime {
  float: left;
  text-align: center;
  width: 40px;
  margin: 4px;
}
.alarm .tvtime {
  font-weight: bold;
}
.tvchannel {
  float: left;
  font-size: small;
  margin: 4px;
  text-align: center;
  width: 80px;
}
.tvdetail {
  float: left;
  font-size: small;
  margin: 4px 8px 4px 4px;
  width: 376px;
}
.tvdetailitalic {
  font-size: 12px;
  font-style: italic;
  font-weight: bold;
}
#tvuser {
  position: fixed;
  left: 0px;
  top: -30px;
  height: 22px;
  background-color: #c0f0d0;
  width: 100%;
  padding: 8px 0px;
}
.tvuserleft {
  width: auto;
  /* at least 361px! */
  float: left;
  overflow: hidden;
}
.tvuserright {
  width: auto;
  float: right;
}
#tvcontrol {
  position: fixed;
  left: 0px;
  bottom: -30px;
  height: 22px;
  background-color: #c0f0d0;
  width: 100%;
  padding: 8px 0px;
}
.tvcenter {
  width: 800px;
  margin: 0px auto;
  min-height: 1px;
  height: auto;
}
.tvcontrolleft {
  width: 30%;
  float: left;
}
.tvcontrolmiddle {
  width: 40%;
  float: left;
}
#tterm {
  width: 90px;
}
.tvcontrolright {
  width: auto;
  float: right;
}
#ddate {
  float: left;
  width: 95px;
}
#dtime {
  float: left;
  width: 90px;
}
#dfrom,
#dto {
  width: 116px;
  cursor: url("data/ew-slide.png") 7 7, move;
}
input,
label {
  padding: 0px 2px;
  font-size: 13px;
  border-top: var(--border-input-label-top-left);
  border-right: var(--border-input-label-bottom-right);
  border-bottom: var(--border-input-label-bottom-right);
  border-left: var(--border-input-label-top-left);
  background-color: var(--background-color-input-label);
}
input[type=text],
input[type=password] {
  width: 60px;
}
input[type=button] {
  cursor: pointer;
}
input:hover,
input:focus,
label:hover {
  background-color: #f0f0f0;
}
.active {
  border-style: groove;
  background-color: #e0f0e0;
}
textarea {
  width: 799px;
  height: 200px;
}
#tvfooterspace {
  height: 38px;
  clear: both;
}
#tvloading {
  display: none;
}
.wait {
  width: 100px !important;
  height: 100px !important;
  margin: 200px auto;
  background-image: url("data/loading.gif");
}
a {
  text-decoration: underline;
}
a:link {
  color: #004000;
}
a:visited,
a:active {
  color: #a04000;
}
.link {
  color: #004000;
  text-decoration: underline;
  cursor: pointer;
}
#tvfloat {
  display: none;
  height: 0;
  position: relative;
  left: -5px;
  top: -4.6px;
}
/*.tvfloat_close {
  background-image: url("data/close.png");
  background-size: 100% 100%;
  width: 24px;
  height: 24px;
  float: right;
  cursor: pointer;
}*/
#tvfloat_content {
  font-size: small;
  height: auto;
  min-height: 41px;
  overflow: auto;
  padding: 4.5px 4px;
  width: 380px;
}
/* debug */
pre {
  line-height: 0.6em;
}
#tvdebug {
  position: fixed;
  top: 50%;
  width: 200px;
  height: 100px;
}
hr {
  border: 1px solid;
  color: #509050;
}
