/* 
    Created on : 4 Jan 2026, 09:05:40
    Author     : timco
*/
/* colours.css */

:root {
    /* Primary */
    --blue-black: #102229;
    --darkest-teal: #1B4C5C;
    --off-white: #E0DEDC;

    /* Secondary */
    --mid-teal: #33788F;
    --aqua-marine: #64C6BD;
    --cloud: #A9BEC2;
    --cancel-grey: #6c757d;
    
    --bs-link-color-rgb: var(--blue-black) !important;
    
    --p-font-size: 12px;
    
    --border-radius: 4px;
}

body {
    font-family: Arial, sans-serif;
    margin: 24px;
    font-size: var(--p-font-size) !important;
}
h1 {
    margin-bottom: 4px;
}
h2 {
    margin-top: 32px;
    border-bottom: 2px solid #333;
    padding-bottom: 4px;
}
table {
    border: 0px solid #ccc;
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    table-layout: fixed;
}
th, td {
    border: 0px solid #ccc;
    padding: 5px;
    vertical-align: top;
}
th {
/*    width: 300px;*/
    background-color: #f3f3f3;
    text-align: left;
    cursor: pointer;
}
tr {
    cursor: pointer;
}

.image {
    max-width: 400px;
    max-height: 300px;
}
table.outer th, table.outer td{
        border: 1px solid #ccc;
}
.meta {
    color: #555;
    font-size: 0.9em;
}

.left {
    float:left;
}

.right {
    float:right;
}

/*label {
	display: ruby !important;
}*/
.mt-10 {
    margin-top: 3rem !important;
}

.spacer {
    margin-bottom: 7em;
}

.card {
    margin-bottom: 20px;
}
pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
}
.hidden {
    display: none;
}
       
.form-control {
    font-size: var(--p-font-size);
}

.actions-column {
    white-space: nowrap;
}

.users .users a,
.sites .sites a,
.dashboard .dashboard a,
.admin .admin a,
.logout .logout a {
        text-decoration: underline !important;
        font-weight:600;
}
#authPanel {
    max-width:30%;
}
@media (max-width: 900px) {    
    #authPanel {max-width:60%;}
}
@media (max-width: 768px) {
    #authPanel {max-width:80%;}
    .optional-column {display: none;}
    .tenant_logo_image {
        height:2rem;
    }
    #navMenu ul {
        font-size:1rem;
        display:grid !important;
        text-align: right;
    }
}

#header {margin-top: 3em;}

.tenant_logo_image {height: 3rem;}
.siteFormSectionClass {display:ruby;}

#navMenu {
    font-size: 2.0em;    
}

#navMenu a {
    color: var(--blue-black);
    text-decoration: none;
}
#navMenu ul {
    display:inline-flex;
    list-style-type: none ;
}

#navMenu li,
#navMenu li a {
    margin:5px;
    text-decoration: none;
    text-transform: uppercase;
}


/*#map { 
    position:relative;
    height: 400px;
    width:400px;
}*/

#map {
  width: 100%;
  height: 600px;
}
#searchPanel {
  margin-bottom: 1rem;
}
.search-input-wrapper {
    position: relative;
}

.search-input-wrapper input {
    padding-right: 2rem; /* space for the X */
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    display: none;
}

.search-clear-btn:hover {
    color: #dc3545; /* Bootstrap danger red */
}
.isCongested-block {
  position: relative;
  top: 100%;
  border:1px solid red;
  border-radius:4px;
  width:250px;
  background-color:rgb(255, 0, 0,0.3);
  font-size:14px;
  padding:10px;
}
.isCongested-block::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px;
  border-color: transparent transparent red;
}
.isCongested-icon {
  width:18px;
  text-align:center;
  background-color:darkred;
  color:white;
  font-weight:bold;
  font-size:2rem;
  margin-right: 0.5rem;
}



.accordion-header {
  margin-bottom: 0.5em !important;
  /*margin-top: 2em !important;*/
}

#errorContainer {
  position: relative;
  width: 60%;
  margin: auto;
  clear:both;
}   

#errorBlock {
  background: red;
  padding: 15px;
  border-radius: 5px;
  filter: alpha(opacity=30);
  /* IE */
  -moz-opacity: 0.3;
  /* Mozilla */
  opacity: 0.3;
  /* CSS3 */
  position: relative;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  box-shadow: 1px 1px 1px #aaaaaa;
  margin-top: 10px;
}
#errorText {
  position: absolute;
  color: red;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: large;
}
/*.contactForm {
    padding:2rem;
    border-radius: var(--border-radius);
}

.contact-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.contact-item {
    flex: 0 0 260px;
    display: inline-flex;
    padding: 0rem 2rem 0 0 !important;
}

.contactCard {
    display: inline-block !important;
    min-height: 10rem !important;
    min-width: 18rem !important;
    max-width: 18rem !important;
    padding: 1rem;
    min-height: 10rem !important;
    min-width: 17rem !important;
    max-width: 17rem !important;
    margin-bottom: 0;
    padding: 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contactCard a {
    text-decoration: none !important;
}*/

/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.contact-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.contact-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.contact-card-body {
    margin-bottom: 1rem;
}

.contact-detail {
    margin-top: 0.35rem;
    color: #555;
    font-size: 0.95rem;
}

.contact-notes {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

.contact-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

.userForm {
    width: 24rem;
    padding:2rem;
    border-radius: var(--border-radius);
}
.form__group {
    position: relative;
    height: 3rem;
    margin-bottom: 1.5rem;
}
.form__option {
    width: 10rem;
}

.form__label {
    position: relative;
    left: 0.3rem;
    top: 0.6rem;
    background: white;
    padding: 0 0.3rem;
    color: var(--mid-teal);
}
.form__text {
    height: 100%;        
    width: 100%;        
    border: 2px solid var(--darkest-teal);
    border-radius: 0.5rem;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    outline: none;
    background: none;
    padding: 1.25rem;
}

.form__text:hover {
    border-color: var (--mid-teal); 
}
.form__text:focus{
    border-color: var (--darkest-teal); 
}

#computedValues{
  border-radius: 4px;
/*  line-height: 5px;*/
/*  padding: 10px 0;*/
}
.computedForm__label {
    position: relative;
    left: 0.3rem;
    top: 1.7rem;
    background: white;
    padding: 0 0.3rem;
    color: var(--mid-teal);
}

.computedValue {
/*    margin-left: 10rem !important;
    width: 25rem !important;*/
}

.upload-container {
      width: 400px;
      padding: 20px;
      border: 1px solid #ccc;
  }

  progress {
      width: 100%;
      height: 20px;
  }

  .status {
      margin-top: 10px;
      font-size: 14px;
  }
  #filePicker {
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid #ccc;
      padding: 6px;
      width: 100%;
      cursor: pointer;
  }

  #fileName {
      flex-grow: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
  }

  #clearFile {
      background: none;
      border: none;
      color: red;
      font-size: 16px;
      cursor: pointer;
      display: none;
  }

  #clearFile:hover {
      font-weight: bold;
  }

.closeButton {
  border-radius: 50%;
  padding: 0.5em;
  width: 30px;
  height: 30px;
  border: 2px solid red;
  color: red;
  position: relative;
  float:right;
}
.closeButton:hover {
  border: 2px solid red;
  background-color: orange;
  color: #ffffff;
}
.closeButton::before {
  content: " ";
  position: absolute;
  display: block;
  background-color: red;
  width: 2px;
  left: 12px;
  top: 5px;
  bottom: 5px;
  transform: rotate(45deg);
}
.closeButton::after {
  content: " ";
  position: absolute;
  display: block;
  background-color: red;
  height: 2px;
  top:12px;
  left: 5px;
  right: 5px;
  transform: rotate(45deg);
}

.deleteButton {
  border-radius: 50%;
  padding: 0.5em;
  width: 30px;
  height: 30px;
  border: 2px solid red;
  color: red;
  position: relative;
  float:right;
}
.deleteButton:hover {
  border: 2px solid red;
  background-color: orange;
  color: #ffffff;
}
.deleteButton::before {
  content: " ";
  position: absolute;
  display: block;
  background-color: red;
  width: 2px;
  left: 12px;
  top: 5px;
  bottom: 5px;
  transform: rotate(45deg);
}
.deleteButton::after {
  content: " ";
  position: absolute;
  display: block;
  background-color: red;
  height: 2px;
  top:12px;
  left: 5px;
  right: 5px;
  transform: rotate(45deg);
}

.thumbnail {
    cursor: pointer;
}

.thumbnail--small {
    max-width: 50px;
    max-height: 50px;
    object-fit: scale-down;
    display: block;
    margin: auto;
}

.galleryImage {
    cursor: pointer;
}

.galleryImage--large {
    max-width: 600px;
    max-height: 600px;
    object-fit: scale-down;
    display: flex;
    margin: auto;
}

.global-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

button.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.floating-save {

    position: fixed;
    bottom: 2rem;
    right: 2rem;

    padding: 1rem 2rem;
    
    font-size: 16px;
    font-weight: 600;

    border: none;
    border-radius: 8px;

    background: #2e7d32;
    color: white;

    cursor: pointer;

    box-shadow: 0 6px 16px rgba(0,0,0,0.3);

    transform: translateY(120px);
    opacity: 0;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background 0.4s ease;

    z-index: 1000;
}
.floating-save.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-save:hover {
    background: #1b5e20;
}
.floating-save {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.floating-save.warning {
    background: #f9a825;
}

.floating-save.danger {
    background: #c62828;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(198,40,40,0.7); }
    70% { box-shadow: 0 0 0 12px rgba(198,40,40,0); }
    100% { box-shadow: 0 0 0 0 rgba(198,40,40,0); }
}

.floating-save.show {
    display: block;
    transform: scale(1);
}


.floating-cancel {

    position: fixed;
    bottom: 2rem;
    right: 15rem;

    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 600;

    border: none;
    border-radius: 8px;
    border-color: var(--cancel-grey);

    background: transparent;
    color: var(--cancel-grey);

    cursor: pointer;

    box-shadow: 0 6px 16px rgba(0,0,0,0.3);

    transform: translateY(120px);
    opacity: 0;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background 0.4s ease;

    z-index: 1000;
}
.floating-cancel.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cancel:hover {
    background: var(--cancel-grey);
    color: white;
}
.floating-cancel {
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.floating-cancel.warning {
    background: #f9a825;
}

.floating-cancel.danger {
    background: #c62828;
    animation: pulse 1.5s infinite;
}


.floating-cancel.show {
    display: block;
    transform: scale(1);
}



.status-panel {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.status-box {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 13px;

    border-radius: 6px;
    border: 1px solid #ccc;

    background: #eee;
    color: #333;

    cursor: help;
}

.status-red {
    background: #d32f2f;
    color: white;
}

.status-green {
    background: #2e7d32;
    color: white;
}

.status-orange {
    background: #f9a825;
    color: black;
}

.status-clear {
    background: transparent;
}
.error {
    border:1px solid red;
}
fieldset {
    margin-bottom:20px;
}
.userForm .form-label {
    font-weight: 500;
}

.userForm .card {
    border-radius: 10px;
}
/* Status button disabled state */
.status-box:disabled,
.status-box.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;           /* prevents clicks */
    filter: grayscale(30%);
}

/* Optional: make it look more obviously disabled */
.status-box.disabled {
    box-shadow: none;
}