@import "fonts.css";
/* sizes */
#header {
  position: absolute;
  top: 0;
  width: 100%;
  height: 1.6rem;
  border-bottom: 1px solid #808080;
  background-color: #ffd7e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#header .nav-item {
  font-weight: bold;
  margin: auto 1em;
}
#header #topo-name {
  margin-left: 1em;
}
#content {
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: 1em;
  right: 0;
  padding-right: 1em;
  overflow: auto;
}
#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 24px;
  padding-top: 14px;
  border-top: 1px solid grey;
  background-color: #ffd7e5;
}
body {
  width: 100%;
  margin: 0;
  height: 100%;
}
#viewport {
  position: absolute;
  top: 0;
  left: 12em;
  bottom: 0;
  overflow-y: auto;
  width: 60em;
}
.text-title {
  margin-left: 138px;
}
#tools {
  position: absolute;
  left: 73em;
  right: 0;
  top: 0;
  /* max-width: 32em; */
  bottom: 0;
  overflow-y: auto;
  font-family: monospace;
}
#tooltip-box {
  width: 0;
  height: 0;
  background-color: rgba(253, 253, 199, 0.253);
}
#tooltip-box.active {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 10000;
}
.tooltip-inner {
  background-color: white;
  border: 1px solid lightcoral;
  padding: 1em;
}
.paragraph {
  margin: 1em 0;
  line-height: 170%;
  display: flex;
  flex-direction: row;
  align-items: baseline;
}
.paragraph .note {
  text-align: right;
  width: 200px;
  padding-right: 0.8em;
  flex-shrink: 0;
  font-size: 8pt;
  font-family: sans-serif;
  line-height: 120%;
}
.note-annotation {
  border-right: 1px solid lightgray;
  padding-right: 0.5em;
}
.paragraph .text {
  margin-right: 2em;
}
.rel {
  margin: 1em;
}
.depth-0 {
  padding-left: 0;
}
.depth-1 {
  padding-left: 2em;
}
.depth-2 {
  padding-left: 4em;
}
.term-name {
  font-weight: bold;
}
.annotated {
  background-color: #0084ff0a;
}
.highlight {
  background-color: #ff3c0038;
}
.note-annotation {
  cursor: pointer;
}
.n-1 {
  border-bottom: 1px solid grey;
}
.n-2 {
  border-bottom: 2px solid grey;
}
.n-3 {
  border-bottom: 3px solid grey;
}
.n-4 {
  border-bottom: 4px solid grey;
}
.q-1:after {
  content: "*";
}
.q-2:after {
  content: "**";
}
.q-3:after {
  content: "***";
}
.q-4:after {
  content: "****";
}
.term-wrapper {
  display: inline-block;
}
.term-select {
  background-color: white;
  border-style: solid;
  border-radius: 2px;
  border-width: 1px;
  margin: 6px;
  padding: 6px;
}
.term-select:hover {
  background-color: blanchedalmond;
  border-color: black;
}
h3.term-name {
  font-size: 11pt;
  margin-bottom: 0;
}
a.term-link {
  color: #4e4e4e;
}
.term-select-short {
  font-size: 6pt;
  margin-left: 2em;
  padding: 2px;
}
.qualifiers {
  display: flex;
  font-style: italic;
  font-size: 80%;
  color: brown;
}
.qualifiers div {
  margin: 0.6em;
}
.qualifier-selected {
  font-weight: bold;
}
.qualifier-select {
  cursor: pointer;
}
.qualifier-select:hover {
  text-decoration: underline;
}
/* GENERAL STYLE */
html {
  font-family: sans-serif;
  font-size: 16px;
}
body {
  line-height: 1.6;
  text-align: left;
}
.logo {
  background-image: url("assets/edges.png");
  width: 200px;
  height: 100px;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
}
h1,
h2 {
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
}
h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1rem;
}
h3 {
  font-size: 1rem;
  font-weight: 800;
}
.instructions {
  max-width: 26em;
  color: #5a9367;
  text-align: justify;
  margin: auto;
  border: 1px solid #5a9367;
  padding: 0.8em;
  margin-top: 15px;
}
/* FORMS */
form#edit-legislation,
form#new-legislation {
  width: 70%;
  max-width: 700px;
  margin: auto;
}
form#edit-legislation input,
form#new-legislation input,
form#edit-legislation select,
form#new-legislation select,
form#edit-legislation textarea,
form#new-legislation textarea {
  width: 100%;
  max-width: 700px;
}
form#edit-legislation input#repository_file-clear_id,
form#new-legislation input#repository_file-clear_id {
  width: auto;
}
form#edit-legislation label[for="repository_file-clear_id"],
form#new-legislation label[for="repository_file-clear_id"] {
  display: inline;
  width: 70%;
}
form#edit-legislation label[for="repository_file-clear_id"]::after,
form#new-legislation label[for="repository_file-clear_id"]::after {
  content: "
    ";
}
form#edit-legislation label,
form#new-legislation label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 0.8em;
}
form#edit-legislation .helptext,
form#new-legislation .helptext {
  line-height: 1.6;
  width: 100%;
  display: block;
  color: #5a9367;
}
form#edit-legislation .required::before,
form#new-legislation .required::before {
  content: "*";
}
form#edit-legislation .error,
form#new-legislation .error {
  background-color: #f77858;
}
.tag-create,
.tag-delete {
  width: 70%;
  margin: auto;
}
.tag-create form,
.tag-delete form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: baseline;
}
.tag-create input[value="Yes"],
.tag-delete input[value="Yes"] {
  width: fit-content;
}
.tag-create input,
.tag-delete input {
  border: solid 1px #5cab7d;
  padding: 2px;
  text-wrap: wrap;
  margin-bottom: 5px;
  max-width: 700px;
  width: 70%;
}
.tag-create input:hover {
  background-color: #d2fde4;
}
.tag-delete input:hover {
  background-color: #ffd7e5;
}
table {
  border-bottom: solid 1px #62ffa4;
  border-collapse: collapse;
  width: calc(100% - calc(200px));
  margin-left: 200px;
}
table td {
  font-size: 16px;
  width: 50%;
}
table th {
  font-size: 16px;
  width: 30%;
  font-weight: 400;
}
table tr {
  border-bottom: solid 1px #d2fde4;
}
details > summary {
  cursor: pointer;
}
.legislation_wrapper .actions {
  position: initial;
}
.actions {
  position: sticky;
  background-color: white;
  display: flex;
  top: 0px;
  left: 0px;
  border-block: solid 1px #62ffa4;
}
.actions .actions--item {
  width: 20em;
  height: 2em;
  align-content: center;
  flex: 1;
  padding: 15px / 2;
  text-align: center;
}
.actions .actions--item.current {
  text-decoration: #62ffa4 wavy underline;
}
.actions .actions--item a.disabled {
  color: grey;
  pointer-events: none;
  text-decoration: none;
}
.label {
  border: solid 1px #5cab7d;
  padding: 2px;
  margin-right: 0.2rem;
}
.code-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
.code-list .term {
  width: 30%;
  border-left: 1px solid #ffd7e5;
  border-bottom: 1px solid #ffd7e5;
  padding-left: 1.6em;
  padding-bottom: 1.6em;
}
.index__content .title {
  grid-column: 1/6;
  overflow: auto;
  text-decoration: underline;
  text-decoration-color: #5cab7d;
}
.ruled {
  width: 100%;
  border-bottom: solid 1px #5cab7d;
  list-style-type: none;
}
#screen-legal-view .annotations {
  position: absolute;
  font-size: 16px;
  max-width: 200px;
}
#screen-legal-view p {
  margin-left: 200px;
}
#screen-legal-terms form {
  width: 70%;
  max-width: 700px;
  margin: auto;
}
#screen-legal-terms form .term {
  display: flex;
}
#screen-legal-terms form .term .question {
  width: 80%;
}
#screen-legal-terms form .term input {
  font-size: 16px;
  height: 2em;
  width: 3em;
}
#screen-legal-terms form .term .yes,
#screen-legal-terms form .term .no {
  height: 2em;
  width: 3em;
  padding: 2px;
  font-size: 16px;
}
#screen-legal-terms form .term .yes.current,
#screen-legal-terms form .term .no.current {
  text-decoration: #62ffa4 wavy underline;
  text-align: center;
  align-content: center;
}
#screen-legal-terms form .term .yes.current::after,
#screen-legal-terms form .term .no.current::after {
  content: "✔";
  color: #62ffa4;
}
#screen-legal-text #main #no-edit {
  width: 70%;
  max-width: 700px;
  margin: auto;
}
#screen-legal-text #main #edit {
  display: flex;
  margin-left: 200px;
  margin-top: 15px;
}
#screen-legal-text #main #edit > div {
  width: 50%;
}
#screen-legal-text #main #edit #input-wrapper #raw-text {
  width: 100%;
  height: 100%;
  font-size: 16px;
}
#screen-legal-text #main #edit #para-wrapper {
  background-color: #eeeeee;
  margin-left: 15px;
  height: fit-content;
  min-height: 100px;
}
#screen-legal-text #main #edit #para-wrapper .para-block:hover {
  background-color: #d2d2d2;
}
