/*
 * Generated file. Do not edit directly.
 * Source modules are listed in scripts/build-css-manifest.txt.
 * Rebuild with: python3 scripts/build-css.py
 */

/* --- public/assets/css/core/base.css --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/*
 * Hempsight UI (Bootstrap-first DFB parity layer)
 * - Keep the shell, spacing, and controls aligned with digital-field-book.
 * - Keep selectors flat and explicit to avoid override chains.
 */

:root {
    --ui-bg: #d4dde3;
    --ui-shell: rgba(255, 255, 255, 0.28);
    --ui-surface: #ffffff;
    --ui-surface-soft: #f5f8fa;
    --ui-border: #d5dde5;
    --ui-text: #1f2937;
    --ui-muted: #6b7280;

    --ui-brand: #6f9c3d;
    --ui-brand-dark: #5f852f;
    --ui-brand-soft: #8cb35c;
    --ui-toolbar: #444b5a;

    --ui-danger: #dc3545;
    --ui-warning: #f59e0b;
    --ui-success: #15803d;

    --ui-radius-shell: 25px;
    --ui-radius-card: 25px;
    --ui-radius-pill: 999px;

    --ui-shadow-shell: 0 16px 40px rgba(15, 23, 42, 0.16);
    --ui-shadow-card: 0 8px 20px rgba(15, 23, 42, 0.07);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ui-text);
    background:
        linear-gradient(rgba(235, 240, 243, 0.82), rgba(228, 234, 238, 0.82)),
        url('/assets/fieldbook-background.jpg') center bottom / cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ui-text);
    font-weight: 700;
}

.page,
.page {
    min-height: 100vh;
}

/* ---------- Bootstrap alignment layer ---------- */

.card {
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-card);
    box-shadow: var(--ui-shadow-card);
    background: rgba(255, 255, 255, 0.95);
}

.card-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--ui-border);
    border-radius: var(--ui-radius-card) var(--ui-radius-card) 0 0 !important;
    padding: 0.7rem 0.95rem;
}

.card-body {
    padding: 0.95rem;
}

.alert {
    border-radius: 10px;
}

.badge-soft {
    background: rgba(111, 156, 61, 0.14);
    color: #3c5a20;
    border: 1px solid rgba(111, 156, 61, 0.22);
    border-radius: var(--ui-radius-pill);
}

.form-label {
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.35rem;
}

.form-control,
.form-select,
.form-check-input {
    border-color: #c7d0da;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(111, 156, 61, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(111, 156, 61, 0.16);
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #4b5563;
}

.table td,
.table th {
    vertical-align: middle;
}

.app-notice-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.app-notice {
    min-width: 280px;
    max-width: min(420px, calc(100vw - 32px));
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    color: var(--ui-text);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: auto;
}

.app-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.app-notice--warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(255, 251, 235, 0.98);
}

.app-notice--danger {
    border-color: rgba(220, 53, 69, 0.28);
    background: rgba(254, 242, 242, 0.98);
}

.app-notice--success {
    border-color: rgba(21, 128, 61, 0.25);
    background: rgba(240, 253, 244, 0.98);
}

.app-notice__message {
    flex: 1 1 auto;
    font-size: 13px;
    line-height: 1.45;
}

.app-notice__close {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(31, 41, 55, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.app-notice__close:hover,
.app-notice__close:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    color: var(--ui-text);
}

.app-confirm-modal__content {
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

.app-confirm-modal__header,
.app-confirm-modal__footer {
    border-color: var(--ui-border);
}

.app-confirm-modal__header {
    padding: 0.95rem 1rem 0.8rem;
}

.app-confirm-modal__body {
    padding: 1rem;
    color: #374151;
}

.app-confirm-modal__footer {
    padding: 0.85rem 1rem 1rem;
}

.app-confirm-modal__title {
    font-size: 1rem;
    font-weight: 700;
}

/* --- public/assets/css/layout/shell.css --- */
/* ---------- Shell layout ---------- */

.app-shell {
    display: flex;
    min-height: calc(100vh - 16px);
    margin: 8px;
    border-radius: var(--ui-radius-shell);
    background: var(--ui-shell);
    border: 1px solid rgba(155, 186, 209, 0.9);
    box-shadow: var(--ui-shadow-shell);
    overflow: hidden;
    backdrop-filter: blur(2px);
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    background: rgba(238, 238, 238, 0.78);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease;
    z-index: 1000;
}

/* --- public/assets/css/layout/sidebar/shell.css --- */
/* ---------- Sidebar ---------- */

.app-sidebar {
    width: 254px;
    min-width: 254px;
    display: flex;
    flex-direction: column;
    background: var(--ui-brand);
    color: #f7fafc;
    padding: 8px 8px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    overflow-y: auto;
    transition:
        width 180ms ease,
        min-width 180ms ease,
        padding 180ms ease,
        border-color 180ms ease,
        opacity 140ms ease;
}

/* --- public/assets/css/layout/sidebar/brand.css --- */
.app-sidebar__brand {
    padding: 14px 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    text-align: center;
}

.app-sidebar__brand-head--text {
    font-size: 31px;
    line-height: 1;
    letter-spacing: 0.03em;
    font-weight: 700;
    text-transform: uppercase;
}

.app-sidebar__brand-subtitle--fieldbook {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 600;
}

.app-sidebar__farm-id {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

/* --- public/assets/css/layout/sidebar/navigation.css --- */
.app-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px !important;
    padding: 0 6px;
}

.app-sidebar__link,
.app-sidebar__section-head,
.app-sidebar__sublink {
    text-decoration: none;
    color: #f3f7f1;
}

.app-sidebar__link,
.app-sidebar__section-head {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 25px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 13px;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.app-sidebar__link:hover,
.app-sidebar__section-head:hover {
    background: rgba(255, 255, 255, 0.14);
}

.app-sidebar__link.is-active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.app-sidebar__icon {
    width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-sidebar__icon .icon,
.app-sidebar__location-icon {
    font-size: 16px;
    color: #445066;
}

.app-sidebar__text {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
}

.app-sidebar__chevron {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
}

.app-sidebar__chevron-icon {
    font-size: 12px;
}

.app-sidebar__subnav {
    display: none;
    margin: 3px 0 8px 35px;
    padding-left: 2px;
}

.app-sidebar__subnav.is-open {
    display: block;
}

.app-sidebar__sublink {
    min-height: 30px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 4px 13px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.94);
    transition: background 120ms ease;
}

.app-sidebar__sublink::before {
    content: '\203A';
    margin-right: 8px;
    color: rgba(68, 75, 90, 0.9);
    font-weight: 700;
}

.app-sidebar__sublink:hover {
    background: rgba(255, 255, 255, 0.14);
}

.app-sidebar__sublink.is-active {
    background: rgba(229, 231, 235, 0.24);
}

.app-sidebar__divider {
    height: 1px;
    margin: 14px 14px;
    background: rgba(255, 255, 255, 0.28);
}

.app-sidebar__group-label {
    margin: 4px 16px 6px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.app-sidebar__group-label--admin {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.84);
}

/* --- public/assets/css/layout/sidebar/footer.css --- */
.app-sidebar__footer {
    margin-top: auto !important;
}

.app-sidebar__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.94);
    padding: 4px 8px 2px;
}

.app-sidebar__location-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.app-sidebar__location-text {
    white-space: nowrap;
    flex: 0 1 auto;
    line-height: 1.15;
}

.app-sidebar__location-status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 7px;
    border-radius: var(--ui-radius-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.app-sidebar__location-status[data-state="active"] {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(110, 231, 183, 0.45);
}

.app-sidebar__location-status[data-state="pending"] {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(253, 186, 116, 0.4);
}

.app-sidebar__location-status[data-state="error"] {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(252, 165, 165, 0.36);
}

.app-sidebar__location-detail {
    display: inline-flex;
    align-items: center;
    min-height: 14px;
    font-size: 10px;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.76);
    white-space: nowrap;
}

.app-sidebar__location-detail[hidden] {
    display: none !important;
}

.app-sidebar__location-switch-wrap {
    position: relative;
    cursor: pointer;
}

.app-sidebar__location-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.app-sidebar__location-switch {
    width: 34px;
    height: 18px;
    border-radius: var(--ui-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.2);
    padding: 2px;
    display: inline-flex;
    align-items: center;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.app-sidebar__location-knob {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: transform 140ms ease;
}

.app-sidebar__location-icon {
    opacity: 0.86;
}

.app-sidebar__location-action {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.94);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0;
    transition: background-color 140ms ease, opacity 140ms ease;
}

.app-sidebar__location-action[hidden] {
    display: none !important;
}

.app-sidebar__location-action:hover,
.app-sidebar__location-action:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.app-sidebar__location-switch-input:disabled + .app-sidebar__location-switch {
    opacity: 0.6;
}

body.location-enabled .app-sidebar__location-switch {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.56);
}

body.location-enabled .app-sidebar__location-knob {
    transform: translateX(14px);
}

body.location-pending .app-sidebar__location-action {
    opacity: 0.6;
    pointer-events: none;
}

body.location-pending .app-sidebar__location-switch-wrap {
    opacity: 0.8;
}

/* --- public/assets/css/layout/topbar/shell.css --- */
/* ---------- Topbar ---------- */

.app-topbar {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 12px;
    border-bottom: 1px solid rgba(68, 75, 90, 0.12);
    background: var(--ui-surface);
}

.app-topbar__left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.app-topbar__page-title {
    font-size: 18px;
    line-height: 1;
    font-weight: 500;
    color: var(--ui-toolbar);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- public/assets/css/layout/topbar/controls.css --- */
.app-topbar__menu-btn,
.app-topbar__icon-btn,
.app-topbar__locale-btn,
.app-topbar__user-btn {
    border: 0;
    background: transparent;
    color: #111827;
    border-radius: 0;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 120ms ease, opacity 120ms ease;
}

.app-topbar__menu-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--ui-radius-pill);
    background: var(--ui-brand);
    color: #fff;
    border: 0;
}

.app-topbar__menu-btn:hover,
.app-topbar__menu-btn:focus-visible {
    background: var(--ui-brand-dark);
    color: #fff;
}

.app-topbar__icon-btn {
    width: 28px;
}

.app-topbar__icon-btn:hover,
.app-topbar__locale-btn:hover,
.app-topbar__user-btn:hover {
    color: #374151;
    opacity: 0.84;
}

.app-topbar__locale-btn {
    padding: 0 1px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.app-topbar__locale,
.app-topbar__user-wrap,
.app-topbar__user-meta {
    display: inline-flex;
    align-items: center;
}

.app-topbar__locale-caret {
    font-size: 9px;
}

.app-topbar__user-btn {
    padding: 0 1px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.app-topbar__user-label {
    white-space: nowrap;
}

.app-topbar__quick-icon,
.app-topbar__user-icon {
    line-height: 1;
}

.app-topbar__locale-menu,
.app-topbar__user-menu {
    border-radius: 25px;
    border-color: #cfd8e1;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
    padding: 8px;
}

.app-topbar__locale-menu .dropdown-item.active {
    background: #e8f1de;
    color: #2f4a1a;
}

/* --- public/assets/css/layout/topbar/user-menu.css --- */
.app-topbar__user-card {
    width: 320px;
    max-width: calc(100vw - 40px);
    background: var(--ui-brand);
    color: #ffffff;
    border-radius: 25px;
    padding: 13px;
}

.app-topbar__user-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.app-topbar__user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
}

.app-topbar__user-name {
    font-size: 14px;
    font-weight: 700;
}

.app-topbar__user-email {
    font-size: 11px;
    opacity: 0.95;
}

.app-topbar__user-actions {
    display: grid;
    gap: 8px;
}

.app-topbar__user-action {
    border-radius: var(--ui-radius-pill);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.app-topbar__user-action--admin {
    background: var(--ui-toolbar);
    color: #fff;
}

.app-topbar__user-action--admin:hover {
    background: #39404d;
    color: #fff;
}

.app-topbar__user-action--logout {
    background: #c10015;
    color: #fff;
}

.app-topbar__user-action--logout:hover {
    background: #a70012;
    color: #fff;
}

/* --- public/assets/css/components/surfaces.css --- */
/* ---------- Shared DFB controls ---------- */

.ft-table-shell {
    border-radius: var(--ui-radius-card);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.ft-table-shell .card-body {
    padding: 0.95rem;
}

.ft-table-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ft-table-shell__count {
    color: var(--ui-muted);
    white-space: nowrap;
}

.ft-section-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.ft-section-title__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(68, 75, 90, 0.14);
    color: var(--ui-toolbar);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ft-section-title__body {
    display: block;
    min-width: 0;
}

.ft-section-title__text {
    display: block;
    font-size: 1.05rem;
    line-height: 1.1;
    font-weight: 700;
    color: #374151;
}

.ft-section-title__subtext {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--ui-muted);
}

/* --- public/assets/css/components/tables.css --- */
.ft-grid-table-wrap {
    border: 1px solid var(--ui-border);
    border-radius: 25px;
    overflow: hidden;
}

.ft-grid-table-wrap--capped {
    max-height: 30rem;
    overflow: auto;
}

.ft-grid-table thead th {
    font-size: 11px;
    background: #f7fafc;
    color: #475569;
    font-weight: 700;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid #d8e1e8;
}

.ft-grid-table tbody td {
    padding: 0.78rem 0.85rem;
    border-color: #e5ebf1;
}

.ft-grid-table tbody tr:nth-child(odd) {
    background: rgba(245, 248, 250, 0.75);
}

.ft-grid-table tbody tr:hover {
    background: #f8fbfd;
}

.ft-grid-table .form-select,
.ft-grid-table .form-control {
    min-height: 30px;
    font-size: 12px;
}

/* --- public/assets/css/components/tabs.css --- */
.section-anchor-nav .card-body {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.section-tabs__panels {
    display: grid;
    gap: 12px;
}

.section-tabs__panel {
    display: block;
}

.section-tabs__panel[hidden] {
    display: none !important;
}

/* --- public/assets/css/components/toolbars.css --- */
.dfb-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    flex-wrap: wrap;
}

.dfb-toolbar-row + .dfb-toolbar-row {
    margin-top: 7px;
}

.dfb-toolbar-row--top-actions {
    margin-bottom: 2px;
}

.dfb-toolbar-row--filters {
    padding-top: 2px;
}

.dfb-toolbar-left,
.dfb-toolbar-right,
.ft-toolbar__left,
.ft-toolbar__right,
.ft-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.ft-toolbar,
.ft-toolbar--filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.dfb-pill-btn,
.ft-chip-btn {
    min-height: 28px;
    border-radius: var(--ui-radius-pill);
    border: 1px solid rgba(68, 75, 90, 0.18);
    background: var(--ui-toolbar);
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 11px;
    font-size: 11px;
    font-weight: 600;
}

.dfb-pill-btn--action {
    min-width: 82px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dfb-pill-btn--icon-only {
    min-width: 36px;
    padding-inline: 9px;
}

.dfb-pill-btn--block {
    width: 100%;
}

.dfb-pill-btn:hover,
.ft-chip-btn:hover {
    background: #353d4c;
    color: #ffffff;
}

.dfb-pill-btn[disabled],
.dfb-pill-btn.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
    background: #e8edf2;
    color: #64748b;
    border-color: rgba(100, 116, 139, 0.2);
}

.dfb-pill-btn--light {
    background: #ffffff;
    color: var(--ui-toolbar);
    border-color: rgba(68, 75, 90, 0.18);
}

.dfb-icon-btn,
.ft-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--ui-radius-pill);
    border: 1px solid rgba(68, 75, 90, 0.24);
    background: #ffffff;
    color: #3f4a5a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dfb-icon-btn:hover,
.ft-icon-btn:hover {
    border-color: rgba(111, 156, 61, 0.56);
    background: #eef6e7;
    color: #35521b;
}

.dfb-icon-btn.is-active,
.ft-icon-btn.is-active {
    border-color: rgba(111, 156, 61, 0.56);
    background: #eef6e7;
    color: #35521b;
}

.dfb-icon-btn[disabled],
.ft-icon-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* --- public/assets/css/components/filters.css --- */
.dfb-input-wrap,
.ft-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.ft-filter__icon {
    position: absolute;
    left: 10px;
    color: #64748b;
    pointer-events: none;
}

.dfb-input,
.ft-filter .form-control,
.ft-filter .form-select {
    width: 100%;
    min-height: 30px;
    border: 1px solid rgba(68, 75, 90, 0.22);
    border-radius: var(--ui-radius-pill);
    background: #ffffff;
    color: #334155;
    padding: 0 11px;
    font-size: 11px;
}

.ft-filter--search {
    flex: 1 1 280px;
}

.ft-filter--search .form-control {
    min-width: 220px;
    max-width: 100%;
    padding-left: 30px;
}

.ft-filter--narrow {
    flex: 0 1 170px;
}

.dfb-input-wrap > .bi {
    position: absolute;
    right: 10px;
    color: #64748b;
    pointer-events: none;
}

.dfb-input-icon {
    position: absolute;
    left: 10px;
    color: #64748b;
    pointer-events: none;
}

.dfb-input-wrap .dfb-input,
.dfb-input-wrap .dfb-input--date,
.dfb-input-wrap .dfb-input--select {
    padding-right: 30px;
}

.dfb-input-wrap .dfb-input-icon + .dfb-input {
    padding-left: 30px;
}

/* --- public/assets/css/pages/farm.css --- */
/* ---------- Farm page ---------- */

.farm-page__stack {
    display: grid;
    gap: 16px;
}

.farm-collapsible {
    overflow: hidden;
}

.farm-collapsible__summary {
    list-style: none;
    cursor: pointer;
}

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

.farm-collapsible__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.farm-collapsible__chevron {
    width: 12px;
    height: 12px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
}

.farm-collapsible[open] .farm-collapsible__chevron {
    transform: rotate(225deg);
    margin-top: 4px;
}

.farm-collapsible__body {
    padding-top: 0.85rem;
}

.farm-guide-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(111, 156, 61, 0.24);
    border-radius: 20px;
    background: linear-gradient(135deg, #f5faee 0%, #ffffff 58%, #eef6df 100%);
    box-shadow: 0 14px 32px rgba(53, 82, 27, 0.08);
    padding: 18px 20px;
}

.farm-guide-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #7cad40 0%, #58772f 100%);
}

.farm-guide-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.farm-guide-card__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #35521b;
}

.farm-guide-card__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(111, 156, 61, 0.14);
    color: #35521b;
    font-size: 12px;
    font-weight: 700;
}

.farm-guide-card__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(111, 156, 61, 0.18);
    margin-bottom: 12px;
}

.farm-guide-card__cta-copy {
    min-width: 0;
}

.farm-guide-card__next-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5b6f44;
}

.farm-guide-card__title {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    color: #1f2937;
    margin-top: 4px;
}

.farm-guide-card__body {
    font-size: 14px;
    color: #475569;
    max-width: 920px;
}

.farm-guide-card__steps {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #334155;
}

.farm-guide-card__primary-action {
    flex-shrink: 0;
    min-height: 44px;
    box-shadow: 0 10px 22px rgba(53, 82, 27, 0.18);
}

.farm-guide-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .farm-guide-card {
        padding: 16px;
    }

    .farm-guide-card__header,
    .farm-guide-card__cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .farm-guide-card__title {
        font-size: 20px;
    }

    .farm-guide-card__primary-action {
        width: 100%;
        justify-content: center;
    }
}

.farm-info-table-wrap {
    background: #ffffff;
}

.farm-info-table th,
.farm-info-table td {
    padding: 0.82rem 0.95rem;
}

.farm-info-table th {
    width: 220px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    background: rgba(245, 248, 250, 0.75);
    border-bottom: 1px solid #e5ebf1;
}

.farm-info-table td {
    border-bottom: 1px solid #e5ebf1;
    color: #1f2937;
}

.farm-info-table tbody tr:last-child th,
.farm-info-table tbody tr:last-child td {
    border-bottom: 0;
}

.farm-fields-table__check {
    width: 42px;
}

.farm-fields-table__identifier {
    width: 160px;
}

.farm-fields-table tbody td:nth-child(4) {
    white-space: nowrap;
}

.farm-fields-empty-note {
    border: 1px dashed rgba(100, 116, 139, 0.32);
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    padding: 16px;
}

.farm-fields-empty-note__title {
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 4px;
}

.farm-fields-empty-note__body {
    font-size: 13px;
}

.farm-field-create-shell .field-create-form {
    margin: 0;
}

.farm-field-create-shell .field-create-map {
    min-height: clamp(560px, 78vh, 980px);
    height: clamp(560px, 78vh, 980px);
}

@media (max-width: 767.98px) {
    .farm-info-table th {
        width: 148px;
    }
}

@media (max-width: 1199.98px) {
    .farm-field-create-shell .field-create-map {
        min-height: clamp(500px, 68vh, 760px);
        height: clamp(500px, 68vh, 760px);
    }
}

/* --- public/assets/css/pages/auth.css --- */
/* ---------- Auth ---------- */

.auth-page,
.auth-page .page,
.auth-page__shell {
    min-height: 100vh;
}

.auth-page__shell {
    display: flex;
}

.auth-screen {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: transparent;
    width: 100%;
}

.auth-panel {
    width: min(100%, 450px);
    max-width: 450px;
    flex: 0 0 auto;
    margin-inline: auto;
}

.auth-card {
    border-radius: 25px;
    overflow: hidden;
    width: 100%;
    border: 0;
    background: var(--ui-brand) !important;
    color: #ffffff !important;
}

.auth-card .card-body {
    padding: 1.5rem !important;
}

.auth-card h2,
.auth-card p,
.auth-card .text-muted,
.auth-card a {
    color: inherit !important;
}

.auth-card .text-muted {
    opacity: 0.94;
}

.auth-card .form-control {
    min-height: 58px;
    border-radius: 18px;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.95);
}

.auth-card .form-floating > label {
    color: #64748b;
}

.auth-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--ui-radius-pill);
    padding: 2px;
    margin-bottom: 12px;
}

.auth-lang-switch__link {
    min-width: 32px;
    border-radius: var(--ui-radius-pill);
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
}

.auth-lang-switch__link.is-active {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.auth-brand-wordmark {
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.auth-brand-subtitle {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 600;
}

.auth-card .btn.btn-primary {
    border: 0;
    border-radius: 25px;
    min-height: 50px;
    background: var(--ui-toolbar) !important;
    box-shadow: none;
}

.auth-card .btn.btn-primary:hover,
.auth-card .btn.btn-primary:focus-visible {
    background: #353d4c !important;
}

@media (max-width: 575.98px) {
    .auth-screen {
        padding: 20px 12px;
    }

    .auth-card .card-body {
        padding: 1.25rem !important;
    }

    .auth-brand-wordmark {
        font-size: 34px;
    }

    .auth-brand-subtitle {
        font-size: 15px;
    }
}

/* --- public/assets/css/pages/missions.css --- */
/* ---------- Missions ---------- */

.mission-list-wrap:not(.is-expanded) .mission-detail-line {
    display: none;
}

.mission-row-primary {
    font-weight: 600;
    color: #1f2937;
}

.mission-expand-toggle {
    min-height: 30px;
    border-radius: var(--ui-radius-pill);
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 500;
}

.mission-expand-toggle .form-check-input {
    width: 14px;
    height: 14px;
    border-color: rgba(68, 75, 90, 0.35);
}

.mission-list-table__date {
    width: 150px;
}

.mission-list-table__field {
    width: 240px;
}

.mission-list-table__type {
    width: 240px;
}

.mission-list-table__status {
    width: 150px;
}

.mission-list-table__note {
    min-width: 280px;
}

.mission-list-table thead th,
.mission-list-table tbody td {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.mission-list-table .badge-soft {
    font-size: 10px;
    line-height: 1.2;
}

.mission-map-handoff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(111, 156, 61, 0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, #fbfdf7 0%, #f4f9ec 100%);
}

.mission-map-handoff__copy {
    min-width: 0;
}

.mission-map-handoff__title {
    font-size: 15px;
    font-weight: 800;
    color: #1f2937;
}

.mission-map-handoff__body {
    margin-top: 4px;
    font-size: 13px;
    color: #526172;
    max-width: 780px;
}

.mission-map-handoff__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .mission-map-handoff {
        flex-direction: column;
        align-items: flex-start;
    }

    .mission-map-handoff__actions {
        width: 100%;
    }
}

.mission-filter-bar .dfb-input-wrap:first-child {
    min-width: min(100%, 360px);
    flex: 1 1 280px;
}

.mission-filter-bar--advanced .dfb-toolbar-left {
    flex-wrap: wrap;
}

.mission-empty-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.mission-expand-toggle--mine {
    padding-inline: 8px;
    border: 1px solid rgba(111, 156, 61, 0.25);
    background: #f7fbf4;
}

.mission-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 440px;
    margin-left: auto;
}

.mission-row-actions .btn,
.mission-row-actions .form-select,
.mission-row-actions .form-control {
    min-height: 31px;
    font-size: 12px;
}

.mission-row-actions .form-select,
.mission-row-actions .form-control {
    border-radius: 10px !important;
}

.mission-complete-control {
    position: relative;
}

.mission-complete-control > summary {
    list-style: none;
}

.mission-complete-control > summary::-webkit-details-marker {
    display: none;
}

.mission-complete-form {
    width: 270px;
    margin-top: 8px;
    border: 1px solid #dbe5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    padding: 10px;
    display: grid;
    gap: 7px;
    text-align: left;
}

.mission-complete-form__title {
    color: #1f2937;
    font-size: 12px;
    font-weight: 800;
}

.mission-complete-form__hint {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.mission-complete-form .form-label {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: -2px;
}

/* --- public/assets/css/pages/reports.css --- */
/* ---------- Reports ---------- */

.reports-documents-table__item,
.reports-log-table__item {
    min-width: 320px;
}

.reports-documents-table__type,
.reports-log-table__type {
    width: 180px;
}

.reports-documents-table__time,
.reports-log-table__time {
    width: 180px;
    white-space: nowrap;
}

.reports-list-table__name {
    width: 260px;
}

.reports-list-table__title {
    font-weight: 600;
    color: #1f2937;
}

.reports-list-table__desc {
    color: var(--ui-muted);
}

.reports-list-table__action {
    width: 240px;
}

.reports-list-table__button {
    min-height: 30px;
    max-width: 180px;
    margin-left: auto;
}

.reports-empty-state {
    border: 1px dashed #dbe5ee;
    border-radius: 18px;
    background: #f9fbfd;
    display: grid;
    justify-items: start;
    gap: 8px;
    padding: 18px;
}

.reports-empty-state__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(111, 156, 61, 0.12);
    color: #486427;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.reports-empty-state__title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.reports-empty-state__body,
.reports-empty-state__hint {
    font-size: 12px;
    color: #4b5563;
}

.reports-empty-state__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

@media (max-width: 767.98px) {
    .reports-list-table__action,
    .reports-documents-table__time,
    .reports-log-table__time {
        width: auto;
    }
}

/* --- public/assets/css/pages/inventory.css --- */
/* ---------- Fertilizers / Pesticides ---------- */

.inventory-page .section-tabs__panels {
    gap: 14px;
}

.inventory-list-shell .ft-table-shell__count {
    font-size: 11px;
}

.inventory-guidelines-shell .card-body,
.inventory-status-shell .card-body {
    padding-top: 0.9rem;
}

.inventory-stock-shell .card-body {
    padding-top: 0.95rem;
}

.inventory-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.inventory-summary-card {
    border: 1px solid #dde5ed;
    border-radius: 14px;
    background: #f8fafc;
    padding: 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.inventory-summary-card--primary {
    border-color: #b8d79b;
    background: #f6fbef;
}

.inventory-summary-card--warning {
    border-color: #f3d38a;
    background: #fff9e8;
}

.inventory-summary-card__label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.inventory-summary-card__value {
    color: #1f2937;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.inventory-stock-table-wrap,
.inventory-usage-table-wrap {
    border: 1px solid #e1e8ef;
    border-radius: 14px;
    overflow: hidden;
}

.inventory-stock-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.inventory-stock-status--ok {
    color: #2f6a26;
    background: #eef8e8;
    border: 1px solid #cfe9c4;
}

.inventory-stock-status--low {
    color: #9a5a00;
    background: #fff4d7;
    border: 1px solid #f4d48a;
}

.inventory-usage-panel {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.inventory-usage-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.inventory-usage-panel__title {
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

.inventory-usage-panel__subtitle {
    color: #64748b;
    font-size: 12px;
}

.inventory-guidelines__item {
    min-height: 100%;
    border-radius: 16px;
    padding: 12px 13px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.inventory-guidelines__item .admin-overview-item__title {
    margin-bottom: 4px;
}

.inventory-status-list {
    display: grid;
    gap: 8px;
}

.inventory-status-alert {
    border-radius: 16px;
    border-width: 1px;
    padding: 11px 12px;
    font-size: 12px;
    line-height: 1.45;
}

.inventory-list-shell .ft-grid-table tbody td:first-child {
    font-weight: 600;
}

.inventory-list-shell .ft-grid-table tbody td:last-child {
    white-space: nowrap;
}

.inventory-manage-shell .card-body {
    padding-top: 0.95rem;
}

.inventory-manage-shell .admin-inventory-card {
    min-height: 100%;
}

.inventory-manage-metrics {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.inventory-manage-metric {
    min-width: 120px;
    border: 1px solid #dde5ed;
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.inventory-manage-metric__value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.inventory-manage-metric__label {
    font-size: 11px;
    color: #64748b;
}

.inventory-manage-hint {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
}

.inventory-manage-list-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.inventory-manage-list-toolbar .ft-filter--search {
    flex: 0 0 240px;
    width: 240px;
    max-width: 240px;
}

.inventory-manage-actions {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.inventory-page .alert {
    border-radius: 14px;
}

@media (max-width: 991.98px) {
    .inventory-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inventory-manage-list-toolbar .ft-filter--search {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .inventory-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* --- public/assets/css/pages/fields.css --- */
.field-create-workspace {
    align-items: stretch;
}

.field-create-workspace > [class*="col-"] {
    display: flex;
}

.field-create-shell,
.field-create-meta-shell {
    width: 100%;
}

.field-create-shell {
    display: flex;
    flex-direction: column;
}

.field-create-shell .card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.field-create-map.vra-admin-map {
    flex: 1 1 auto;
    min-height: clamp(560px, calc(100dvh - 330px), 780px);
    height: clamp(560px, calc(100dvh - 330px), 780px);
}

.fields-index-page {
    display: grid;
    gap: 16px;
}

.fields-index-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(111, 156, 61, 0.24);
    border-radius: 24px;
    background: linear-gradient(135deg, #fbfdf7 0%, #ffffff 52%, #eef6e7 100%);
    box-shadow: 0 12px 28px rgba(53, 82, 27, 0.08);
}

.fields-index-hero__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b6f44;
}

.fields-index-hero__title {
    margin: 4px 0 0;
    font-size: 32px;
    line-height: 1.1;
}

.fields-index-hero__body {
    margin: 8px 0 0;
    color: #64748b;
    max-width: 720px;
}

.fields-index-hero__actions,
.farm-overview-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.fields-index-stats,
.farm-overview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fields-index-stat,
.farm-overview-stat {
    border: 1px solid rgba(213, 221, 229, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 14px 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.fields-index-stat span,
.farm-overview-stat span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.fields-index-stat strong,
.farm-overview-stat strong {
    display: block;
    margin-top: 4px;
    color: #102a43;
    font-size: 28px;
    line-height: 1;
}

.fields-index-shell,
.farm-overview-shell {
    border-radius: 24px;
}

.fields-index-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px dashed rgba(111, 156, 61, 0.38);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    padding: 18px;
}

.fields-index-empty__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    color: #35521b;
    background: #eef6e7;
    flex: 0 0 auto;
}

.fields-index-empty__title {
    font-weight: 800;
    color: #1f2937;
}

.fields-index-empty__body,
.fields-index-filter-empty {
    color: #64748b;
    font-size: 14px;
}

.fields-index-filter-empty {
    margin-top: 12px;
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    padding: 14px;
}

.farm-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.farm-overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.farm-overview-actions {
    justify-content: flex-start;
    margin-top: 16px;
}

.field-create-intro,
.field-create-shell,
.field-create-meta-shell {
    border-radius: 24px;
}

.field-create-intro__title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.field-create-intro__body {
    margin-top: 8px;
    font-size: 14px;
    color: #64748b;
    max-width: 720px;
}

.field-create-map-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.field-create-base-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.field-create-base-btn.is-active {
    background: #eef6e7;
    border-color: rgba(111, 156, 61, 0.56);
    color: #35521b;
}

.field-create-harvest-note {
    border: 1px solid #d8e1ea;
    border-radius: 18px;
    padding: 14px 16px;
    background: #f8fbfd;
}

.field-create-harvest-note__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.field-create-harvest-note__value {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.field-create-harvest-note__help {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

@media (max-width: 1199.98px) {
    .field-create-map.vra-admin-map {
        min-height: 520px;
        height: 62dvh;
    }

    .farm-summary-grid {
        grid-template-columns: 1fr;
    }
}

.field-detail-page {
    display: grid;
    gap: 16px;
}

.field-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(111, 156, 61, 0.24);
    border-radius: 24px;
    background: linear-gradient(135deg, #fbfdf7 0%, #ffffff 52%, #eef6e7 100%);
    box-shadow: 0 12px 28px rgba(53, 82, 27, 0.08);
}

.field-detail-hero__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b6f44;
}

.field-detail-hero__title {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.12;
}

.field-detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: #526172;
}

.field-detail-hero__meta span {
    border: 1px solid rgba(111, 156, 61, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.field-detail-hero__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.flight-assignment-review-head {
    display: grid;
    gap: 14px;
}

.flight-assignment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    border: 1px solid rgba(111, 156, 61, 0.22);
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbf4 0%, #ffffff 100%);
    padding: 10px 12px;
}

.flight-assignment-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #dbe5ee;
    border-radius: 999px;
    background: #ffffff;
    padding: 4px;
}

.flight-assignment-filter__btn {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #526172;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    padding: 9px 12px;
    transition: background 0.16s ease, color 0.16s ease;
}

.flight-assignment-filter__btn:hover,
.flight-assignment-filter__btn.is-active {
    background: #6f9c3d;
    color: #ffffff;
}

.field-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 16px;
    align-items: stretch;
}

.field-detail-grid--lower {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

.field-detail-card {
    border-radius: 24px;
}

.field-detail-grid:not(.field-detail-grid--lower) > .field-detail-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.field-detail-card--map .card-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.field-detail-map {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 420px;
    border: 1px solid rgba(213, 221, 229, 0.9);
    border-radius: 18px;
    overflow: hidden;
}

.field-service-stack {
    display: grid;
    gap: 14px;
}

.field-service-intro {
    border: 1px solid rgba(111, 156, 61, 0.22);
    border-radius: 16px;
    background: #f8fbf4;
    color: #526172;
    font-size: 14px;
    line-height: 1.45;
    padding: 12px 14px;
}

.field-service-recommendation {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(217, 119, 6, 0.26);
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 14px;
}

.field-service-recommendation i {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    flex: 0 0 auto;
}

.field-service-group {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(213, 221, 229, 0.9);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.72);
    padding: 12px;
}

.field-service-group__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.field-service-group__body {
    margin-top: 3px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.42;
}

.field-service-group__pill,
.field-service-card__badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(111, 156, 61, 0.32);
    border-radius: 999px;
    background: #eef6e7;
    color: #35521b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    padding: 4px 9px;
    white-space: nowrap;
}

.field-service-group__pill--warning,
.field-service-card__badge--warning {
    border-color: rgba(217, 119, 6, 0.28);
    background: #fff7ed;
    color: #9a3412;
}

.field-service-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #dbe5ee;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
}

.field-service-card--satellite {
    border-left: 4px solid #6f9c3d;
}

.field-service-card--drone {
    border-left: 4px solid #f59e0b;
}

.field-service-card__body {
    min-width: 0;
}

.field-service-card__title,
.field-order-row__title,
.field-result-row__title {
    font-weight: 800;
    color: #1f2937;
}

.field-service-card__desc,
.field-order-row__meta,
.field-result-row__meta,
.field-detail-empty {
    color: #64748b;
    font-size: 13px;
}

.field-service-card__status {
    grid-column: 1 / -1;
}

.field-service-group-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5b6f44;
}

.field-order-list,
.field-result-list {
    display: grid;
    gap: 10px;
}

.field-order-row,
.field-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #dbe5ee;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
}

.field-order-row__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.field-detail-empty {
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    padding: 14px;
}

@media (max-width: 1199.98px) {
    .field-detail-grid,
    .field-detail-grid--lower {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .fields-index-hero,
    .field-detail-hero {
        flex-direction: column;
    }

    .fields-index-hero__actions,
    .field-detail-hero__actions,
    .field-service-card,
    .field-order-row,
    .field-result-row {
        width: 100%;
    }

    .field-service-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .field-service-group__head {
        flex-direction: column;
    }

    .field-order-row,
    .field-result-row {
        flex-direction: column;
        align-items: stretch;
    }

    .flight-assignment-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .flight-assignment-filter {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        border-radius: 18px;
    }

    .field-detail-map {
        min-height: 320px;
    }

    .field-create-map.vra-admin-map {
        min-height: 420px;
        height: 58dvh;
    }

    .fields-index-stats,
    .farm-overview-stats {
        grid-template-columns: 1fr;
    }

    .fields-index-empty {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- public/assets/css/pages/map/layout.css --- */
/* ---------- Map page ---------- */

.map-layout {
    display: block;
    width: 100%;
}

.map-layout__main {
    min-width: 0;
}

.map-layout[data-layout-mode="split"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    --map-side-gap: 10px;
    --map-split-sticky-top: 84px;
    --map-split-height: clamp(560px, calc(100dvh - 225px), 860px);
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    --map-side-gap: 6px;
    --map-split-sticky-top: 80px;
    --map-split-height: clamp(480px, calc(100dvh - 270px), 700px);
}

.map-layout[data-layout-mode="split"][data-map-size="standard"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    --map-split-height: clamp(560px, calc(100dvh - 225px), 860px);
}

.map-layout[data-layout-mode="split"][data-map-size="expanded"] {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    --map-split-height: clamp(560px, calc(100dvh - 225px), 860px);
}

.map-main-card .card-body {
    padding: 0;
}

.map-main-card,
.map-support-card,
.vra-map-card {
    width: 100%;
    border-radius: 25px;
}

.map-shell {
    position: relative;
    width: 100%;
    padding: 10px;
    background: rgba(245, 248, 250, 0.94);
    border-radius: 24px;
}

.map-shell[data-map-size="compact"] {
    --map-height: clamp(320px, 46vh, 480px);
}

.map-shell[data-map-size="standard"] {
    --map-height: clamp(420px, 62vh, 760px);
}

.map-shell[data-map-size="expanded"] {
    --map-height: clamp(560px, 78vh, 980px);
}

#map,
#vra-map {
    width: 100%;
    min-height: 320px;
    height: var(--map-height, clamp(420px, 62vh, 760px));
    border-radius: 18px;
    border: 1px solid rgba(213, 221, 229, 0.9);
    overflow: hidden;
}

.map-size-controls,
.map-layout-controls,
.map-base-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.map-layout-btn.is-active,
.map-size-btn.is-active,
.map-base-btn.is-active {
    background: #eef6e7;
    border-color: rgba(111, 156, 61, 0.56);
    color: #35521b;
}

.map-location-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 500;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 190px;
    max-width: min(260px, calc(100% - 40px));
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(8px);
}

.map-location-badge[hidden] {
    display: none !important;
}

.map-location-badge__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(47, 112, 255, 0.12);
    color: #2f70ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.map-location-badge__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.map-location-badge__title {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.map-location-badge__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.map-location-badge__status {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 7px;
    border-radius: var(--ui-radius-pill);
    border: 1px solid #dbe4ec;
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.map-location-badge__detail {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
}

.map-location-badge__detail[hidden] {
    display: none !important;
}

.map-location-badge[data-state="active"] .map-location-badge__status {
    color: #166534;
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.2);
}

.map-location-badge[data-state="pending"] .map-location-badge__status {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
}

.map-location-badge[data-state="error"] .map-location-badge__status {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
}

.map-support-stack {
    display: grid;
    gap: 14px;
}

.map-layout:not(.has-selected-field) #map-analytics-card {
    display: none;
}

.map-panel-toolbar .map-panel-toggle.is-active {
    background: #353d4c;
    border-color: rgba(53, 61, 76, 0.82);
    color: #ffffff;
}

.map-support-card.map-panel-closed {
    display: none !important;
}

.map-layout[data-layout-mode="split"] .map-support-stack {
    margin-top: 0 !important;
    position: sticky;
    top: var(--map-split-sticky-top);
    max-height: calc(100dvh - var(--map-split-sticky-top) - 10px);
    min-height: 0;
    align-content: start;
    grid-auto-rows: max-content;
    gap: var(--map-side-gap);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.75) transparent;
    scroll-padding-top: 8px;
    padding-right: 4px;
    padding-bottom: 6px;
}

.map-layout[data-layout-mode="split"] .map-support-stack::-webkit-scrollbar {
    width: 8px;
}

.map-layout[data-layout-mode="split"] .map-support-stack::-webkit-scrollbar-track {
    background: transparent;
}

.map-layout[data-layout-mode="split"] .map-support-stack::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.62);
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-support-stack::-webkit-scrollbar {
    width: 6px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-support-stack {
    padding-right: 2px;
    padding-bottom: 4px;
}

.map-layout[data-layout-mode="split"] .map-layout__main {
    position: sticky;
    top: var(--map-split-sticky-top);
    align-self: start;
}

.map-layout[data-layout-mode="split"] .map-main-card {
    display: flex;
    flex-direction: column;
}

.map-layout[data-layout-mode="split"] .map-main-card .card-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.map-layout[data-layout-mode="split"] .map-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.map-layout[data-layout-mode="split"] .map-shell {
    min-height: var(--map-split-height);
    height: var(--map-split-height);
}

.map-layout[data-layout-mode="split"] #map {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
}

.map-support-tools {
    display: grid;
    gap: 14px;
}

.map-layout[data-layout-mode="split"] .map-support-tools {
    gap: var(--map-side-gap);
}

#map-tools {
    order: 20;
}

#map-vra-card {
    order: 10;
}

#map-data-card {
    order: 30;
}

#map-layers-card {
    order: 40;
}

#map-analytics-card {
    order: 70;
}

.map-support-card__body {
    padding: 0.95rem;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-support-card .ft-table-shell__header {
    padding: 12px 14px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-support-card__body {
    padding: 0.72rem;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-collapsible__summary {
    gap: 10px;
}

.map-collapsible {
    display: block;
}

.map-collapsible__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.map-collapsible__chevron {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    margin-right: 4px;
}

.map-collapsible[open] .map-collapsible__chevron {
    transform: rotate(-135deg);
}

.map-collapsible__body {
    padding-top: 0;
}

@media (max-width: 1199.98px) {
    .map-layout[data-layout-mode="split"] {
        display: block;
    }

    .map-layout[data-layout-mode="split"] .map-support-stack {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        padding-bottom: 0;
        margin-top: 14px !important;
    }

    .map-layout[data-layout-mode="split"] .map-layout__main {
        position: static;
        top: auto;
    }

    .map-layout[data-layout-mode="split"] .map-main-card .card-body,
    .map-layout[data-layout-mode="split"] .map-shell {
        display: block;
    }

    .map-layout[data-layout-mode="split"] #map {
        height: var(--map-height, clamp(420px, 62vh, 760px));
        min-height: 320px;
    }

}

/* ---------- Simplified field map ---------- */

.farm-map-page {
    display: grid;
    gap: 16px;
}

.farm-map-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(111, 156, 61, 0.24);
    border-radius: 24px;
    background: linear-gradient(135deg, #fbfdf7 0%, #ffffff 52%, #eef6e7 100%);
    box-shadow: 0 12px 28px rgba(53, 82, 27, 0.08);
}

.farm-map-hero__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b6f44;
}

.farm-map-hero__title {
    margin: 4px 0 0;
    font-size: 32px;
    line-height: 1.1;
}

.farm-map-hero__body {
    max-width: 780px;
    margin: 8px 0 0;
    color: #64748b;
}

.farm-map-hero__actions,
.farm-map-selected__actions,
.farm-map-base-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.farm-map-workspace {
    display: grid;
    grid-template-columns: minmax(320px, 0.34fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.farm-map-sidebar {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 14px;
    max-height: calc(100dvh - 98px);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.farm-map-panel,
.farm-map-card {
    border-radius: 24px;
}

.farm-map-panel__body {
    display: grid;
    gap: 10px;
}

.farm-map-field-list {
    display: grid;
    gap: 8px;
    max-height: min(420px, 34dvh);
    overflow-y: auto;
    padding-right: 3px;
}

.farm-map-field-item {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 1px solid rgba(213, 221, 229, 0.95);
    border-radius: 16px;
    background: #ffffff;
    padding: 11px 12px;
    text-align: left;
    color: #1f2937;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.farm-map-field-item:hover,
.farm-map-field-item.is-active {
    border-color: rgba(111, 156, 61, 0.58);
    background: #f3f9ed;
    box-shadow: 0 8px 18px rgba(53, 82, 27, 0.08);
}

.farm-map-field-item__title {
    font-weight: 800;
}

.farm-map-field-item__meta {
    color: #64748b;
    font-size: 12px;
}

.farm-map-empty-note {
    border: 1px dashed rgba(203, 213, 225, 0.95);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.95);
    color: #64748b;
    padding: 12px 13px;
    font-size: 14px;
}

.farm-map-selected__title {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
}

.farm-map-selected__meta {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
}

.farm-map-selected__meta div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

.farm-map-selected__meta dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.farm-map-selected__meta dd {
    margin: 0;
    color: #1f2937;
    font-weight: 700;
    text-align: right;
}

.farm-map-selected__actions {
    justify-content: flex-start;
    margin-top: 14px;
}

.farm-map-result-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.farm-map-result-row {
    display: grid;
    gap: 3px;
    border: 1px solid #dbe5ee;
    border-radius: 14px;
    background: #ffffff;
    padding: 10px 12px;
}

.farm-map-result-row__title {
    color: #1f2937;
    font-weight: 800;
}

.farm-map-result-row__meta {
    color: #64748b;
    font-size: 12px;
}

.farm-map-card {
    min-height: calc(100dvh - 132px);
}

.farm-map-card__body,
.farm-map-canvas-shell {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.farm-map-card__body {
    padding: 10px;
}

.farm-map-canvas-shell {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #eef3f0;
}

.farm-map-page #map.farm-map-canvas {
    width: 100%;
    height: calc(100dvh - 188px);
    min-height: 680px;
    border: 1px solid rgba(213, 221, 229, 0.95);
    border-radius: 18px;
}

.farm-map-canvas-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 500;
    max-width: min(360px, calc(100% - 40px));
    transform: translate(-50%, -50%);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    color: #64748b;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.farm-map-canvas-empty[hidden],
.farm-map-empty-note[hidden],
.farm-map-selected[hidden] {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .farm-map-workspace {
        grid-template-columns: 1fr;
    }

    .farm-map-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .farm-map-field-list {
        max-height: 360px;
    }

    .farm-map-card {
        min-height: auto;
    }

    .farm-map-page #map.farm-map-canvas {
        height: 68dvh;
        min-height: 520px;
    }
}

@media (max-width: 767.98px) {
    .farm-map-hero {
        flex-direction: column;
    }

    .farm-map-hero__actions,
    .farm-map-selected__actions,
    .farm-map-base-controls {
        justify-content: flex-start;
        width: 100%;
    }

    .farm-map-page #map.farm-map-canvas {
        height: 62dvh;
        min-height: 420px;
    }
}

/* --- public/assets/css/pages/map/summary.css --- */
.map-summary,
.map-onboarding,
.map-yoy,
.map-recommendations {
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 11px 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.map-summary-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

#map-onboarding {
    grid-column: 1 / -1;
}

.map-summary__title {
    font-size: 15px;
    font-weight: 700;
}

.map-summary__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.map-summary__actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.map-summary__edit {
    min-height: 30px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.map-summary__id {
    font-size: 12px;
    color: var(--ui-muted);
}

.map-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #e1e8ef;
    border-radius: 16px;
    background: #ffffff;
    margin-top: 8px;
    padding: 10px 12px;
}

.map-summary__key {
    font-size: 12px;
    color: var(--ui-muted);
}

.map-summary__value {
    font-weight: 600;
}

.map-selected-services {
    margin-top: 10px;
    border: 1px solid rgba(111, 156, 61, 0.22);
    border-radius: 16px;
    background: rgba(247, 251, 241, 0.86);
    padding: 10px;
}

.map-selected-services__title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b6f44;
}

.map-selected-services__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.map-summary__empty {
    color: var(--ui-muted);
    font-size: 13px;
    border: 1px dashed rgba(203, 213, 225, 0.9);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    padding: 14px;
}

.map-layer-notes {
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.99) 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.map-layer-notes[open] {
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 12px 28px rgba(148, 103, 14, 0.08);
}

.map-layer-notes__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    padding: 14px;
}

.map-layer-notes__summary::-webkit-details-marker {
    display: none;
}

.map-layer-notes__header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.map-layer-notes__icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    font-size: 15px;
    flex-shrink: 0;
}

.map-layer-notes__copy {
    min-width: 0;
}

.map-layer-notes__title {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.map-layer-notes__meta {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.map-layer-notes__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.map-layer-notes[open] .map-layer-notes__chevron {
    transform: rotate(-135deg);
}

.map-layer-notes__content {
    padding: 0 14px 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.85);
}

.map-layer-notes__body {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}

.map-layer-notes__list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
}

.map-layer-notes__item {
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    padding: 9px 11px 9px 28px;
    font-size: 13px;
    color: #475569;
}

.map-layer-notes__item::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.map-onboarding {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(111, 156, 61, 0.24);
    border-radius: 20px;
    background: linear-gradient(135deg, #f5faee 0%, #ffffff 58%, #eef6df 100%);
    box-shadow: 0 14px 32px rgba(53, 82, 27, 0.08);
    padding: 18px 20px;
}

.map-onboarding::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #7cad40 0%, #58772f 100%);
}

.map-onboarding__cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(111, 156, 61, 0.18);
    margin-bottom: 12px;
}

.map-onboarding__cta-copy {
    min-width: 0;
    max-width: 22rem;
}

.map-onboarding__next-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5b6f44;
}

.map-onboarding__title {
    font-size: 18px;
    line-height: 1.15;
    font-weight: 800;
    color: #1f2937;
    margin-top: 0;
    max-width: 18ch;
    word-break: normal;
    overflow-wrap: normal;
}

.map-onboarding__hint {
    color: #475569;
    font-size: 14px;
}

.map-onboarding__primary-action {
    flex-shrink: 0;
    min-height: 44px;
    box-shadow: 0 10px 22px rgba(53, 82, 27, 0.18);
}

.map-flight-picker {
    display: grid;
    gap: 9px;
    margin-top: 0;
    padding: 12px;
    border: 1px solid rgba(111, 156, 61, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244, 250, 235, 0.96) 0%, rgba(255, 255, 255, 0.99) 100%);
    box-shadow: 0 10px 24px rgba(53, 82, 27, 0.06);
}

.map-flight-picker__hint {
    font-size: 12px;
    line-height: 1.45;
    color: #48632b;
}

.map-flight-current {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(111, 156, 61, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.map-flight-current__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(111, 156, 61, 0.16);
    color: #35521b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.map-flight-current__title {
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-flight-quick {
    display: grid;
    gap: 6px;
}

.map-flight-summary {
    display: grid;
    gap: 12px;
}

.map-flight-summary__meta {
    display: grid;
    gap: 8px;
}

.map-flight-summary__meta .map-summary__row {
    margin-top: 0;
}

.map-flight-controls {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1fr);
    gap: 10px;
    align-items: end;
}

.map-flight-toolbar .map-summary__key,
.map-flight-quick .map-summary__key {
    color: #35521b;
    font-weight: 700;
}

.map-flight-quick .form-select {
    min-height: 38px;
    border-radius: 12px;
}

.map-flight-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-flight-filter__search {
    min-height: 38px;
    border-radius: 12px;
}

.map-flight-filter__clear {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.map-flight-linker {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(203, 213, 225, 0.96);
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
}

.map-flight-linker__filter {
    margin-top: 2px;
}

.map-flight-linker__header {
    display: grid;
    gap: 4px;
}

.map-flight-linker__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(111, 156, 61, 0.16);
    color: #35521b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.map-flight-linker__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.map-flight-linker__search,
.map-flight-linker__body .form-select {
    min-height: 38px;
    border-radius: 12px;
}

.map-flight-linker__body .btn {
    min-height: 38px;
    border-radius: 12px;
    white-space: nowrap;
}

.map-flight-linker__hint {
    font-size: 12px;
    color: var(--ui-muted);
}

.map-flight-linker.is-primary .map-summary__key {
    color: #35521b;
    font-weight: 700;
}

.map-flight-linker__status {
    padding: 9px 10px;
    border: 1px solid #dce5ee;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.45;
}

.map-flight-linker__status--info {
    background: #f8fafc;
    color: #475569;
}

.map-flight-linker__status--success {
    background: rgba(111, 156, 61, 0.1);
    border-color: rgba(111, 156, 61, 0.22);
    color: #35521b;
}

.map-flight-linker__status--error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
    color: #991b1b;
}

.map-flight-linker__status--muted {
    background: #f8fafc;
    color: #475569;
}

.map-request-form {
    display: grid;
    gap: 10px;
}

.map-request-form__grid {
    display: grid;
    gap: 10px;
}

.map-request-form__row {
    display: grid;
    gap: 5px;
}

.map-request-form__value {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 13px;
    font-weight: 700;
}

.map-request-form .form-control,
.map-request-form .form-select {
    min-height: 38px;
    border-radius: 12px;
}

.map-request-form textarea.form-control {
    min-height: 72px;
}

.map-request-form__hint {
    color: var(--ui-muted);
    font-size: 12px;
}

.map-request-form__actions {
    display: flex;
    justify-content: flex-end;
}

.map-request-result {
    display: grid;
    gap: 6px;
    padding: 12px 13px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
}

.map-request-result__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.map-request-result__body {
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
}

.map-request-state {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 13px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
}

.map-request-card__body {
    display: grid;
    gap: 12px;
}

.map-request-card__body .map-request-state {
    margin-top: 0;
}

.map-status-card__body {
    display: grid;
    gap: 12px;
}

.map-status-card__body .map-layer-notes {
    margin-top: 0 !important;
}

.map-data-card__body {
    display: grid;
    gap: 12px;
}

.map-data-sections {
    display: grid;
    gap: 10px;
}

#map-data-card #map-flight-card {
    order: 10;
}

#map-data-card #map-flight-request-card {
    order: 20;
}

#map-data-card #map-request-card {
    order: 30;
}

#map-data-card .map-data-sections > .map-support-card {
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 18px;
    box-shadow: none;
}

#map-data-card .map-data-sections > .map-support-card .ft-table-shell__header {
    background: rgba(248, 250, 252, 0.94);
}

.map-status-inline {
    display: grid;
    gap: 8px;
    padding: 12px 13px;
    border: 1px solid rgba(203, 213, 225, 0.78);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
}

.map-status-inline .d-flex {
    margin-bottom: 0 !important;
}

.map-request-state__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.map-request-state__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.map-request-state__body {
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
}

.map-request-state__meta {
    display: grid;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(148, 163, 184, 0.28);
}

.map-request-state__meta-row {
    display: grid;
    gap: 2px;
}

.map-request-state__meta-key {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}

.map-request-state__meta-value {
    font-size: 12px;
    line-height: 1.45;
    color: #1f2937;
}

.map-request-state--ready {
    background: rgba(111, 156, 61, 0.08);
    border-color: rgba(111, 156, 61, 0.22);
}

.map-request-state__badge--ready {
    background: rgba(111, 156, 61, 0.16);
    color: #35521b;
}

.map-request-state--blocked {
    background: rgba(248, 250, 252, 0.9);
    border-color: #dce5ee;
}

.map-request-state__badge--blocked {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

.map-request-state--mapped {
    background: rgba(111, 156, 61, 0.1);
    border-color: rgba(111, 156, 61, 0.24);
}

.map-request-state__badge--mapped {
    background: rgba(111, 156, 61, 0.16);
    color: #35521b;
}

.map-request-state--pending {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.map-request-state__badge--pending {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.map-request-result--mapped {
    background: rgba(111, 156, 61, 0.1);
    border-color: rgba(111, 156, 61, 0.24);
}

.map-request-result--mapped .map-request-result__badge {
    background: rgba(111, 156, 61, 0.16);
    color: #35521b;
}

.map-request-result--pending {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.map-request-result--pending .map-request-result__badge {
    background: rgba(245, 158, 11, 0.14);
    color: #92400e;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-form,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-form__grid {
    gap: 7px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-form .form-control,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-form .form-select,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-form__value {
    min-height: 34px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-result {
    gap: 5px;
    padding: 10px 11px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-state {
    gap: 6px;
    margin-top: 10px;
    padding: 10px 11px;
}

#map-flight-card .map-support-card__body {
    display: grid;
    gap: 12px;
}

#map-flight-card {
    scroll-margin-top: 8px;
}

#map-flight-card.is-awaiting-link {
    order: -2;
}

.map-support-card.is-awaiting-link {
    border-color: rgba(111, 156, 61, 0.42);
    box-shadow: 0 16px 34px rgba(53, 82, 27, 0.09);
}

.map-support-card.is-awaiting-link .map-flight-linker {
    order: -1;
    margin-top: 0;
    padding: 14px;
    border-top: 0;
    border: 1px solid rgba(111, 156, 61, 0.28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244, 250, 235, 0.96) 0%, rgba(255, 255, 255, 0.99) 100%);
    box-shadow: 0 10px 24px rgba(53, 82, 27, 0.08);
}

.map-support-card.is-awaiting-link .map-flight-linker__hint {
    color: #35521b;
}

.map-support-card.is-awaiting-link .map-summary__empty {
    border-color: rgba(111, 156, 61, 0.32);
    background: rgba(248, 250, 252, 0.92);
}

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

.map-flight-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid #e1e8ef;
    border-radius: 999px;
    background: #f8fafc;
}

.map-flight-sort__btn {
    min-height: 26px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 0 9px;
}

.map-flight-sort__btn.is-active {
    background: #ffffff;
    color: #35521b;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.map-flight-sort__btn:disabled {
    opacity: 0.58;
    cursor: wait;
}

.map-flight-list {
    display: grid;
    gap: 8px;
    max-height: min(40vh, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.62) transparent;
}

.map-flight-list::-webkit-scrollbar {
    width: 7px;
}

.map-flight-list::-webkit-scrollbar-track {
    background: transparent;
}

.map-flight-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.58);
}

.map-flight-list__section {
    display: grid;
    gap: 8px;
}

.map-flight-list__section + .map-flight-list__section {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(203, 213, 225, 0.95);
}

.map-flight-list__section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.map-flight-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid #dce5ee;
    border-radius: 16px;
    background: #ffffff;
    padding: 11px 12px;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.map-flight-list__item:hover:not(:disabled),
.map-flight-list__item:focus-visible:not(:disabled) {
    border-color: rgba(111, 156, 61, 0.45);
    background: #f8fbf2;
    box-shadow: 0 8px 18px rgba(53, 82, 27, 0.08);
}

.map-flight-list__item.is-active {
    border-color: rgba(111, 156, 61, 0.4);
    background: linear-gradient(135deg, #f4faeb 0%, #ffffff 100%);
    box-shadow: inset 0 0 0 1px rgba(111, 156, 61, 0.08);
    position: relative;
}

.map-flight-list__item.is-active::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 3px;
    border-radius: 999px;
    background: rgba(111, 156, 61, 0.78);
}

.map-flight-list__item:disabled {
    opacity: 1;
    cursor: default;
}

.map-flight-list__copy {
    min-width: 0;
}

.map-flight-list__title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-flight-list__meta {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--ui-muted);
}

.map-flight-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.map-flight-list__badge--active {
    background: rgba(111, 156, 61, 0.16);
    color: #35521b;
}

.map-flight-list__badge--available {
    background: rgba(148, 163, 184, 0.14);
    color: #475569;
}

.map-flight-picker[aria-busy="true"] .map-flight-list__item {
    pointer-events: none;
}

.map-support-card.is-guided-focus {
    border-color: rgba(111, 156, 61, 0.52);
    box-shadow: 0 0 0 3px rgba(124, 173, 64, 0.12), 0 18px 34px rgba(53, 82, 27, 0.12);
}

.map-onboarding__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.map-onboarding__hint {
    margin-top: 10px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-summary,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-onboarding,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-yoy,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-recommendations {
    padding: 9px 10px;
    border-radius: 16px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-summary-grid {
    gap: 8px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-summary__row {
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 14px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-summary__empty {
    padding: 11px 12px;
    border-radius: 16px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-onboarding {
    padding: 14px 16px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-onboarding__cta {
    gap: 10px;
    padding: 12px 13px;
    margin-bottom: 10px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-onboarding__actions {
    margin-top: 10px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-picker {
    gap: 5px;
    padding: 9px 10px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-picker__hint {
    font-size: 11px;
    line-height: 1.35;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-current {
    gap: 6px;
    padding: 7px 8px;
    border-radius: 12px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-current__eyebrow {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-current__title {
    font-size: 11px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-quick {
    gap: 3px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-summary {
    gap: 9px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-summary__meta {
    gap: 6px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-filter {
    gap: 6px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-filter__search {
    min-height: 36px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-filter__clear {
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-linker {
    gap: 6px;
    margin-top: 8px;
    padding: 10px 11px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-linker__filter {
    margin-top: 0;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] #map-flight-card .map-support-card__body {
    gap: 8px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-list {
    gap: 4px;
    max-height: min(29vh, 192px);
    padding-right: 2px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-list__section {
    gap: 5px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-list__section + .map-flight-list__section {
    margin-top: 2px;
    padding-top: 6px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-list__item {
    gap: 7px;
    padding: 8px 9px;
    border-radius: 13px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-list__title {
    font-size: 12px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-list__meta {
    margin-top: 1px;
    font-size: 11px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-list__item.is-active::before {
    top: 8px;
    bottom: 8px;
    left: 7px;
    width: 2px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-list__badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: 11px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-linker__body {
    gap: 6px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-linker__search,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-linker__body .form-select,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-flight-linker__body .btn {
    min-height: 36px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-state__meta {
    gap: 6px;
    padding-top: 5px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-request-card__body,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-status-card__body {
    gap: 8px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-data-card__body,
.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-data-sections {
    gap: 8px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-status-inline {
    gap: 6px;
    padding: 10px 11px;
    border-radius: 14px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-layer-notes__summary {
    padding: 12px;
    gap: 10px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-layer-notes__content {
    padding: 0 12px 12px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-layer-notes__body {
    margin-top: 10px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-layer-notes__list {
    margin-top: 10px;
    gap: 6px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-layer-notes__item {
    padding: 8px 10px 8px 26px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-insights-disclosure__summary {
    padding: 10px 12px;
}

.map-layout[data-layout-mode="split"][data-map-size="compact"] .map-insights-disclosure__body {
    gap: 8px;
    padding: 0 12px 12px;
}

@media (max-width: 768px) {
    .map-layer-notes__summary {
        padding: 13px;
        gap: 10px;
    }

    .map-layer-notes__header {
        gap: 10px;
    }

    .map-layer-notes__content {
        padding: 0 13px 13px;
    }

    .map-layer-notes__item {
        padding-right: 10px;
    }

    .map-onboarding {
        padding: 16px;
    }

    .map-onboarding__cta {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

    .map-onboarding__title {
        font-size: 20px;
    }

    .map-onboarding__primary-action {
        width: 100%;
        justify-content: center;
    }

    .map-flight-toolbar {
        align-items: flex-start;
    }

    .map-flight-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-flight-filter {
        flex-wrap: wrap;
    }

    .map-flight-filter__search {
        flex: 1 1 220px;
    }

    .map-flight-linker__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .map-flight-linker__body .btn {
        width: 100%;
    }

    .map-flight-list__item {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

    .map-flight-list__badge {
        justify-self: flex-start;
    }
}

.map-insights-disclosure {
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #fbfdff;
    overflow: hidden;
}

.map-insights-disclosure__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.map-insights-disclosure__summary::-webkit-details-marker {
    display: none;
}

.map-insights-disclosure__title {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.map-insights-disclosure__hint {
    font-size: 12px;
    color: #64748b;
}

.map-insights-disclosure__chevron {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.map-insights-disclosure[open] .map-insights-disclosure__chevron {
    transform: rotate(-135deg);
}

.map-insights-disclosure__body {
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
}

.map-yoy__title,
.map-recommendations__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.map-yoy__season {
    font-size: 12px;
    color: #64748b;
}

.map-yoy__grid {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.map-yoy__row {
    border: 1px solid #e1e8ef;
    border-radius: 15px;
    background: #ffffff;
    padding: 10px;
}

.map-yoy__label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 2px;
}

.map-yoy__values {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.map-yoy__value {
    font-weight: 700;
}

.map-yoy__prev,
.map-yoy__delta {
    font-size: 12px;
}

.map-yoy__delta.is-up {
    color: var(--ui-success);
}

.map-yoy__delta.is-down {
    color: var(--ui-danger);
}

.map-yoy__delta.is-flat {
    color: #6b7280;
}

.map-recommendation {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px;
}

.map-recommendation + .map-recommendation {
    margin-top: 8px;
}

.map-recommendation__head {
    font-weight: 700;
    font-size: 12px;
}

.map-recommendation__body {
    font-size: 12px;
    color: #4b5563;
}

.map-recommendation--warning {
    border-color: rgba(245, 158, 11, 0.34);
    background: rgba(245, 158, 11, 0.08);
}

.map-recommendation--danger {
    border-color: rgba(220, 53, 69, 0.30);
    background: rgba(220, 53, 69, 0.07);
}

.map-recommendation--success {
    border-color: rgba(22, 163, 74, 0.30);
    background: rgba(22, 163, 74, 0.07);
}

.map-recommendation--info {
    border-color: rgba(59, 130, 246, 0.30);
    background: rgba(59, 130, 246, 0.07);
}

@media (min-width: 1200px) {
    .map-recommendations {
        grid-column: 1 / -1;
    }
}

/* --- public/assets/css/pages/map/layers.css --- */
/* Map layer groups (created dynamically by JS). */
.map-layer-groups {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.map-layer-group {
    align-self: start;
    border: 1px solid #d9e2ea;
    border-radius: 18px;
    background: #ffffff;
    overflow: visible;
    position: relative;
    z-index: 0;
}

.map-layer-group__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    background: #f7fafc;
}

.map-layer-group__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-layer-group__title {
    font-size: 13px;
    font-weight: 700;
    color: #4b5563;
}

.map-layer-group__info {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 999px;
    background: rgba(111, 156, 61, 0.12);
    color: #35521b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 11px;
    line-height: 1;
    cursor: help;
}

.map-layer-group__info:hover,
.map-layer-group__info:focus-visible {
    background: rgba(111, 156, 61, 0.2);
    color: #223612;
    outline: none;
}

.map-layer-group__count {
    border-radius: var(--ui-radius-pill);
    border: 1px solid rgba(111, 156, 61, 0.3);
    color: #36531b;
    background: rgba(111, 156, 61, 0.12);
    padding: 0 8px;
    font-size: 11px;
    line-height: 18px;
}

.map-layer-group__controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-layer-group__btn {
    min-height: 24px;
    border-radius: var(--ui-radius-pill);
    border: 1px solid #cfd8e1;
    background: #fff;
    color: #374151;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
}

.map-layer-group__btn--all:hover,
.map-layer-group__btn--none:hover,
.map-layer-group__btn--toggle:hover,
.map-layer-group__btn--toggle.is-open {
    border-color: rgba(111, 156, 61, 0.55);
    background: #eef6e7;
    color: #2f4a1a;
}

.map-layer-group__body {
    display: none;
    padding: 9px;
}

.map-layer-group__body.is-open {
    display: block;
}

.map-layer-group__list {
    display: grid;
    gap: 6px;
}

.map-layer-group__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 13px;
    border: 1px solid #e2e8f0;
    padding: 7px 9px;
}

.map-layer-group__row-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.map-layer-group__row-label {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-layer-group__row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.map-layer-group__row.is-disabled {
    opacity: 0.55;
}

.map-layer-group__row.has-panel.is-panel-open {
    border-color: rgba(111, 156, 61, 0.35);
    background: #fbfdf8;
}

.map-layer-group__checkbox {
    margin: 0;
}

.map-layer-group__label {
    margin: 0;
    font-size: 12px;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-layer-group__label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.map-layer-group__info--inline {
    width: 18px;
    height: 18px;
    font-size: 10px;
}

.map-layer-group__details-btn {
    min-height: 26px;
    border-radius: var(--ui-radius-pill);
    border: 1px solid rgba(111, 156, 61, 0.24);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf4 100%);
    color: #35521b;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(53, 82, 27, 0.08);
}

.map-layer-group__details-btn:hover,
.map-layer-group__details-btn:focus-visible,
.map-layer-group__details-btn.is-open {
    border-color: rgba(111, 156, 61, 0.48);
    background: linear-gradient(180deg, #f6faef 0%, #edf6e4 100%);
    color: #2f4a1a;
    outline: none;
}

.map-layer-group__details-btn i {
    transition: transform 160ms ease;
}

.map-layer-group__details-btn.is-open i {
    transform: rotate(180deg);
}

.map-layer-group__panel {
    width: 100%;
    padding-top: 4px;
    position: relative;
    z-index: 1;
}

.map-layer-group__panel[hidden] {
    display: none !important;
}

.map-layer-group__panel-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}

.map-layer-group__panel-block {
    min-width: 0;
    border-radius: 14px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    background: #ffffff;
    padding: 11px;
    position: relative;
    overflow: visible;
}

.map-layer-group__panel-block--legend {
    background: linear-gradient(180deg, #f8fbf4 0%, #ffffff 100%);
}

.map-layer-group__panel-block--stats {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.map-layer-group__panel-title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #475569;
}

.map-layer-group__legend-frame {
    min-height: 132px;
    border-radius: 12px;
    border: 1px solid rgba(111, 156, 61, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f6faef 100%);
    padding: 10px;
    display: block;
    position: relative;
    overflow: visible;
}

.map-layer-group__legend-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 148px;
    margin: 0 auto;
}

.map-layer-group__legend-scale {
    display: grid;
    gap: 10px;
}

.map-layer-group__legend-bar {
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(90deg, #d73027 0%, #f46d43 22%, #fee08b 50%, #a6d96a 78%, #1a9850 100%);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
}

.map-layer-group__legend-range {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.map-layer-group__legend-range-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-layer-group__legend-stats {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.map-layer-group__legend-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.92);
    padding: 8px 9px;
}

.map-layer-group__legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    grid-row: span 2;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 4px rgba(148, 163, 184, 0.18);
}

.map-layer-group__legend-stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.map-layer-group__legend-stat-label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.map-layer-group__legend-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.88);
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.map-layer-group__legend-hint::before,
.map-layer-group__legend-hint::after {
    content: none !important;
    display: none !important;
}

.map-layer-group__legend-hint:hover,
.map-layer-group__legend-hint:focus-visible {
    z-index: 30;
}

.map-layer-group__legend-hint:focus-visible {
    outline: 2px solid rgba(111, 156, 61, 0.28);
    outline-offset: 2px;
}

.map-layer-group__floating-tooltip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 2400;
    max-width: min(180px, 56vw);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    padding: 8px 10px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    pointer-events: none;
}

.map-layer-group__floating-tooltip[hidden] {
    display: none !important;
}

.map-layer-group__legend-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.map-layer-group__panel-empty {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.map-layer-group__stats {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.map-layer-group__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    min-height: 62px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 8px 9px;
}

.map-layer-group__stat-key {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.map-layer-group__stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.map-layer-group__empty {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

@media (max-width: 720px) {
    .map-layer-group__row-main {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .map-layer-group__panel-grid {
        grid-template-columns: 1fr;
    }

    .map-layer-group__row-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .map-layer-group__label {
        white-space: normal;
    }
}

.map-ndvi-legend {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 550;
    display: inline-flex;
    align-items: flex-start;
    width: auto;
    max-width: none;
}

.map-ndvi-legend[hidden] {
    display: none !important;
}

.map-ndvi-legend__button {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(111, 156, 61, 0.32);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.985);
    color: #35521b;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.map-ndvi-legend__button:hover,
.map-ndvi-legend__button:focus-visible,
.map-ndvi-legend.is-pinned .map-ndvi-legend__button {
    border-color: rgba(111, 156, 61, 0.56);
    background: #eef6e7;
    color: #2f4a1a;
    outline: none;
}

.map-ndvi-legend__panel {
    position: absolute;
    top: 0;
    right: 44px;
    width: min(296px, calc(100vw - 160px));
    max-width: 0;
    opacity: 0;
    transform: translateX(10px) scale(0.98);
    transform-origin: top right;
    overflow: hidden;
    pointer-events: none;
    padding: 0;
    border: 1px solid rgba(207, 216, 225, 0);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.992);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    transition: max-width 220ms ease, opacity 180ms ease, transform 180ms ease, padding 180ms ease, border-color 180ms ease;
}

.map-ndvi-legend:not(.is-hover-suppressed):hover .map-ndvi-legend__panel,
.map-ndvi-legend:not(.is-hover-suppressed):focus-within .map-ndvi-legend__panel,
.map-ndvi-legend.is-pinned .map-ndvi-legend__panel {
    max-width: min(296px, calc(100vw - 160px));
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    padding: 12px 14px;
    border-color: rgba(207, 216, 225, 0.9);
}

.map-ndvi-legend__title {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.map-ndvi-legend__meta {
    font-size: 12px;
    color: #475569;
    margin-bottom: 10px;
}

.map-ndvi-legend__meta a {
    color: #35521b;
    text-decoration: none;
    border-bottom: 1px solid rgba(111, 156, 61, 0.36);
}

.map-ndvi-legend__meta a:hover {
    color: #203113;
    border-bottom-color: rgba(111, 156, 61, 0.62);
}

.map-ndvi-legend__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.map-ndvi-legend__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.map-ndvi-legend__swatch {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-top: 2px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.map-ndvi-legend__item-text {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.map-ndvi-legend__item-name {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
}

.map-ndvi-legend__item-desc,
.map-ndvi-legend__empty {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .map-ndvi-legend {
        right: 18px;
        top: 74px;
    }

    .map-ndvi-legend__panel,
    .map-ndvi-legend:not(.is-hover-suppressed):hover .map-ndvi-legend__panel,
    .map-ndvi-legend:not(.is-hover-suppressed):focus-within .map-ndvi-legend__panel,
    .map-ndvi-legend.is-pinned .map-ndvi-legend__panel {
        width: min(296px, calc(100vw - 72px));
        max-width: min(296px, calc(100vw - 72px));
    }
}

/* --- public/assets/css/pages/vra/panel.css --- */
/* ---------- Embedded VRA panel ---------- */

.vra-panel {
    border: 1px solid var(--ui-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    overflow: hidden;
}

.vra-panel--embedded {
    margin-top: 2px;
}

.vra-panel__topbar {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ui-border);
    background: #fbfdff;
}

.vra-panel__tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 8px;
}

.vra-panel__tabs li {
    min-height: 32px;
    border-radius: var(--ui-radius-pill);
    border: 1px solid #d5dde5;
    background: #f3f6f9;
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.vra-panel__tabs li.is-active {
    background: #eef6e7;
    border-color: rgba(111, 156, 61, 0.5);
    color: #2f4a1a;
}

.vra-panel__title {
    margin-top: 7px;
    font-size: 12px;
    color: #64748b;
}

.vra-panel__helper {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.vra-panel__harvest {
    padding: 10px 12px;
    border-bottom: 1px solid var(--ui-border);
}

.vra-panel__content {
    padding: 10px 12px 12px;
}

#map-vra-card .vra-panel__content {
    display: grid;
    gap: 12px;
}

#map-vra-card .vra-tab.is-active {
    display: block;
}

.vra-tab {
    display: none;
}

.vra-tab.is-active {
    display: block;
}

.vra-sidebar-tab-content-header {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fbfd;
    padding: 8px 10px;
}

.vra-sidebar-tab-content-header__info {
    display: block;
}

.vra-sidebar-tab-content-header__info__title {
    font-size: 11px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vra-sidebar-tab-inner-content {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}

/* --- public/assets/css/pages/vra/sidebar.css --- */
.vra-fields-dropdown {
    border: 1px solid #d8e1ea;
    border-radius: 16px;
    overflow: hidden;
}

.vra-fields-dropdown__toggle {
    width: 100%;
    border: 0;
    background: #f7fafc;
    min-height: 42px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #445066;
    text-transform: none;
    letter-spacing: 0;
}

.vra-fields-dropdown__label {
    min-width: 0;
    text-align: left;
}

.vra-fields-dropdown__chevron {
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 120ms ease;
}

.vra-fields-dropdown__toggle.is-open .vra-fields-dropdown__chevron {
    transform: rotate(-135deg);
}

.vra-fields-dropdown__body {
    display: none;
    border-top: 1px solid #d8e1ea;
    background: #fff;
    padding: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.vra-fields-dropdown__body.is-open {
    display: block;
}

.vra-sidebar-list,
.vra-list,
.vra-zone-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.maps-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
}

.vra-field-item,
.vra-map-item,
.vra-zone-row,
.vra-map-group-item > .vra-sidebar-list-flex {
    border: 1px solid #dee6ee;
    border-radius: 16px;
    background: #fff;
    padding: 9px 10px;
    transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.vra-field-item.clickable,
.vra-sidebar-list-flex.clickable,
.vra-map-group-item > .vra-sidebar-list-flex {
    cursor: pointer;
}

.vra-field-item.is-active,
.vra-map-group-item.is-open > .vra-sidebar-list-flex,
.vra-zone-row.is-active {
    border-color: rgba(111, 156, 61, 0.5);
    background: #eef6e7;
    box-shadow: 0 4px 10px rgba(111, 156, 61, 0.08);
}

.vra-sidebar-list-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.vra-sidebar-list-flex__left,
.vra-sidebar-list-flex__right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vra-sidebar-list-flex__center {
    display: grid;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.vra-sidebar-list-flex__left,
.vra-sidebar-list-flex__right {
    flex-shrink: 0;
}

.vra-sidebar-list-flex__subtext {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.vra-field-dot,
.vra-map-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ui-brand);
    flex-shrink: 0;
}

.vra-map-group__list,
.vra-sidebar-list.as-submenu {
    margin-top: 6px;
}

.vra-map-group,
.vra-map-group-item {
    border: 1px solid #dde5ed;
    border-radius: 16px;
    background: #f9fbfd;
    padding: 8px;
}

.vra-map-group-item .vra-sidebar-list.as-submenu {
    display: none;
}

.vra-map-group-item.is-open .vra-sidebar-list.as-submenu {
    display: grid;
}

.vra-map-group-item.is-open > .vra-sidebar-list-flex {
    margin-bottom: 8px;
}

.vra-sidebar-map-item-buttons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vra-sidebar-map-item-buttons .btn {
    min-height: 26px;
    padding: 0 9px;
}

/* --- public/assets/css/pages/vra/details.css --- */
.vra-detail-card,
.vra-zoning-card {
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #fbfdff;
    padding: 12px;
}

.vra-detail-card__title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2937;
}

.vra-detail-card__hint {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.vra-selected-field {
    padding-bottom: 10px;
    border-bottom: 1px solid #e2eaf2;
}

.vra-analysis-card {
    border: 1px solid #dce5ee;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
}

.vra-analysis-card--ndvi {
    border-color: rgba(59, 130, 246, 0.22);
}

.vra-analysis-card--zones {
    border-color: rgba(111, 156, 61, 0.28);
    background: linear-gradient(135deg, #fbfdf7 0%, #ffffff 100%);
}

.vra-analysis-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.vra-analysis-card__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b6f44;
}

.vra-analysis-card__title {
    margin-top: 2px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.vra-analysis-card__status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(111, 156, 61, 0.14);
    color: #35521b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.vra-analysis-card--ndvi .vra-analysis-card__status {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}

.vra-zone-source {
    border-top: 1px solid #e2eaf2;
    padding-top: 10px;
}

.vra-workflow-callout {
    border: 1px solid rgba(111, 156, 61, 0.22);
    border-radius: 16px;
    background: linear-gradient(135deg, #f5faee 0%, #ffffff 100%);
    padding: 12px 14px;
}

.vra-workflow-callout__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.vra-workflow-callout__eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #35521b;
}

.vra-workflow-callout__status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(111, 156, 61, 0.14);
    color: #35521b;
    font-size: 11px;
    font-weight: 700;
}

.vra-workflow-callout__title {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f2937;
}

.vra-workflow-callout__body {
    margin-top: 4px;
    font-size: 12px;
    color: #475569;
}

.vra-workflow-callout--compact {
    margin-bottom: 12px;
}

#map-vra-card .vra-zoning-card {
    max-height: 520px;
    overflow-y: auto;
}

.vra-panel--split {
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    gap: 12px;
    overflow: visible;
}

.vra-panel--split .vra-panel__harvest {
    border-bottom: 0;
    margin-bottom: 10px;
    padding: 0;
}

.vra-panel--split .vra-panel__content {
    padding: 0;
}

.vra-panel--split .vra-tab {
    display: block;
}

#map-vra-rates-card .vra-zoning-card {
    max-height: none;
    overflow: visible;
}

.vra-zoning-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.vra-zoning-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.vra-zoning-section {
    border: 1px solid #e2eaf2;
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
}

.vra-zoning-section__title {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
}

.vra-zoning-section__hint {
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.vra-zone-row {
    padding: 14px;
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: #fbfdff;
}

.vra-zone-row + .vra-zone-row {
    margin-top: 10px;
}

.vra-zone-row__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.vra-zone-row__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vra-zone-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vra-zone-field__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.vra-zone-field__unit {
    color: #94a3b8;
}

.vra-zone-total {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2eaf2;
}

.vra-zone-total__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.vra-zone-total__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vra-zone-total__line + .vra-zone-total__line {
    margin-top: 6px;
}

.vra-zone-total__label {
    font-size: 12px;
    color: #64748b;
}

.vra-zone-total__value {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
}

.vra-zoning-totals {
    border: 1px solid #dce5ee;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 14px;
}

.vra-zoning-totals__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.vra-zoning-totals__item {
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2eaf2;
}

.vra-zoning-totals__label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
}

.vra-zoning-totals__value {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.vra-zone-label {
    font-size: 12px;
    font-weight: 700;
}

.vra-zone-area {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.vra-zone-area__label,
.vra-zone-rate__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.vra-admin-map {
    width: 100%;
    min-height: 320px;
    border-radius: 20px;
    border: 1px solid #d8e1ea;
}

.vra-admin-geojson {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.vra-debug-row + .vra-debug-row {
    margin-top: 8px;
}

.vra-debug-card {
    border-radius: 20px;
}

.vra-debug-status {
    min-width: 64px;
    text-align: center;
}

.vra-debug-detail {
    font-size: 12px;
}

.vra-sidebar-map-item-buttons .btn,
.vra-map-item .btn,
.vra-map-group .btn,
.vra-map-group-item .btn {
    border-radius: 999px;
    font-size: 12px;
}

.vra-detail-card .fw-semibold,
.vra-zoning-card .fw-semibold {
    font-size: 15px;
}

.vra-detail-card .form-label,
.vra-zoning-card .form-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vra-detail-card .form-control,
.vra-detail-card .form-select,
.vra-zoning-card .form-control,
.vra-zoning-card .form-select {
    min-height: 34px;
    font-size: 12px;
}

.vra-detail-card .btn,
.vra-zoning-card .btn {
    min-height: 32px;
    border-radius: var(--ui-radius-pill);
    font-size: 12px;
    font-weight: 600;
}

.vra-zone-row .form-control {
    justify-self: stretch;
    max-width: none;
}

@media (max-width: 767px) {
    .vra-zone-row__body,
    .vra-zoning-totals__grid {
        grid-template-columns: 1fr;
    }

    .vra-zone-row__header,
    .vra-zone-field__label,
    .vra-zone-total__line {
        flex-direction: column;
        align-items: flex-start;
    }
}

.vra-detail-card .alert {
    border-radius: 14px;
}

#vra-map-preview .fw-semibold {
    margin-bottom: 4px;
}

.vra-export-modal__content {
    border: 1px solid #d8e1eb;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.vra-export-modal__header {
    align-items: flex-start;
    border-bottom: 1px solid #e6edf5;
    padding: 1.1rem 1.25rem 0.9rem;
}

.vra-export-modal__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.vra-export-modal__hint {
    color: #64748b;
    font-size: 0.92rem;
}

.vra-export-modal__body {
    display: grid;
    gap: 1rem;
    padding: 1.1rem 1.25rem 1.25rem;
}

.vra-export-group {
    display: grid;
    gap: 0.75rem;
}

.vra-export-group__title {
    color: #1f2937;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vra-export-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.vra-export-option {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #d8e1eb;
    border-radius: 18px;
    color: #0f172a;
    display: flex;
    gap: 0.85rem;
    min-height: 78px;
    padding: 0.9rem 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.vra-export-option:hover {
    border-color: #9cc3ae;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    transform: translateY(-1px);
}

.vra-export-option__icon-wrap {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: inline-flex;
    flex: 0 0 54px;
    height: 54px;
    justify-content: center;
    overflow: hidden;
    width: 54px;
}

.vra-export-option__icon-wrap.is-fallback {
    color: #256a45;
    font-size: 1rem;
    font-weight: 700;
}

.vra-export-option__icon {
    height: 32px;
    max-width: 40px;
    object-fit: contain;
    width: auto;
}

.vra-export-option__label {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.vra-standalone-layout .card-body {
    padding: 1rem;
}

/* --- public/assets/css/pages/admin.css --- */
/* ---------- Admin ---------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stats-card {
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.stats-value {
    font-size: 24px;
    font-weight: 700;
}

.stats-label {
    font-size: 12px;
    color: #6b7280;
}

.admin-overview-card,
.admin-note-card,
.admin-inventory-card,
.admin-new-user-help,
.admin-new-user-shell,
.admin-overview-shell,
.admin-inventory-shell {
    border-radius: 16px;
}

.admin-overview-shell .card-body,
.admin-new-user-shell .card-body {
    padding-top: 0.95rem;
}

.admin-overview-stats {
    margin-bottom: 10px;
}

.admin-overview-item {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px 12px;
}

.admin-overview-item__title {
    font-weight: 700;
    font-size: 13px;
}

.admin-overview-item__body,
.admin-note-card__body,
.admin-new-user-help__body {
    font-size: 12px;
    color: #4b5563;
}

.admin-overview-item--warning {
    border-color: rgba(245, 158, 11, 0.33);
    background: rgba(245, 158, 11, 0.09);
}

.admin-overview-item--info {
    border-color: rgba(59, 130, 246, 0.32);
    background: rgba(59, 130, 246, 0.08);
}

.admin-note-card {
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px 12px;
    border-radius: 14px;
}

.admin-overview-empty {
    border: 1px dashed #d8e1e8;
    border-radius: 14px;
    color: #64748b;
    font-size: 12px;
    padding: 14px;
}

.admin-quick-link-card {
    border: 1px solid #dbe5ee;
    border-radius: 14px;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 82px;
    padding: 12px;
    text-decoration: none;
}

.admin-quick-link-card:hover {
    background: #f8fbfd;
    border-color: rgba(111, 156, 61, 0.45);
    color: inherit;
}

.admin-quick-link-card__title {
    font-size: 13px;
    font-weight: 700;
}

.admin-quick-link-card__body {
    color: #4b5563;
    font-size: 12px;
}

.admin-note-card__title,
.admin-new-user-help__title,
.admin-new-user-help__name,
.admin-inventory-card__header {
    font-weight: 700;
    font-size: 13px;
}

.admin-new-user-help__item + .admin-new-user-help__item {
    margin-top: 8px;
}

.admin-new-user-help {
    border: 1px solid #dde5ed;
    background: #f9fbfd;
    padding: 12px;
}

.admin-new-user-form,
.admin-inventory-form {
    max-width: 100%;
}

.admin-new-user-form .form-control,
.admin-new-user-form .form-select,
.admin-inventory-form .form-control,
.admin-inventory-form .form-select,
.admin-users-role-form .form-select {
    min-height: 36px;
    font-size: 12px;
}

.admin-inventory-form--muted {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
}

.admin-inventory-card {
    border: 1px solid #dde5ed;
    background: #ffffff;
    padding: 12px;
}

.admin-inventory-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-page .ft-grid-table td .badge {
    font-size: 11px;
}

.admin-users-role-badges {
    margin-bottom: 0 !important;
}

.admin-page .ft-toolbar--filters {
    align-items: stretch;
    justify-content: flex-start;
}

.admin-page .admin-filters {
    flex: 0 1 auto;
    gap: 8px;
    width: auto;
    max-width: 100%;
}

.admin-page .admin-filters .ft-filter {
    min-width: 0;
}

.admin-page .admin-filters .ft-filter--search {
    flex: 0 0 200px;
    width: 200px;
    max-width: 200px;
}

.admin-page .admin-filters .ft-filter--search .form-control {
    min-width: 0;
}

.admin-page .admin-filters .ft-filter--narrow {
    flex: 0 0 140px;
    width: 140px;
}

.admin-users-role-form {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-users-role-form .btn {
    min-height: 32px;
}

.admin-page .collapse-toggle[aria-expanded="false"] i,
.admin-page [data-bs-target][aria-expanded="false"] i {
    transform: rotate(-180deg);
}

.admin-page [data-bs-target] i {
    transition: transform 0.18s ease;
}

@media (max-width: 991.98px) {
    .admin-page .admin-filters {
        width: 100%;
    }

    .admin-page .admin-filters .ft-filter--search,
    .admin-page .admin-filters .ft-filter--narrow {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }
}

/* --- public/assets/css/pages/profile.css --- */
/* ---------- Profile ---------- */

.profile-page .section-tabs__panels {
    gap: 14px;
}

.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(111, 156, 61, 0.14);
    color: #4b5563;
    border: 1px solid rgba(111, 156, 61, 0.2);
    flex: 0 0 auto;
}

.profile-summary-card {
    padding: 1.1rem;
}

.profile-summary-card__identity {
    min-width: 0;
}

.profile-summary-card__meta {
    margin-top: 8px;
}

.profile-details-form,
.profile-password-form {
    max-width: 920px;
}

.profile-details-form .form-control,
.profile-details-form .form-select,
.profile-password-form .form-control {
    min-height: 38px;
}

.profile-notifications-list {
    display: grid;
    gap: 10px;
}

.profile-notification-card {
    border-radius: 16px;
    border-color: #e2e8f0;
    padding: 12px;
    margin-bottom: 0;
}

.profile-notification-card .avatar {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-password-shell .card-body,
.profile-details-shell .card-body {
    padding-top: 1rem;
}

/* --- public/assets/css/components/utilities.css --- */
/* ---------- Generic small helpers ---------- */

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-label {
    white-space: nowrap;
}

.tiny {
    font-size: 12px;
}

.icon {
    line-height: 1;
}

[data-bs-toggle="collapse"] .bi-chevron-up {
    transition: transform 0.18s ease;
}

[data-bs-toggle="collapse"][aria-expanded="false"] .bi-chevron-up {
    transform: rotate(-180deg);
}

/* --- public/assets/css/core/responsive.css --- */
/* ---------- Responsive ---------- */

@media (min-width: 992px) {
    body.sidebar-collapsed .app-sidebar {
        width: 0;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        border-right-color: transparent;
        overflow: hidden;
    }

    body.sidebar-collapsed .app-sidebar > * {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 1399.98px) {
    .app-sidebar {
        width: 246px;
    }

    .app-sidebar__brand-head--text {
        font-size: 28px;
    }

}

@media (max-width: 991.98px) {
    .app-shell {
        margin: 0;
        min-height: 100vh;
        border-radius: 0;
        border: 0;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(320px, 92vw);
        height: 100vh;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 180ms ease;
        border-radius: 0 14px 14px 0;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .app-topbar {
        padding: 8px 10px;
    }

    .app-topbar__user-label {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #map {
        min-height: 460px;
        height: 62vh;
    }

    .section-anchor-nav .dfb-toolbar-left {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .app-sidebar__brand-head--text {
        font-size: 26px;
    }

    .app-topbar__page-title {
        font-size: 17px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dfb-toolbar-left,
    .dfb-toolbar-right,
    .ft-toolbar__left,
    .ft-toolbar__right,
    .ft-toolbar__filters {
        width: 100%;
    }

    .dfb-pill-btn,
    .ft-chip-btn {
        min-height: 32px;
    }

    .app-topbar__user-card {
        width: min(320px, calc(100vw - 24px));
    }

    .auth-brand-wordmark {
        font-size: 32px;
    }
}

/* TODO: Add dedicated Documents data source when backend endpoint is available.
 * Current UI keeps a separate documents section, but content is based on reports context.
 */
