:host {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: auto;
}
:host::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
:host::-webkit-scrollbar-track {
  background: #ccc;
  border-radius: 10px;
}
:host::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0px 0px 1px 1px #ddd;
}

.cmd-seq-cont {
  position: relative;
  width: 100%;
  min-width: 1715px;
  height: 100%;
}

.cmd-seq-edit-wrapper,
.cmd-seq-file-load-warning-wrapper {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10;
}

.cmd-seq-edit-cont {
  width: 600px;
  height: calc(100% - 300px);
  padding: 40px;
  background-color: #fff;
}

.cmd-seq-edit-sec {
  width: 100%;
  height: calc(100% - 80px);
  padding: 10px;
  font-family: 'Roboto';
  font-size: 18px;
  line-height: 30px;
  word-spacing: 8px;
  white-space: nowrap;
  resize: none;
}
.cmd-seq-edit-sec::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.cmd-seq-edit-sec::-webkit-scrollbar-track {
  background: #ccc;
  border-radius: 10px;
}
.cmd-seq-edit-sec::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0px 0px 1px 1px #ddd;
}

.cmd-seq-edit-ok-btn,
.cmd-seq-file-load-warning-btn {
  width: 100px;
  height: 40px;
  margin-top: 40px;
  color: #fff;
  background-color: #02688c;
}
.cmd-seq-edit-ok-btn:active,
.cmd-seq-file-load-warning-btn:active {
  box-shadow: 0px 0px 3px 1px #02688c;
}

.cmd-seq-file-load-warning-cont {
  padding: 40px;
  background-color: #fff;
}

.cmd-seq-file-load-warning-sec {
  font-size: 18px;
}

.cmd-seq-file-load-warning-icon {
  width: 40px;
  height: 40px;
  margin-right: 20px;
  color: #f90;
}

.cmd-seq-file-load-warning-btn-cont {
  justify-content: flex-end;
}

.cmd-seq-file-load-warning-btn {
  margin-left: 30px;
}

.cmd-seq-header {
  height: 60px;
  box-shadow: 0px 0px 10px 1px #ccc;
}

.cmd-seq-title {
  margin-left: 30px;
  color: #d00;
  font-size: 16px;
  font-weight: 600;
}

.cmd-seq-wrapper {
  width: 100%;
  height: calc(100% - 60px);
  overflow: auto;
}
.cmd-seq-wrapper::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.cmd-seq-wrapper::-webkit-scrollbar-track {
  background: #ccc;
  border-radius: 10px;
}
.cmd-seq-wrapper::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0px 0px 1px 1px #ddd;
}

.cmd-seq-content {
  width: 100%;
  height: 100%;
  min-height: 762px;
  padding: 30px;
}

.cmd-frame-title,
.cmd-diag-title,
.log-sett-title {
  margin-bottom: 30px;
  color: #666;
  font-size: 15px;
  font-weight: 600;
}

.cmd-frame-item,
.cmd-diag-item,
.log-sett-item {
  margin-bottom: 25px;
  color: #666;
}

.cmd-frame-item-value,
.cmd-diag-item-list,
.log-sett-item-value {
  margin-left: 30px;
}

.cmd-diag-item {
  display: flex;
  flex-direction: column;
}

.cmd-diag-item-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}
.cmd-diag-header {
  display: flex;
}
.cmd-diag-info {
  margin-left: 10px;
  color: #999999;
  font-size: 14px;
}

.file-seq-input,
.cmd-frame-item-input,
.log-sett-item-input {
  height: 33px;
  padding: 0px 5px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.cmd-file-slot {
  width: 160px;
  height: 40px;
  display: flex;
  cursor: pointer;
  position: relative;
  margin: 10px;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.8rem;
  flex-wrap: wrap;
  font-weight: 600;
  border: 1px dashed rgba(151, 151, 151, 0.4);
  border-radius: 4px;
  background-color: #f7f7f7;
  padding: 10px;
}
.cmd-file-slot span {
  color: #999999;
  font-size: 12px;
}

.slot-filled {
  border: 1px solid rgba(152, 153, 155, 0.7);
  border-radius: 4px;
  background-color: #02688c;
}

.slot-filled span {
  width: calc(100% - 12px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  background: #02688c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-filled .icon-clear {
  color: white;
}

.cmd-file-seq-dialog {
  padding: 20px;
}
.cmd-file-seq-dialog-action {
  color: #fff !important;
  background-color: #329b46;
  height: 34px;
  margin: 10px;
}
.cmd-file-seq-dialog-cancel {
  color: #329b46;
  height: 34px;
  margin: 10px;
}

.cmd-file-seq-header {
  color: #d00;
  font-size: 20px;
}

.cmd-file-popup-content {
  width: 420px;
}
.cmd-file-seq-input {
  width: 250px;
}
.seq-file-path-input:read-only {
  cursor: not-allowed;
}

.cmd-diag-sec,
.log-sett-sec {
  margin-bottom: 10px;
  box-shadow: 0px 0px 2px 0px #999;
  overflow: auto;
  scroll-behavior: smooth;
}
.cmd-diag-sec {
  padding: 10px;
}
.cmd-diag-sec::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.cmd-diag-sec::-webkit-scrollbar-track {
  background: #ccc;
  border-radius: 10px;
}
.cmd-diag-sec::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0px 0px 1px 1px #ddd;
}
.log-sett-sec::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.log-sett-sec::-webkit-scrollbar-track {
  background: #ccc;
  border-radius: 10px;
}
.log-sett-sec::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0px 0px 1px 1px #ddd;
}

.cmd-frame-cont {
  min-width: 440px;
}

.file-seq-input {
  width: 300px;
}

.cmd-frame-item-input {
  width: 200px;
}
.cmd-frame-item-input.invalid {
  border: 1px solid #d00;
  box-shadow: 0px 0px 10px 1px #d00;
}

.cmd-frame-action {
  width: 300px;
  height: 34px;
  margin-top: 20px;
  color: #fff;
  background-color: #329b46;
}
.cmd-frame-action:active {
  box-shadow: 0px 0px 3px 1px #329b46;
}

.cmd-diag-cont {
  min-width: 665px;
  padding: 0px 60px;
}

.cmd-diag-action {
  width: 200px;
  height: 34px;
  margin-bottom: 20px;
  color: #fff;
  background-color: #02688c;
}
.cmd-diag-action:active,
.slot-filled:active {
  box-shadow: 0px 0px 3px 1px #02688c;
}

.cmd-diag-sec {
  height: calc(100% - 397px);
  overflow: auto;
}
.cmd-diag-sec.long {
  height: calc(100% - 269px);
}

.cmd-diag-entry {
  padding: 5px;
  color: #333;
  font-size: 16px;
  word-spacing: 15px;
  white-space: nowrap;
}
.cmd-diag-entry:nth-child(even) {
  background-color: #eee;
}

.cmd-diag-op,
.log-sett-op {
  margin: 10px;
  padding: 10px 5px;
  cursor: pointer;
}
.cmd-diag-op:active .cmd-diag-op-icon,
.log-sett-op:active .log-sett-op-icon {
  box-shadow: 0px 0px 15px 1px #999;
}
.cmd-diag-op:active .cmd-diag-op-title,
.log-sett-op:active .log-sett-op-title {
  text-shadow: 0px 0px 10px #666;
}
.cmd-diag-op.inactive,
.log-sett-op.inactive {
  pointer-events: none;
}
.cmd-diag-op.inactive .cmd-diag-op-icon,
.log-sett-op.inactive .log-sett-op-icon {
  background-color: #666;
}
.cmd-diag-op.inactive .cmd-diag-op-title,
.log-sett-op.inactive .log-sett-op-title {
  color: #666;
}

.cmd-diag-op-icon,
.log-sett-op-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  padding: 8px;
  color: #fff;
  background-color: #d00;
  border-radius: 50%;
}

.cmd-diag-op-title,
.log-sett-op-title {
  color: #333;
  font-weight: 600;
}

.cmd-diag-op-title {
  height: 34px;
}

.log-sett-cont {
  width: 100%;
  max-width: 715px;
  min-width: 530px;
}

.log-sett-item-value {
  width: calc(100% - 200px);
}

.log-sett-item-input-wrapper {
  width: 100%;
}

.log-sett-item-input {
  width: 100%;
}

.auto-log-path-wrapper {
  width: calc(100% - 45px);
}

.auto-log-path {
  flex-direction: row-reverse;
  padding: 0px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-sett-log-path-icon {
  min-width: 30px;
  height: 30px;
  margin-left: 15px;
  color: #02688c;
}
.log-sett-log-path-icon:active {
  text-shadow: 0px 0px 1px #02688c;
}

#log-path,
.hidden {
  display: none;
}

.log-sett-params-cont {
  margin-bottom: 40px;
}

.log-sett-param {
  margin: 5px 10px;
}

.log-sett-param-input {
  --paper-checkbox-checked-color: #02688c;
  --paper-checkbox-checked-ink-color: #02688c;
  --paper-checkbox-unchecked-color: #02688c;
  --paper-checkbox-unchecked-ink-color: #02688c;
}

.log-sett-sec {
  height: calc(100% - 332px);
}
#header-table {
  display: block;
  overflow: scroll;
  overflow-x: hidden;
  overflow-y: hidden;
}
#content-table {
  display: block;
  overflow: auto;
  height: calc(100% - 60px);
  padding: 0px 10px 10px 10px;
}
#content-table::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
#content-table::-webkit-scrollbar-track {
  background: #ccc;
  border-radius: 10px;
}
#content-table::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0px 0px 1px 1px #ddd;
}

.trans-log {
  border-collapse: collapse;
}

.trans-log-header {
  height: 60px;
}

.trans-log-header-cell {
  color: #229cc6;
  font-size: 16px;
  text-align: center;
  border: none;
}
.trans-log-header-cell.timestamp {
  min-width: 200px;
}
.trans-log-header-cell.cmd {
  min-width: 180px;
}
.trans-log-header-cell.dev-addr {
  min-width: 80px;
}
.trans-log-header-cell.reg-addr {
  min-width: 80px;
}
.trans-log-header-cell.length {
  min-width: 80px;
}
.trans-log-header-cell.crc {
  min-width: 60px;
}
.trans-log-header-cell.data {
  min-width: 200px;
}

.trans-log-body {
  height: 34px;
}
.trans-log-body:nth-child(odd) {
  background-color: #eee;
}

.trans-log-body-cell {
  text-align: center;
  white-space: nowrap;
}
.trans-log-body-cell.data {
  padding-left: 20px;
}

.cmd-title-cont {
  align-items: baseline;
  justify-content: space-between;
}

.loop-cmd-seq {
  align-items: center;
}

.upper-splitter {
  height: 20px;
  width: 0.1px;
  border-right: 0.1px dashed #979797;
}
