



body {
  margin: 0px;
  gap: 32px;
  font-family: 'Inter';
}

.main-content {
	margin: 0 auto;
  display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-direction: column;
	width: 95%;
	height: 100%;
	padding-left: 0;
}
.body:has(.sidebar) {
  .main-content {
    margin:0;
    width:100%;
  }
  margin: 0;
  grid-template-columns: 20% 1fr;
}

form {
  width: 100%;
}

 
.header {
    background-color: var(--header-background-color);
    padding: 12px;
    margin: 8px 16px;
}
.header.page-header {
  margin: 0;
  background-color: #000000;
}
.header .header-img img {
    height:64px;
}
.body {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    font-family: 'Inter';
    height: max-content;
    gap:32px;
    width: 95%;
    margin: 0 62px;
}

.sidebar:empty {
  display: none;
}
.page-width {
  max-width:85%;
  margin: auto;
}
.error_message {
    color: #f00;
    font-weight: bold;
    font-size: medium;
}
input[type="text"]:not([type="radio"]),input[type="text"]:not([type="checkbox"]),button,select,textarea {
  border-radius:0px;
  padding: 8px 4px;
  font-size:12px!important;
  border-color: #888!important;
  border: 1px solid #888;
  width:100%;
  margin: 4px;
}
button {
  background-color: var(--button-colour);
  color: #fff;
  border: 0px;
  cursor: pointer;
  font-size:16px!important;
}
button:disabled {
  opacity: 0.75;
  color:#bbb;
}
.request-response {
  border-top: 1px solid #888;
  border-bottom: 1px solid #888;
  margin: 16px;
  padding: 8px;
}
.request-response.error {
  color:#900;
  font-weight: 800;
}
.request-response:empty {
  display:none;
}
button.link {
  border: none;
  font-weight: 300;
  cursor: pointer;
  background-color: transparent;
  padding: 0px;
  color: #000;
}

/* form styles */


form.jsform {
  min-width:640px;
  width:90%;
  margin:auto;
  position:relative;
  display: flex;
  flex-direction: column;
  
  
  .formrow {
    display: flex;
    gap: 16px;
  }
  .checkboxField {
    display: flex;
    gap:16px;
    align-items: center;
    width: 100%;
  }

  .formrow .formField {
    display:flex;
    flex-direction: column;
    gap:8px;
    width:100%;
  }
  
  .form-loading,.form-progress {
    display:flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffffbb;
    position:absolute;
    width: 100%;
    height: 100%;
    padding: 16px;
    img {
      opacity:0.5;
    }
  }
  .form-progress {
    display:none;
  }

  
  .formfooter {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 320px;
    justify-content: center;
    .buttons {
      display: flex;
      justify-content:space-around;
        gap: 16px;
        min-width: 50%;
        button.delete {
          background-color: var(--colour-this-bad);
        }
        button[data-action="delete"] {
          background-color: var(--colour-this-bad);
        }
        
    }
    
  }
  .formHeader {
    font-size:24px;
    padding:8px;
    margin:0px
  }
  .formBody {
    padding:16px;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 16px;
    input,button,select,textarea {
      border-radius:0px;
      padding: 8px 12px;
      font-size:14px!important;
      border-color: #888!important;
      border: 1px solid #888;
      width:100%;
      margin: 4px;
    }
  }
}

.sidebar:empty {
  display: none;
}
ul.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding:0px;
  
  margin:0px;
  
  li {
    min-width:240px;
  
    padding: 8px;
    display: flex;
    justify-content: flex-start;
    font-weight: bold;
    cursor: pointer;
    a {
      text-decoration: none;
      color: var(--colour-text);
      width: 100%;
      display: flex;
      justify-content: center;
    }
  }
  li:hover {
    background-color: var(--background-colour-accent);
  }
  li.header {
    background-color: var(--background-colour-accent);
    color: #000000;
    margin-bottom: 8px;
  }
  

}
.hidden {
  display: none!important;
}
.labelledInput {
  display:flex;
  gap:2px;
  align-items:center
}
.peeker {
  cursor: pointer;
}

.dashboard {
  
  display: flex;
  
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 16px;
  .dashboardCell {
    width:85%;
  
    min-height: 120px;
    border-radius: 5px;
    background-color: var(--background-color-accent);
    padding: 2px 8px 8px 2px;
    display: flex;
    width:45%;
    gap:8px;
    flex-direction: column;

    .label {
      font-weight: 900;
      display: flex;
      justify-content: center;
      padding: 4px;
      border-bottom: 1px solid #0005;
    
    }
  }
  
}
.content-with-sidebar {
  display: flex;
  /*gap:18px;*/
  align-items: flex-start;
  width:100%;
  justify-content: space-between;
  height:100%;
  .buttons {
    display: flex;
    gap:4px;
    width:100%;
  }
  .centered {
    width:100%;
  }
  .listing {
    border-right: 1px solid var(--colour-border);
    width: 25%;
    max-width:320px;
    height: 100%;
      display: flex;
    gap:2px;
    flex-direction: column;
    align-items: flex-start;
    .sidebarHolder {
      margin-left:16px;
      min-height: 65%;
      max-height: 65%;
      overflow: auto;
    }
    .instructions {
      color:#333333;
      font-style: italic;
      font-size: 14px;
      padding:16px;
    }
    .sidebar-options {
      margin:0px;
      list-style: none;
      padding: 0px;
      margin-top: 16px;
      overflow:auto;
      width:100%;
      
      white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
      white-space: -pre-wrap; /* Opera 4-6 */
      white-space: -o-pre-wrap; /* Opera 7 */
      word-wrap: break-word; /* Internet Explorer 5.5+ */
      
      li {
        
        margin: 0px;
        padding:8px;
      }
      li:hover a {
        color:#000099;
      }
    }
    .sidebar-options.files {
      padding-left: 0px;
      margin: 0px;
      /* height: 400px; */
      /* width: 100%; */
      overflow: visible;
        li.folder {
          .iconDiv {
            .clicker {
              cursor: pointer; 
            }
            .label {
              cursor:default;
              font-weight: 900;
              color: var(--colour-text);
            }
            display: flex;
            gap: 8px;
          }
        }
        ul.fileList {
          margin: 0px;
          padding: 0px;
          margin-top: 8px;
          display:none!important;
        }
        
        li.folder.open {
          ul.fileList {
            display:block!important;
          }
        }
        .file {
          display: flex;
          gap: 16px;
          cursor: pointer;
          width: max-content;
          .name {
            font-weight: bold
          }
          .name.common-file {
            color: var(--colour-this-good);
          }
        }

    }
  }
}
[data-clickable] {
  cursor: pointer;
  font-weight: bold;
  margin-left: 16px !important;
}
.selector {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap:8px;
  margin-bottom: 8px;

  input {
    display: none;
  }
  label {
    cursor: pointer;
    display: flex;
    gap:8px;
    font-weight:900;
  }
  label .on, label:has(input:checked) .off {
    display:none;
  }
  label:has(input:checked) .on,label .off {
    display: block;
  }
}
  
a {
  justify-content: flex-start;
  padding: 8px;
}
.fileText {
  min-height:300px;
}

a {
  text-decoration: none;
}

.content-with-sidebar .jsapp {
  display: flex;
    justify-content: flex-start;
    width: 100%;
}

.sidebar {
  padding: 0px 16px;
  }
@media screen and (max-width: 720px) {
  

  .sidebar {
    display: none!important;
  }

  .body {
    flex-direction:column;
    height: fit-content;
    .sidebar {
      display: none;
    }
  }
}

.dashboardCell {
  .dashboard-cell-loading {
    width: fit-content;
    margin: auto;
  }
}
.listing .title {
  display:flex;
  justify-content: center;
  width:100%;
}


.listing .buttons {
  margin-top:16px;
}
.toaster-ui-lib-text {
  word-break: break-word;
}

.formField label {
  font-weight: 600;
  color: var(--colour-text);
}

li[data-clickable] {
        font-weight: bold;
        margin-left: 16px!important;
        padding:16px;
}

.ace-content {
  position:relative;
  width: 100%;

}
.main-content {
  width: 100%;
  max-width: 1350px;
}
.m16 {
  margin: 16px auto;
}
.m32 {
  margin: 32px auto;
}
.grid2,.grid3,.grid4,.grid5,.grid6 {
  display: grid;
  gap:16px;
  img {
    width:100%;
    height:auto;
  }
  div.multi_line_text_field {
    width:90%;
    overflow-x: auto;
  }
  width:95%;
}

.ninety {
  overflow-x: auto;
}
.grid2 {
  grid-template-columns: repeat(2,1fr);
}
.grid3 {
  grid-template-columns: repeat(3,1fr);
}
.grid4 {
  grid-template-columns: repeat(4,1fr);
}
.grid5 {
  grid-template-columns: repeat(5,1fr);
}
.grid6 {
  grid-template-columns: repeat(6,1fr);
}

.grid2.arrows {
  width: 100%;
  font-size: 24px;
  div:first-child {
    text-align: left;
  }
  div:last-child {
    text-align: right;
  }
}

.collapsible {
    .header {
        background-color: #bbf2;
        font-weight:900;
        font-family: Inter;
        cursor: pointer;
        margin: 0;
        padding: 8px 4px;
        margin-right: 16px;
    }
    .content-holder {
      position: relative;
    }
    .content {
        display: none;
    }
    .content.popup {
      position: absolute;
      top: 0;
      background-color: var(--background-colour-accent);
    }
}
.collapsible.active {
    .content {
        display: block;
    }
}

.variant-row {
    display: grid;
    grid-template-columns: 10% 30% 15% 64px 1fr;
}

hr {
  margin: 32px 16px;
}

.center-content {
  display: flex;
  justify-content: center;
  width: 100%;
}