.side-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background: #f6f7f8;
    border-right: 3px solid rgb(197, 196, 196);
    transition: transform 0.25s ease;
    z-index: 1200;
}

#side-panel-content {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (max-width: 600px) {
    .sidepanel {
        width: 70%;
    }
}

.sidepanel-overlay { /* Materialize automatically dims the screen when the menu is open using an overlay, which eats clicks */
    pointer-events: none; /* Allow clicks to pass through the ovelay(allows you to still drag the map when the menu is open)*/
    background-color: rgb(0, 0, 0, 0.2); /* Default feels too dark, so I just lower the opacity a bit*/
}

.panelBanner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1c74e9;
    gap: 0.5em;
    padding: 0 0.75em 0 0.5em;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

#banner-text{
    display: flex;
    align-items: center;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #f6f7f8;
    letter-spacing: 0.5px;
}

.logo-container{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1em;
    gap: 1em;
}

.logo-container img {
    height: 11vh;
    padding: 0.75em;
}

.logo-container span{
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 14.5px;
    line-height: 1.4;
    font-weight: bold;
    word-wrap: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.menu-panel {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    gap: 2em;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.menu-panel::-webkit-scrollbar {
    display: none;
}

.menu-item {
    display:flex;
    justify-content: left;
    align-items: center;
    padding: 1em 1em 1em 1.75em;
    gap: 1em;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 17px;
}

.menu-item:hover {
  background-color: #eeeeee;
  cursor: pointer;
}

.hidden {
    display: none; /* This is just a class that will be dynamically added to/removed from elements to hide them */
}

.auth-form-container {
    padding: 10px 28px 16px 28px;
}

.text-input-group {
    margin-bottom: 12px;
}

.field-label {
    display: block;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.text-field {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border-radius: 6px;
    border: 1.5px solid rgba(28, 117, 233, 0.4);
    background: #fff;
    overflow:hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-field input,
.text-field select,
.text-field option,
.text-field textarea,
.text-field input[type="text"],
.text-field input[type="number"],
.text-field input[type="password"] {
    flex: 1;
    border: none;
    border-bottom: none;
    outline: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 14px;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #0f172a;
    margin: 0;
    height: auto;
    box-shadow: none;
    box-sizing: border-box;
    width: 100%;
}

.text-field input::placeholder {
    color: #94a3b8;
}

.text-field:focus-within {
    border-color: #1c74e9;
    box-shadow: 0 0 0 2px rgba(28, 116, 233, 0.15);
}

.text-field input:focus,
.text-field input[type="text"]:focus,
.text-field input[type="password"]:focus,
.text-field input[type="text"]:focus:not([readonly]),
.text-field input[type="password"]:focus:not([readonly]),
.text-field input[type="text"].valid,
.text-field input[type="password"].valid,
.text-field input[type="text"].invalid,
.text-field input[type="password"].invalid {
    border-bottom: none;
    box-shadow: none;
}

.text-field.autocomplete-container{
    overflow: visible;
}

.auth-password-wrapper {
    position: relative;
}

.auth-password-wrapper input {
    padding-right: 40px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease;
}

.auth-password-toggle:hover {
    color: #64748b;
}

.auth-btn {
    width: 100%;
    padding: 9px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: opacity 0.2s ease;
    margin-top: 4px;
}

.auth-btn i {
    font-size: 18px;
}

.auth-btn-login {
    background: #1c74e9;
    color: white;
}

.auth-btn-login:hover,
.auth-btn-login:focus,
.auth-btn-login:active {
    background: #1c74e9;
    opacity: 0.85;
}

.auth-btn-logout {
    color: #ef4444;
    border: 1px solid #fecaca;
    background: #fef2f2;
}

.auth-btn-logout:hover {
    background: #fee2e2;
}

.pdf-btn-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-btn-secondary {
    background: transparent;
    color: #1c74e9;
    border: 1px solid #1c74e9;
}

.pdf-btn-secondary:hover,
.pdf-btn-secondary:focus,
.pdf-btn-secondary:active {
    background: rgba(28, 116, 233, 0.08);
    opacity: 1;
}

summary.menu-item,
summary.menu-sub-item {
    list-style: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

summary.menu-sub-item {
    padding: 0.4em 0.5em 0.4em 1em;
    border-radius: 6px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

summary.menu-sub-item:hover {
    background-color: #e7e7e7;
    box-shadow: 0 1px 4px rgba(28, 116, 233, 0.15);
    transform: translateX(3px);
}

summary.menu-item::-webkit-details-marker,
summary.menu-sub-item::-webkit-details-marker {
    display: none;
}

.chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
}

details[open] > summary .chevron {
    transform: rotate(180deg);
}

.details-content-wrapper {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.details-inner {
    margin-bottom: 0.5em;
}

.header-checkbox,
.child-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}
.header-checkbox {
    margin: 0.5em 0.5em 0.5em 1.75em;
}

/* Checkmark (shown when checked) */
.header-checkbox::after,
.child-checkbox::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 0px;
    width: 7px;
    height: 13px;
    border: solid #1c74e9;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-checkbox:checked::after,
.child-checkbox:checked::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}

/* X (shown when unchecked) */
.header-checkbox::before,
.child-checkbox::before {
    content: '\00d7';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 28px;
    font-weight: 400;
    color: #1c74e9;
    opacity: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    line-height: 1;
}

.header-checkbox:checked::before,
.child-checkbox:checked::before {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* Dash for header checkbox when some (but not all) children are off */
.header-checkbox.indeterminate::before {
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 14px;
    height: 2.5px;
    background: #1c74e9;
    border-radius: 1px;
    font-size: 0;
    opacity: 1;
}

.header-checkbox.indeterminate::after {
    transform: rotate(45deg) scale(0);
    opacity: 0;
}

.header-checkbox-label {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 2.5em 0 4em;
    margin-bottom: 1em;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5em 1em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.filter-item:hover {
    background-color: #e7e7e7;
    box-shadow: 0 1px 4px rgba(28, 116, 233, 0.15);
    transform: translateX(3px);
}

.filter-label {
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    flex-grow: 1;
    user-select: none;
}

.divider {
    height: 1.1px;
    border: none;
    background-color: #c5c4c4;
    width: 100%;
    margin: 0.25em 0;
}