:root {
  --heading: rgba(255, 255, 255, 0.68);
  --white: rgba(255, 255, 255, 0.64);
  --offwhite: rgba(255, 255, 255, 0.52);
  --darkwhite: rgba(255, 255, 255, 0.48);
  --base: #0D121B;
  --primary: #1f87d7;
  --highlight: rgba(83, 109, 255, 0.1);
  --hover: rgba(83, 109, 255, 0.2);
  --header: #20252E;
  --box: #30363d;
  --input: #191e27;
}

* {
  min-width: 0;
  box-sizing: border-box;
}

::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 1.25rem;
  color: var(--heading);
}

dialog {
  border: 1px solid var(--box);
  border-radius: 4px;
  background-color: var(--base);
  box-shadow: 0px 0px 10px black;
  max-width: 90vw;
  min-width: 40vw;
  max-height: 90vh;
  color: var(--darkwhite);
  /* due to nested modal being weird */
  overflow-x: hidden;
}

dialog h2 {
  font-size: 1.2rem;
  margin: 1rem 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--base);
  color: var(--darkwhite);
  margin: 0;
}


input[type=checkbox] {
  accent-color: var(--primary);
}

button.base {
  font-weight: bold;
  padding: 0.5em 1em;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0.5em;

  &.text {
    background-color: rgba(0, 0, 0, 0);
    border: 0px;
    color: var(--primary);
  }

  &.text:hover {
    background-color: rgba(83, 109, 255, 0.2);
  }
}


/* Header */
.header {
  display: flex;
  justify-content: space-between;
  padding: 0px 20px;
  height: 100%;
}

.h-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.h-left p, h1, .h-right p {
  margin: 0px;
}

.h-left p {
  margin-left: 5px;
}

.h-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.h-right a>span {
  font-size: 25px;
}

.h-right a {
  margin-left: 5px;
  cursor: pointer;
  color: var(--primary);
}

/* side-nav */

.nav-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-version-container {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  margin-bottom: 15px;
}

.version-span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

/* Loader */
.loader-container {
  display: flex;
  height: calc(100vh - 64px);
  justify-content: center;
  align-items: center;
}

.load-span-div {
  display: inline-block;
}

.material-symbols-outlined-animate {
  font-size: 60px !important;
  font-weight: 100 !important;
  color: var(--primary);
  animation: rotate 1s linear infinite;
  /* Apply the rotation animation */
}

.upload-loading-icon {
  /* font-size: 60px !important; */
  font-weight: 100 !important;
  color: var(--primary);
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
    /* Start at 0 degrees */
  }

  100% {
    transform: rotate(360deg);
    /* Rotate to a full circle (360 degrees) */
  }
}


/* Loader ends */

/* notification div */
.notification-div {
  z-index: 200;
  background-color: var(--header);
  box-shadow: 0px 0px 11px 0px rgba(0, 0, 0, 0.15);
  padding: 15px 15px 15px 29px;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 0%);
  margin: 0 auto;
  display: flex;
  min-width: 400px;
  max-height: 25rem;
  justify-content: space-between;
  border-radius: 6px;
}

.notification-div pre {
  overflow: auto;
  height: inherit;
  color: var(--heading);
  max-width: 550px;
  margin: 0;
  padding: 1rem 0;
}

.p-label {
  color: white;
  margin: 0;
  font-size: 12px;
  margin-top: 10px;
  margin-left: 5px;
}

.table-resp {
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.width-auto {
  width: auto !important;
}

/* Customers Page */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-dialog {
  background-color: var(--base);
  border-radius: 4px;
  width: 650px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-header {
  font-weight: bold;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--offwhite);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px 4px 0px 0px;
}

.modal-body {
  /* padding: 8px 0; */
  color: var(--offwhite);
  padding: 35px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer {
  text-align: right;
  padding: 13px 18px;
}

.modal-footer button {
  margin-left: 8px;
}

.cust-btn-wrap {
  padding-left: 10px;
}

@media only screen and (max-width: 700px) {
  .modal-dialog {
    width: 300px;
  }

  .login-box {
    margin: -8px;
    display: flex;
    height: 100vh;
    background: var(--header);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
  }
}

@media only screen and (min-width: 700px) {

  /* Login */
  .login-container {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    margin: -8px;
  }

  .login-box {
    display: flex;
    background: var(--header);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    width: 700px;
    height: 450px;
    border-left: 3px solid var(--primary);
  }
}

.customer-address {
  min-height: 110px;
}

.no-table-data-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--offwhite);
}

.no-admin-table-data-row {
  width: calc(85vw + 32px);
  height: 36px;
  align-items: flex-start !important;
}

.bold-text {
  font-weight: bold;
  color: var(--white);
}

/* Login */
/* .login-container {
  display: flex;
  height: 100vh;
  background: #121212;
  justify-content: center;
  align-items: center;
  margin: -8px;
} */


.login-box p {
  font-size: 20px;
  margin-top: 40px;
}

.login-box h1, .login-box h2 {
  margin: 0px;
}

.login-box h1 {
  margin-bottom: 2px;
}

.logo {
  width: 160px;
  margin-bottom: 10px;
}

.logo-container {
  display: flex;
  justify-content: center;
}

/*  Survey */
.survey-reorder-btn-container {
  display: flex;
  flex-direction: column;
}

.survey-reorder-flex {
  display: flex;
  align-items: center;
}

.dow-container {
  grid-template-columns: 2rem 3fr 3fr 1fr 1fr 1fr 1fr;
}


@media (max-width: 575.98px) {
  .dow-container {
    grid-template-columns: 2rem 3fr 3fr 1fr 1fr 1fr 3.5fr;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .dow-container {
    grid-template-columns: 2rem 3fr 3fr 1fr 1fr 1fr 3fr;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .dow-container {
    grid-template-columns: 2rem 3fr 3fr 1fr 1fr 1fr 2fr;
  }
}

@media (min-width: 1200px) {
  .dow-container {
    grid-template-columns: 2rem 3fr 3fr 1fr 1fr 1fr 1fr;
  }

}


.icon-font-size {
  font-size: 16px;
}

.icon-font-size:disabled {
  color: var(--darkwhite);
}

.color-white {
  color: var(--white) !important;
}

.no-margin {
  margin: 0 !important;
}

.card-padding {
  padding: 0px 10px;
}

.hide {
  display: none !important;
}

.clear-draft-btn {
  position: absolute;
  right: 2rem;
}

.clear-draft-btn button {
  display: flex;
  justify-items: center;
  align-items: center;
}

.clear-draft-btn button:disabled {
  background-color: var(--highlight);
  opacity: 0.5;
}

.clear-draft-btn span {
  font-family: 'Material Icons';
  font-weight: 300;
  margin-left: 4px;
}

.work-code-input {
  width: 288px !important;
}


.compass-text-area {
  min-height: 110px !important;
}

/* Observation & Remedial Extra */
.ob-card-container {
  border-radius: 4px;
  border: 1px solid var(--box);
  border-left: 2px solid var(--primary);
  margin-bottom: 20px;
}

.ci-li-h6-heading {
  font-size: 16px;
  color: var(--white) !important;
}

.ob-ci-li {
  display: flex;
  -webkit-box-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  align-items: center;
  position: relative;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
  background-clip: padding-box;
  padding: 2px 24px;
}

.ob-ci-li-heading {
  display: flex;
  -webkit-box-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  align-items: center;
  position: relative;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-clip: padding-box;
  padding: 8px 24px;
}

.ob-li-container {
  padding: 6px 0px;
}

.ob-form-container {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.photo-uploaded {
  font-size: 16px;
  color: var(--primary);
  margin-left: 5px;
}

.photo-loader-div {
  height: 150px;
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.photo-loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Observation & Remedial Extra Ends */

.card-container {
  /*background: #212121;*/
  border-radius: 4px;
  border: 1px solid var(--box);
  border-left: 2px solid var(--primary);
  margin-bottom: 20px;
}

.card-heading-elements {
  min-height: 30px;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-label {
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--white);
}

.card-heading-conainer {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  padding: 1rem 2rem;
}

.card-heading-div {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
}

.location-card-style {
  margin: 10px;
  border: 1px solid #212121;
  border-radius: 4px;
}

.card-heading-span {
  margin: 0px;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  line-height: 1.2;
  display: block;
}

/* card-item -> ci */
.ci-ui {
  list-style: none;
  margin: 0px;
  padding: 0px;
  position: relative;
}

.ci-li {
  display: flex;
  -webkit-box-pack: start;
  justify-content: flex-start;
  -webkit-box-align: center;
  align-items: center;
  position: relative;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background-clip: padding-box;
  padding: 0.5rem 2rem;
}

.ci-li-small {
  padding: 4px 24px;
}

.ci-li-small-no-border {
  border-bottom: 0px;
}

.ci-li-container {
  flex: 1 1 auto;
  min-width: 0px;
  display: flex;
  margin-top: 0px;
  margin-bottom: 0px;
  align-items: center;
}

.ci-li-h6 {
  margin: 0px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 500;
  line-height: 1.57;
  min-width: 180px;
}

.ci-li-p-div {
  flex: 1 1 0%;
  margin-top: 0px;
}

.ci-li-p {
  margin: 0px;
  font-size: 16px;
  color: var(--white);
  line-height: 1.57;
}

.ci-li-p-highlighted {
  display: inline-block;
  background: #212121;
  padding: 2px 6px;
  color: var(--white);
  color: var(--primary);
  border-radius: 4px;
  margin: 0px;
  font-size: 16px;
  line-height: 1.57;
}

.card-content-show {
  max-height: 100% !important;
  transition-timing-function: cubic-bezier(0.5, 0, 1, 0) !important;
  transition-delay: 0s !important;
}

.card-content {
  overflow: hidden;
  max-height: 0px;
  transition: max-height 0.8s cubic-bezier(0, 1, 0, 1) -0.1s;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}


._10ba3ad8 {
  /* font-weight: bold; */
  padding: 6px 14px;
  letter-spacing: 1px;
  margin-left: 13px;
  cursor: pointer;
  border-radius: 7%;
  background-color: rgba(0, 0, 0, 0);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'Material Icons';
}

/* Reports */

.report-expand-all-cont {
  display: flex;
}

.r-s-toolbar-c {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.report-expand-p {
  display: inline-block;
  margin: 0px;
  color: var(--white);
  font-family: 'Roboto';
  font-weight: normal;
  margin-left: 5px;
}

.report-delete-p {
  display: inline-block;
  margin: 0px;
  color: var(--white);
  font-family: 'Roboto';
  font-weight: normal;
  margin-right: 5px;
}

.report-expand-btn {
  display: flex;
  align-items: center;
  max-height: 33px;
}

.clone-btn-div {
  align-items: center;
  display: flex;
}

.report-card-heading {
  display: flex;
  flex: 1;
  justify-content: space-between;
}

.report-card-heading-left {
  display: flex;
  flex: 2;
  justify-content: space-between;
}

.report-card-heading-right {
  flex: 1;
  display: flex;
  justify-content: space-between;
}

.list-report-container {
  padding: 1rem;
  /*border-bottom: 1px solid rgba(255, 255, 255, 0.12);*/
}

@media only screen and (max-width: 1100px) {
  .md {
    display: none;
  }
}

@media only screen and (min-width: 1100px) {
  .md {
    display: block;
  }
}

@media only screen and (max-width: 900px) {}

.report-card-content-show {
  max-height: 9999px !important;
  transition-timing-function: cubic-bezier(0.5, 0, 1, 0) !important;
  transition-delay: 0s !important;
}

.report-card-content {
  overflow: hidden;
  max-height: 0px;
  transition: max-height 0.8s cubic-bezier(0, 1, 0, 1) -0.1s;
}

.survey-textarea {
  min-height: 60px;
}

.survey-textarea-l {
  min-height: 150px;
}

.white {
  color: white;
}

.report-btn-icon {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-family: 'Material Icons';
  margin-right: 5px;
}

.report-status-btn {
  font-family: 'Roboto';
  justify-content: center;
  width: 100%;
}

.report-status-btn-bg {
  font-family: 'Roboto';
  background-color: var(--highlight) !important;
  width: 100%;
}

.report-status-btn-bg:hover {
  background-color: var(--hover) !important;
}

.report-status-btn:hover {
  background-color: var(--hover) !important;
}

.report-status-a {
  display: flex;
  font-weight: bold;
  padding: 6px 14px;
  letter-spacing: 1px;
  margin-left: 13px;
  cursor: pointer;
  border-radius: 7%;
  border: 0px;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-family: 'Roboto';
  justify-content: center;
}

.report-status-a-bg {
  display: flex;
  font-weight: bold;
  padding: 6px 14px;
  letter-spacing: 1px;
  margin-left: 13px;
  cursor: pointer;
  border-radius: 7%;
  border: 0px;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  background-color: var(--highlight) !important;
  font-family: 'Roboto';
}

.report-btn-flex {
  display: flex;
  justify-content: center;
}

.report-status-a-bg:hover {
  background-color: var(--hover) !important;
}

.report-status-a:hover {
  background-color: var(--hover) !important;
}

/* .report-status-a:hover { */
/* background-color: var(--highlight); */
/* } */

.report-toolbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-table-no-data-customer {
  height: calc(100vh - 250px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.report-table-no-data-customer h1 {
  color: var(--white);
  margin: 10px;
  font-size: 16px;
}

.report-table-no-data-customer span {
  font-size: 60px;
  color: var(--white);
  font-weight: 300;
}

.report-table-no-data {
  height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.report-table-no-data a {
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.report-table-no-data h1 {
  color: var(--white);
  margin: 10px;
}

.report-table-no-data span {
  font-size: 120px;
  color: var(--white);
  font-weight: 300;
}

/* SOW */

@media only screen and (min-width: 1200px) {
  .suppliers-dropdown {
    min-height: 100px;
  }
}

@media only screen and (max-width: 1200px) {
  .selected-scopes-row-container {
    width: 100% !important;
  }
}

.suppliers-dropdown option {
  color: var(--white) !important;
}

.suppliers-dropdown option:first-child {
  color: gray !important;
}

.suppliers-dropdown option:focus,
.suppliers-dropdown option:active,
.suppliers-dropdown option:checked {
  color: black !important;
}

.reports-suppliers-dropdown {
  width: 100% !important;
  min-height: 150px;
}

.yn-label {
  display: flex;
  justify-self: center;
}

.prelim-clauses-grid {
  grid-template-columns: 50px 1fr 1fr 6fr;
  /* CSS subgrid not supported fix for chrome */
}

.general-clauses-grid {
  grid-template-columns: 1fr 3fr 1fr 1fr 0.5fr;
}

.delete-general-clauses-btn {
  width: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.add_edit_dow_scope_btn {
  width: 10px;
  display: flex;
  justify-content: center;
}

.sow-view-work {
  grid-template-columns: 50px 3fr 1fr 1fr 80px;
}

.select-option {
  font-family: inherit;
  font-size: 14px;
  color: #000000 !important;
}

.sow-rem-no-border {
  border-left: 0px !important;
}

.section-containers {
  margin: 10px;
}

.grey-bg {
  background: var(--header) !important;
}

.selected-scopes-row-container {
  border: 1px solid var(--offwhite);
  width: 900px;
}

.selected-scopes-row {
  display: flex;
  color: var(--offwhite);
  border-bottom: 1px solid var(--offwhite);
}

.selected-scopes-row p {
  margin: 10px;
}

.selected-scopes-row p:nth-child(1) {
  flex: 3;
}

.selected-scopes-row p:nth-child(2) {
  flex: 1.5;
}

.selected-scopes-row p:nth-child(3) {
  flex: 1;
  display: flex;
  justify-self: end;
}

/* SECTION DRAFT */
.section-draft-container {
  display: flex;
}


.btn-set-as-default {
  margin: 0px 10px;
}

.sd-right {
  width: 140px;
  display: flex;
  flex-direction: column;
  min-height: 265px;
  max-height: 265px;
  justify-content: flex-end;
}

.sd-left {
  flex: 1;
}

.sd-reorder-btn {
  font-size: 90px;
  color: var(--primary);
  line-height: 30px;
}

.sd-builder-grid {
  grid-template-columns: 50px 1fr 2fr 6fr 200px;
  /* CSS subgrid not supported fix for chrome */
}

.sd-builder-grid button {
  display: flex;
  justify-content: center;
  font-size: 18px;
  font-weight: normal;
}

.sd-opacity {
  opacity: 0.2 !important;
}

.sd-new {
  margin-bottom: 10px;
}

.sd-new-action-btn {
  width: calc(11.4rem + 300px);
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.sd-builder-grid .flex {
  align-items: center;
  justify-content: center;
}

.sd-builder-grid button {
  font-size: 15px !important;
  font-weight: normal;
  margin-left: 0px;
}

.sd-builder-preview-toolbar {
  margin-bottom: 10px;
  width: 800px;
  display: flex;
}

.sd-builder-preview-toolbar button {
  height: 29px;
}

.sd-builder-preview-toolbar select {
  padding: 5px;
  border-radius: 2px;
  height: 3rem;
  margin: 4px;
  color: rgba(255, 255, 255, 0.68);
  width: 300px;
  border-right: 0px;
  border-left: 0px;
  font-size: 16px;
  font-family: Roboto;
  border-top: 0px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.15);
  font-family: Roboto;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.05);
}

.preview-template-container button {
  margin-top: 10px;
}

.sd-template-form-action-container {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.sd-submit-preview {
  margin-top: 10px;
}

.sd-save-as input {
  height: 25px;
}

.sd-form-textarea {
  min-height: 500px;
  min-width: 750px;
}

.sd-form-note-p {
  color: var(--offwhite);
  font-size: 12px;
  margin: 0;
  margin-left: 12rem;
}


/* Common */
.note-p {
  color: var(--offwhite);
  font-size: 12px;
  margin: 0;
}

.note-p-error {
  margin-left: 4px;
  color: red;
}

.pagination-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}

.pagination-number {
  color: var(--white);
  margin: 0;
  font-size: 14px;
  /* margin-top: 10px; */
  margin-left: 5px;
}

/* FORM MENUS */

details {
  border: 1px solid var(--box);
  border-radius: 4px;
  padding: 1rem;
}

details:not(:first-child) {
  margin-top: 1.5rem;
}


details summary::marker {
  color: var(--primary);
}

details summary {
  cursor: pointer;
  color: var(--white);
}

details summary div {
  margin-top: 0;
  flex-shrink: 0;
}

details summary div h5 {
  font-size: 0.8rem;
  font-variant: small-caps;
  font-weight: normal;
  margin: 0;
}

.stack {
  display: flex;
  flex-direction: column;
}


details>div {
  margin-top: 1rem;
}

.details-grid {
  display: grid;
  grid-template-columns: 12rem minmax(15rem, 1fr);
  grid-gap: 0.5rem;
  align-items: center;
}

.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.split>div {
  display: flex;
  flex-direction: row;
}

.two-col {
  grid-column: 1/3;
}

details h3 {
  margin: 0px;
  font-size: 1rem;
  color: var(--white);
  display: block;
  padding-top: 2rem;
  font-weight: bold;
  font-variant: small-caps;
  margin-bottom: 0.5em;
}


.details-inline {
  display: inline-block;
  width: calc(100% - 2ch);
}

.details-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.form-controls {
  margin-top: 2rem;
}

dialog .controls {
  display: flex;
  justify-content: end;
  margin-top: 1rem;
}

textarea {
  resize: vertical;
}

.field, input, select, textarea, .ss {
  padding: 5px;
  border-radius: 2px;
  height: 3rem;
  margin: 4px;
  color: var(--white);
  /*width: 300px;*/
  font-size: 16px;
  font-family: Roboto;
  border: 1px solid var(--box);
  white-space: prewrap;
  color-scheme: dark;
  background-color: var(--input);
  max-width: calc(100% - 1rem);
}

.field:hover, input:hover, input:focus, select:hover, select:focus, textarea:hover, textarea:focus, .ss>div:hover {
  border-bottom: 1px solid var(--primary);
}

.field:focus, input:focus, select:focus, textarea:focus {
  outline: 1px solid var(--primary);
}

input[type="checkbox"], input[type="checkbox"]:focus {
  width: unset;
  height: unset;
  outline: unset;
}

input:invalid, select:invalid, textarea:invalid, input[data-invalid="true"] {
  outline: 1px solid red;
}

.field:disabled, input:disabled, select:disabled, textarea:disabled, .disabled {
  opacity: 0.7;
}

input[type="radio"] {
  /*margin-top: -1px; was this used? */
  vertical-align: middle;
}

label:has(input[type="radio"]) {
  padding: 0.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 2fr 8ch;
  grid-gap: 1rem;
}

.grid>tr {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1/end;
  justify-items: left;
  align-items: center;
}

.subgrid {
  display: grid;
  grid-template-columns: subgrid;
}

#content>div {
  padding: 2rem;
}

.click {
  cursor: pointer
}

fieldset {
  border-radius: 0.3rem;
  border-color: var(--box);
  margin: 2em 0.2em;
  padding-bottom: 1em;
}

fieldset.radioinput {
  display: flex;
  align-items: center;

  select, input[type="text"], .ss {
    flex-grow: 1;
    width: 0px;
  }
}

.global {
  position: sticky;
  top: calc(100vh - 5em);
  padding: 0 !important;

  button {
    position: absolute;
    right: 50vw;
    background-color: var(--primary);
    color: black;
    border-radius: 100%;
    padding: 1em;
    font-family: Material Icons, Roboto;
    outline: none;
    border: none;
    box-shadow: 0 0.1em 0.5em rgba(0, 0, 0, 0.6);
    font-size: 1.2em;
    width: 3em;
    height: 3em;
    display: grid;
    align-items: center;
    justify-items: center;
    cursor: pointer;
  }

  button:hover {
    background-color: #3aa5f7;
  }
}


/* SELECT SEARCH */

.ss {
  position: relative;
  cursor: pointer;
  height: auto;
  min-width: 20ch;
  padding: 0;
  border: 0;

  div {
    width: 100%;
    min-height: 3rem;
    height: 100%;
    display: grid;
    align-items: center;
    padding: 5px;
    grid-template-columns: 1fr 1ch;
    grid-gap: 0.5em;
    border: 1px solid var(--box);
    border-radius: 2px;
  }

  dialog {
    margin: 1em auto;
    width: 90vw;
    max-height: revert;
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--base);

    li {
      padding: 0.5em;
    }

    li:hover {
      background-color: var(--hover);
      border-radius: 0.3em;
    }

    li input {
      width: 100%;
      max-width: none;
      margin: 0;
    }
  }
}

.ss:has(input.hidden:invalid) {
  outline: 1px solid red;
}

input.hidden {
  margin: 0;
  padding: 0;
  height: 0;
  width: 0;
  opacity: 0;
  position: absolute;
}

.icon {
  font-family: 'Material Icons';
  /*width: 4ch;*/
}


/* Multiple images in Survey - Observation */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-items: center;
}

.image-container {
  position: relative;
  width: 150px;
  text-align: center;
  /* background-color: #fff; */
  border-radius: 8px;
  /* padding: 10px; */
  box-sizing: border-box;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.image-container img {
  width: 100%;
  height: 150px;
  object-fit: fill;
  border-radius: 8px;
}

.close-button {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  /* border-radius: 50%; */
  padding: 0px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
}

.close-button:hover {
  background-color: rgba(255, 0, 0, 0.8);
  color: white;
}

.add-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  border: 2px dashed #bbb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background-color: var(--base);
}

.add-image-container:hover {
  background-color: rgba(83, 109, 255, 0.2);

  border-color: #888;
}

.add-image-container .add-button {
  font-size: 24px;
  color: #888;
}

.add-image-container .add-button:hover {
  color: #555;
}



/* General container for guidelines */
.editor-container {
  margin-top: 10px;
  margin-bottom: 5px;
  min-width: 750px;
}

.editor-container h3 {
  margin: 0;
  font-size: 15px;
}

/* Card container for guidelines */
.editor-guidelines-card {
  border: 1px solid #ddd;
  padding: 10px 16px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

/* Title styles */
.editor-guidelines-title {
  margin-top: 0;
  color: #333;
}

/* Description text */
.editor-guidelines-description {
  color: #555;
}

/* Ordered list for guidelines */
.editor-guidelines-list {
  margin-left: 16px;
  color: #555;
}

/* Highlighted text inside the list */
.editor-guidelines-highlight {
  font-weight: bold;
}

/* Code block styles */
.editor-code {
  background-color: #e8e8e8;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}

/* Warning card */
.editor-warning-card {
  border: 1px solid #ff4d4d;
  padding: 12px;
  border-radius: 8px;
  background-color: #ffe6e6;
  margin-top: 16px;
  color: black;
}

/* Warning title */
.editor-warning-title {
  color: #b30000;
  font-weight: bold;
}

/* Divider */
.editor-divider {
  margin: 16px 0;
  border: none;
  border-top: 1px solid #ddd;
}

/* Example section label */
.editor-guidelines-example-label {
  color: #555;
}

/* Code block example */

.editor-code-block {
  background-color: #e8e8e8;
  padding: 12px;
  border-radius: 8px;
  color: #444;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  line-height: 1.5;
}

/* Example output list */
.editor-example-output {
  margin-left: 16px;
  color: #333;
}

/* Text in red */
.editor-text-red {
  color: red;
}

.editor-guideline {
  display: flex;
  align-items: space-between;
  flex: 1;
  justify-content: space-between;
}

.editor-guideline-font-icon {
  color: black;
}

/* .sr-template-data-table {
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
} */

/* NEW ONE */
/* Ensure the parent div doesn't let the table overflow */
.sr-template-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 0px 2rem !important;
  /* Enables horizontal scrolling if needed */
  /* white-space: nowrap; */
}

/* Ensure the table itself stays within the container */
.sr-template-data-table {
  width: 100%;
  border-collapse: collapse;
  /* background-color: #1e1e1e; */
  color: #d0d0d0;
  font-family: Arial, sans-serif;
  font-size: 11px;
  border-radius: 6px;
  table-layout: fixed;

  /* Helps prevent overflow */
}

.sr-template-data-table th,
.sr-template-data-table td {
  text-align: left;
  vertical-align: top;
  padding: 2px;
  text-align: left;
  border: 1px solid #333;
  width: 10%;
  /* white-space: nowrap; */
  /* Prevents text wrapping */
}

.sr-template-data-table th {
  text-align: center;
}

.sr-template-data-table td input {
  width: 100%;
}


.sr-template-data-table th,
.sr-template-data-table td {
  min-width: 80px;
}


.sr-template-data-table th:nth-child(5),
.sr-template-data-table td:nth-child(5),
.sr-template-data-table th:nth-child(6),
.sr-template-data-table td:nth-child(6) {
  width: 15%;
}


.sr-template-data-table th:nth-child(10),
.sr-template-data-table td:nth-child(10) {
  width: 25%;
}

.sr-template-data-table th:nth-child(1),
.sr-template-data-table td:nth-child(1) {
  text-align: center;
  width: 50px !important;
}


.sr-flatlist-search-btn {
  padding-bottom: 0px !important;
  padding-top: 0px !important;
  display: flex;
  justify-content: flex-end;
}

.sr-flatlist-search-btn p {
  margin-left: 0px !important;
  margin-right: 5px !important;
}

.sr-flatlist-search-btn-pad {
  margin-left: 10px;
}

.disabled-button {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.pagination-container select {
  height: 32px !important;
}

.pc-nomargin {
  margin-top: 0px;
}

.pc-space-between {
  justify-content: space-between;
}

.sr-flatlist-heading {
  padding: 1rem 2rem !important;
}
