﻿/* === Global CLS Fixes === */

/* Ensure all forms are stable and take full width */
form {
    width: 100%;
    display: block;
    max-width: 100%;
    box-sizing: border-box;
    /*padding: 0 10px;*/
}

/* Stable layout for any form field groupings */
.form-group,
.form-row,
fieldset {
    min-height: 30px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

/* Placeholder space for charts/graphs to prevent jumps */
.change-graph-type,
.graph-container,
.chart-placeholder {
    width: 100%;
    height: 75px;
    min-height: 75px;
    background-color: #f9f9f9;
    overflow: hidden;
}

.change-graph-type {
    width: 97.5%;
}
/* Fix autocomplete dropdown shift */
.autocomplete-container,
#autocomplete-container {
    min-height: 40px;
    position: relative;
    overflow: visible;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 9999;
}

/* Prevent transition-based CLS */
* {
    transition: none !important;
}
