﻿
@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-Thin.woff2") format("woff2");
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-ExtraLight.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-Light.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-Regular.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-Medium.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-SemiBold.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Heebo";
    src: url("../fonts/Heebo-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
}

:root {
    --menu-chrome-bg: #2d7a2d;
    --menu-chrome-fg: #ffffff;
    --menu-chrome-divider: rgba(255,255,255,0.28);
    --menu-chrome-hover-bg: #ffffff;
    --menu-chrome-hover-fg: #2d7a2d;
    --menu-chrome-icon-filter: brightness(0) invert(1);
    --menu-chrome-hover-icon-filter: brightness(0);
}

.theme-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 3px;
}

.theme-swatch-button {
    border: 2px solid transparent;
    border-radius: 16px;
    background: #fff;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    margin: 0;
    cursor: pointer;
}

.theme-swatch-button:hover,
.theme-swatch-button:focus-visible {
    background: #eef3e8;
}

.theme-swatch-button.is-selected {
    border-color: #1c6d35;
    box-shadow: 0 0 0 3px rgba(28, 109, 53, 0.12);
}

.theme-swatch-chip {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.focal-point-grid {
    grid-template-columns: repeat(3, 1.5em);
    justify-content: start;
}

.focal-point-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5em;
    width: 1.5em;
    padding: 0;
    border-radius: 0.65em;
    outline: none;
    cursor: pointer;
}

.theme-swatch-button.focal-point-button {
    border-color: transparent;
    box-shadow: none;
}

.theme-swatch-button.focal-point-button.is-selected {
    border-color: transparent;
    box-shadow: none;
}

.focal-point-button:hover,
.focal-point-button:focus-visible {
    background: transparent;
}

.focal-point-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(28, 109, 53, 0.18);
}

.focal-point-button__dot {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: linear-gradient(180deg, #fff 0%, #eef3e8 100%);
}

.focal-point-button.is-selected .focal-point-button__dot {
    background: linear-gradient(180deg, #dcebd6 0%, #9cc58c 100%);
    border-color: #1c6d35;
}

.focal-point-button:hover .focal-point-button__dot,
.focal-point-button:focus-visible .focal-point-button__dot {
    background: linear-gradient(180deg, #f5f8f2 0%, #dde9d7 100%);
}

.focal-point-button.is-selected:hover .focal-point-button__dot,
.focal-point-button.is-selected:focus-visible .focal-point-button__dot {
    background: linear-gradient(180deg, #dcebd6 0%, #9cc58c 100%);
}

body {
    font-family: "Heebo", sans-serif;
    max-width: 100%;
    margin: 0;
    padding: 0;
    --project-color-1: #4CAF50;
    --project-color-2: #2d7a2d;
}

:dir(rtl) {
    direction: rtl;
}

* {
    font-family: inherit;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

input, select, textarea, button {
    display: block;
    margin: 10px 0;
    width: 100%;
    padding: 8px;
    font-size: 1rem;
}

button {
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
}

button:hover {
    background-color: #45a049;

}

.btn {
    padding: 8px;
    font-size: 1rem;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    text-align: center;
}

.btn:hover {
    background-color: #45a049;
}

.chip_selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.chip_selector__chip {
    width: auto;
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(28, 109, 53, 0.18);
    background: #ffffff;
    color: #234129;
    font-weight: 500;
    line-height: 1.2;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.chip_selector__chip:hover,
.chip_selector__chip:focus-visible {
    background: #eef5eb;
}

.chip_selector__chip.is-selected {
    background: linear-gradient(135deg, #1c6d35 0%, #4caf50 100%);
    border-color: #1c6d35;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(28, 109, 53, 0.18);
}

.field_hint,
.field_error {
    margin-top: 8px;
    font-size: 0.92rem;
}

.field_hint {
    color: #536453;
}

.field_error {
    color: #a22d16;
}

.project_form_wrapper {
    width: min(100%, 900px);
    max-width: 900px;
    margin: 0 auto;
}

.project_form_row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 720px) {
    .project_form_row {
        grid-template-columns: 1fr;
    }
}

.country_combobox {
    position: relative;
}

.country_combobox__list {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 4px);
    max-height: 280px;
    overflow: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(28, 109, 53, 0.12);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(27, 56, 30, 0.12);
    z-index: 500;
}

.country_combobox__option {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #234129;
    text-align: start;
}

.country_combobox__option:hover,
.country_combobox__option:focus-visible,
.country_combobox__option.is-active {
    background: #eef5eb;
}

.country_combobox__empty {
    padding: 10px 12px;
    color: #536453;
    text-align: start;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
}

.primary-action {
    background: linear-gradient(135deg, #1f6c37 0%, #4caf50 100%);
    color: #fff;
    border: none;
}

.secondary-action {
    background: #fff;
    color: #1f4f2b;
    border: 1px solid rgba(31, 79, 43, 0.14);
    box-shadow: 0 10px 24px rgba(26, 55, 30, 0.08);
}

.danger-lite {
    color: #8e2b18;
}

.new-project-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(76, 175, 80, 0.10), transparent 28%),
        linear-gradient(180deg, #f7fbf3 0%, #eef5eb 100%);
}

.new-project-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 48px;
    display: grid;
    gap: 24px;
}

.new-project-progress,
.new-project-stage-shell {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 79, 43, 0.08);
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(36, 67, 41, 0.08);
}

.new-project-progress {
    padding: 22px 24px;
}

.new-project-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.new-project-progress__eyebrow {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: #5e705c;
}

.new-project-progress__title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: #1d3b22;
}

.new-project-progress__caption {
    margin: 0;
    max-width: 420px;
    color: #556555;
    text-align: start;
}

.new-project-progress__track {
    width: 100%;
    height: 10px;
    background: #e2ebde;
    border-radius: 999px;
    overflow: hidden;
}

.new-project-progress__bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f6c37 0%, #68b96b 100%);
    transition: width 0.24s ease;
}

.new-project-step-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
}

.new-project-step {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #f5f8f1;
    color: #687568;
}

.new-project-step.is-active {
    background: #e3f0e1;
    color: #1f4f2b;
}

.new-project-step.is-complete {
    background: #eff6eb;
    color: #2e6c37;
}

.new-project-step__badge {
    position: relative;
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 18px;
    background: rgba(31, 108, 55, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(31, 108, 55, 0.05);
}

.new-project-step__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.92;
}

.new-project-step__index {
    position: absolute;
    inset-inline-end: -6px;
    inset-block-start: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: #1f4f2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(36, 67, 41, 0.14);
}

.new-project-step__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.new-project-step__label {
    font-weight: 700;
}

.new-project-step__tag {
    font-size: 0.78rem;
    color: #6f7c6d;
}

.new-project-step.is-active .new-project-step__badge {
    background: linear-gradient(135deg, rgba(31, 108, 55, 0.18) 0%, rgba(105, 188, 96, 0.22) 100%);
}

.new-project-step.is-complete .new-project-step__badge {
    background: rgba(46, 108, 55, 0.16);
}

.new-project-stage-shell {
    padding: 24px;
}

.new-project-banner {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff1eb;
    color: #9a2f18;
    border: 1px solid rgba(154, 47, 24, 0.12);
}

.new-project-form {
    display: grid;
    gap: 16px;
}

.new-project-collapsible {
    border: 1px solid rgba(31, 79, 43, 0.12);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.new-project-collapsible__summary {
    cursor: pointer;
    padding: 12px 14px;
    color: #1d3b22;
    font-weight: 700;
    list-style: none;
}

.new-project-collapsible__summary::-webkit-details-marker {
    display: none;
}

.new-project-collapsible__body {
    padding: 0 14px 14px;
}

.new-project-collapsible .is-disabled,
.project-settings-collapsible .is-disabled {
    opacity: 0.55;
}

.new-project-panel {
    display: grid;
    gap: 18px;
}

.new-project-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.new-project-panel__header h3,
.new-project-derived-colors__header h4 {
    margin: 0 0 6px;
    color: #1d3b22;
}

.new-project-panel__header p,
.new-project-derived-colors__header p,
.new-project-footer__message p {
    margin: 0;
    color: #566755;
}

.new-project-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff2ea;
    color: #b04c1f;
    font-weight: 700;
    white-space: nowrap;
}

.new-project-status-badge.is-complete {
    background: #e7f3e4;
    color: #266933;
}

.new-project-status-badge--optional {
    background: #eef2ed;
    color: #586858;
}

.new-project-map-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(31, 79, 43, 0.08);
    background: #dfe7da;
}

.new-project-map {
    width: 100%;
    height: min(64vh, 560px);
}

.new-project-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.new-project-plots-layout {
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    gap: 18px;
}

.new-project-plots-sidebar {
    display: grid;
    gap: 14px;
    align-content: start;
}

.new-project-plots-list {
    display: grid;
    gap: 12px;
}

.new-project-empty-state {
    padding: 18px;
    border-radius: 20px;
    background: #f5f8f1;
    color: #667565;
}

.new-project-plot-card {
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(31, 79, 43, 0.1);
    background: #fff;
    box-shadow: 0 12px 28px rgba(36, 67, 41, 0.05);
}

.new-project-plot-card.is-active {
    border-color: rgba(46, 125, 50, 0.32);
    box-shadow: 0 18px 34px rgba(33, 94, 38, 0.12);
}

.new-project-plot-card__header,
.new-project-plot-card__actions,
.new-project-footer {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
}

.new-project-plot-card__header {
    margin-bottom: 10px;
}

.new-project-plot-card__status {
    font-size: 0.82rem;
    color: #8f5f18;
}

.new-project-plot-card__status.is-ready {
    color: #1f6c37;
}

.new-project-theme-form,
.new-project-theme-columns {
    display: grid;
    gap: 18px;
}

.new-project-logo-field {
    display: grid;
    gap: 12px;
}

.new-project-logo-drop-zone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.new-project-logo-drop-zone {
    display: flex;
    min-height: 150px;
    padding: 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border-radius: 18px;
    border: 2px dashed rgba(31, 108, 55, 0.3);
    background: #f8fbf6;
    color: #234129;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.new-project-logo-drop-zone:hover,
.new-project-logo-drop-zone:focus-visible,
.new-project-logo-drop-zone.is-dragging {
    border-color: #2e7d32;
    background: #eef7eb;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.08);
    outline: none;
}

.new-project-logo-drop-zone__title {
    font-size: 1.05rem;
    font-weight: 800;
}

.new-project-logo-drop-zone__hint {
    color: #647164;
    font-size: 0.92rem;
}

.new-project-logo-upload__status {
    color: #647164;
    font-size: 0.92rem;
}

.new-project-logo-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(31, 79, 43, 0.08);
    background: #f5f8f1;
}

.new-project-logo-preview img {
    width: 96px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(31, 79, 43, 0.1);
    background: #ffffff;
}

.new-project-theme-status {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 600;
}

.new-project-theme-status--info {
    background: #eef5ff;
    color: #28507a;
}

.new-project-theme-status--success {
    background: #e9f6ea;
    color: #236337;
}

.new-project-theme-status--warning {
    background: #fff4e8;
    color: #8b5417;
}

.new-project-theme-columns__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.new-project-theme-column {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: #f5f8f1;
    border: 1px solid rgba(31, 79, 43, 0.08);
}

.new-project-theme-column__title {
    margin: 0;
    color: #1d3b22;
}

.new-project-theme-column__hint {
    margin: 0;
    font-size: 0.88rem;
    color: #687568;
}

.new-project-theme-column__picker {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(36, 67, 41, 0.06);
}

.new-project-theme-column__picker-label {
    font-weight: 700;
    color: #234129;
}

.new-project-theme-column__picker input[type="color"] {
    width: 100%;
    min-height: 56px;
    padding: 4px;
    border-radius: 16px;
    border: 1px solid rgba(31, 79, 43, 0.1);
    background: #fff;
}

.new-project-theme-column__derived {
    display: grid;
    gap: 10px;
}

.new-project-theme-swatch {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
}

.new-project-theme-swatch--main {
    background: #ffffff;
    border: 1px solid rgba(31, 79, 43, 0.08);
}

.new-project-theme-swatch--derived {
    opacity: 0.94;
}

.new-project-theme-swatch__chip {
    display: block;
    width: 100%;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.new-project-theme-swatch__label {
    font-weight: 700;
    color: #27402b;
}

.new-project-theme-swatch__value {
    font-size: 0.84rem;
    color: #6a7869;
}

.new-project-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(31, 79, 43, 0.08);
}

.new-project-footer__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.map-toast {
    position: fixed;
    inset-inline: 16px;
    bottom: 72px;
    z-index: 2500;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.map-toast__message {
    min-width: min(460px, 100%);
    max-width: 620px;
    padding: 16px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 61, 29, 0.96) 0%, rgba(37, 101, 48, 0.96) 100%);
    color: #fff;
    border: 1px solid rgba(173, 234, 167, 0.28);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.map-toast.is-visible .map-toast__message {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .new-project-progress__meta,
    .new-project-plots-layout,
    .new-project-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .new-project-theme-columns__grid,
    .new-project-step-list {
        grid-template-columns: 1fr;
    }

    .new-project-map {
        height: min(58vh, 460px);
    }
}

#auth-message, #save-message {
    margin-top: 10px;
    font-weight: bold;
    color: #d00;
}

.floating_bar {
    position: fixed;
    display: flex;
    bottom: 0;
    width: 100%;
    height: auto;
    padding: 10px;
    z-index: 9999;
}

.floating_bar.top {
    bottom: unset;
    top: 0;
}

/*** Login / Register ***/

.page-wrapper {
    position: relative;
    display: flex;
    flex-flow: column;
    padding: 0;
    margin: 0;
    text-align: center;
}

.flex-rows {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

.onboarding_image {
    position: relative;
    display: flex;
    flex-flow: column;
    width: 50%;
    height: 100vh;
    background: #eee;
}

.onboarding_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.onboarding_image_overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: flex-start;
    padding: 44px;
    background: linear-gradient(180deg, rgba(10, 14, 12, 0.14) 0%, rgba(10, 14, 12, 0.42) 45%, rgba(10, 14, 12, 0.82) 100%);
    z-index: 1;
    pointer-events: none;
}

.onboarding_image_overlay--ltr {
    direction: ltr;
}

.onboarding_image_overlay--rtl {
    direction: rtl;
}

.onboarding_quote {
    max-width: 620px;
    text-align: left;
    color: #fff;
}

.onboarding_quote--ltr {
    direction: ltr;
    text-align: left;
}

.onboarding_quote--rtl {
    direction: rtl;
    text-align: right;
}

.onboarding_quote_icon {
    width: auto !important;
    height: 5em !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1);
}

.onboarding_quote_text {
    margin: 0;
    font-size: clamp(1.8rem, 2.1vw, 2.8rem);
    line-height: 1.22;
    font-weight: 800;
    color: #fff;
    text-wrap: balance;
}

.onboarding_quote_author {
    margin: 14px 0 0;
    font-size: 1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.84);
}

.onboarding_form {
    position: relative;
    display: flex;
    flex-flow: column;
    width: 50%;
    height: 100vh;
    padding: 15px;
    justify-content: center;
    align-items: center;
}

.onboarding_form_inner {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.page-wrapper form {
    display: flex;
    flex-flow: column;
    width: 100%;
    /*max-width: 500px;*/
    text-align: start;
}

.auth-redirect-state {
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
    padding: clamp(28px, 6vw, 52px) 20px;
    text-align: center;
}

.auth-redirect-success-icon {
    display: grid;
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 50%;
    background: #e7f6ea;
    color: #2d7a3f;
    box-shadow: 0 0 0 10px rgba(76, 154, 89, 0.09);
}

.auth-redirect-success-icon svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: currentColor;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-redirect-title {
    margin: 0;
    color: #17251d;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    text-wrap: balance;
}

.auth-redirect-title:focus {
    outline: none;
}

.auth-redirect-message {
    max-width: 440px;
    margin: 18px 0 0;
    color: #486153;
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    line-height: 1.5;
    text-wrap: balance;
}

.auth-redirect-spinner {
    width: 30px;
    height: 30px;
    margin-top: 30px;
    border: 3px solid #dce9de;
    border-top-color: #4c9a59;
    border-radius: 50%;
    animation: auth-redirect-spin 0.9s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .auth-redirect-spinner {
        animation: none;
        border-color: #4c9a59;
        opacity: 0.7;
    }
}

#register-form .auth-field,
#sign-in-form .auth-field {
    display: grid;
    gap: 7px;
    width: 100%;
    margin: 0 0 18px;
    color: #334155;
    font-weight: 600;
    line-height: 1.35;
}

#register-form .auth-field > input,
#sign-in-form .auth-field > input,
.auth-password-control > input {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid #d5ded4;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #17251d;
    box-shadow: 0 1px 2px rgba(23, 37, 29, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#register-form .auth-field > input:focus,
#sign-in-form .auth-field > input:focus,
.auth-password-control > input:focus {
    border-color: #4c9a59;
    box-shadow: 0 0 0 3px rgba(76, 154, 89, 0.14);
}

#register-form > button[type="submit"],
#sign-in-form > button[type="submit"] {
    margin-block: 2px 10px;
    border-radius: 8px;
}

.google_login_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

.google_login_btn img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    filter: invert(1);
}

.auth-project-header {
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
    margin: 0 0 22px;
    text-align: center;
}

.auth-platform-title {
    margin: 0 0 14px;
    color: #334155;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.auth-project-identity {
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth-project-logo {
    display: block;
    width: min(220px, 68%);
    max-height: 120px;
    object-fit: contain;
}

.auth-project-title {
    margin: 0;
    max-width: 100%;
    color: #17251d;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.auth-project-context {
    display: none !important;
    width: 100%;
    max-width: 500px;
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #f2f7ea;
    color: #2d4f1f;
    line-height: 1.5;
}

.auth-recovery-actions {
    display: flex;
    flex-flow: column;
    width: 100%;
    max-width: 500px;
    gap: 10px;
    margin: 10px 0 4px;
}

.auth-recovery-actions .btn,
.auth-recovery-actions button {
    border-radius: 8px;
    text-decoration: none !important;
}

.auth-inline-link {
    align-self: flex-start;
    margin: -4px 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2d6a4f;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.auth-inline-link:hover,
.auth-inline-link:focus-visible {
    color: #1f4d39;
}

.auth-inline-link:disabled {
    opacity: 0.6;
    cursor: wait;
}

.auth-secondary-link {
    width: 100%;
    max-width: 500px;
    margin: 16px 0 0;
    text-align: center;
}

.login_btn_wrapper {
    margin: 10px 0;
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
    justify-content: center;
}

.login_btn_wrapper .btn {
    padding: 10px 30px;
    text-decoration: none !important;
    border-radius: 100px;
}

.waiting {
    font-size: 1.5em;
    color: #555;
}

.waiting-actions {
    margin-top: 24px;
}

.spinner {
    margin-top: 20px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-left: auto;
    margin-right: auto;
}

.auth-password-control {
    position: relative;
    display: block;
    width: 100%;
}

.auth-password-control > input {
    padding-inline-end: 54px;
}

.toggle-password {
    position: absolute;
    inset-inline-end: 10px;
    inset-block-start: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 6px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #486153;
    box-shadow: none;
    cursor: pointer;
    user-select: none;
}

.toggle-password:hover,
.toggle-password:active {
    background: transparent;
    color: #205c35;
}

.toggle-password:focus-visible {
    outline: 2px solid rgba(45, 122, 45, 0.42);
    outline-offset: 1px;
    background: transparent;
}

.toggle-password img {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0.78;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .page-wrapper {
        flex-flow: column;
    }

    .onboarding_image {
        display: none;
        width: 100%;
    }

    .onboarding_form {
        width: 100%;
    }
}/***m***/

/*** TABS UI Element ***/

.header-tabs {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    gap: 10px;
    justify-content: center;
}

.tab {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    padding: 5px 15px;
    border-radius: 5px;
    gap: 5px;
    color: var(--project-color-1);
    border: 1px solid var(--project-color-1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab.active {
    color: #fff;
    background: var(--project-color-1);
}

.tab-badge {
    background: var(--project-color-1);
    color: #fff;
    width: 1.5em;
    height: 1.5em;
    font-size: 1em;
    border-radius: 100px;
    padding: 2px 7px;
}

.active .tab-badge {
    background: #fff;
    color: var(--project-color-1);
}

.tab-badge:empty {
    display: none;
}

/*** GPS Accuracy progress bar ***/
#loading {
    display: none;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

:dir(rtl) #loading {
    direction: rtl;
}

#progress-container {
    width: 100%;
    background: #eee;
    border-radius: 5px;
    margin-top: 5px;
    height: 8px;
    overflow: hidden;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background: #2196F3; /* כחול */
    border-radius: 5px;
    transition: width 0.3s ease;
}

#accuracy-status {
    margin-top: 5px;
    font-weight: bold;
}

:dir(rtl) #accuracy-status {
    direction: rtl;
}

#map-loader {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.map-loader-visual {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#map-loader .loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #2e7d32;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#map-loader .loader-text {
    margin-top: 15px;
    font-size: 16px;
    color: #444;
}

.map-loader-logo-shell {
    position: absolute;
    inset: 5px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    padding: 12px;
}

.map-loader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#map-loader.map-loader--with-logo .map-loader-visual {
    width: 90px;
    height: 90px;
}

#map-loader.map-loader--with-logo .loader-spinner {
    width: 90px;
    height: 90px;
    border-width: 3px;
}

#map-loader.map-loader--with-logo .map-loader-logo-shell {
    display: flex;
}

/*** Add Tree Form ***/

.add_tree_form_wrapper,
.edit_tree_form_wrapper {
    position: relative;
    display: flex;
    flex-flow: column;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.tree-form-wrapper--modal {
    padding: 8px 4px 4px 4px;
}

.add_tree_form_wrapper button,
.edit_tree_form_wrapper button {
    border-radius: 8px;
}

.tree-form-submit-bar {
    margin: 14px 0 0 0;
}

.tree-form-submit-bar #save-message {
    margin: 0 0 8px 0;
}

.tree-form-submit-bar button[type="submit"] {
    margin: 0;
}

.tree-form-wrapper--modal #tree-form {
    padding-bottom: 16px;
}

.popup-content.tree-form-popup .tree-form-wrapper--modal .tree-form-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 20px -12px -12px -12px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) 12px;
    background: #fff;
    box-shadow: 0 -12px 24px rgba(24, 44, 28, 0.08);
}

.tree-form-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 14px 0;
}

.tree-form-mode-tab {
    border: 1px solid rgba(28, 109, 53, 0.16);
    border-radius: 999px;
    background: #f5f8f3;
    color: #38533b;
    font-weight: 700;
    padding: 10px 14px;
}

.tree-form-mode-tab.is-active {
    background: linear-gradient(135deg, #2f7a45, #4caf50);
    color: #fff;
    box-shadow: 0 14px 28px rgba(43, 97, 53, 0.18);
}

.tree-batch-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tree-batch-shell.is-walk-stage .tree-batch-stage-nav {
    display: none;
}

.tree-batch-stage-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
}

.tree-batch-stage-pill {
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf3ea;
    color: #57705a;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.tree-batch-stage-pill.is-active {
    background: #1f6d35;
    color: #fff;
}

.tree-batch-stage-pill.is-complete {
    background: rgba(76, 175, 80, 0.18);
    color: #24512f;
}

.tree-batch-stage-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tree-batch-card {
    border: 1px solid rgba(28, 109, 53, 0.1);
    border-radius: 16px;
    background: rgba(255,255,255,0.96);
    padding: 16px;
    box-shadow: 0 16px 32px rgba(24, 44, 28, 0.08);
}

.tree-batch-card h2 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
}

.tree-batch-card--walk {
    padding: 14px;
    box-shadow: 0 18px 32px rgba(17, 42, 26, 0.16);
    display: grid;
    gap: 10px;
}

.tree-batch-card--walk-toolbar {
    gap: 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.tree-batch-walk-title {
    margin-bottom: 6px;
}

.tree-batch-copy {
    margin: 0 0 12px 0;
    color: #5d6d5d;
}

.tree-batch-copy--walk {
    margin-bottom: 0;
}

.tree-bulk-edit-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px 0;
}

.tree-bulk-edit-summary__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f4f7f1;
    border: 1px solid rgba(28, 109, 53, 0.1);
}

.tree-bulk-edit-summary__stat--wide {
    min-width: 0;
}

.tree-bulk-edit-summary__label {
    color: #5d6d5d;
    font-size: 0.85rem;
    font-weight: 600;
}

.tree-bulk-edit-summary__stat strong {
    color: #1f3e27;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.tree-form-bulk-field.is-touched {
    border-radius: 12px;
    background: rgba(76, 175, 80, 0.08);
    box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.18);
    padding: 10px 12px;
}

.tree-batch-precision-field {
    margin: 12px 0 0 0;
}

.tree-batch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.tree-batch-actions .btn {
    flex: 1 1 180px;
}

.tree-batch-actions--stacked .btn {
    flex-basis: calc(50% - 6px);
}

.tree-batch-actions--toolbar {
    flex-wrap: nowrap;
}

.tree-batch-actions--toolbar .btn {
    flex: 1 1 0;
    min-width: 0;
}

.tree-batch-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.tree-batch-stats--toolbar {
    margin-bottom: 0;
}

.tree-batch-stat {
    padding: 12px;
    border-radius: 14px;
    background: #f6faf5;
    border: 1px solid rgba(28, 109, 53, 0.08);
}

.tree-form-loading--inline {
    margin-bottom: 0;
}

.tree-form-loading--compact {
    padding-inline-end: 44px;
}

.tree-batch-progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(32, 89, 47, 0.12);
    overflow: hidden;
}

.tree-batch-progress-track--toolbar {
    height: 7px;
}

.tree-batch-progress-track--idle {
    margin-bottom: 0;
}

.tree-batch-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #245f36, #56b46b);
    transition: width 0.18s ease;
}

.tree-batch-progress-bar--idle {
    background: linear-gradient(90deg, rgba(36, 95, 54, 0.55), rgba(86, 180, 107, 0.72));
}

.tree-batch-progress-status {
    margin: 8px 0 0 0;
    font-size: 0.82rem;
    color: #48614b;
}

.tree-batch-stat-label {
    display: block;
    color: #627462;
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.tree-batch-anchor-summary {
    padding: 12px;
    border-radius: 12px;
    background: #f8fbf6;
    color: #324834;
}

.tree-batch-stage--walk-modal {
    width: 100%;
}

.add_tree_form_wrapper label,
.edit_tree_form_wrapper label {
    font-size: 0.8em;
}

.tree-form-section {
    margin: 0 0 12px 0;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    overflow: hidden;
}

.tree-form-section-toggle {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(76, 175, 80, 0.1);
    color: #1f3b1f;
}

.tree-form-section-toggle:hover {
    background: rgba(76, 175, 80, 0.16);
}

.tree-form-section-chevron {
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.24s ease;
}

.tree-form-section-toggle[aria-expanded="true"] .tree-form-section-chevron {
    transform: rotate(-225deg);
}

.tree-form-section-panel {
    display: none;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease;
}

.tree-form-section-panel.is-open {
    display: block;
    padding: 14px;
    overflow: visible;
    opacity: 1;
}

.tree-form-section:has(.tree-form-section-panel.is-open) {
    overflow: visible;
}

.tree-form-section-panel label:last-child,
.tree-form-section-panel .tree_form_fields_wrapper-2:last-child,
.tree-form-section-panel .tree_form_fields_wrapper-3:last-child {
    margin-bottom: 0;
}

.tree-form-checkbox-label {
    display: flex;
    min-height: 100%;
    gap: 8px;
    align-items: center;
}

.tree-species-picker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    min-height: 0;
}

.tree-species-combobox {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(28, 109, 53, 0.14);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: start;
}

.tree-species-combobox:hover,
.tree-species-combobox:focus-visible,
.tree-species-picker.is-open .tree-species-combobox {
    border-color: rgba(28, 109, 53, 0.3);
    box-shadow: 0 10px 24px rgba(27, 56, 30, 0.08);
}

.tree-species-combobox__chevron {
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex: 0 0 auto;
}

.tree-species-picker.is-open .tree-species-combobox__chevron {
    transform: rotate(-225deg);
}

.tree-species-selected {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.tree-species-selected__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fbf6;
}

.tree-species-selected__placeholder {
    display: block;
    color: #6c7b68;
    font-size: 0.9rem;
}

.tree-species-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(28, 109, 53, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(27, 56, 30, 0.14);
}

.tree-species-dropdown input[type="text"] {
    margin: 0;
}

.tree-species-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(240px, 50vh);
    overflow-y: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.tree-species-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(28, 109, 53, 0.12);
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    text-align: start;
    cursor: pointer;
}

.tree-species-option:hover,
.tree-species-option:focus-visible {
    background: #eef5eb;
    border-color: rgba(28, 109, 53, 0.26);
}

.tree-species-option__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.tree-species-option__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tree-species-option__text strong {
    font-size: 0.95rem;
    color: #213126;
}

.tree-species-option__text span {
    margin-top: 2px;
    color: #536453;
    font-size: 0.82rem;
}

.tree-dedication-list {
    display: flex;
    flex-flow: column;
    gap: 10px;
    margin-bottom: 14px;
}

.tree-dedication-option {
    display: inline-flex;
    margin: 0;
    padding: 2px 0;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.tree-dedication-option input {
    width: auto !important;
    margin: 0;
    flex: 0 0 auto;
}

.tree-dedication-option-body {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tree-dedication-option-icon {
    width: auto;
    height: 2.5em;
    object-fit: contain;
    flex: 0 0 auto;
}

.tree-dedication-error {
    margin: 0 0 12px 0;
    color: #b42318;
    font-weight: 700;
}

.tree-story-textarea {
    min-height: 110px;
}

.tree-image-uploader {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px dashed rgba(28, 109, 53, 0.18);
    border-radius: 16px;
    background: rgba(252, 252, 248, 0.94);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tree-image-uploader.is-drag-active {
    border-color: rgba(28, 109, 53, 0.55);
    background: rgba(239, 247, 240, 0.98);
    box-shadow: 0 12px 28px rgba(27, 56, 30, 0.12);
}

.tree-image-uploader.is-busy {
    border-color: rgba(28, 109, 53, 0.28);
}

.tree-image-uploader.has-error {
    border-color: rgba(180, 35, 24, 0.4);
}

.tree-image-input {
    display: none;
}

.tree-image-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.tree-image-add-btn {
    margin: 0;
    padding: 10px 16px;
    border: 1px solid rgba(28, 109, 53, 0.18);
    border-radius: 12px;
    background: #f7fbf7;
    color: #1b4d2c;
    font-weight: 700;
    cursor: pointer;
}

.tree-image-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tree-image-hint,
.tree-image-error,
.tree-image-empty {
    margin: 0;
    font-size: 0.95rem;
}

.tree-image-error {
    color: #b42318;
    font-weight: 700;
}

.tree-image-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.tree-image-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(28, 109, 53, 0.12);
    border-radius: 16px;
    background: #fffef9;
    box-shadow: 0 10px 24px rgba(27, 56, 30, 0.08);
}

.tree-image-card-preview-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, rgba(239, 247, 240, 0.95), rgba(228, 238, 230, 0.95));
}

.tree-image-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(16, 29, 21, 0.58);
    color: #fffdf6;
    text-align: center;
}

.tree-image-card-preview,
.tree-image-card-placeholder {
    width: 100%;
    height: 100%;
}

.tree-image-card-preview {
    display: block;
    object-fit: cover;
}

.tree-image-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f6b56;
    font-weight: 700;
}

.tree-image-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.tree-image-card-title {
    color: #203425;
}

.tree-image-card-name {
    color: #5c6d61;
    font-size: 0.9rem;
    word-break: break-word;
}

.tree-image-card-error {
    color: #b42318;
    font-size: 0.85rem;
    font-weight: 700;
}

.tree-image-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tree-image-card-btn {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid rgba(28, 109, 53, 0.12);
    border-radius: 10px;
    background: #ffffff;
    color: #1f3a26;
    cursor: pointer;
}

.tree-image-card-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tree-image-card-btn--danger {
    border-color: rgba(180, 35, 24, 0.2);
    color: #b42318;
}

.tree-image-card-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tree-image-spin 0.9s linear infinite;
}

.tree-image-card-status {
    font-size: 0.95rem;
    font-weight: 700;
}

@keyframes tree-image-spin {
    to {
        transform: rotate(360deg);
    }
}

.page_title_wrapper {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    gap: 5px;
    margin: 10px 0;
    padding: 0 50px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.page_title_wrapper h1 {
    margin: 0;
    font-size: 1.5em;
}

.page_subtitle_wrapper {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    gap: 5px;
    margin: 10px 0;
    padding: 0 50px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.page_subtitle_wrapper h2 {
    margin: 0;
    font-size: 1.2em;
}

.page-title-icon {
    width: auto;
    height: 2em;
}

.page-title-icon img {
    width: auto;
    height: 100%;
}

.geo_fields_wrapper {
    position: relative;
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    justify-content: space-around;
    gap: 4px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.geo_field {
    position: relative;
    width: calc(33.333% - 6px);
    box-sizing: border-box;
}

.tree_form_fields_wrapper-2,
.tree_form_fields_wrapper-3 {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    gap: 4px;
    align-items: flex-end;
    justify-content: start;
    box-sizing: border-box;
}

.tree_form_fields_wrapper-2 label {
    width: calc(50% - 6px);
    box-sizing: border-box;
}

.tree_form_fields_wrapper-3 label {
    width: calc(33.333% - 6px);
    box-sizing: border-box;
}

.tree-form-fixed-third-row {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 4px;
    align-items: flex-end;
    justify-content: start;
    box-sizing: border-box;
}

.tree-form-fixed-third-row label {
    width: calc(33.333% - 6px);
    flex: 0 0 calc(33.333% - 6px);
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
}

.tree-form-plot-status-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    align-items: flex-end;
    box-sizing: border-box;
    margin: 0 0 10px;
}

.tree-form-plot-status-row label {
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
}

.tree-form-plot-field {
    width: calc(66.666% - 2px);
    flex: 0 0 calc(66.666% - 2px);
}

.tree-form-status-field {
    width: calc(33.333% - 2px);
    flex: 0 0 calc(33.333% - 2px);
}

.tree-form-measurement-control {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(42px, 1fr);
    gap: 4px;
    width: 100%;
    align-items: stretch;
}

.tree-form-measurement-tool-btn {
    display: inline-flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(28, 109, 53, 0.16);
    background: rgba(255, 253, 248, 0.96);
    cursor: pointer;
}

.tree-form-measurement-tool-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tree-form-measurement-tool-btn:hover,
.tree-form-measurement-tool-btn:focus-visible {
    border-color: rgba(28, 109, 53, 0.32);
    background: #fff;
    outline: none;
}

.tree-form-bulk-advanced-wide {
    width: calc(66.666% - 2px) !important;
    flex: 0 0 calc(66.666% - 2px) !important;
}

.tree-form-species-date-row {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 4px;
    align-items: stretch;
    justify-content: start;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.tree-form-species-field,
.tree-form-date-field {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
}

.tree-form-species-field {
    width: calc(65% - 2px);
    flex: 0 0 calc(65% - 2px);
}

.tree-form-date-field {
    width: calc(35% - 2px);
    flex: 0 0 calc(35% - 2px);
}

.tree-form-species-field .tree-species-picker {
    flex: 1 1 auto;
    justify-content: stretch;
}

.tree-form-species-field .tree-species-combobox,
.tree-form-date-badge-button {
    min-height: 76px;
}

.tree-form-species-field .tree-species-combobox {
    flex: 1 1 auto;
    margin: 0;
}

.tree-form-date-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tree-form-date-badge-button {
    display: flex;
    width: 100%;
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(28, 109, 53, 0.14);
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.tree-form-date-badge-button:hover,
.tree-form-date-badge-button:focus-visible {
    border-color: rgba(28, 109, 53, 0.3);
    box-shadow: 0 10px 24px rgba(27, 56, 30, 0.08);
}

.tree-form-date-badge-content {
    display: flex;
    width: 100%;
}

.tree-form-date-badge-content .date_badge {
    display: flex;
    width: 100%;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: none;
    text-align: center;
    line-height: 1.05;
    color: #213126;
}

.tree-form-date-badge-content .date_badge_month,
.tree-form-date-badge-content .date_badge_year,
.tree-form-date-badge-content .date_badge_time {
    width: 100%;
}

.tree-form-date-badge-content .date_badge_month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
}

.tree-form-date-badge-content .date_badge_day {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 0.95;
    margin: 4px 0;
}

.tree-form-date-badge-content .date_badge_year {
    font-size: 0.72rem;
    opacity: 0.82;
}

.tree-form-date-badge--empty {
    gap: 0;
}

.tree-form-date-badge-empty-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.82;
}

.tree-form-trough-field {
    align-items: center;
    margin-bottom: 10px;
}

.tree-form-trough-field input {
    width: 30px;
    margin: 0;
    flex: 0 0 auto;
}

.tree-form-full-width {
    width: 100%;
    box-sizing: border-box;
}

.tree-form-precision-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.tree-form-precision-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-form-precision-control input[type="range"] {
    flex: 1 1 auto;
    margin: 0;
}

.tree-form-precision-value {
    min-width: 36px;
    font-weight: 700;
    white-space: nowrap;
}

.add_tree_form_wrapper input,
.edit_tree_form_wrapper input {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.add_tree_form_wrapper textarea,
.edit_tree_form_wrapper  textarea {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.checkbox_item {
    display: flex;
    flex-flow: row wrap;
}

.checkbox_item input {
    display: inline-block;
    width: 30px;
}

@media screen and (max-width: 768px) {
    .tree_form_fields_wrapper-2 label,
    .tree_form_fields_wrapper-3 label,
    .tree-form-precision-control {
        width: 100%;
    }

    .tree-form-precision-control {
        flex-direction: column;
        align-items: stretch;
    }

    .tree-form-species-field {
        width: calc(65% - 2px) !important;
    }

    .tree-form-date-field {
        width: calc(35% - 2px) !important;
    }

    .tree-form-fixed-third-row label {
        width: calc(33.333% - 6px) !important;
        flex: 0 0 calc(33.333% - 6px) !important;
    }
}

@media screen and (max-width: 480px) {
    .tree-form-plot-status-row {
        flex-wrap: wrap;
    }

    .tree-form-plot-field,
    .tree-form-status-field {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/*** Trees List ***/

.trees-list {
    position: relative;
    display: flex;
    flex-flow: column;
    width: 100%;
    max-width: 900px;
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
}

:dir(rtl) .trees-list {
    direction: rtl;
}

.list-filters {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    max-width: 900px;
    padding: 0 15px;
    gap: 10px;
    margin: 0 auto;
    box-sizing: border-box;
}

:dir(rtl) .list-filters {
    direction: rtl;
}

.list-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.list-filter-field--half {
    width: calc(50% - 5px);
}

.list-filter-field--third {
    width: calc(33.333% - 6.67px);
}

.list-filter-field--full {
    width: 100%;
}

@media screen and (min-width: 901px) {
    .list-filter-field--half {
        width: calc(25% - 7.5px);
    }

    .list-filter-field--third {
        width: calc(16.667% - 8.34px);
    }

    .list-filter-field--full {
        width: calc(33.333% - 6.67px);
    }
}

.list-filters > button {
    margin-top: 4px;
}

.list-filter-field :is(select, input) {
    width: 100%;
    box-sizing: border-box;
}

.list-filters-shell {
    width: 100%;
    max-width: 900px;
    padding: 0 15px;
    margin: 0 auto 8px;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    --list-theme-primary: #4d7a5b;
    --list-theme-foreground: #ffffff;
    --list-theme-icon-filter: brightness(0) invert(1);
    --list-theme-border: rgba(255, 255, 255, 0.28);
    --list-theme-hover-overlay: rgba(255, 255, 255, 0.12);
}

.list-collapsible {
    width: 100%;
    margin: 0 0 10px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.list-collapsible__summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
}

.list-collapsible:not([open]) .list-collapsible__summary {
    background: var(--list-theme-primary);
    color: var(--list-theme-foreground);
}

.list-collapsible__summary::-webkit-details-marker {
    display: none;
}

.list-collapsible__summary img {
    height: 1.5em;
    width: auto;
    max-width: 1.5em;
    flex: 0 0 auto;
}

.list-collapsible:not([open]) .list-collapsible__summary img {
    filter: var(--list-theme-icon-filter);
}

.list-collapsible__body {
    padding: 0 12px 12px;
}

.list-sort {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-sort__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.list-sort__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 220px;
    min-height: 44px;
    padding: 10px 14px;
    gap: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.list-sort__option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.list-sort__option:hover,
.list-sort__option:focus-within {
    border-color: var(--list-theme-primary);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.list-sort__option.is-selected {
    background: var(--list-theme-primary);
    color: var(--list-theme-foreground);
    border-color: var(--list-theme-border);
}

.list-sort__actions {
    display: flex;
    gap: 10px;
}

.list-sort__button,
.list-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.tree-form-location-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.tree-form-location-actions .tree-form-location-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
}

.tree-form-location-action-btn img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

#refresh-location-btn img {
    filter: invert(1);
}

.tree-form-manual-location-btn {
    background: #f5f8f3;
    color: #24512f;
    border: 1px solid rgba(28, 109, 53, 0.16);
}

.list-action-button {
    white-space: nowrap;
}

.list-sort__button img,
.list-action-button img {
    height: 1.5em;
    width: auto;
}

.list-sort__button.is-active {
    border-color: #3a7b38;
    background: #eef7ee;
}

#clear-filters {
    background: var(--list-theme-primary);
    color: var(--list-theme-foreground);
    border-color: var(--list-theme-border);
}

#clear-filters img {
    filter: var(--list-theme-icon-filter);
}

#clear-filters:hover,
#clear-filters:focus-visible {
    box-shadow: inset 0 0 0 999px var(--list-theme-hover-overlay);
}

.list-status-wrapper {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    max-width: 900px;
    margin: 5px auto;
    gap: 5px;
    justify-content: center;
}

.list-status-item {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    width: calc(33.333% - 5px);
    padding: 3px 10px;
    gap: 3px;
    align-items: baseline;
    border: 2px solid #ccc;
    border-radius: 5px;
}

.list-filters-icon {
    display: inline-block;
}

.list-filters-icon img {
    height: 1.2em;
    width: auto;
}

.list-status-count {
    font-size: 1.2em;
}

.list-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(17, 17, 17, 0.06);
}

.list-bulk-toolbar.hidden {
    display: none;
}

.list-bulk-toolbar__copy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
}

.list-bulk-toolbar__actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.list-bulk-toolbar__actions .list-action-button {
    flex: 1 1 0;
}

#clear-selection-btn,
#bulk-edit-btn {
    background: var(--list-theme-primary);
    color: var(--list-theme-foreground);
    border-color: var(--list-theme-border);
}

#clear-selection-btn:hover,
#clear-selection-btn:focus-visible,
#bulk-edit-btn:hover,
#bulk-edit-btn:focus-visible {
    box-shadow: inset 0 0 0 999px var(--list-theme-hover-overlay);
}

.tree-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    padding: 10px 0;
    margin: 8px 0;
    border-radius: 5px;
    align-items: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.tree-item-color-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: var(--tree-color-mark, transparent);
    pointer-events: none;
}

.tree-item.is-selected {
    box-shadow: 0 0 0 2px rgba(54, 118, 86, 0.35), 0 0 10px rgba(0, 0, 0, 0.18);
}

html[dir="rtl"] .tree-item-color-mark {
    left: auto;
    right: 0;
}

.tree-item-select {
    width: 8%;
    min-width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 6px;
}

.tree-item-select input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tree-item--selectable .title-cell {
    width: 32%;
}

.tree-item--selectable .item-cell {
    width: 20%;
}

.tree-item--selectable .edit-cell {
    width: 12%;
}

.item-cell {
    position: relative;
    width: 22%;
    padding: 0 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.title-cell {
    width: 40%;
    padding: 0 5px 0 8px;
}

html[dir="rtl"] .title-cell {
    padding: 0 8px 0 5px;
}

.title-cell a {
    color: #000;
    text-decoration: none !important;
}

.edit-cell {
    width: 15%;
    text-align: center;
}

@media (max-width: 768px) {
    .tree-bulk-edit-summary {
        grid-template-columns: 1fr;
    }

    .list-bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .list-bulk-toolbar__actions {
        width: 100%;
        flex-wrap: nowrap;
    }

    .list-bulk-toolbar__actions .list-action-button {
        flex: 1 1 0;
        min-width: 0;
    }

    .tree-item-select {
        width: 14%;
    }

    .title-cell,
    .tree-item--selectable .title-cell {
        width: 56%;
    }

    .tree-item--selectable .item-cell {
        width: 22%;
    }

    .tree-item--selectable .edit-cell {
        width: 14%;
    }
}

/*** App Install Bar ***/

.install-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    padding: 15px;
    text-align: center;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.3);
}

.install-bar.show {
    transform: translateY(0);
}

.install-bar button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

.install-bar button:hover {
    background-color: #218838;
}

@media screen and (min-width: 1280px) and (orientation: landscape) {
    .install-bar,
    .install-bar.show {
        display: none !important;
    }
}/***m***/

/*** Tree Popup ***/

.tooltip_content {
}

:dir(rtl) .tooltip_content {
    direction: rtl;
}

.popup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.popup-overlay.batch-walk-active,
.popup-overlay.manual-location-active {
    align-items: flex-end;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

.popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 50px 20px 20px 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    position: relative;
    font-family: sans-serif;
}

.popup-content.reports-popup {
    max-height: 90vh;
    overflow: hidden;
}

.popup-content.tree-form-popup {
    max-width: min(720px, 96vw);
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 8px 8px 8px;
}

.popup-overlay.batch-walk-active .popup-content.tree-form-popup {
    width: min(720px, calc(100vw - 16px));
    max-width: min(720px, calc(100vw - 16px));
    max-height: min(33vh, 288px);
    margin: 0 0 max(8px, env(safe-area-inset-bottom)) 0;
    padding: 30px 10px 10px 10px;
    border-radius: 22px;
    pointer-events: auto;
    overflow: hidden;
}

.popup-overlay.manual-location-active .popup-content.tree-form-popup {
    width: min(560px, calc(100vw - 16px));
    max-width: min(560px, calc(100vw - 16px));
    max-height: 210px;
    margin: 0 0 max(8px, env(safe-area-inset-bottom)) 0;
    padding: 16px 12px 12px;
    border-radius: 22px;
    pointer-events: auto;
    overflow: hidden;
}

.popup-content.tree-form-popup.tree-form-popup--manual-location {
    box-shadow: 0 24px 44px rgba(0,0,0,0.24);
}

.popup-content.tree-form-popup.tree-form-popup--manual-location .close-popup {
    display: none;
}

.tree-manual-location-toolbar {
    display: grid;
    gap: 8px;
    padding: 4px;
}

.tree-manual-location-title {
    margin: 0;
    color: #1f3b1f;
    font-size: 1rem;
    font-weight: 700;
}

.tree-manual-location-hint,
.tree-manual-location-value {
    margin: 0;
    color: #526653;
    font-size: 0.9rem;
}

.tree-manual-location-value {
    min-height: 1.25em;
    color: #24512f;
    font-weight: 700;
}

.tree-manual-location-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tree-manual-location-actions .btn {
    margin: 0;
}

.tree-manual-location-continue:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.popup-overlay.measurement-drawing-active .popup-content.tree-form-popup {
    width: min(560px, calc(100vw - 16px));
    max-width: min(560px, calc(100vw - 16px));
    max-height: 220px;
    margin: 0 0 max(8px, env(safe-area-inset-bottom)) 0;
    padding: 16px 12px 12px;
    border-radius: 22px;
    pointer-events: auto;
    overflow: hidden;
}

.popup-content.tree-form-popup.tree-form-popup--measurement-drawing {
    box-shadow: 0 24px 44px rgba(0,0,0,0.24);
}

.popup-content.tree-form-popup.tree-form-popup--measurement-drawing .close-popup {
    display: none;
}

.tree-measurement-toolbar {
    display: grid;
    gap: 8px;
    padding: 4px;
}

.tree-measurement-title {
    margin: 0;
    color: #1f3b1f;
    font-size: 1rem;
    font-weight: 700;
}

.tree-measurement-hint,
.tree-measurement-value {
    margin: 0;
    color: #526653;
    font-size: 0.9rem;
}

.tree-measurement-value {
    min-height: 1.25em;
    color: #24512f;
    font-weight: 700;
}

.tree-measurement-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tree-measurement-actions .btn {
    margin: 0;
    min-width: 0;
    padding-inline: 8px;
}

.tree-measurement-done:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tree-measurement-map-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    align-items: stretch;
    background: rgba(12, 24, 16, 0.42);
}

.tree-measurement-map-panel {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    background: #eef3eb;
}

.tree-measurement-map {
    width: 100%;
    min-height: 0;
}

.tree-measurement-map-toolbar {
    display: grid;
    gap: 8px;
    padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -14px 28px rgba(17, 42, 26, 0.14);
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk {
    box-shadow: 0 24px 44px rgba(0,0,0,0.24);
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .close-popup {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(244, 248, 241, 0.96);
    border: 1px solid rgba(28, 109, 53, 0.14);
    color: #28412f;
    box-shadow: 0 8px 18px rgba(17, 42, 26, 0.12);
    z-index: 2;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk #tree-form {
    max-height: calc(min(33vh, 288px) - 38px);
    overflow: hidden;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .add_tree_form_wrapper,
.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stage--walk-modal,
.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-card--walk {
    height: 100%;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-card--walk {
    grid-template-rows: auto auto auto;
    padding: 0;
    align-content: start;
    overflow: hidden;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-card--walk-toolbar {
    min-height: 100%;
    align-content: stretch;
    padding-top: 2px;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-form-loading--compact {
    display: flex;
    align-items: center;
    min-height: 20px;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-progress-track--toolbar {
    width: 100%;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .page_title_wrapper,
.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-form-mode-tabs {
    display: none;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stats--toolbar {
    gap: 8px;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stat {
    padding: 8px 6px;
    text-align: center;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stat-label {
    font-size: 0.68rem;
    margin-bottom: 2px;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stat strong {
    font-size: 0.88rem;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-actions--toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-actions--toolbar .btn {
    min-width: 0;
    padding: 9px 8px;
    font-size: 0.84rem;
    line-height: 1.1;
}

.popup-content.tree-form-popup.tree-form-popup--batch-walk .close-popup:hover,
.popup-content.tree-form-popup.tree-form-popup--batch-walk .close-popup:focus-visible {
    background: #ffffff;
    color: #1f6d35;
    outline: none;
}

@media (max-width: 640px) {
    .tree-batch-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tree-batch-actions--stacked .btn,
    .tree-batch-actions .btn {
        flex-basis: calc(50% - 4px);
    }

    .popup-overlay.batch-walk-active .popup-content.tree-form-popup {
        width: calc(100vw - 8px);
        max-width: calc(100vw - 8px);
        max-height: min(34vh, 296px);
        margin: 0 0 max(4px, env(safe-area-inset-bottom)) 0;
        padding: 26px 6px 6px 6px;
        border-radius: 18px 18px 0 0;
    }

    .popup-overlay.manual-location-active .popup-content.tree-form-popup {
        width: calc(100vw - 8px);
        max-width: calc(100vw - 8px);
        max-height: 196px;
        margin: 0 0 max(4px, env(safe-area-inset-bottom)) 0;
        padding: 12px 8px 8px;
        border-radius: 18px 18px 0 0;
    }

    .popup-overlay.measurement-drawing-active .popup-content.tree-form-popup {
        width: calc(100vw - 8px);
        max-width: calc(100vw - 8px);
        max-height: 206px;
        margin: 0 0 max(4px, env(safe-area-inset-bottom)) 0;
        padding: 12px 8px 8px;
        border-radius: 18px 18px 0 0;
    }

    .tree-manual-location-toolbar {
        gap: 6px;
        padding: 0;
    }

    .tree-measurement-toolbar {
        gap: 6px;
        padding: 0;
    }

    .tree-manual-location-hint,
    .tree-manual-location-value,
    .tree-measurement-hint,
    .tree-measurement-value {
        font-size: 0.84rem;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk #tree-form {
        max-height: calc(min(34vh, 296px) - 30px);
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-card--walk {
        padding: 0;
        gap: 6px;
        grid-template-rows: auto auto auto;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .close-popup {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
        font-size: 1.25em;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-walk-title,
    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-copy--walk {
        display: none;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stats {
        gap: 6px;
        margin-bottom: 0;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stat {
        padding: 6px 4px;
        border-radius: 10px;
        text-align: center;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stat-label {
        font-size: 0.66rem;
        margin-bottom: 2px;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-stat strong {
        font-size: 0.82rem;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-actions {
        gap: 6px;
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-actions--toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .popup-content.tree-form-popup.tree-form-popup--batch-walk .tree-batch-actions .btn {
        min-width: 0;
        padding: 8px 6px;
        font-size: 0.82rem;
        line-height: 1.15;
    }
}

:dir(rtl) .popup-content {
    direction: rtl;
}

.popup-content h3 {
    margin-top: 0;
}

.close-popup {
    position: absolute;
    top: 0;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    color: #000;
    width: 1.5em;
    padding: 8px;
    margin: 10px 0;
    cursor: pointer;
}

.close-popup:hover {
    color: #000;
    background: none;
}

.popup-overlay.hidden {
    display: none;
}

.popup-content .popup_icon {
    height: 1em;
    width: auto;
    margin: 0 0 -2px 0;
}

.tree-reports-summary {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #f5faf4 0%, #eef8ed 100%);
    border: 1px solid #d7ead6;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.tree-reports-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tree-reports-summary-head h4 {
    margin: 0;
}

.tree-reports-badge {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--project-color-1);
    font-weight: 700;
}

.tree-reports-empty,
.tree-reports-latest-title,
.tree-reports-latest-date,
.tree-reports-latest-snippet {
    margin: 8px 0 0 0;
}

.tree-reports-latest-title {
    font-weight: 700;
}

.tree-reports-latest-snippet {
    color: #405246;
    line-height: 1.45;
}

.tree-reports-actions {
    display: grid;
    grid-template-columns: minmax(0, 85fr) minmax(44px, 15fr);
    gap: 8px;
    margin-top: 12px;
}

.tree-reports-btn,
.reports-back-btn,
.report-secondary-btn,
.report-action-btn {
    border-radius: 8px;
}

.tree-reports-btn {
    min-height: 42px;
}

.tree-reports-btn--add {
    padding-inline: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.reports-thread {
    display: flex;
    flex-flow: column;
    gap: 14px;
}

.reports-thread-shell {
    max-height: 90vh;
    overflow-y: auto;
    padding: 0 4px 28px 0;
    scroll-padding-bottom: 36px;
}

.reports-thread-header {
    display: flex;
    flex-flow: column;
    gap: 10px;
    padding: 0 0 12px 0;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
}

.reports-thread-meta h3 {
    margin: 0;
}

.reports-thread-kicker,
.reports-thread-subtitle,
.report-date,
.report-author {
    color: #566;
    font-size: 0.92em;
}

.report-form {
    display: flex;
    flex-flow: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid #dde6db;
    border-radius: 16px;
    background: linear-gradient(180deg, #fafcf9 0%, #f3f8f1 100%);
    box-shadow: 0 10px 22px rgba(46, 125, 50, 0.08);
}

.report-form-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-form-title-row h4 {
    margin: 0;
}

.report-form-hint {
    color: #5b6b5f;
    font-size: 0.92em;
    margin-bottom: 2px;
}

.report-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-checkbox input {
    width: auto;
    margin: 0;
}

.report-form-message {
    min-height: 1.2em;
    font-size: 0.92em;
}

.report-form-message.error {
    color: #b42318;
}

.report-form-message.success {
    color: #1d6f42;
}

.reports-thread-toolbar {
    display: flex;
    justify-content: flex-start;
}

.reports-add-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.report-type-picker {
    position: relative;
    margin-top: 6px;
}

.report-type-trigger {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #d3dfd1;
    border-radius: 8px;
    background: #fff;
    color: #203326;
    cursor: pointer;
}

.report-type-trigger__value,
.report-type-option,
.report-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.report-type-trigger__value img,
.report-type-option img,
.report-type-badge__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.report-type-trigger__chevron {
    width: 9px;
    height: 9px;
    border-inline-end: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
}

.report-type-options {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 6px);
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #d3dfd1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(25, 68, 35, 0.14);
}

.report-type-option {
    width: 100%;
    justify-content: flex-start;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #203326;
    cursor: pointer;
    text-align: start;
}

.report-type-option:hover,
.report-type-option:focus-visible,
.report-type-option.active {
    background: #edf5eb;
}

.reports-loading,
.reports-empty,
.reports-error,
.reports-readonly-note {
    padding: 14px;
    border-radius: 10px;
    background: #f7f7f7;
}

.reports-error {
    background: #fff2f0;
    color: #b42318;
}

.reports-list {
    display: flex;
    flex-flow: column;
    gap: 12px;
    padding-bottom: 24px;
}

.report-card {
    padding: 14px;
    border: 1px solid #e3eadf;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdfc 100%);
    box-shadow: 0 8px 20px rgba(25, 68, 35, 0.07);
}

.report-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.report-card-head h4 {
    margin: 4px 0 0 0;
}

.report-type-badge {
    width: fit-content;
    padding: 5px 8px;
    border-radius: 8px;
    background: #edf5eb;
    color: #244a2b;
    font-size: 0.84rem;
    font-weight: 700;
}

.report-description {
    margin-top: 10px;
    line-height: 1.5;
    white-space: normal;
}

.report-media {
    display: flex;
    flex-flow: column;
    gap: 10px;
    margin-top: 12px;
}

.report-images-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.report-images-label {
    font-weight: 700;
    color: #15301c;
}

.report-media-block {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.report-image,
.report-video {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.reports-thread-shell::-webkit-scrollbar {
    width: 10px;
}

.reports-thread-shell::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.35);
    border-radius: 999px;
}

.report-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.report-action-btn,
.report-secondary-btn,
.reports-back-btn {
    width: auto;
    padding: 8px 12px;
}

.report-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}

.report-action-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.reports-back-btn,
.report-secondary-btn {
    background: #edf5eb;
    color: #244a2b;
}

.reports-back-btn:hover,
.report-secondary-btn:hover {
    background: #dcecd7;
}

.report-action-btn.danger {
    background: #b42318;
}

.report-action-btn.danger:hover {
    background: #8f1b13;
}

.popup_edit_wrapper {
    position: relative;
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin: 10px 0 0 0;
}

    .popup_edit_wrapper a img,
    .popup_edit_wrapper .delete_tree img,
    .popup_edit_wrapper .delete_plot img,
    .delete_ref img,
    .delete_inc img {
        width: 28px;
        height: auto;
    }

.delete_ref,
.delete_inc {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

/*** Oak Leaf Menu ***/
.oak-leaf-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1000;
    background-color: var(--menu-chrome-bg);
    color: var(--menu-chrome-fg);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 4px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1500;
}

body.leaf-menu-pending > #oak-leaf-btn,
body.leaf-menu-pending > #side-menu,
body.leaf-menu-pending > #menu-overlay {
    visibility: hidden;
    pointer-events: none;
}

#oak-leaf-btn[data-ui-dir="rtl"] {
    left: unset;
    right: 16px;
}

.oak-leaf-visual {
    position: absolute;
    inset: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.oak-leaf-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: var(--menu-chrome-icon-filter);
    transform: rotate(45deg);
    transition: filter 0.3s ease;
}

.oak-leaf-close {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.oak-leaf-close-line {
    position: absolute;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--menu-chrome-fg);
    transform-origin: center;
}

.oak-leaf-close-line:first-child {
    transform: rotate(45deg);
}

.oak-leaf-close-line:last-child {
    transform: rotate(-45deg);
}

.oak-leaf-btn.open {
    background: var(--menu-chrome-bg);
    box-shadow: none;
}

.oak-leaf-btn.open .oak-leaf-visual {
    opacity: 0;
    transform: scale(0.7);
}

.oak-leaf-btn.open .oak-leaf-close {
    opacity: 1;
    transform: scale(1);
}

#side-menu {
    position: fixed;
    top: 0;
    left: -80vw;
    width: 80vw;
    max-width: 350px;
    height: 100vh;
    background-color: var(--menu-chrome-bg);
    box-shadow: -3px 0 8px rgba(0,0,0,0.3);
    /*transition: right 0.4s ease;*/
    z-index: 1000;
    padding: 20px 0;
    color: var(--menu-chrome-fg);
    /*width: 48px;*/
    /*height: 48px;*/
    /*border-radius: 200px;*/
    opacity: 0;
    overflow-x: hidden;
    overflow-y: auto;
    transition: all 0.4s ease;
}

#side-menu.open {
    left: 0;
    top: 0;
    width: 80vw;
    max-width: 350px;
    height: 100vh;
    /*border-radius: 0;*/
    opacity: 1;
}

#side-menu[data-ui-dir="rtl"] {
    direction: rtl;
    text-align: right;
    left: unset;
    right: -80vw;
}

#side-menu[data-ui-dir="ltr"] {
    direction: ltr;
    text-align: left;
}

#side-menu[data-ui-dir="rtl"].open {
    left: unset;
    right: 0;
}

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

#menu-overlay.show {
    width: 100vw;
    height: 100vh;
    opacity: 1;
    pointer-events: auto;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 70px 0;
    opacity: 0;
    transition: all 0.3s ease 0.3s;
}

.side-menu.open ul {
    opacity: 1;
}

.side-menu ul li {
    padding: 0;
    margin: 5px 0;
    transform: translateX(-50vw);
    transition: all 0.3s;
    transition-delay: 0.7s;
}

.side-menu.open ul li {
    transform: translateX(0);
}

#side-menu[data-ui-dir="rtl"] ul li {
    transform: translateX(50vw);
}

#side-menu[data-ui-dir="rtl"].open ul li {
    transform: translateX(0);
}

.side-menu ul li a,
.side-menu ul li a:visited,
.side-menu-link {
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    color: var(--menu-chrome-fg);
    font-size: 1em;
    padding: 10px 15px;
    text-decoration: none !important;
    align-items: center;
    border-radius: 0;
    transition: background-color 0.24s ease, color 0.24s ease;
}

.side-menu-link {
    cursor: default;
}

.side-menu-link--disabled {
    opacity: 0.56;
}

.side-menu-divider {
    height: 1px;
    margin: 14px 15px;
    background: var(--menu-chrome-divider);
    transform: none !important;
}

.side-menu ul li a:hover,
.side-menu ul li a:focus-visible {
    color: var(--menu-chrome-hover-fg);
    background: var(--menu-chrome-hover-bg);
}

.side-menu ul li a:hover .menu-item-icon img,
.side-menu ul li a:focus-visible .menu-item-icon img {
    filter: var(--menu-chrome-hover-icon-filter);
}

.side-menu ul li:nth-child(1) {
    transition-delay: 0s;
}

.side-menu ul li:nth-child(2) {
    transition-delay: 0.1s;
}

.side-menu ul li:nth-child(3) {
    transition-delay: 0.2s;
}

.side-menu ul li:nth-child(4) {
    transition-delay: 0.3s;
}

.side-menu ul li:nth-child(5) {
    transition-delay: 0.4s;
}

.side-menu ul li:nth-child(6) {
    transition-delay: 0.5s;
}

.side-menu ul li:nth-child(7) {
    transition-delay: 0.6s;
}

.side-menu ul li:nth-child(8) {
    transition-delay: 0.8s;
}

.side-menu ul li:nth-child(9) {
    transition-delay: 1s;
}

.side-menu ul li:nth-child(10) {
    transition-delay: 1.2s;
}

.side-menu ul li:nth-child(11) {
    transition-delay: 1.4s;
}

.side-menu ul li:nth-child(12) {
    transition-delay: 1.6s;
}

.menu-item-icon {
    display: flex;
    margin: 0 10px 0 0;
}

#side-menu[data-ui-dir="rtl"] .menu-item-icon {
    display: flex;
    margin: 0 0 0 10px;
}

.menu-item-icon img {
    height: 2em;
    width: auto;
    filter: var(--menu-chrome-icon-filter);
    transition: filter 0.24s ease;
}

.profile-link {
    position: absolute;
    top: 30px;
    right: 16px;
    display: flex;
    flex-flow: row wrap;
}

.side-menu-super-admin-group {
    margin: 20px 15px 24px;
    padding: 14px 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease 0.35s, transform 0.3s ease 0.35s;
    scroll-margin-bottom: 24px;
}

.side-menu.open .side-menu-super-admin-group {
    opacity: 1;
    transform: translateY(0);
}

.side-menu-super-admin-group.hidden {
    display: none;
}

.side-menu-super-admin-group__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.side-menu-super-admin-group__link {
    display: flex;
    width: 50%;
    min-width: 0;
    flex: 0 0 50%;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: var(--menu-chrome-fg);
    font-size: 0.85em;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background-color 0.24s ease, color 0.24s ease, opacity 0.24s ease;
    opacity: 0.9;
    box-sizing: border-box;
}

.side-menu-super-admin-group__link:hover,
.side-menu-super-admin-group__link:focus-visible,
.side-menu-super-admin-group__link.is-active {
    background: rgba(255,255,255,0.12);
    opacity: 1;
}

.side-menu-super-admin-group__link.is-active {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.side-menu-super-admin-group__icon {
    margin: 0;
    flex: 0 0 auto;
}

.side-menu-super-admin-group__icon img {
    height: 1.5em;
}

#side-menu[data-ui-dir="rtl"] .side-menu-super-admin-group__link {
    text-align: right;
}

@media (max-width: 360px) {
    .side-menu-super-admin-group__link {
        width: 100%;
        flex-basis: 100%;
    }
}

#user-profile-link[data-ui-dir="rtl"] {
    right: unset;
    left: 16px;
}

.profile-link a,
.profile-link a:visited {
    color: var(--menu-chrome-fg);
    text-decoration: none !important;
}

.profile-link-action,
.profile-link-action:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--menu-chrome-fg);
    text-decoration: none !important;
    font-size: 0.95rem;
}

.profile-link-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.profile-link-action-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: var(--menu-chrome-icon-filter);
}

.profile-link-action-label {
    white-space: nowrap;
}

.profile_img {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 100px;
    background: #fff;
    overflow: hidden;
}

.profile_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (min-width: 991px) {
    #side-menu.open {
        max-width: 350px;
    }
}/***m***/

/*** Voice Button ***/
.voice-btn {
    position: absolute;
    top: 16px;
    /*right: 16px;*/
    left: 16px;
    z-index: 1000;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 4px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1500;
}

:dir(rtl) .voice-btn {
    right: unset;
    left: 16px;
}

.voice-btn img {
    width: 100%;
    height: auto;
    filter: invert(1);
    transition: all 0.3s;
}

.voice-btn.active {
    background: #fff;
}

.voice-btn.active img {
    filter: invert(0);
}

.popup-content.tree-form-popup .voice-btn {
    top: -40px;
    right: 8px;
}

:dir(rtl) .popup-content.tree-form-popup .voice-btn {
    right: unset;
    left: 8px;
}

/*** Form Action overlay ***/


.action_overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.action_overlay.hidden {
    display: none !important;
}

.action_content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 50px 20px 20px 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    position: relative;
}

:dir(rtl) .action_content {
    direction: rtl;
}

.action_content_message {
    font-weight: 700;
    margin-bottom: 12px;
}

.action_progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action_progress_track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e6ece3;
    overflow: hidden;
}

.action_progress_bar {
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #2f7a45, #4caf50);
    transition: width 0.18s ease;
}

.action_progress_detail {
    color: #536453;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.super-admin-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2500;
    background: #000;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.super-admin-toolbar.hidden {
    display: none;
}

.super-admin-toolbar__inner {
    min-height: 36px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    direction: ltr;
    white-space: nowrap;
    scrollbar-width: thin;
}

.super-admin-toolbar__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
    opacity: 0.88;
    transition: opacity 0.18s ease;
}

.super-admin-toolbar__icon {
    width: auto;
    height: 1.2em;
    flex: 0 0 auto;
    filter: brightness(0) invert(1);
}

.super-admin-toolbar__link:hover,
.super-admin-toolbar__link:focus-visible,
.super-admin-toolbar__link.is-active {
    opacity: 1;
}

.super-admin-toolbar__link.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.super-admin-toolbar__divider {
    flex: 0 0 auto;
    opacity: 0.38;
}

body.super-admin-toolbar-visible {
    padding-top: 36px;
}

.ff-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 10200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 32, 24, 0.46);
    backdrop-filter: blur(5px);
}

.ff-dialog {
    width: min(440px, 100%);
    max-height: min(86vh, 620px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(45, 122, 45, 0.18);
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    color: #1f2b22;
    padding: 26px;
}

.ff-dialog__close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #425246;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ff-dialog__close:hover,
.ff-dialog__close:focus-visible {
    background: #eef3e8;
    outline: none;
}

.ff-dialog__title {
    margin: 0 0 8px;
    padding-inline-end: 28px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.ff-dialog__message {
    margin: 0;
    color: #4b5d50;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-line;
}

.ff-dialog__input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
    border: 1px solid #c8d7c4;
    border-radius: 8px;
    padding: 12px;
    font: inherit;
}

.ff-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.ff-dialog__button {
    min-height: 40px;
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ff-dialog__button--primary {
    background: #2d7a2d;
    color: #fff;
}

.ff-dialog--danger .ff-dialog__button--primary,
.ff-dialog--warning .ff-dialog__button--primary {
    background: #b6452c;
}

.ff-dialog__button--secondary {
    background: #f3f6f1;
    border-color: #d6e0d2;
    color: #2e3b31;
}

.ff-dialog__button:hover,
.ff-dialog__button:focus-visible {
    filter: brightness(0.96);
    outline: 3px solid rgba(45, 122, 45, 0.16);
}

.ff-toast-root {
    position: fixed;
    inset-inline: 16px;
    bottom: 18px;
    z-index: 10001;
    display: grid;
    justify-items: center;
    gap: 8px;
    pointer-events: none;
}

.ff-toast {
    max-width: min(520px, calc(100vw - 32px));
    border-radius: 8px;
    background: #1f2b22;
    color: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    padding: 12px 16px;
    font-weight: 600;
    line-height: 1.45;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ff-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ff-toast--success {
    background: #246f34;
}

.ff-toast--error {
    background: #a33b2d;
}

.ff-toast--warning {
    background: #8a5d1b;
}

@media (max-width: 767px) {
    .super-admin-toolbar {
        display: none !important;
    }

    body.super-admin-toolbar-visible {
        padding-top: 0;
    }
}
/* Authentication locale selector */
.auth-language-selector {
    position: absolute;
    inset-block-start: 18px;
    inset-inline-end: 18px;
    z-index: 2;
    margin: 0;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.language-switcher__option {
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 2px 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #647269;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.language-switcher__option + .language-switcher__option {
    border-inline-start: 1px solid #cbd5ce;
}

.language-switcher__option:hover {
    background: transparent;
    color: #275c37;
}

.language-switcher__option[aria-pressed="true"],
.language-switcher__option:disabled {
    background: transparent;
    color: #205c35;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: default;
    opacity: 1;
}

.language-switcher__option:focus-visible {
    outline: 2px solid rgba(45, 122, 45, 0.42);
    outline-offset: 2px;
    background: transparent;
}

@media (max-width: 640px) {
    .auth-language-selector {
        inset-block-start: 12px;
        inset-inline-end: 12px;
    }

    .language-switcher__option {
        padding-inline: 6px;
    }
}
