/* Default state: show desktop, hide mobile */

/* opacity [100 ff] [90 e6] [80 cc] [70 b3] [60 99] [50 80] [40 66] [30 4d] [20 33] [10 1a] [0 00]

/* @import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Orbitron&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&display=swap');

.elementDesktop {
    display: block;
}
.elementMobile {
    display: none;
}

/* When screen is small: flip the visibility */
@media (max-width: 1000px) {
    .elementDesktop {
        display: none;
    }
    .elementMobile {
        display: block;
    }
    .hideMobile {
      display: none
    }
}

/* Layout */

.layout {
  display: flex;
  width: 100vw;
  height: 100dvh;
  box-sizing: border-box;
}

.main-content {
  display: flex;
  flex-direction: column;
  margin-left: 220px;
  flex: 1;
  height: 100%;
  overflow-y: auto;
  background-color: transparent;
  padding: 10px 20px 20px 10px;
  box-sizing: border-box;
  gap: 10px;
}

.main-content.no-sidebar {
    margin-left: 0;
    padding: 10px;
}

.validation-list {
  list-style-type: none; 
  padding-left: 0; 
}

@media (max-width: 1000px) {
    .main-content {
      margin: 0;
      padding: 10px;
      padding-bottom: 70px;
    }

  .main-content.no-sidebar {
      margin-left: 0;
  }

}

/* Font */

html {
    font-size: 16px;
}

@media (max-width: 1000px) {
  html {
    font-size: 16px;
  }
}

* {
  font-family: 'Noto Sans', sans-serif;
}


body {
  font-family: 'Noto Sans', Arial, sans-serif;
  background-image: url('https://storage.googleapis.com/zenion.com/assets/platform/app-background-horizontal.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #222831;
  /* background: linear-gradient(to bottom right, #0097ff, #35cb33);
  background-color: #0097ff; */
  color: #3d3d3d;
  margin: 0;
  backdrop-filter: blur(4px);
}

@media (max-width: 1000px) {
  body {
    background-image: url('https://storage.googleapis.com/zenion.com/assets/platform/app-background-vertical.png');
  }
}

[hidden] {
  display: none !important;
}

.textBlock {
  display: block;
  font-size: 0.8rem;
  text-align: justify;
}

.calloutBlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  padding: 5px;
  text-align: justify;
  width: 100%;
  box-sizing: border-box;
}

.calloutBlock.info {
  background-color: #0097ff80 ;
  border-bottom: 2px solid #0097ff;
  border-top: 2px solid #0097ff;
}

.calloutBlock.warning {
  background-color: #ffa50080 ;
  border-bottom: 2px solid #ffa500;
  border-top: 2px solid #ffa500;
}

.calloutBlock.success {
  background-color: #4BB54380 ;
  border-bottom: 2px solid #4BB543;
  border-top: 2px solid #4BB543;
}

.calloutBlock.error {
  background-color: #ff4d4d80 ;
  border-bottom: 2px solid #ff4d4d;
  border-top: 2px solid #ff4d4d;
}

h1, h2 {
    font-weight: 300;
    font-size: 1.2rem;
    flex-grow: 1;
    color: #3d3d3d;
    margin: 0;
}

h3 {
    font-weight: 500;
    font-size: 1rem;
    color: #3d3d3d;
    margin: 0;
    width: 100%;
}

h4 {
    font-weight: 500;
    font-size: 0.7rem;
    color: #3d3d3d;
    margin: 0;
    width: 100%;
    text-align: center;
}

p {
  margin: 0;
  font-size: 0.8rem;
  text-align: justify;
}

ul {
  margin: 0;
  list-style: none;
  font-size: 0.8rem;
  padding-inline-start: 10px;
}

li::before {
  content: '▸';
  margin-right: 0.5rem;
  color: #0097ff;
}

strong {
  color: #222831;
}

blockQuote {
  font-style: italic;
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  color: #666;
}

.inlineLink {
  display: inline;
  text-decoration: none;
  border-bottom: none;
  cursor: pointer;
}

.inlineLink:hover {
  border-bottom: 1px solid #3d3d3d; 
}

.helpLink {
  display: inline;
  text-decoration: none;
  border-bottom: 1px dotted #6B46C1;
  color: #6B46C1; 
  cursor: help;
}

.helpLink:hover {
  border-bottom: 1px solid #6B46C1; 
}

.mapLink {
  display: inline;
  text-decoration: none;
  border-bottom: 1px dotted #17a2b8;
  cursor: pointer;
  background-image: url("https://storage.googleapis.com/zenion.com/free/icons/zeniops/directions-inline.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 1rem;
  padding-right: calc(1rem + 5px);
}

.mapLink:hover {
  border-bottom: 1px solid #17a2b8; 
}

/*Tables*/

  table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
  }

  td {
    padding: 10px;
    vertical-align: middle;
    justify-content: left;
    overflow: visible;
  }

  th {
    border-bottom: 2px solid #999999;
    padding: 5px;
    text-align: left;
    justify-content: left;

  }

  tr {
    border-bottom: 1px solid #99999980;
    padding: 10px;
    text-align: left;
    justify-content: left;

  }

  tr:last-child {
    border-bottom: none;
  }

/**/

/* Buttons */

  .buttonBar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: center;
    width: 100%;
  }

  .buttonStack {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 5px;
  }

  /* Base button styles */
  a[data-button-style],
  button[data-button-style] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    flex-grow: 1;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-wrap-mode: wrap;
  }


  /* Inline style variant */
  button[data-button-style="inline"] {
    background-color: #eeeeee;
    color: #2a4057;
    padding: 9px;
    border: 1px solid #2a4057;
  }

  button[data-button-style="inline"]:hover {
    background-color: #cccccc;
  }

  button[data-button-style="inline"]:disabled {
    background-color: #eeeeee;
    color: #999999;
    padding: 9px;
    border: 1px solid #999999;
    cursor: not-allowed;
  }

  button[data-button-style="inline"][data-button-active="true"] {
    background-color: #2a4057;
    color: #eeeeee;
  }

  /* Primary variant */
  a[data-button-style="primary"],
  button[data-button-style="primary"] {
    background-color: #0097ff;
    color: #ffffff;
    border: none;
  }

  a[data-button-style="primary"]:hover,
  button[data-button-style="primary"]:hover {
    background-color: #2a4057;
  }

  a[data-button-style="primary"]:disabled,
  button[data-button-style="primary"]:disabled {
    background-color: #cccccc;
    color: #ffffff;
    border: none;
    cursor: not-allowed;
  } 

  a[data-button-style="primary"]:active,
  button[data-button-style="primary"]:active {
    background-color: #35cb33;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  /* Secondary  variant */

  a[data-button-style="secondary"],
  button[data-button-style="secondary"] {
    background-color: transparent;
    border: 2px solid #3d3d3d;
    color: #3d3d3d;
    padding: 8px;
  }

  a[data-button-style="secondary"]:hover,
  button[data-button-style="secondary"]:hover {
    background-color: #cccccc;
  }

  a[data-button-style="secondary"]:disabled,
  button[data-button-style="secondary"]:disabled {
    background-color: #cccccc;
    color: #ffffff;
    border: 2px solid #3d3d3d;
    cursor: not-allowed;
  }  

  /* Actions  */

  a[data-button-style="actions_primary"],
  button[data-button-style="actions_primary"] {
    background-color: #2a4057;
    color: #eeeeee;
    border: 2px solid #2a4057;
    padding: 8px;
  }

  a[data-button-style="actions_secondary"],
  button[data-button-style="actions_secondary"] {
    background-color: transparent;
    color: #2a4057;
    border: 2px solid #2a4057;
    padding: 8px;
  }

  /* Tile */

  a[data-button-style="tile"],
  button[data-button-style="tile"] {
    background-color: transparent;
    border: 2px solid #3d3d3d;
    padding: 8px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    box-sizing: border-box;
    width: 100%; /* optional if inside a grid */
  }

  a[data-button-style="tile"]:hover,
  button[data-button-style="tile"]:hover {
    background-color: #eeeeee;
  }

  a[data-button-style="tile"]:active,
  button[data-button-style="tile"]:active {
    background-color:#35cb33;
  }

  button[data-button-style="tile"] img {
    width: 60%; /* scales image within tile */
    max-height: 60%;
    object-fit: contain;
  }

  button[data-button-style="tile"] span {
    font-size: 1.2rem;
    font-weight:  300;
    color: #3d3d3d;
    line-height: 1.4;
  }

  /* Help */

  button[data-button-style="help_chat"] {
    background-color: transparent;
    color: #6B46C1;
    padding: 8px;
    border: 2px solid #6B46C1;
  }

  button[data-button-style="help_chat"]:hover {
    background-color: #6B46C133;
  }






  .buttonText {
    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    padding: 4px;
    border-radius: 5px;
    border: 1px solid #0097ff;
    font-size: 0.7rem;
    width: fit-content;
    background-color: #0097ff;
    color: #eeeeee;
    transition: background-color 0.3s ease;
    cursor: pointer;
    overflow: visible;
  }

  .buttonText.disabled {
    border: 1px solid #999999;
    background-color: #ffffff; 
    color: #999999
  }

  .buttonText.disabled:hover {
    background-color: #eeeeee;
    border-color: #999999
  }

  .buttonText:hover {
    background-color: #2b3f57;
    border-color: #2b3f57
  }

  .buttonText span {
    display: block;
    max-width: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    white-space: nowrap;
    transition:
      max-width 0.4s ease,
      opacity 0.3s ease,
      visibility 0s linear 2.3s;
    transition-delay: 2s;
  }

  .buttonText:hover span {
    max-width: 200px;
    opacity: 1;
    visibility: visible;
  }

  .buttonText:hover span.wrap {
    white-space: normal;
  }

  .buttonIcon {
    width: 2rem;
    height: 2rem;
  }

/**/

/* Filters */
  .headingWithFilter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .headingWithFilter input {
    padding: 6px 10px;
    font-size: 0.9rem;
    border: none;
    border-bottom: 2.5px solid #2b3f57;
    width: 200px;
  }

  .headingWithFilter input:focus {
    outline: none;
    border-bottom: 2.5px solid #0097ff;
  }

  .headingWithFilter select {
    padding: 6px 10px;
    font-size: 0.9rem;
    border: none;
    border-bottom: 2.5px solid #2b3f57;
    width: 200px;
    cursor: pointer;
    border-radius: 0;
    transition: border-bottom 0.3s ease;
  }

  .headingWithFilter select:focus {
    outline: none;
    border-bottom: 2.5px solid #0097ff;
  }

  .headingWithFilter option {
    font-size: 0.9rem;
    color: #2b3f57;
  }

  @media (max-width: 1000px) {
    
    .headingWithFilter {
      flex-direction: column;
    }

    .headingWithFilter input,
    .headingWithFilter select {
      width: 100%;
    }

  }


/**/

/* Shared Form Elements */

  .validationError {
    color: #ff4d4d;
    font-size: 0.8rem;
  }

  .validationSuccess {
    color: #35cb33;
    font-size: 0.8rem;
  }

  .errorCountBadge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 1rem;
    aspect-ratio: 1 / 1;
    border-radius: 25%;
    color: #ffffff;
  }

  .errorCountBadge.hasErrors {
    background-color: #ff4d4d;
  }

  .errorCountBadge.noErrors {
    background-color: #35cb33;
  }

/**/

/* Mainline Forms */

  .mainlineForm {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
  }

  .mainlineForm.divider {
    min-height: 1px;
    background-color: #999999;
    margin: 10px 0 0 0;
    border: none;
    flex: 1;
    box-sizing: border-box;
  }

  .mainlineForm.inputRow {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap:10px;
    align-items: flex-end;
  }

  .mainlineForm.inputBlock {
    gap:2px;
    width:100%;
  }

  .mainlineForm.width-1-4 { width: 25%; }
  .mainlineForm.width-1-2 { width: 50%; }
  .mainlineForm.width-3-4 { width: 75%; }
  .mainlineForm.width-1-3 { width: 33.3333%; }
  .mainlineForm.width-2-3 { width: 66.6667%; }

  @media (max-width: 1000px) {
    .mainlineForm.inputRow {
      flex-direction: column;
    }

    .mainlineForm.width-1-4,
    .mainlineForm.width-1-2,
    .mainlineForm.width-3-4,
    .mainlineForm.width-1-3,
    .mainlineForm.width-2-3 { width: 100%; }  
  }


  .mainlineForm label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #3d3d3d;
  }

  .mainlineForm input,
  .mainlineForm select,
  .mainlineForm textarea {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 1rem;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .mainlineForm input[type="file"] {
    width: 100%;
    cursor: pointer;

  }

  .mainlineForm input:focus,
  .mainlineForm select:focus,
  .mainlineForm textarea:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
    outline: none;
  }

  /* Required but empty */
  .mainlineForm input[data-validation-state="empty"],
  .mainlineForm select[data-validation-state="empty"],
  .mainlineForm textarea[data-validation-state="empty"] {
    border-color: #e53935;
    background-color: #fff5f5;
  }

  /* Filled but invalid */
    .mainlineForm input[data-validation-state="invalid"],
    .mainlineForm select[data-validation-state="invalid"],
    .mainlineForm textarea[data-validation-state="invalid"] {
    border-color: #f57c00;
    background-color: #fff8e1;
  }

  /* Valid */
    .mainlineForm input[data-validation-state="valid"],
    .mainlineForm select[data-validation-state="valid"],
    .mainlineForm textarea[data-validation-state="valid"] {
    border-color: #43a047;
    background-color: #f1f8f4;
  }

  .mainlineForm input[readonly],
  .mainlineForm select[readonly],
  .mainlineForm textarea[readonly],
  .mainlineForm input:disabled,
  .mainlineForm select:disabled,
  .mainlineForm textarea:disabled {
    background-color: #f9f9f9;
    color: #999999;
    cursor: not-allowed;
    background-image: url("https://storage.googleapis.com/zenion.com/free/icons/zeniops/field-lock.png");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1rem;
    padding-right: 2rem;
  }

/**/

/** Form Jumpers **/

.formJumper {
  border-left: solid 2px;
  padding: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.formJumper:hover {
  font-weight: 600;
}

.formJumper.activeJumper {
  border: solid 10px;
}

.formJumper.activeJumperSecondary {
  border: solid 5px;
}

/**/

/* Info Rows */

  .infoRow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 2px;
  }

  .infoRow.label {
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 30%;
    max-width: 30%;
    border: none;
  }

  .infoRow.info {
    display: flex;
    flex-direction: row;
    flex: 1;
    flex-wrap: wrap;
    text-align: left;
    overflow-wrap: anywhere;
    border: none;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5px;
    gap: 5px;
  }

/**/
  
/* Form Actions */

  .formActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
  }

  .formActionsMobileElement {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background-color: #22283180;
    gap: 10px;
    padding: 10px;
    border-radius: 20px 20px 0 0;
  }

  @media (max-width: 1000px) {

    .formActions {
      overflow-x: scroll;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      flex-wrap: nowrap;
    }

  }

  .formActions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    flex-grow: 1;
    white-space: nowrap;
    max-width: 100%;
    box-sizing: border-box;
  }

  .formActions .btn .icon {
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
  }

  .formActions .btn.primary {
    background-color: #2a4057;
    color: #eeeeee;
    border: 2px solid #2a4057
  }

  .formActions .btn.secondary {
    background-color: transparent;
    color: #2a4057;
    border: 2px solid #2a4057;
  }


/**/

/* Forms */
  
  .contentContainer.form {
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 10px;
    gap: 10px;
  }

  .contentContainer.form.invisible {
    width: 100%;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    gap: 10px;
  }

  .contentContainer.form.inner {
    width: 100%;
    background-color: #eeeeee;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 5px;
    gap: 10px;
  }

  /* move this to the new contentContainer but have this lower with the calculated width */
  .contentContainer.form.stack {
    width: calc(100% - 410px);
    background-color: #ffffff80;
    backdrop-filter: blur(4px);
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    border-radius: 20px;
  }

  .contentContainer.form.submit {
    width: 400px;
    background-color: #ffffff80;
    backdrop-filter: blur(4px);
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 10px;
    position: fixed;
    right: 10px;
    top: 100px;
    gap: 10px;
  }

  .form-title {
    background: linear-gradient(to bottom right, #0097ff, #2b3f57);
    border-radius: 10px;
    padding: 5px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .form-title_icon {
    width: 2rem;
    aspect-ratio: 1 / 1;
  }

  .form-title_title-block {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .form-title h2 {
    flex: none;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 300;
  }

  .form-title subtitle {
    flex: none;
    color: #ffffffcc;
    font-weight: 500;
  }

  .formHeader {
    background-color: #f0f0f0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: -10px -10px 0px -10px;
    padding: 0 10px;
    box-sizing: border-box; 
  }

  .formHeader h2 {
    font-size: 1rem ;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .formHeader.collapsed {
    border-radius: 10px;
    margin: -10px;
    background-image: url("https://storage.googleapis.com/zenion.com/free/icons/zeniops/form-expand.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 2rem;
  }

  .formHeader.expanded {
    background-image: url("https://storage.googleapis.com/zenion.com/free/icons/zeniops/form-collapse.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 2rem;
  }

  .formBody.collapsed {
      display: none;
  }

  .formBody.expanded {
      display: flex;
      flex-direction: column;
      gap: 10px;
  }

  .form-intro, .form-section > h2, .form-section > p {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
  }

  .form-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }  

  .w-1-3 {
    flex: 1 1 calc(33.333% - 5px);
  }
  .w-1-2 {
    flex: 1 1 calc(50% - 5px);
  }
  .w-full {
    flex: 1 1 100%;
  }

  .formWrapper {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
  }

  .formWrapper select,
  .formWrapper input,
  .formWrapper textarea {
    padding: 6px 10px;
    box-sizing: border-box;
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    background-color: transparent;
    border-bottom: 3px solid #2b3f57;
    margin-bottom: 10px;

  }

  .formWrapper input:not([type="file"]):valid,
  .formWrapper textarea:valid,
  .formWrapper select:valid {
    border-bottom: 3px solid #4BB543;
  }

  .formWrapper input:invalid,
  .formWrapper textarea:invalid,
  .formWrapper select:invalid {
    border-bottom: 3px solid #ff4d4d;
  }

  .formWrapper input:not([type="file"]):focus,
  .formWrapper textarea:focus,
  .formWrapper select:focus {
    border-bottom: 3px solid #0097ff;
  }

  .formWrapper input[readonly] {
    background-image: url("https://storage.googleapis.com/zenion.com/free/icons/zeniops/field-lock.png");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1rem;
    padding-right: 20px;
    color: #999; 
    border-bottom: 3px solid #999999;
    cursor: default;
    background-color: transparent;
  }

  label {
    display: block;
    font-size: 0.8rem;
    color: #999999;
  }

  /* input[type="file"] {
    padding: 100px 10px ;
    border: 1px solid #999999;
    border-radius: 5px;
    background-color: #eeeeee;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
  } */

  /* button[type="submit"] {
    height: 42px;
    max-width: 100%;
    flex: 1;
    background-color: #0097ff;
    color: #ffffff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
  }

  button[type="submit"]:hover {
    background-color: #2b3f57;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  button[type="submit"]:active {
    background-color: #4BB543;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  button[type="submit"]:disabled {
    padding: 4px 10px;
    border: 1px solid #999999;
    background-color: #ffffff; 
    color: #999999;
    cursor: not-allowed;
  }

  button[type="submit"]:disabled:hover {
    background-color: #eeeeee;
    border-color: #999999
  } */

  @media (max-width: 1000px) {

    .contentContainer.form.stack {
      width: 100%;
      margin-bottom: 50px;
    }

    .contentContainer.form.submit {
      position: unset;
      width: 100%;
    }

  }

/**/




/* Maps */

  /* Inline Static */

  .mapStatic {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }


  /* Fleet Map */

  #map {
    width: 100%;
    min-height: 300px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }

  .vehicle-pin {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-out;

  }

  .hub-pin-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    border-radius: 10px;
    background: linear-gradient(to bottom right, #2a4057cc, #222831cc);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  }

  .hub-pin {
    height: 50px;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  }

  .hub-label {
    margin-top: 5px;
    font-size: 1rem;
    color: #eeeeee;
    font-weight: 500;
    text-align: center;
    max-width: 120px;
  }

/**/


/* Charts */

  .chartContainer {
    flex-direction: column;
    display: flex;
    justify-content: space-evenly;
    box-sizing: border-box;
    overflow: hidden;
  }

  .chart-container canvas {
    box-sizing: border-box;
    display: flex;
    flex: 0 0;
    padding: 0;
    width: 100px;
    height: 100px;
  }

  .chartMetricContainer {
    flex-direction: column;
  }

  .chartMetric {
    font-size: 50px;
  }

  .chartMetricDescription {
    size: 16px;
    color: #eeeeee80
  }
/**/

/* Content Containers v2 */

  .container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    align-items: stretch;
    justify-content: start;
  }

  .container.column {
    flex-direction: column;
  }

  .container.row {
    flex-direction: row;
  }

  .container.flexrow {
    flex-direction: row;
  }

  .container.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    align-self: start;
    align-items: start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .container.grid.four {
    grid-template-columns: repeat(4, 1fr);
  }

  .container.grid.six {
    grid-template-columns: repeat(6, 1fr);
  }

  /* just standard image i think */
  .container.grid img {
    border-radius: 10px;
    aspect-ratio: 1 / 1;
  }

  .container.upper {
    border-radius: 20px;
    background-color: #ffffff80;
    backdrop-filter: blur(4px);
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    height: 100dvh;
  }

  .container.lower {
    border-radius: 10px;
    background-color: #ffffff;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    gap: 10px;
    padding: 10px;
  }

  @media (max-width: 1000px) {

    .container.flexrow {
        flex-direction: column;
    }

    .container.grid.four {
      grid-template-columns: repeat(3, 1fr);
    }

    .container.grid.six {
      grid-template-columns: repeat(4, 1fr);
    }

  }

/**/

/* Content Containers */

  .contentContainer {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
  }

  .contentContainer.row {
    flex-direction: row;
    align-items: start;
    gap: 10px;
    width: 100%;
  }

  .contentContainer.white {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 10px;
  }

  .contentContainer.banner {
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    height: 50vh;
    background-image: url('https://storage.googleapis.com/zenion.com/free/assets/zeniops/background-desktop.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
  }

  .contentContainer.banner.bannerOverlay {
    display: flex;
    justify-content: flex-end;
    bottom: 0;
    width: 100%;
    background: #00000080;
    color: white;
    padding: 20px;
    box-sizing: border-box;
    font-size: 2.5rem;
    font-weight: 300;
  }

  .contentContainer.upperstack {
    border-radius: 20px;
    background-color: #ffffff80;
    backdrop-filter: blur(4px);
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .contentContainer.lowerstack {
    border-radius: 10px;
    background-color: #ffffff;
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    gap: 10px;
    padding: 10px;
  }

  @media (max-width: 1000px) {

    .contentContainer.row {
        flex-direction: column;
    }

  }

/**/

/*Content Buckets*/
    .contentBucket {
    flex: 1 1;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .contentBucket.red {
    background-color: #ff4d4d80;
    }

    .contentBucket.orange {
    background-color: #FFA50080;
    }

    .contentBucket.green {
    background-color: #4BB54380;
    }

    .contentBucket.blue {
    background-color: #0097ff80;
    }

    .contentBucket.kpi {
      display: flex;
      flex-grow: 1;
      flex-shrink: 0;
      background: linear-gradient(to bottom right, #2a4057, #222831);
      color: #eeeeee;
      flex-direction: row;
      width: 300px;
      height: 200px;
      justify-content: space-around;
    }


/**/

/* use for footnoting */
    .contentBucket.transparent {
    background-color: transparent;
    box-shadow: none; 
    flex-grow: 0;
    flex-shrink: 1;
    display: flex;
    flex-basis: auto;
    align-items: center;
    gap: 1rem;
    }
/**/

/* Pop Up Box */
  .popupContainer {
    display: flex;
    flex-direction: column;
    position: fixed;
    background-color: #22283180;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: center;
    gap: 10px;
  }

  .popupStack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
    align-items: center;
  }

  .popupContainer.hidden {
    display: none;
  }

  .popupHeader {
    padding: 5px;
    background-color: #ffffff80;
    backdrop-filter: blur(4px);
    border-radius: 10px;
    width: 200px;
    max-width: 80%;
  }

  .popupHeaderImage {
    width: 100%;
    border-radius: 5px;
  }

  .popupBanner {
    margin: -30px -30px 0 -30px;
  }

  .popupBanner.good {
    background: linear-gradient(to bottom, #0097ff, #35cb33);
    min-height: 200px;
    width: calc(100% + 60px);
    margin: -30px -30px -150px -30px;

  }

  .popupBanner.bad {
    background: linear-gradient(to bottom, #0097ff, #FFA500);
    min-height: 200px;
    width: calc(100% + 60px);
    margin: -30px -30px -150px -30px;

  }

  .popupBanner.critical {
    background: linear-gradient(to bottom, #0097ff, #ff4d4d);
    min-height: 200px;
    width: calc(100% + 60px);
    margin: -30px -30px -150px -30px;
  }
  
  .popupBox {
    display: flex;
    flex-direction: column;
    background-color: #ffffffe6;
    padding: 30px;
    width: 500px;
    max-width: 90vw;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 20px;
    align-items: center;
    text-align: left;
    box-sizing: border-box;
    overflow: visible;
    gap: 10px;
  }

  .popupHeaderBox {
    display: flex;
    flex-direction: row;
    background: linear-gradient(to bottom right, #0097ff, #2b3f57);
    padding: 5px 10px;
    width: 500px;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border-radius: 20px;
    align-items: center;
    text-align: left;
    box-sizing: border-box;
    overflow: visible;
    gap: 10px;
  }

  /* repitition of form-title h2 */
  .popupHeaderBox h2 {
    flex: none;
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 300;
  }

  /* repitition of form-title subtitle */
  .popupHeaderBox subtitle {
    flex: none;
    color: #ffffffcc;
    font-weight: 500;
  }

  .popupBoxGroup {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .popupBox form {
    text-align: left;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .popupBox label {
    color: #3d3d3d;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    gap:10px;
    align-items: start;
  }

  .popupBox input,
  .popupBox select,
  .popupBox textarea {
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    padding: 0.5rem;
  }

  .popupBox input[readonly],
  .popupBox select[readonly],
  .popupBox textarea[readonly],
  .popupBox input:disabled,
  .popupBox select:disabled,
  .popupBox textarea:disabled {
    background-color: transparent;
    color: #999999;              
    cursor: not-allowed;
    background-image: url("https://storage.googleapis.com/zenion.com/free/icons/zeniops/field-lock.png");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1rem;
    padding-right: 20px;
  }

  .popupBox button[data-style="submit"] {
    margin-top: 20px;
    width: 100%;
    background-color: #0097ff;
    border: 2px solid #0097ff ;
    color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
  }

  .popupBox button[data-style="submit"]:hover {
    background-color: #2a4057;
    border: 2px solid #2a4057 ;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    cursor: pointer;
  }

  .popupBox button[data-style="submit"]:disabled {
    background-color: #cccccc;
    border: 2px solid #cccccc ;
    color: #999999;
    box-shadow: none;
    cursor: not-allowed;
  }

  .popupBox button[data-style="cancel"] {
    width: 100%;
    background-color: transparent;
    color: #3d3d3d;
    border-radius: 5px;
    box-shadow: none;
    padding: 10px;
    border: 2px solid #3d3d3d ;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.25s ease, transform 0.2s ease;
    margin-top: 10px;
  }

  .popupBoxClose {
      text-align: right;
      background: none;
      border: none;
      color: #eeeeee;
      cursor: pointer;
      width: 500px;
      max-width: 90vw;
      max-height: 1rem;
  }

  .popupBoxClose img {
  max-height: 100%;
  height: auto;
  width: auto;
  }

  .popupBoxTextBlock {
    display: block;
    font-size: 0.8rem;
    text-align: justify;
  }

  .popupBoxDivider {
    min-height: 1px;
    background-color: #999999;
    margin: 10px;
    border: none;
    width: 100%;
  }

  @media(max-width: 800px) {
    .popupBox { 
      max-width: 90vw;
    }
  }


/**/

/* Image Grids */

  .image-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr); 
    gap: 5px;
  }

  @media (max-width: 1000px) {
    .image-grid {
      grid-template-columns: repeat(3,1fr);
    }
  }

  .image-cell {
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }

  .image-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

/**/

/* Loaders */

  .loader {
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .loaderInline {
    max-height: 1rem;
    animation: flashFade 1.2s ease-in-out infinite;
    font-family: monospace;
  }

  @keyframes flashFade {
    0%   { opacity: 0; transform: scale(0.8); }
    10%  { opacity: 1; transform: scale(1); }   /* flash in hard */
    100% { opacity: 0; transform: scale(1.2); } /* fade out gently */
  }

/**/

/* Vehicle Cards */

  @font-face {
    font-family: 'UKNumberPlate';
    src: url('/static/fonts/UKNumberPlate.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

  .vehicleCard {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .vehicleCardImage {
    border-radius: 4px;
    height: 3rem;
    width: 3rem;
  }

  .vehicleCard.info {
    flex-direction: column;
    gap: 0;
  }

  .vehicleCard.telemetryParent {
    flex-direction: column;
    gap: 0;
    align-items: start;
  }  

  .vehicleCard.telemetryChild {
    gap: 2px;
    flex-grow: 1
  }  

  .vehicleCard.expanded {
    background-color: #ffffffcc;
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 10;
  }
  
  .vRegCard { 
      font-family: 'UKNumberPlate', 'Arial Black', 'Impact', sans-serif;  
      background-color: #ffd700;
      color: #000000;
      padding: 4px 8px;
      border-radius: 4px; 
      font-size: 2rem; 
      box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
      letter-spacing: 2px; 
      text-align: center; 
      /* border: 2px solid #000; */
      border-left: 1rem solid #34cc34;
      overflow-wrap: anywhere;
  }

  .vRegCard.faded {
      opacity: 0.5;
  }

  .vRegCard.faded:hover {
    opacity: 1;
  }

  .vehicleCardText {
    font-size: 0.8rem;
    color: #999999;
    text-align: center;
  }

/**/

/* Location Cards */

  @font-face {
    font-family: 'UKRoadSign';
    src: url('/static/fonts/UKRoadSign.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

  .locCard {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: baseline;
    background-color: white;
    border: 2px solid black;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
    max-width: 150px;
    min-width: 150px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    gap: 2px;
  }

  .locName {
    text-align: left;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: black;
    font-family: 'UKRoadSign', Arial, sans-serif;
    align-self: flex-start;
  }

  .locID {
    font-size: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #c8102e; /* Official red used in UK signage */
    margin-left: 1em;
    font-family: 'UKRoadSign', Arial, sans-serif;
    align-self: flex-end;
  }

/**/

/* Calendar Cards */

    .calendar-tile {
      background: #f4f4f4;
      border-radius: 5px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2); 
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-family: 'Segoe UI', sans-serif;
    }

    .month {
      font-size: 0.7rem;
      font-weight: 600;
      color: #fff;
      background-color: #d32f2f;
      padding: 2px;
      border-radius: 5px 5px 0px 0px;
      text-transform: uppercase;
      width: 60px;
      text-align: center;
    }

    .day-number {
      font-size: 1.5rem;
      font-weight: bold;
    }

    .day-name {
      font-size: 0.7rem;
      color: #fff;
      background-color: #d32f2f;
      padding: 2px;
      border-radius: 0px 0px 5px 5px;
      width: 60px;
      text-align: center;
    }
    
/**/

/* Status Bars */

  .statusBarContainer.blue { background-color: #0078D4; color: #fff; }
  .statusBarContainer.yellow { background-color: #FFC107; color: #000; }
  .statusBarContainer.green { background-color: #28a745; color: #fff; }
  .statusBarContainer.red { background-color: #dc3545; color: #fff; }
  .statusBarContainer.grey { background-color: #6c757d; color: #fff; }

  .status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1px;
  }

  .status-segment {
    flex: 1;
    height: 5px;
    background-color: #cccccc;
    border-radius: 5px;
  }

  .status-segment.active {
    background-color: #0097ff;
    height: 10px;
  }

  .status-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75em;
    font-weight: 500;
  }

  .status-label {
    flex: 1;
    text-align: center;
  }

/* Status Badge*/

  .statusBadge {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 100px;
    border: 2px solid;
    font-weight: 600;
    font-size: 0.8rem;
    width: fit-content;
  }

  .statusIcon {
    width: 1.2rem;
    height: 1.2rem;
  }

  /* Color themes */
  .statusBadge.green {
    background-color: #4BB54340;
    color: #4BB543;
    border-color: #4BB543;
  }

  .statusBadge.orange {
    background-color: #FFA50040;
    color: #FFA500;
    border-color: #FFA500;
  }

  .statusBadge.good {
    background-color: #4BB543;
    color: #ffffff;
    border-color: #4BB543;
  }

  .statusBadge.bad {
    background-color: #FFA500;
    color: #ffffff;
    border-color: #FFA500;
  }

  .statusBadge.critical {
    background-color: #ff4d4d;
    color: #ffffff;
    border-color: #ff4d4d;
  }

  .statusBadge.loading {
    background-color: #eeeeee;
    color: #ffffff;
    border-color: #eeeeee;
  }

  .statusBadge.contrast {
    background-color: #ffffff;
    border-color: #ffffff;
  }

/**/

/* Countdowns */

  .countdownTimer {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    letter-spacing: 0.1em;
    color: #ffffff;
    display: inline-block;
    font-variant-numeric: tabular-nums;
  }

/**/

/* ZenAI */

  .summary-container {
    padding: 10px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    border-radius: 10px;
    background: #2a4057;
    font-weight: 200;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    cursor: pointer;
  }

  .summary-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 100px;
    transition: background-color 0.2s ease;
    gap: 5px;
    text-wrap-mode: nowrap;
  }

  .summary-logo {
    height: 1rem;
  }

  .summary-box {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-left: 3px solid;
    border-image: linear-gradient(to bottom, #0097ff, #F04282) 1;
    padding-left: 10px;
  }

  .summary-box.expanded {
    max-height: 500px; /* or auto with JS height calc */
  }

  .summary-content {
    font-size: 0.9rem;
    padding: 5px;
    font-weight: 300;
  }

  @media (max-width: 1000px) {
    .summary-container {
      flex-direction: column;
    }
  }

/**/

/* Pop Up Alerts */

  .popupAlert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    z-index: 2500;
    font-weight: bold;
    animation: popupAlertIn 0.2s linear, popupAlertOut 0.2s linear 3s forwards;
  }

  .popupAlert.error {
    background-color: #ff4d4d;
    color: #fff;
  }

  .popupAlert.success {
    background-color: #4BB543;
    color: white;
  }

  .popupAlert.warning {
    background-color: #FFA500;
    color: black;
  }

  .popupAlert.info {
    background-color: #ffffff;
    color: #333;
  }

  .popupAlertContent {
    display: flex;
    align-items: center;
    gap: 1em; 
  }

  .popupAlertIcon {
    width: 24px; 
    height: 24px;
    flex-shrink: 0;
  }

  /* entrance animation */
  @keyframes popupAlertIn {
    from {
      opacity: 1;
      transform: translateX(-50%) translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
  }

  /* exit animation */
  @keyframes popupAlertOut {
    from {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    to {
      opacity: 0;
      transform: translateX(-50%) translateY(-20px);
    }
  }

/**/