/* main.css - Main stylesheet */
/* Copyright 2024 Padi, Inc. All Rights Reserved. */

@charset "utf-8";

@import url(//fonts.googleapis.com/css?family=Roboto:regular,light|Roboto+Mono|Material+Icons&display=swap);

html {
  height: 100%;
}

body {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-weight: 200;
  overflow: hidden;
  background-color: #f8f9fa;
  color: #757575;
  margin: 0;
  height: 100%;
}

body[disabled] {
  filter: grayscale(1);
  pointer-events: none;
}

h1 {
  font-size: 20px;
  font-weight: 200;
  color: #212121;
  line-height: 28px;
  margin: 0 0 16px 0;
}

h2 {
  font-size: 17px;
  font-weight: 200;
  line-height: 20px;
  margin: 0 0 16px 0;
}

h3 {
  font-size: 16px;
  font-weight: 200;
  line-height: 20px;
  margin: 0 0 16px 0;
}

h4 {
  font-size: 17px;
  font-weight: 200;
  line-height: 20px;
  margin: -16px 0 16px 0;
}

h5 {
  font-size: 12px;
  font-weight: 400;
  color: #2196f3;
  line-height: 12px;
  margin: 8px 0;
}

hr {
  clear: both;
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0 -16px 16px -16px;
}

p {
  font-size: 15px;
  line-height: 20px;
  margin: 0 0 16px 0;
}

q, blockquote {
  font-size: 18px;
  line-height: 24px;
}

pre {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  white-space: pre-wrap;
  margin: 0 0 16px 0;
}

img[image] {
  float: right;
  object-fit: contain;
  margin: 0 0 10px 10px;
  width: 100px;
  height: 50px;
}

img.user,
img.team {
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
}

img.thing,
img.app {
  width: 4rem;
  height: 2rem;
}

img.profile,
img.site,
img.icon {
  width: 2rem;
  height: 2rem;
}

mark {
  font-size: 0;
  display: inline-block;
  background-color: #dedede;
  white-space: nowrap;
  color: #212121;
  border-radius: 16px;
  padding: 0 16px;
  margin: 2px 0;
  line-height: 2rem;
  height: 2rem;
}

mark[secondary] {
  background-color: #2196f3;
  color: white;
}

mark[primary] {
  background-color: #ff4081;
  color: white;
}

mark span {
  font-size: 14px;
  font-weight: 400;
  display: inline-block;
  vertical-align: middle;
}

ul {
  font-size: 14px;
  margin: 0 0 16px 0;
  padding: 0 16px 0 32px;
}

ul li {
  line-height: 18px;
  margin: 10px 0 0 0;
}

a {
  font-weight: 400;
  color: #2196f3;
}

a:has(i) {
  display: inline-block;
  position: relative;
  top: 5px;
  color: #212121;
  border-radius: 50%;
  padding: 4px;
  margin-top: -10px;
  width: 24px;
  height: 24px;
}

a:has(i):hover {
  background-color: rgba(158, 158, 158, 0.2);
}

a:has(i):active,
a:has(i):focus-visible {
  background-color: rgba(158, 158, 158, 0.4);
}

label {
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

label input {
  vertical-align: middle;
  position: relative;
  top: -1px;
}

label span {
  vertical-align: middle;
}

input {
  padding: 0;
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="url"] {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 15px;
  font-weight: 200;
  border: none;
  border-bottom: 2px solid #efefef;
  margin: 0 0 16px 0;
  padding: 0 0 2px 0;
  width: 100%;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="url"]:focus-visible {
  border-bottom: 2px solid #2196f3;
}

input[type="text"]:invalid,
input[type="email"]:invalid,
input[type="url"]:invalid {
  border-bottom: 2px solid #ff5252;
}

input[type="checkbox"],
input[type="radio"] {
  margin: 8px 8px 8px 0;
  width: 0.875rem;
  height: 0.875rem;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: auto;
  outline-color: #2196f3;
}

textarea {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 15px;
  font-weight: 200;
  resize: vertical;
  border: none;
  border-bottom: 2px solid #efefef;
  line-height: 20px;
  max-height: 300px;
  min-height: 20px;
  margin: 0 0 16px 0;
  padding: 0 0 2px 0;
  width: 100%;
}

textarea:focus-visible {
  border-bottom: 2px solid #2196f3;
}

select {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 15px;
  font-weight: 200;
  background: none;
  border: none;
  border-bottom: 2px solid #efefef;
  padding: 0 0 2px 0;
  margin: 0 0 16px 0;
  width: 100%;
}

select:focus-visible {
  border-bottom: 2px solid #2196f3;
}

select:invalid {
  border-bottom: 2px solid #ff5252;
}

menu {
  position: absolute;
  background-color: #e4e3e3;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  box-shadow: 2px 2px 10px #c0c0c0;
  padding: 5px;
  top: 22px;
  right: 0;
  cursor: default;
  z-index: 100;
}

menu:before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

menu li {
  list-style: none;
  text-align: left;
}

menu li a {
  font-size: 14px;
  display: block;
  text-transform: none;
  text-decoration: none;
  color: #222222;
  border-radius: 4px;
  padding: 5px 10px 4px 10px;
}

menu li a:hover,
menu li a:focus-visible {
  background-color: #509cfe;
  color: white;
}

menu hr {
  border-top: 1px solid #cac9c9;
  margin: 6px 10px;
}

button {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 14px;
  font-weight: 400;
  background-color: transparent;
  border: none;
  border-radius: 2px;
  text-transform: uppercase;
  padding: 10px 16px;
  line-height: 16px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

button:has(i) {
  border-radius: 50%;
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
}

button[secondary] {
  color: #2196f3;
}

button[primary] {
  color: #ff4081;
}

button:hover,
button[raised] {
  background-color: rgba(158, 158, 158, 0.2);
}

button:active,
button:focus-visible {
  background-color: rgba(158, 158, 158, 0.4);
}

button:active:not(:has(i)),
button:focus-visible:not(:has(i)) {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

button[raised][secondary] {
  background-color: #2196f3;
  color: white;
}

button[raised][primary] {
  background-color: #ff4081;
  color: white;
}

button[raised]:active,
button[raised]:focus-visible {
  box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

button:has(menu) {
  position: relative;
}

nav {
  font-size: 0;
  overflow: scroll hidden;
  background-color: white;
  white-space: nowrap;
  box-sizing: border-box;
  text-align: right;
  border-bottom: 1px solid #e5e5e5;
  padding: 0 16px;
}

nav img {
  float: left;
  margin: 0.875rem 16px 0 0;
  width: 32px;
  height: 32px;
}

nav h1 {
  float: left;
  line-height: 1.8rem;
  margin: 16px 16px 16px 0;
}

nav button {
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  color: black;
  line-height: 1.8rem;
  padding: 16px;
  opacity: 0.5;
  cursor: pointer;
}

nav button:hover,
nav button[selected] {
  background-color: transparent;
  opacity: 1;
}

nav button:focus-visible {
  background-color: rgba(158, 158, 158, 0.4);
  opacity: 1;
}

nav button:after {
  content: "";
  position: absolute;
  background-color: transparent;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  transition: left 0.25s ease, width 0.25s ease, background-color 0.25s ease;
}

nav button[selected]:after {
  background-color: #2196f3;
  left: 0;
  width: 100%;
}

table {
  background-color: white;
  border: 1px solid #e5e5e5;
  border-collapse: collapse;
  max-width: 700px;
}

table tr:not(:last-child) {
  border-bottom: 1px solid #e5e5e5;
}

table th {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  padding: 16px 18px;
}

table td {
  font-size: 13px;
  padding: 12px 18px;
}

table td:nth-child(1) {
  white-space: nowrap;
}

table td:nth-child(2) {
  width: 100%;
}

table th:first-of-type,
table td:first-of-type {
  padding-left: 24px;
}

section {
  overflow: scroll;
  padding: 16px;
  height: calc(100% - 93px);
}

article {
  background-color: white;
  border: 1px solid #e5e5e5;
}

article:has(aside > ul) {
  max-width: 700px;
}

article:not(:last-of-type) {
  margin-bottom: 16px;
}

article:empty {
  display: none;
}

header {
  font-size: 18px;
  color: #212121;
  line-height: 2rem;
  padding: 14px 16px;
}

header i {
  vertical-align: top;
}

header > i {
  margin: 0.25rem 12px 0.25rem 0.25rem;
}

header > a {
  margin-right: 8px;
}

header > button {
  vertical-align: top;
  margin: 0 8px 0 0;
}

header span {
  font-size: 0;
  float: right;
  margin: 0 0 0 16px;
}

header:not(:only-child) {
  border-bottom: 1px solid #e5e5e5;
}

header+footer {
  border: none !important;
}

footer {
  font-size: 16px;
  padding: 16px;
}

footer button {
  margin: 0 10px 0 0;
}

footer > label span {
  display: inline-block;
  margin: 0 24px 0 0;
}

footer > span {
  float: right;
}

footer > span button {
  margin: 0 0 0 10px;
}

footer:not(:only-child) {
  border-top: 1px solid #e5e5e5;
}

aside {
  margin: 16px;
}

form {
  padding: 16px;
}

form:has(>.table) {
  padding: 0;
}

form h5:has(+input:invalid) {
  color: red;
}

form input:has(+button),
form input:has(+a) {
  width: calc(100% - 2rem - 8px) !important
}

form input+button {
  vertical-align: top;
  position: relative;
  top: -0.5rem;
  left: 8px;
}

form input.id,
form input.token,
form textarea.code {
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  color: #757575;
}

form textarea.code {
  tab-size: 2;
}

form ol {
  font-size: 14px;
  list-style: none;
  margin: 0 -4px 20px -4px;
  padding: 0;
}

form ol li {
  display: inline-block;
  border: 1px solid #e5e5e5;
  border-radius: 32px;
  margin: 4px;
  padding: 4px 16px 4px 6px;
  line-height: 31px;
  width: 330px;
}

form ol li img {
  object-fit: contain;
  vertical-align: middle;
}

form ol li label {
  vertical-align: middle;
  margin-left: 8px;
}

form ol li > span {
  font-weight: 400;
  float: right;
}

form > p {
  color: black;
  margin-bottom: 20px;
}

form > span {
  display: inline-block;
  margin: 0 10px 0 0;
  min-width: 5.5rem;
}

center {
  display: table;
  width: 100%;
  height:100%;
}

center[hidden] {
  display: none;
}

center div {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

/* Tables */

.table td {
  padding: 12px 18px;
}

.table td:nth-child(2) {
  width: auto;
}

.table thead tr {
  border-bottom: 1px solid #e5e5e5;
}

.table th span {
  color: black;
  margin-left: 8px;
}

.table td:nth-child(1) {
  white-space: nowrap;
}

.table td:nth-child(2) {
  width: 100%;
}

.table th:first-of-type,
.table td:first-of-type {
  padding-left: 24px;
}

.table td:has(img) {
  width: auto !important;
}

.table td img {
  object-fit: contain;
  vertical-align: middle;
  margin: 0 -16px 0 0;
}

.table td img.thing,
.table td img.app {
  margin: 0 -32px 0 -16px;
}

.table td b {
  font-weight: 200;
  background-color: #b3d8ff;
  color: #212121;
  border-radius: 2px;
  padding: 0 2px;
}

.table td pre {
  margin: 0;
}

.table+form {
  margin-top: -16px;
}

/* Result table */

article .table {
  border: none;
  width: 100%;
  max-width: 100%;
}

article .table tr:has(td):hover,
article .table tr:has(td):has(button:focus-visible) {
  background-color: #f9f9f9;
}

article .table tr th:last-child {
  text-align: right;
  padding-left: 0;
}

article .table tr td:last-child {
  white-space: nowrap;
  text-align: right;
  padding-left: 0;
  opacity: 0;
}

article .table tr td:first-child,
article .table tr td:last-child {
  width: 0;
}

article .table tr:hover td:last-child,
article .table tr:has(button:focus-visible) td:last-child {
  opacity: 1;
}

/* Search table */

article .table.search th,
article .table.search td {
  padding: 7px 18px;
}

article .table.search td:nth-child(2) {
  width: 12%;
}

article .table.search td:nth-child(3),
article .table.search td:nth-child(4) {
  width: 16%;
}

article .table.search td:nth-child(5) {
  width: 40%;
}

article .table.search td:nth-child(n+6) {
  min-width: 240px;
  width: 0;
}

article .table.search td:last-child {
  min-width: auto;
}

/* Report view */

article .report {
  display: flex;
  overflow: hidden;
  height: 100%;
}

article .report h1 {
  font-size: 32px;
  font-weight: 600;
  color: #212121;
  line-height: 1.25;
  border-bottom: 1px solid #e5e5e5;
  padding: 16px 0 8px 0;
}

article .report h2 {
  font-size: 24px;
  font-weight: 600;
  color: #212121;
  line-height: 1.25;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 8px;
}

article .report h3 {
  font-size: 20px;
  font-weight: 600;
  color: #212121;
  line-height: 1.25;
}

article .report h4 {
  font-size: 16px;
  font-weight: 600;
  color: #757575;
  line-height: 1.25;
  margin: 0 0 8px 0;
}

article .report a {
  text-decoration: none;
}

article .report a:hover,
article .report a:focus-visible {
  text-decoration: underline;
}

article .report p {
  font-size: 15px;
  font-weight: 200;
  line-height: 20px;
  color: #212121;
  margin: 0 0 16px 0;
}

article .report pre {
  font-size: 13px;
  overflow: auto;
  background-color: #f6f8fa;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  line-height: 1.45;
  padding: 8px 16px;
}

article .report ul,
article .report ol {
  font-size: 16px;
  font-weight: 200;
  padding: 0 16px 0 32px;
  margin: 0 0 16px 0;
}

article .report li {
  font-size: 14px;
  font-weight: 200;
  line-height: 18px;
  padding-left: 5px;
  margin: 10px 0 0 0;
}

article .report li + li {
  margin-top: .25em;
}

article .report table {
  border: none;
  margin: 16px 0;
  max-width: none;
}

article .report table caption {
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  border: 1px solid #dfe2e5;
  border-bottom: none;
  padding: 8px 16px;
  line-height: 24px;
  height: 24px;
}

/*
article .report table tr {
  border-top: 1px solid #c6cbd1;
}
*/

article .report table th,
article .report table td {
  border: 1px solid #dfe2e5;
  padding: 8px 16px;
  height: 24px;
}

article .report table th:first-of-type {
  min-width: 120px;
}

article .report table th b {
  font-weight: 200;
  margin-left: 16px;
}

article .report table td:has(i) {
  text-align: center;
  padding: 0;
}

article .report table td i {
  font-family: 'Material Icons';
  font-style: normal;
  font-size: 20px;
}

article .report mark {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  background-color: #2196f3;
  color: white;
  margin-right: 8px;
}

article .report mark:before {
  content: 'done';
  font-family: 'Material Icons';
  font-size: 16px;
  margin: 0 8px 0 -4px;
}

article .report:not([index]) .index,
article .report:not([tables]) table,
article .report:not([tables]) mark,
article .report:not([docs]) pre {
  display: none;
}

article .report .index {
  flex: 0 0 auto;
  overflow: scroll;
  box-sizing: border-box;
  border-right: 1px solid #e5e5e5;
  padding: 0 16px;
  width: 400px;
  height: 100%;
}

article .index a:focus-visible {
  text-decoration: none;
  background-color: #dfe2e5;
  color: #212121;
  border-radius: 3px;
  margin: -4px -8px;
  padding: 4px 8px;
}

article .index a[selected] {
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  background-color: #2196f3;
  color: white;
  border-radius: 3px;
  margin: -4px -8px;
  padding: 4px 8px;
}

article .report .content {
  overflow: scroll;
  scroll-behavior: smooth;
  box-sizing: border-box;
  padding: 0 16px;
  width: 100%;
  height: 100%;
}

article .report .content h2 {
  position: sticky;
  top: -1px;
  background-color: #f8f9fa;
  padding: 8px 16px;
  margin-left: -16px;
  margin-right: -16px;
  border-top: 1px solid #e5e5e5;
}

article .report .content h3 a {
  position: relative;
  top: -63px;
}

article .report .content > a {
  position: relative;
  top: 16px;
}

article .report .content ul {
  column-width: 280px;
}

article .report .content ul li {
  break-inside: avoid;
  line-height: 22px;
  margin: 0;
}

/* Remove table */

article .table.remove td {
  padding: 7px 18px;
}

article .table.remove td:nth-child(2) {
  min-width: 240px;
  width: 0;
}

article .table.remove td:nth-child(3) {
  white-space: nowrap;
  width: 6%;
}

article .table.remove td:nth-child(4) {
  width: 100%;
}

article .table.remove td:nth-child(5),
article .table.remove td:nth-child(6),
article .table.remove td:nth-child(7) {
  min-width: 200px;
  width: 10%;
}

/* Force graph */

.force-graph-container .graph-tooltip.graph-tooltip {
  font-family: "Roboto", "Helvetica", sans-serif;
  font-size: 12px;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 2px;
  text-align: center;
  line-height: 14px;
  padding: 4px 8px;
  max-width: 230px;
}

/* Sankey graph */

.node rect {
  cursor: pointer;
}

/* Visuals */

* {
  outline: none;
}

::placeholder {
  text-transform: none;
  color: #cccccc;
  opacity: 1;
}

[disabled] {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
}

/* Animation */

input {
  transition: border-color 0.25s;
}

button {
  transition: background-color 0.25s;
}

[ripple] {
  background-image: radial-gradient(circle, transparent 1%, #2196f310 1%);
  background-size: 15000%;
  background-position: center;
  transition: opacity 0.2s ease, background-color 0.5s ease, background-size 0.5s ease;
}

[ripple]:active {
  background-color: #2196f310;
  background-size: 50%;
  transition: opacity 0.2s ease, background-color 0.15s ease, background-size 0.15s ease;
}

/* Selection */

nav,
header,
footer,
form h1,
form h5,
.table th,
img,
mark,
label,
i.material-icons {
  user-select: none;
}

/* Media */

@media print {
  body {
    padding: 0;
    height: auto;
  }

  body nav,
  article:has(.report) header,
  article:has(.report) footer,
  article .report .index {
    display: none;
  }

  section {
    margin: 0;
  }

  article:has(.report) {
    border: none;
  }

  article .report {
    overflow: visible;
  }

  article .report .content {
    padding: 0;
  }

  article .report .content a {
    font-weight: 200;
    color: #757575;
  }
}

@media (width < 1400px) {
  article .table.search tr td:nth-child(2),
  article .table.search tr td:nth-child(3),
  article .table.search tr td:nth-child(4) {
    width: 33%;
  }

  article .table.search tr th:nth-child(5),
  article .table.search tr td:nth-child(5) {
    display: none;
  }

  article .table.remove tr th:nth-child(5),
  article .table.remove tr th:nth-child(6),
  article .table.remove tr th:nth-child(7),
  article .table.remove tr td:nth-child(5),
  article .table.remove tr td:nth-child(6),
  article .table.remove tr td:nth-child(7) {
    display: none;
  }
}

@media (width < 1024px) {
  article .table tr:has(th),
  article .table tr td {
    display: none;
  }

  article .table tr td:nth-child(1),
  article .table tr td:nth-child(2),
  article .table tr td:last-child {
    display: table-cell;
  }

  article .table.search tr td:nth-child(2),
  article .table.remove tr td:nth-child(2) {
    width: 100%;
  }

  form ol li {
    width: calc(100% - 34px);
  }

  article .index,
  article footer label:has(#index),
  article .report table th:nth-of-type(n+2),
  article .report table td:nth-of-type(n+2) {
    display: none;
  }
}

@media (hover: none) {
  article .table tr td:last-child {
    opacity: 1;
  }
}
