* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000;
  background: #fff;
  padding-bottom: 85px;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: #00e;
}

.is-hidden {
  display: none !important;
}

.main {
  width: 1160px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 160px 960px;
  column-gap: 30px;
  align-items: start;
}

.left {
  text-align: right;
}

.itag-logo {
  width: 140px;
  margin: 0 0 28px;
}

.language {
  width: 160px;
  height: 19px;
  margin: 0 0 18px;
}

.links {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.links li {
  height: 36px;
  border-bottom: 1px solid #ccc;
  line-height: 36px;
}

.links a {
  text-decoration: none;
}

.tempsen-logo {
  width: 145px;
  margin-top: 5px;
}

.version {
  margin: 12px 0 0;
}

.right {
  min-width: 0;
}

.menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 35px;
  margin-bottom: 25px;
}

.tab {
  border: 0;
  color: #fff;
  background: #808080;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  padding: 0 20px;
  cursor: pointer;
}

.tab.active {
  background: #e60012;
}

.tab-icon {
  display: inline-block;
  width: 23px;
  height: 23px;
  margin-right: 24px;
  vertical-align: middle;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.tab-icon.wrench::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  left: 4px;
  top: 10px;
  background: currentColor;
  transform: rotate(-45deg);
}

.tab-icon.bulb::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 9px;
  left: 5px;
  top: 3px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 2px 2px;
}

.tab-icon.bulb::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 4px;
  left: 6px;
  top: 14px;
  background: currentColor;
}

.device-panel {
  background: #eee;
  height: 290px;
  padding: 22px 20px 0;
  margin-bottom: 45px;
}

.device-panel h2 {
  margin: 0 0 20px;
  color: #1263ff;
  font-size: 12px;
}

.devices,
.device-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 34px;
}

.device-card {
  height: 168px;
  text-align: center;
  color: #999;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  background: transparent;
}

.device-card.selected {
  border-color: #1683ff;
  color: #1683ff;
  background: #fff;
}

.device-image {
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid transparent;
}

.device-card.selected .device-image {
  border-bottom-color: #1683ff;
}

.device-image img {
  max-width: 190px;
  max-height: 85px;
}

.device-name {
  font-size: 16px;
  line-height: 31px;
}

.device-arrow {
  width: 22px;
  height: 22px;
  margin: 28px auto 0;
  border-radius: 50%;
  color: #fff;
  background: #bfbfbf;
  line-height: 22px;
  font-size: 15px;
  font-weight: 600;
}

.device-links {
  margin-top: 25px;
  text-align: center;
}

.device-links img {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}

.content-page {
  display: none;
}

.content-page.active {
  display: block;
}

.config-start {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
  font-weight: 700;
}

.config-start b {
  color: #1263ff;
}

.expand {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 51px;
  border-bottom: 1px solid #ccc;
}

.expand.collapsed {
  grid-template-columns: 1fr;
}

.expand-left {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: #000;
  background: transparent;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.expand.collapsed .expand-left {
  width: 100%;
  min-height: 51px;
  padding: 0;
}

.minus {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -3px;
  background: linear-gradient(#fff, #fff) center / 11px 2px no-repeat #36f;
}

.expand.collapsed .minus {
  background:
    linear-gradient(#fff, #fff) center / 11px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 11px no-repeat,
    #36f;
}

.expand-right {
  padding: 10px 0;
}

.expand.collapsed .expand-right {
  display: none;
}

.full-input {
  width: 100%;
  height: 29px;
  border: 1px solid #888;
  padding: 3px 5px;
}

.trip-area {
  width: 100%;
  height: 37px;
  border: 1px solid #888;
  resize: vertical;
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th {
  width: 165px;
  height: 31px;
  text-align: left;
  vertical-align: middle;
}

.settings-table td {
  height: 31px;
}


.settings-table tr.is-hidden {
  display: none;
}

.password-settings {
  display: flex;
  align-items: center;
  gap: 5px;
}

.password-input-wrap {
  flex: 1;
  min-width: 180px;
}

.password-input-wrap.is-hidden {
  display: none;
}

.battery-life-hint {
  margin-top: 6px;
  color: #333;
}

.config-form > .expand:first-of-type .settings-table tr:has(#remarkText) {
  display: none;
}

.remark-row {
  display: grid;
  grid-template-columns: 165px 1fr;
  align-items: center;
  min-height: 56px;
}

.remark-row label {
  font-weight: 700;
}

.legacy-remark-row {
  display: block;
  min-height: 0;
}

.remark-input {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  resize: vertical;
}

#startTime {
  width: 160px;
  height: 20px;
}

.datetime-cell {
  position: relative;
}

.datetime-picker {
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 30;
  width: 360px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.datetime-head,
.datetime-actions,
.datetime-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.datetime-head button,
.datetime-actions button {
  border: 0;
  background: transparent;
  color: #1263ff;
  cursor: pointer;
}

.datetime-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.datetime-weekdays {
  margin-bottom: 4px;
  font-weight: 700;
}

.datetime-day {
  height: 24px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.datetime-day.selected {
  color: #fff;
  background: #3c3c3c;
}

.datetime-day.muted {
  cursor: default;
}

.datetime-time {
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.gap {
  margin-left: 18px;
}

.inline-row {
  display: grid;
  grid-template-columns: 160px 140px 1fr;
  align-items: center;
}

.file-settings {
  white-space: nowrap;
}

.file-settings span {
  display: inline-block;
  margin-right: 30px;
}

.file-settings label {
  display: inline-block;
  margin-right: 34px;
  white-space: nowrap;
}

select {
  height: 21px;
}

input[type="number"] {
  width: 55px;
  height: 20px;
}

.alarm-form {
  display: grid;
  grid-template-columns: 165px 1fr;
  align-items: center;
  row-gap: 9px;
  padding: 4px 0 10px;
}

.alarm-label {
  font-weight: 700;
}

.alarm-form select {
  width: 160px;
}

.alarm-form input[type="number"] {
  width: 64px;
}

.alarm-form .is-hidden {
  display: none;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 10px 18px;
}

.report-grid label:first-child,
.report-grid .full-input {
  grid-column: 1 / -1;
}

.submit-row {
  display: grid;
  grid-template-columns: 64px 82px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.captcha {
  width: 64px;
  height: 31px;
  border: 1px solid #aaa;
  color: #0b2;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  letter-spacing: 0;
  background: repeating-linear-gradient(105deg, transparent 0 9px, rgba(0, 80, 180, 0.22) 10px 11px);
}

.captcha-input {
  width: 82px;
  height: 31px;
  border: 1px solid #aaa;
}

.download {
  height: 31px;
  border: 0;
  color: #fff;
  background: #666;
  font-weight: 700;
  cursor: pointer;
}

.report-check {
  display: block;
  margin: 10px 0 20px 240px;
  font-weight: 700;
}

.hid-panel {
  margin: 0 0 18px 240px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hid-panel button {
  height: 28px;
  border: 1px solid #777;
  background: #f5f5f5;
  cursor: pointer;
}

.hid-panel button:disabled {
  color: #999;
  cursor: default;
}

.notes {
  margin: 8px 0 0 240px;
}

.warning {
  margin: 10px 0 0 240px;
  min-height: 48px;
  padding: 10px 15px 10px 70px;
  border: 1px solid #000;
  font-weight: 700;
  background: url("../assets/howto/important.png") 14px center / 40px auto no-repeat;
}

.how-row {
  display: grid;
  grid-template-columns: 480px 420px;
  column-gap: 60px;
  padding: 10px 0;
  border-top: 1px solid #999;
}

.how-text h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.how-text h4 {
  margin: 92px 0 10px;
  font-size: 13px;
}

.how-text ul {
  margin: 0 0 12px;
  padding-left: 28px;
}

.how-image {
  text-align: center;
}

.how-image img {
  max-width: 420px;
}

/* .info {
  padding: 10px 5px 10px 60px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  background-color: #ededed;
  background-position: left center;
  background-repeat: no-repeat;
} */
/* 
.important {
  background-image: url("../assets/howto/important.png");
}

.hint {
  margin-top: 50px;
  background-image: url("../assets/howto/info.png");
} */


.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: 85px;
  background: #3c3c3c;
  color: #fff;
}

.foot-inner {
  width: 1380px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  font-weight: 700;
}

.foot a,
.foot button {
  color: #fff;
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .main {
    width: calc(100% - 30px);
    grid-template-columns: 160px minmax(760px, 1fr);
    column-gap: 20px;
  }
}
