/* 
    Created on : 4 Jan 2026, 09:05:40
    Author     : timco
*/
/* colours.css */

:root {
    /* Primary */
    --helisite-dark-navy: #062A3F;
    --helisite-blue-black: #102229;
    --helisite-darkest-teal: #1B4C5C;
    --helisite-off-white: #e9e8e7;
    --helisite-off-white-saved: #E0DEDC;
    --helisite-cream: #E9E4E3;
    --helisite-cloud: #A9BEC2;

    --helisite-mid-teal: #33788F;
    --helisite-aqua-marine: #64C6BD;
    --cancel-grey: #6c757d;


    --helisite-button-green: #62AB93;
    --helisite-button-orange: #F79049;
    --helisite-button-red: #CB6354;
    --helisite-button-blue: var(--helisite-mid-teal);

    --helisite-map-button-default: var(--helisite-dark-navy);
    --helisite-map-button-hover: var(--helisite-blue-black);

    --mid-blue: #094863;
    --mid-green: #259C7F;
    --dark-brown: #2D2823;
    --light-mid-brown: #ECE9E2;
    --helisite-mustard: #FDD501;

    --hscolor-bg: #456079;
    --hscolor-header-text: var(--helisite-mustard);

    --hscolor-section-bg: #5B6F86;

    --hscolor-section-input-bg: var(--helisite-off-white);
    --hscolor-section-input-text: #456079;
    --hscolor-section-input-label: var(--helisite-off-white);

    --heli-text: var(--helisite-dark-navy);
    --heli-text-light: var(--hscolor-section-input-label);
    --heli-text-muted: #062A3F;
    /* Best all-round muted version */
    --heli-text-muted-light: #6b8aa9;
    --heli-text-muted-dark: #3a5a7a;


    /* ============= TABLES =============  */
    --hs-pagination-color: var(--heli-text);

    --hs-button-red: var(--helisite-button-red);
    --hs-button-orange: var(--helisite-button-orange);
    --hs-button-green: var(--helisite-button-green);
    --hs-button-blue: var(--helisite-button-blue);


    --bs-link-color-rgb: var(--helisite-blue-black) !important;
    --bs-accordion-border-width: 1;
    --bs-accordion-border-color: var(--helisite-blue-black);
    --bs-accordion-color: var(--helisite-blue-black);
    --bs-accordion-bg: transparent;
    --bs-btn-hover-color: var(--helisite-mustard);

    --bs-pagination-font-size: var(--h3-font-size) !important;

    --p-font-size: 12px;

    --icon-btn-size: 1rem;
    --icon-status-btn-text-size: 0.7rem;
    --icon-margin: 0.3rem;

    --border-radius: 4px;



    --baseline: 8px;
    --max-width: 1400px;

    --h1-font-size: 4rem;
    --h1-font-size-media: 3rem;
    --h1-font-weight: 800;
    --h1-line-height: 1.2;
    --h1-line-height-media: 1.2;


    --h2-font-size: 1.5rem;
    --h2-font-size-media: 1rem;
    --h2-font-weight: 700;
    --h2-line-height: 1.2;
    --h2-line-height-media: 1.2;

    --h3-font-size: 1rem;
    --h3-font-size-media: 1.2rem;
    --h3-font-weight: 400;
    --h3-line-height: 1.2;
    --h3-line-height-media: 1.2;

    --p-font-size: 1rem;
    --p-line-height: 2;
    --p-font-weight: 200;
    --p-font-weight-bold: 800;

    --ul-font-size: 0.6rem;
    --ul-line-height: 2;
    --ul-font-weight: 500;
}

.spaced {
    margin-right: var(--icon-margin);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px;
    color: var(--dark-brown);
    line-height: 1.5;
}

i {
    padding: 0 0.1rem;
}

h1 {
    font-size: var(--h1-font-size);
    font-weight: var(--h1-font-weight);
    line-height: var(--h1-line-height);
    color: var(--dark-navy);
}

h2 {
    font-size: var(--h2-font-size);
    font-weight: var(--h2-font-weight);
    line-height: var(--h2-line-height);
    color: var(--dark-navy);
    /* border-bottom: 1px solid var(--helisite-blue-black); */
    padding-bottom: 4px;
}

h3 {
    font-size: var(--h3-font-size);
    font-weight: var(--h3-font-weight);
    line-height: var(--h3-line-height);
    color: var(--dark-navy);
    text-align: left;
    margin: 1rem;
}

p {
    font-size: var(--p-font-size);
    font-weight: var(--p-font-weight);
    line-height: var(--p-line-height);
    color: var(--dark-navy);
    text-align: left;
    margin: 1rem;
}

ul:not(.navbar) {
    color: var(--mid-green);
    font-size: var(--ul-font-size);
    font-weight: var(--ul-font-weight);
    line-height: var(--ul-line-height);
}


.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: calc(var(--baseline) * 4);
    padding: 0 calc(var(--baseline) * 8);
    max-width: var(--max-width);
    margin: auto;
}

.col-12 {
    grid-column: span 12;
}

.col-9 {
    grid-column: span 9;
}

.col-6 {
    grid-column: span 6;
}

.col-4 {
    grid-column: span 4;
}

.col-3 {
    grid-column: span 3;
}

.center {
    text-align: center;
}

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;
}

.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;
}

.defaultTextLabel p {
    color: var(--helisite-off-white);
    font-size: var(--h3-font-size);
}

/* ====================== HELISITE PANELS & CARDS ====================== */
.heli-panel {
    background-color: var(--hscolor-bg);
    border: 1px solid var(--heli-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: var(--heli-text);
    padding: 0.7rem;
    margin-bottom: 1.5rem;

}

.heli-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    justify-content: space-between;
}

.heli-panel-header h3 {
    color: var(--hscolor-header-text);
    margin: 0;
}

.heli-panel-section {
    background-color: var(--hscolor-section-bg);
    padding: 0.5rem;
    margin-top: 1rem;
}

.heli-panel-footer {
    background-color: var(--hscolor-bg);
    border: 1px solid var(--heli-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: var(--heli-text-light);
    padding: 1rem 0rem;

    display: flex;
    justify-content: space-between;
    /* 🔑 spreads them evenly */
    align-items: center;
    gap: 0.5rem;
}

.heli-panel-footer button {
    flex: 1;
    /* 🔑 each button takes equal width */
    text-align: center;
    font-size: small;
}

.heli-action-btn {
    background-color: transparent;
    color: var(--heli-text-light);
    display: inline-flex;
    border: 0;
    font-size: var(--icon-btn-size);
    /* margin: auto; */
    padding: 0.2rem 0.4rem;

}

.heli-action-btn:hover {
    color: var(--bs-btn-hover-color);
}

.heli-action-btn.disabled {
    pointer-events: none;
    opacity: 0.4;
}



.heli-btn-action-red {
    background-color: var(--helisite-off-white);
    color: var(--heli-text);
    border-radius: 0px;
    border: 1px solid var(--helisite-off-white);
    padding: 0.5rem;
    font-size: var(--h4-font-size);
}

.heli-btn-action-red:hover {
    background-color: var(--hs-button-red);
    color: var(--helisite-off-white) !important;
    border-radius: 0px;
    border: 1px solid var(--helisite-off-white);
}

.heli-btn-action-red:selected {
    background-color: var(--hs-button-red);
    color: var(--helisite-off-white);
    border-radius: 0px;
    border: 1px solid var(--helisite-off-white);
}



.heli-btn-action-green {
    background-color: var(--helisite-off-white);
    color: var(--heli-text);
    border-radius: 0px;
    border: 1px solid var(--helisite-off-white);
    padding: 0.5rem;
    font-size: var(--h4-font-size);
}

.heli-btn-action-green:hover {
    background-color: var(--hs-button-green);
    color: var(--helisite-off-white) !important;
    border-radius: 0px;
    border: 1px solid var(--helisite-off-white);
}

.heli-btn-action-green.active {
    background-color: var(--hs-button-green);
    color: var(--helisite-off-white);
    border-radius: 0px;
    border: 1px solid var(--helisite-off-white);
}


.heli-btn-edit {
    color: var(--hs-button-blue) !important;
    border: 1px solid var(--hs-button-blue) !important;
}

.heli-btn-delete {
    color: var(--hs-button-red) !important;
    border: 1px solid var(--hs-button-red) !important;
}

.heli-btn-save {
    color: var(--hs-button-green) !important;
    border: 1px solid var(--hs-button-green) !important;
}

.heli-btn-cancel {
    color: var(--cancel-grey) !important;
    border: 1px solid var(--cancel-grey) !important;
}

.heli-btn-view {
    color: var(--helisite-map-button-hover) !important;
    border: 1px solid var(--helisite-map-button-hover) !important;
    pointer-events: all;
}

.heli-btn-view:hover {
    /* color: var(--helisite-map-button-default) !important;
    border: 1px solid var(--helisite-map-button-default) !important; */
    color: var(--helisite-off-white) !important;
    border: 1px solid var(--helisite-map-button-default) !important;
    background-color: var(--helisite-mid-teal);
}


.heli-btn-view-selected {
    color: var(--helisite-off-white) !important;
    background-color: var(--helisite-map-button-default);
    pointer-events: none;
}

.heli-btn-view-selected:hover {
    color: var(--helisite-off-white) !important;
    background-color: var(--helisite-map-button-default);
}

.heli-btn-edit:hover {
    color: var(--helisite-off-white) !important;
    background-color: var(--hs-button-blue);
}

.heli-btn-delete:hover {
    color: var(--helisite-off-white) !important;
    background-color: var(--hs-button-red);
}

.heli-btn-save:hover {
    color: var(--helisite-off-white) !important;
    background-color: var(--hs-button-green);
}

.heli-btn-cancel:hover {
    color: var(--helisite-off-white) !important;
    background-color: var(--cancel-grey);
}

.heli-btn-contact {
    font-size: x-large !important;
}

/* .heli-panel-footer button:hover {
  color: var(--bs-btn-hover-color);
} */

.heli-header-action {
    background: transparent;
    border: 0;
    color: var(--heli-text-light);
    font-size: var(--h3-font-size);
}

/* === PAGE HEADER TITLES === */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--helisite-blue-black);
    margin-bottom: 2rem;
}

.page-header h2 {
    margin: 0;
    flex: 1;
}

#noContacts,
#noSurveys {
    margin-left: 0.3rem;
    font-weight: 200;
}

/* === MAP / LIST Button Group === */

.btn-group {
    flex: 1;
    display: inline;
    text-align: right;
}




/* === Floating Label Group === */
.form-group {
    position: relative;
    padding: 0.1rem;
}

.form-group label {
    position: absolute;
    left: 0.3rem;
    padding: 0 0.35rem;
    color: var(--hscolor-section-input-label);
    background-color: var(--hscolor-section-bg);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    margin-top: 1.5rem;

}

/* Make label mustard ONLY while the input is focused */
.form-group input:focus+label {
    color: var(--helisite-mustard);
}

/* Label returns to normal when not focused */
.form-group label {
    color: var(--hscolor-section-input-label);
}


/* Input styling */
.form-group input {
    width: 100%;
    background-color: var(--hscolor-section-input-bg);
    color: var(--hscolor-section-input-text);
    border-radius: var(--border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-group input:focus {
    color: var(--hscolor-section-input-text);
    /* #456079 */
    border-color: var(--heli-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* When has value but NOT focused → use muted color */
.form-group input:not(:focus):not(:placeholder-shown) {
    color: var(--heli-text-muted);
}


/* TextArea styling */
.form-group textarea {
    width: 100%;
    background-color: var(--hscolor-section-input-bg);
    color: var(--hscolor-section-input-text);
    border-radius: var(--border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-group textarea:focus {
    color: var(--hscolor-section-input-text);
    /* #456079 */
    border-color: var(--heli-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

/* When has value but NOT focused → use muted color */
.form-group textarea:not(:focus):not(:placeholder-shown) {
    color: var(--heli-text-muted);
}

.form-actions {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.form-control {
    font-size: var(--p-font-size);
}

.form-check {
    display: flex;
    align-items: center;
    border: 0;
    border-radius: var(--border-radius);
    color: var(--helisite-off-white);
}

.form-check-radio {
    padding-top: 1rem !important;
    padding-left: 3.5rem !important;
}

.form-check-input {
    margin-right: 0.4rem;
}

.form-label {
    background: var(--hscolor-section-bg);
    color: var(--hscolor-section-input-label);
    padding-left: 0.3rem;
    font-weight: var(--h2-font-weight);
}

.actions-column {
    white-space: nowrap;
}

/* ================= NAV LINKS ================= */
.users .users a,
.sites .sites a,
.dashboard .dashboard a,
.admin .admin a,
.logout .logout a {
    text-decoration: none !important;
    font-weight: 600;
}

/* ================= NORMAL LINKS ================= */
.normal-link {
    text-decoration: none !important;
}

.normal-link:hover {
    color: var(--helisite-mustard);
}

#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;
    }
}


.context-nav {
    /* background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px; */
    /* padding: 8px 16px; */
    /* min-height: 48px; */
    margin: 0;
}

.context-nav .breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.context-nav .breadcrumb-item a {
    color: var(--heli-text);
    text-decoration: none;
}

.context-nav .breadcrumb-item a:hover {
    color: var(--helisite-mid-teal);
    text-decoration: none;
}

.context-nav .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* Optional: subtle hover effect on back buttons */
.context-nav .btn-outline-secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}
#header {
    margin-top: 3em;
}

.tenant_logo_image {
    height: 3rem;
}

.siteFormSectionClass {
    display: ruby;
}

#navMenu {
    font-size: 1.3rem;
}

#navMenu a {
    color: var(--helisite-blue-black);
    text-decoration: none;
}
#navMenu a:hover {
    color: var(--helisite-mid-teal);
    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;
}


/* ================== SEARCH BOX ================== */
#searchPanel {
    margin-bottom: 1rem;
    flex: 1;
}

.search-input-wrapper {
    position: relative;

    width: 100%;
}

.search-input-wrapper input {
    /* space for the X */
    padding-right: 2rem;
    width: 100%;
    height: 38px;
    border-radius: var(--border-radius);
}

.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: var(--helisite-button-red);
}

.isCongested-block {
    position: relative;
    top: 100%;
    border: 1px solid var(--helisite-button-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 transparentvar(--helisite-button-red);
}

.isCongested-icon {
    width: 18px;
    text-align: center;
    background-color: var(--helisite-button-red);
    color: var(--helisite-off-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: var(--helisite-button-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 var(--cancel-grey);
    margin-top: 10px;
}

#errorText {
    position: absolute;
    color: var(--helisite-button-red);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: large;
}

.contact-items p,
.survey-items p {
    color: var(--heli-text-light);
}

.card-header h3 {
    color: var(--heli-text-light);
}

#contactForm {
    display: flex;
    flex-direction: column;
    height: 100%;
}



/* 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;
}

/* =================== TABLES =================== */
.table-pagination {
    overflow-x: auto;
    white-space: nowrap;
}

.page-link {
    font-size: var(--ul-font-size) !important;
    color: var(--helisite-blue-black);
}

.active>.page-link,
.page-link.active {
    color: var(--helisite-mustard);
    background-color: var(--heli-text);
    border-color: var(--heli-text)
}

.page-link:hover {
    z-index: 2;
    color: var(--helisite-off-white);
    background-color: var(--helisite-button-green);
    border-color: var(--bs-helisite-button-green);
}

.table-per-page {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    display: block;
    width: 100%;
    padding: .5rem 2.25rem .5rem .75rem;
    /* font-size: 1rem; */
    /* font-weight: 400; */
    /* line-height: 1.5; */
    /* color: var(--bs-body-color); */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.showingCaption {
    position: absolute;
    color: var(--hscolor-section-input-label);
    font-size: var(--h4-font-size);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.form-select {
    width: auto;
    font-size: var(--h4-font-size);
    margin-top: 1.5rem;
}

/* Survey Grid Layout */
.survey-table {
    width: 100%;
    background-color: var(--helisite-off-white);
    color: var(--heli-text);
}

.survey-header,
.survey-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr 80px;
    align-items: center;
    padding: 4px 6px;
}

.survey-header {
    font-weight: 600;
    border-bottom: 1px solid #ccc;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.7;
}

.survey-row {
    border-bottom: 1px solid #eee;
}

.survey-row:hover {
    background: var(--heli-text);
    color: var(--helisite-off-white);
}

.col-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
}

.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(--helisite-mid-teal);
}

.form__label-checkbox {
    position: relative;
    left: 0.3rem;
    background: white;
    padding: 0 0.3rem;
    color: var(--helisite-mid-teal);
}

.form__text {
    height: 100%;
    width: 100%;
    border: 2px solid var(--helisite-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 (--helisite-mid-teal);
}

.form__text:focus {
    border-color: var (--helisite-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(--helisite-mid-teal);
}

.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: var(--h3-font-size);
    font-weight: var(--h3-font-weight);

    border: none;
    border-radius: var(--border-radius);

    background: var(--helisite-button-green);
    color: var(--helisite-off-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: var(--helisite-off-white);
    color: var(--hs-button-green);
}

.floating-save {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.floating-save.warning {
    background: var(--hs-button-orange);
    color: var(--helisite-off-white);
}

.floating-save.danger {
    background: var(--hs-button-red);
    color: var(--helisite-off-white);
    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: var(--h3-font-size);
    font-weight: var(--h3-font-weight);

    border: 1 var(--cancel-grey);
    border-radius: var(--border-radius);

    background: var(--helisite-off-white);
    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: var(--helisite-off-white);
}

.floating-cancel {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.floating-cancel.warning {
    background: var(--hs-button-orange);
    color: var(--helisite-off-white);
}

.floating-cancel.danger {
    background: var(--hs-button-red);
    color: var(--helisite-off-white);
    animation: pulse 1.5s infinite;
}


.floating-cancel.show {
    display: block;
    transform: scale(1);
}



.status-panel {
    display: flex;
    gap: 0.5rem;
}



.status-red {
    background: var(--hs-button-red) !important;
    color: var(--heli-text-light) !important;
}

.status-green {
    background: var(--hs-button-green) !important;
    color: var(--heli-text-light) !important;
}

.status-orange {
    background: var(--hs-button-orange) !important;
    color: var(--heli-text-light) !important;
}

.status-clear {
    background: transparent !important;
}

.error {
    border: 1px solid red;
}

fieldset {
    margin-bottom: 20px;
}

.userForm .form-label {
    font-weight: 500;
}

label.option-label {
    position: relative !important;
}

input.option-input {
    width: auto;
    margin: 0;
}

.userForm .card {
    border-radius: 10px;
}

.status-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 0.7rem 0.3rem;
    border: 0;
    background: var(--hscolor-section-input-bg);
    color: var(--heli-text);
    cursor: help !important;
    font-size: var(--icon-status-btn-text-size);
}

/* 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;
}


.status-btn-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.status-btn-icon {
    text-align: center;
    flex-shrink: 0;
    margin-right: var(--icon-margin);
}

.status-btn-text {
    text-align: left;
    flex: 1;
}

.status-horizontal .status-box {
    justify-content: center;
}

.status-horizontal .status-btn-row {
    justify-content: center;
    display: block;
    /* gap: 1rem; */
}

.status-horizontal .status-btn-icon {
    /* margin: 0.1rem; */
    width: auto;
}

.status-horizontal .status-btn-text {
    text-align: left;
}

.status-vertical .status-box {
    justify-content: flex-start;
}

.status-vertical .status-btn-row {
    justify-content: flex-start;
}

.status-vertical .status-btn-icon {
    width: 20px;
    /* margin: 0.1rem; */
    text-align: center;
    flex-shrink: 0;
}

.status-vertical .status-btn-text {
    text-align: left;
}


.label-overlay {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    /* pointer-events: none; */
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.label-overlay.selected {
    opacity: 0.7;
    border: 1px solid rgba(220, 53, 69, 0.8);
}

.label-overlay.selected::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    /* pointer-events: none; */
}

.label-dark {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 4px;
}

.label-dark-bordered {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 1px solid #00BFFF;
    border-radius: 4px;
}

.label-overlay.selected {
    background: #00BFFF;
    border: 1px solid #dc3546;
}


/* =====================================================
   LABEL SYSTEM (MAP OVERLAYS + LIST PANEL + MODAL)
   ===================================================== */

.list-group-item.active {
    background-color: var(--hs-button-green);
}

/* =========================
   Map Label Overlay
   ========================= */

.label-overlay {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.15s ease, transform 0.15s ease;
    user-select: none;
    cursor: pointer;
}

.label-overlay.selected {
    opacity: 0.7;
    border: 1px solid rgba(220, 53, 69, 0.8);
}

.label-overlay.selected::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

/* Dark styles */
.label-dark {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 4px;
}

.label-dark-bordered {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 1px solid #00BFFF;
    border-radius: 4px;
}

/* Selection override (kept but clarified priority) */
.label-overlay.selected {
    background: #00BFFF;
    border: 1px solid #dc3546;
}

/* =========================
   Label Modal
   ========================= */

.label-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-label-transparent {
    background-color: transparent !important;
    color: var(--heli-text) !important;
}

.label-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.label-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    /* keeps "Enter Obstacle Height" on one line */
}

/* Modal inputs */
.label-modal-content input,
.label-modal-content select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
}

/* Modal buttons */
.label-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.label-modal-content .buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.label-modal-content button {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.label-modal-danger {
    background: var(--helisite-button-red);
    color: var(--helisite-off-white);
    border-radius: 4px;
}

.label-modal-warning {
    background: var(--helisite-button-orange);
    color: var(--helisite-off-white);
    border-radius: 4px;
}

.label-modal-info {
    background: var(--heli-text);
    color: var(--helisite-off-white);
    border-radius: 4px;
}

/* =========================
   Layer Panel
   ========================= */

#layerList li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Label text */
#layerList li span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

/* Controls */
#layerList li>div {
    flex: 0 0 auto;
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Compact buttons */
#layerList button {
    line-height: 1;
    padding: 2px 6px;
    font-size: 0.8rem;
}

/* Visibility toggle state */
.layer-hidden button.visibility-toggle {
    opacity: 0.4;
    filter: grayscale(100%);
    position: relative;
}

/* Optional red strike-through overlay */
.layer-hidden button.visibility-toggle::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(220, 53, 69, 0.35);
    border-radius: 4px;
}

/* Optional stronger visual */
.layer-hidden {
    opacity: 0.6;
}


/* ================ Google MAPS POPUP and overrides ===================== */
/* .gm-style-iw-d {
    margin-right: 1.5rem !important;
}
.gm-ui-hover-effect {
    width: 16px !important;
    height: 16px !important;
} */
.heli-infowindow {
    font-size: 14px;
    font-weight: 600;
    color: var(--heli-text-light);
    padding: 4px 4px 4px 8px;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.heli-popup-container {
    position: absolute;
    transform: translate(-50%, -100%);
    z-index: 1000;
}

.heli-popup-anchor {
    position: relative;
}

.heli-popup-bubble {
    background: var(--helisite-off-white);
    border-radius: var(--border-radius);
    padding: 0.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    min-width: 160px;
}

/* little pointer */
.heli-popup-bubble::after {
    content: "";
    position: absolute;
    bottom: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--helisite-off-white) transparent transparent transparent;
}

.popup-title {
    color: var(--heli-text);
    font-size: var(--h3-font-size);
    font-weight: var(--h2-font-weight);
}

.popup-sub {
    color: var(--helisite-blue-black);
    font-size: var(--h3-font-size);
    font-weight: var(--h2-font-weight);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-actions {
    /* display: flex; */
    justify-content: space-between;
    margin-left: 0.7rem;
    gap: 4px;
}

.popup-actions button {
    flex: 1;
    font-size: 0.7rem;
}

.popup-close {
    position: absolute;
    /* 🔑 this is what you're missing */
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.08);
}