/* Mapa da propriedade / Pontos fixos — tela cheia sem topbar Filament */
[x-cloak] { display: none !important; }

.fi-propmapa-body .fi-topbar,
.fi-pontofixo-body .fi-topbar {
    display: none !important;
}

.fi-propmapa-inline-topbar {
    display: none !important;
}

/* Botão flutuante: abre menu Filament no mobile (substitui hamburger do topbar) */
.propmapa-mobile-nav-btn {
    position: fixed;
    z-index: 1003;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 0.5rem;
    background: #fff;
    color: rgb(55, 65, 81);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.propmapa-mobile-nav-btn:hover {
    background: rgb(249, 250, 251);
}

.dark .propmapa-mobile-nav-btn {
    background: rgb(17, 24, 39);
    color: rgb(229, 231, 235);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dark .propmapa-mobile-nav-btn:hover {
    background: rgb(31, 41, 55);
}

@media (min-width: 1024px) {
    .propmapa-mobile-nav-btn {
        display: none !important;
    }
}

.fi-propmapa-page .fi-header {
    display: none;
}

.fi-propmapa-page > section {
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
}

/* Layout fixo: sem scroll na página, só a lista de talhões rola */
.fi-propmapa-body {
    overflow: hidden;
}

/* 100dvh (com 100vh de fallback): no Chrome do Android, 100vh ignora a barra de
   endereço, então a página fica mais alta que a área visível e o rodapé do mapa
   (botão de talhões, zoom do Leaflet) some atrás da barra do navegador. */
.fi-propmapa-body .fi-layout {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

.fi-propmapa-body .fi-main-ctn {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

.fi-propmapa-body .fi-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: none !important;
    width: 100%;
    padding: 0 !important;
    margin: 0;
    background-color: transparent !important;
}

.propmapa-root,
.propmapa-workspace,
.propmapa-sidebar,
.propmapa-mapa-area {
    min-height: 0;
}

.propmapa-workspace {
    border-radius: 0;
    box-shadow: none;
}

.propmapa-mapa-area {
    border-top: 1px solid rgb(229, 231, 235);
    border-right: 1px solid rgb(229, 231, 235);
}

.dark .propmapa-mapa-area {
    border-top-color: rgba(255, 255, 255, 0.08);
    border-right-color: rgba(255, 255, 255, 0.08);
}

.propmapa-mapa-area .leaflet-container {
    border-radius: 0;
}

.propmapa-mapa-area .leaflet-control-geocoder {
    z-index: 1002;
}

.propmapa-mapa-area .leaflet-control-geocoder-form input {
    font-size: 0.875rem;
    min-width: 220px;
}

.propmapa-mapa-area .propmapa-overview-control {
    margin-bottom: 0.35rem;
    clear: both;
}

.propmapa-mapa-area .propmapa-overview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #fff;
    color: #374151;
    line-height: 1;
}

.propmapa-mapa-area .propmapa-overview-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.dark .propmapa-mapa-area .propmapa-overview-btn {
    background: #1f2937;
    color: #e5e7eb;
}

.dark .propmapa-mapa-area .propmapa-overview-btn:hover {
    background: #374151;
}

.fi-propmapa-page.fi-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fi-propmapa-page > section {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fi-propmapa-page > section > div {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fi-propmapa-page > section > div > div {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.propmapa-atividades-list {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.propmapa-talhao-item {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.propmapa-talhao-status {
    position: relative;
    display: block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--propmapa-status-cor, #ef4444);
    animation: propmapa-talhao-status-pulse 2.5s ease-in-out infinite;
}

.propmapa-talhao-status::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background-color: var(--propmapa-status-cor, #ef4444);
    opacity: 0.45;
    animation: propmapa-talhao-status-glow 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes propmapa-talhao-status-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.82;
        transform: scale(1.12);
    }
}

@keyframes propmapa-talhao-status-glow {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .propmapa-talhao-status,
    .propmapa-talhao-status::after {
        animation: none;
    }

    .propmapa-talhao-status::after {
        display: none;
    }
}

.propmapa-talhao-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;  /* 36px */
    height: 2.25rem;
    border-radius: 0.375rem;
    background: rgb(243, 244, 246);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dark .propmapa-talhao-thumb {
    background: rgb(31, 41, 55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.propmapa-talhao-thumb__svg {
    display: block;
    width: 100%;
    height: 100%;
}

.propmapa-talhao-item--selected .propmapa-talhao-thumb {
    box-shadow: inset 0 0 0 1px rgba(27, 138, 67, 0.35), 0 0 0 1px rgba(27, 138, 67, 0.2);
}

.propmapa-talhao-item--selected {
    background-color: #e8f4fc;
    box-shadow: inset 3px 0 0 #1b8a43;
}

.propmapa-talhao-item--selected:hover {
    background-color: #dceef9;
}

.dark .propmapa-talhao-item--selected {
    background-color: rgba(27, 138, 67, 0.18);
    box-shadow: inset 3px 0 0 #4ade80;
}

.dark .propmapa-talhao-item--selected:hover {
    background-color: rgba(27, 138, 67, 0.28);
}

.propmapa-sidebar {
    --propmapa-sidebar-x: 1rem;
    overflow: visible !important;
}

.propmapa-sidebar-head {
    padding: 1rem var(--propmapa-sidebar-x) 0.75rem;
}

/* Abaixo de 1024px o botão do menu do Filament (.propmapa-mobile-nav-btn) é
   fixed no canto superior esquerdo e cobria o título da sidebar. Recuamos o
   cabeçalho até depois dele: 0.75rem de topo + 2.5rem de botão + respiro. */
@media (max-width: 1023px) {
    .propmapa-sidebar-head {
        padding-left: calc(var(--propmapa-sidebar-x) + 2.75rem);
    }
}

.propmapa-sidebar-row {
    padding-left: var(--propmapa-sidebar-x);
    padding-right: var(--propmapa-sidebar-x);
}

.propmapa-sidebar-row--filter {
    padding-bottom: 0.5rem;
}

/* O bundle do Filament não traz os utilitários pl-9/left-3 que a view usa na
   busca: sem eles o input fica só com o padding padrão e o placeholder cai em
   cima da lupa (e a lupa se apoia na posição estática, por acaso). Fixamos os
   dois aqui. */
.propmapa-busca__icone {
    left: 0.75rem;
}

.propmapa-busca__input {
    padding-left: 2.25rem;
}

/* Mesmo caso do bundle no menu de ordenação: dark:text-gray-100 e os hovers não
   existem, então no tema escuro o texto ficava cinza-escuro sobre fundo escuro. */
.propmapa-ordenacao-menu button {
    color: #374151;
}

.propmapa-ordenacao-menu button:hover {
    background-color: #f9fafb;
}

.dark .propmapa-ordenacao-menu button {
    color: #ffffff;
}

.dark .propmapa-ordenacao-menu button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Seletores de fazenda/safra: os dark: deles (bg-gray-800/60, text-gray-200)
   também faltam no bundle, então o botão ficava com a paleta CLARA dentro do
   tema escuro e o nome da fazenda/safra saía apagado. */
.dark .propmapa-filter__btn {
    background-color: #27272a;
    border-color: #3f3f46;
}

.dark .propmapa-filter__btn:hover {
    background-color: #3f3f46;
}

.dark .propmapa-filter__rotulo {
    color: #a1a1aa;
}

.propmapa-filter__valor {
    color: #27272a;
}

.dark .propmapa-filter__valor {
    color: #ffffff;
}

.propmapa-sidebar > .shrink-0 {
    position: relative;
    z-index: 20;
    overflow: visible;
}

.propmapa-filters {
    width: 100%;
    flex-wrap: wrap;
}

/* Os dois seletores dividiam a linha em partes iguais (flex-1 = base 0), então
   numa sidebar estreita "SAFRA 2026/2027" saía cortado enquanto sobrava espaço
   no lado da fazenda. A base de 118px é o rótulo mais longo (94px) mais o cromo
   do botão: com a sidebar no tamanho padrão os dois cabem lado a lado com o
   texto inteiro, e quando o resizer aperta a sidebar eles caem um por linha em
   vez de cortar. Em px porque o rem do painel vale 14px. O min-width vence o
   min-w-0 da view. */
.propmapa-filters > .propmapa-filter {
    flex: 1 1 118px;
    min-width: 118px;
}

.propmapa-filter__btn {
    min-height: 2.25rem;
    /* px-2 da view deixava o botão 6px mais largo do que o texto precisa, e era
       o que empurrava a safra para as reticências. */
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.propmapa-filter--propriedade .propmapa-filter__menu,
.propmapa-filter--safra .propmapa-filter__menu {
    min-width: 100%;
    width: max-content;
    max-width: min(24rem, calc(100vw - 1rem));
    overflow-x: hidden;
}

.propmapa-filter--propriedade .propmapa-filter__menu a,
.propmapa-filter--safra .propmapa-filter__menu a,
.propmapa-filter--safra .propmapa-filter__menu span {
    white-space: nowrap;
}

/* --- PropriedadeMapa: detalhe do talhão (sidebar) --- */
.propmapa-detalhe {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.dark .propmapa-detalhe {
    background: linear-gradient(180deg, rgba(27, 138, 67, 0.12) 0%, rgb(17, 24, 39) 100%);
}

.propmapa-detalhe__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem var(--propmapa-sidebar-x, 1rem) 0.5rem;
}

.propmapa-detalhe__evento {
    padding: 0  var(--propmapa-sidebar-x, 1rem) 0.75rem;
}

.propmapa-detalhe__secao {
    margin-top: 0.625rem;
}

.propmapa-detalhe__secao-titulo {
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(107, 114, 128);
}

.dark .propmapa-detalhe__secao-titulo {
    color: rgb(156, 163, 175);
}

.propmapa-detalhe__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.propmapa-detalhe__tags li {
    border-radius: 9999px;
    background: rgb(254, 243, 199);
    color: rgb(146, 64, 14);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
}

.dark .propmapa-detalhe__tags li {
    background: rgba(245, 158, 11, 0.2);
    color: rgb(253, 224, 71);
}

.propmapa-detalhe__indicadores {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.propmapa-detalhe__indicadores li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgb(55, 65, 81);
}

.dark .propmapa-detalhe__indicadores li {
    color: rgb(209, 213, 219);
}

.propmapa-detalhe__indicadores strong {
    font-weight: 700;
    color: rgb(17, 24, 39);
}

.dark .propmapa-detalhe__indicadores strong {
    color: rgb(243, 244, 246);
}

.propmapa-detalhe__data-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgb(229, 231, 235);
}

.dark .propmapa-detalhe__data-nav {
    border-bottom-color: rgb(55, 65, 81);
}

.propmapa-detalhe__data-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 9999px;
    color: rgb(75, 85, 99);
    background: transparent;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.propmapa-detalhe__data-nav-btn:hover:not(:disabled) {
    background: rgb(229, 231, 235);
}

.dark .propmapa-detalhe__data-nav-btn {
    color: rgb(156, 163, 175);
}

.dark .propmapa-detalhe__data-nav-btn:hover:not(:disabled) {
    background: rgb(55, 65, 81);
}

.propmapa-detalhe__data-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.propmapa-detalhe__data-nav-centro {
    text-align: center;
    min-width: 0;
}

.propmapa-detalhe__data-nav-data {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(4, 120, 87);
}

.dark .propmapa-detalhe__data-nav-data {
    color: rgb(52, 211, 153);
}

.propmapa-detalhe__data-nav-dias {
    margin: 0;
    font-size: 0.6875rem;
    color: rgb(107, 114, 128);
}

.propmapa-detalhe__coleta {
    display: grid;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgb(229, 231, 235);
}

.dark .propmapa-detalhe__coleta {
    border-bottom-color: rgb(55, 65, 81);
}

.propmapa-detalhe__coleta-resp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.propmapa-detalhe__coleta-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgb(229, 231, 235);
    color: rgb(75, 85, 99);
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
}

.dark .propmapa-detalhe__coleta-avatar {
    background: rgb(55, 65, 81);
    color: rgb(209, 213, 219);
}

.propmapa-detalhe__coleta-nome {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(31, 41, 55);
}

.dark .propmapa-detalhe__coleta-nome {
    color: rgb(229, 231, 235);
}

/* Nome de cada inspetor com a bolinha na cor do rastro dele no mapa. */
.propmapa-detalhe__coleta-inspetor {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.propmapa-detalhe__coleta-cor {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.dark .propmapa-detalhe__coleta-cor {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.propmapa-detalhe__coleta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgb(55, 65, 81);
}

.dark .propmapa-detalhe__coleta-item {
    color: rgb(209, 213, 219);
}

.propmapa-detalhe__coleta-item p {
    margin: 0;
    line-height: 1.4;
}

.propmapa-detalhe__coleta-item strong {
    font-weight: 700;
    color: rgb(17, 24, 39);
}

.dark .propmapa-detalhe__coleta-item strong {
    color: rgb(243, 244, 246);
}

.propmapa-detalhe__coleta-sub {
    font-size: 0.75rem;
    color: rgb(107, 114, 128);
}

.propmapa-detalhe__coleta-sub strong {
    color: rgb(4, 120, 87) !important;
}

.dark .propmapa-detalhe__coleta-sub strong {
    color: rgb(52, 211, 153) !important;
}

.propmapa-detalhe__coleta-icone {
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    color: rgb(107, 114, 128);
}

.propmapa-detalhe__grupo {
    margin-top: 0.625rem;
}

.propmapa-detalhe__grupo-titulo {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(75, 85, 99);
}

.dark .propmapa-detalhe__grupo-titulo {
    color: rgb(156, 163, 175);
}

.propmapa-detalhe__grupo-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: rgb(34, 197, 94);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    flex-shrink: 0;
}

.propmapa-detalhe__praga {
    margin-bottom: 0.75rem;
}

.propmapa-detalhe__praga-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.375rem;
}

.propmapa-detalhe__praga-foto {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    object-fit: cover;
    flex-shrink: 0;
}

.propmapa-detalhe__praga-foto--vazia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(229, 231, 235);
    color: rgb(107, 114, 128);
}

.dark .propmapa-detalhe__praga-foto--vazia {
    background: rgb(55, 65, 81);
    color: rgb(156, 163, 175);
}

.propmapa-detalhe__praga-nome {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(17, 24, 39);
}

.dark .propmapa-detalhe__praga-nome {
    color: rgb(243, 244, 246);
}

.propmapa-detalhe__praga-cientifico {
    margin: 0;
    font-size: 0.75rem;
    font-style: italic;
    color: rgb(107, 114, 128);
}

.propmapa-detalhe__praga-pontos-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgb(209, 213, 219);
    background: transparent;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgb(75, 85, 99);
    white-space: nowrap;
    transition: all 0.15s ease;
}

.propmapa-detalhe__praga-pontos-btn--icone {
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0.375rem;
}

.propmapa-detalhe__praga-pontos-btn:hover {
    border-color: rgb(5, 150, 105);
    color: rgb(5, 150, 105);
}

.propmapa-detalhe__praga-pontos-btn--ativo {
    background: rgb(5, 150, 105);
    border-color: rgb(5, 150, 105);
    color: #fff;
}

.propmapa-detalhe__praga-pontos-btn--ativo:hover {
    color: #fff;
    opacity: 0.9;
}

.dark .propmapa-detalhe__praga-pontos-btn {
    border-color: rgb(75, 85, 99);
    color: rgb(156, 163, 175);
}

.dark .propmapa-detalhe__praga-pontos-btn:hover {
    border-color: rgb(52, 211, 153);
    color: rgb(52, 211, 153);
}

.dark .propmapa-detalhe__praga-pontos-btn--ativo {
    background: rgb(5, 150, 105);
    border-color: rgb(5, 150, 105);
    color: #fff;
}

/* Abre o modal "Detalhes por ponto". A cor vem daqui, e não de utilitários do
   Tailwind: o bundle do painel só traz a escala de cinzas, então classes como
   bg-emerald-50 não existem e o botão sairia sem fundo e com texto herdado —
   invisível no tema claro. */
.propmapa-detalhe__detalhes-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(167, 243, 208);
    border-radius: 0.375rem;
    background: rgb(236, 253, 245);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(4, 120, 87);
    cursor: pointer;
    transition: all 0.15s ease;
}

.propmapa-detalhe__acoes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.propmapa-detalhe__acoes .propmapa-detalhe__detalhes-btn {
    margin-top: 0;
    text-decoration: none;
}

.propmapa-detalhe__detalhes-btn:hover {
    background: rgb(209, 250, 229);
}

.propmapa-detalhe__detalhes-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.dark .propmapa-detalhe__detalhes-btn {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: rgb(110, 231, 183);
}

.dark .propmapa-detalhe__detalhes-btn:hover {
    background: rgba(16, 185, 129, 0.2);
}

.propmapa-detalhe__praga-indicadores {
    display: grid;
    gap: 0.375rem;
}

.propmapa-detalhe__indicador-card {
    background: rgb(243, 244, 246);
    border-radius: 0.5rem;
    border-left: 4px solid var(--ind-cor, rgb(156, 163, 175));
    padding: 0.5rem 0.75rem;
}

.dark .propmapa-detalhe__indicador-card {
    background: rgb(31, 41, 55);
}

.propmapa-detalhe__indicador-nome {
    margin: 0;
    font-size: 0.8125rem;
    color: rgb(31, 41, 55);
}

.dark .propmapa-detalhe__indicador-nome {
    color: rgb(209, 213, 219);
}

.propmapa-detalhe__indicador-valor {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ind-cor, rgb(55, 65, 81));
}

.propmapa-detalhe__indicador-meta {
    margin: 0.125rem 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: rgb(107, 114, 128);
}

.dark .propmapa-detalhe__indicador-meta {
    color: rgb(156, 163, 175);
}

/* O status é a leitura agronômica do valor: acompanha a cor da classe, enquanto a
   seta fica cinza. Subir não é ruim em todo indicador (inimigo natural, predador) —
   quem sabe disso é a classe, não a direção. */
.propmapa-detalhe__indicador-status {
    margin-left: auto;
    font-weight: 600;
    color: var(--ind-cor, rgb(107, 114, 128));
}

.propmapa-detalhe__vazio {
    margin: 0;
    font-size: 0.8125rem;
    font-style: italic;
    color: rgb(156, 163, 175);
}

.dark .propmapa-detalhe__vazio {
    color: rgb(107, 114, 128);
}

.propmapa-detalhe__resumo {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgb(107, 114, 128);
    line-height: 1.4;
}

.propmapa-detalhe__badge-demo {
    flex-shrink: 0;
    border-radius: 0.25rem;
    background: rgb(254, 226, 226);
    color: rgb(185, 28, 28);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.125rem 0.375rem;
    text-transform: uppercase;
}

/* O aviso logo abaixo já tinha o par escuro; o badge tinha ficado só com o
   tom claro fixo e virava pastilha rosa acesa dentro do tema escuro. */
.dark .propmapa-detalhe__badge-demo {
    background: rgba(220, 38, 38, 0.2);
    color: rgb(252, 165, 165);
}

.propmapa-detalhe__aviso-demo {
    margin: 0;
    padding: 0.5rem var(--propmapa-sidebar-x, 1rem) 0.75rem;
    font-size: 0.6875rem;
    color: rgb(180, 83, 9);
    background: rgb(255, 251, 235);
    border-top: 1px solid rgb(254, 243, 199);
}

.dark .propmapa-detalhe__aviso-demo {
    color: rgb(253, 224, 71);
    background: rgba(180, 83, 9, 0.15);
    border-top-color: rgba(245, 158, 11, 0.25);
}

/* --- PropriedadeMapa: cortina lateral de inspeção (linha do tempo) --- */
.propmapa-inspecao-drawer {
    position: absolute;
    inset: 0;
    z-index: 1005;
    pointer-events: none;
}

.propmapa-inspecao-drawer--open {
    pointer-events: none;
}

.propmapa-inspecao-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.25);
    pointer-events: none;
}

.propmapa-inspecao-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 22.5rem);
    max-width: 25rem;
    min-width: 20rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-left: 1px solid rgb(229, 231, 235);
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.propmapa-inspecao-drawer__panel--open {
    transform: translateX(0);
    pointer-events: auto;
}

.dark .propmapa-inspecao-drawer__panel {
    background: rgb(17, 24, 39);
    border-left-color: rgba(255, 255, 255, 0.1);
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.4);
}

.propmapa-inspecao-drawer__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: rgb(107, 114, 128);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.propmapa-inspecao-drawer__close:hover {
    background: rgb(243, 244, 246);
    color: rgb(55, 65, 81);
}

.dark .propmapa-inspecao-drawer__close {
    color: rgb(156, 163, 175);
}

.dark .propmapa-inspecao-drawer__close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgb(229, 231, 235);
}

.propmapa-inspecao-drawer__head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-shrink: 0;
    padding: 1rem 2.75rem 0.75rem 1rem;
    border-bottom: 1px solid rgb(243, 244, 246);
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.dark .propmapa-inspecao-drawer__head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(27, 138, 67, 0.12) 0%, rgb(17, 24, 39) 100%);
}

.propmapa-inspecao-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0.75rem 1rem 1rem;
}

.propmapa-inspecao-drawer__aviso-demo {
    margin: 0.75rem 0 0;
    padding: 0.5rem 0.625rem;
    font-size: 0.6875rem;
    line-height: 1.4;
    color: rgb(180, 83, 9);
    background: rgb(255, 251, 235);
    border: 1px solid rgb(254, 243, 199);
    border-radius: 0.375rem;
}

.dark .propmapa-inspecao-drawer__aviso-demo {
    color: rgb(253, 224, 71);
    background: rgba(180, 83, 9, 0.15);
    border-color: rgba(245, 158, 11, 0.25);
}

/* --- PropriedadeMapa: faixa compacta de datas na base do mapa --- */
.propmapa-mapa-area {
    --propmapa-timeline-height: 2rem;
}

.propmapa-timeline-bar {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: var(--propmapa-timeline-height);
    background: #fff;
    border-top: 1px solid rgb(229, 231, 235);
    z-index: 1003;
    overflow: hidden;
}

/* O bundle do Filament não traz as variantes dark: para views customizadas, então
   sem as regras abaixo a faixa inteira fica na paleta CLARA (fundo branco, rótulo
   quase preto) dentro do tema escuro — a única que existia era a do selo de mídia. */
.dark .propmapa-timeline-bar {
    background: rgb(17, 24, 39);
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* A barra de rolagem come ~10 px e não sobraria folga para o rótulo do marcador.
   Só quando a faixa realmente rola (o x-init do partial marca a classe) a barra
   ganha essa altura extra, para não roubar espaço do mapa no caso comum. */
.propmapa-timeline-bar--rolando {
    height: calc(var(--propmapa-timeline-height) + 0.625rem);
}

.propmapa-timeline-bar__eventos {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex: 1;
    height: 100%;
    min-width: 0;
    margin: 0 0.5rem;
}

/* Os marcadores saíram do posicionamento por porcentagem da data (que empilhava
   inspeções de dias seguidos) e viraram itens de uma faixa: com poucas inspeções o
   space-between as espalha pela largura toda, com muitas a faixa rola na horizontal
   — quando falta espaço o space-between se comporta como flex-start. */
.propmapa-timeline-bar__eventos--rolagem {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgb(209, 213, 219) transparent;
}

.propmapa-timeline-bar__eventos--rolagem::-webkit-scrollbar {
    height: 5px;
}

.propmapa-timeline-bar__eventos--rolagem::-webkit-scrollbar-track {
    background: transparent;
}

.propmapa-timeline-bar__eventos--rolagem::-webkit-scrollbar-thumb {
    background: rgb(209, 213, 219);
    border-radius: 9999px;
}

.dark .propmapa-timeline-bar__eventos--rolagem {
    scrollbar-color: rgb(75, 85, 99) transparent;
}

.dark .propmapa-timeline-bar__eventos--rolagem::-webkit-scrollbar-thumb {
    background: rgb(75, 85, 99);
}

.propmapa-timeline-bar__marcador {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.0625rem 0.125rem;
    border-radius: 0.1875rem;
    z-index: 1;
    transition: background 0.15s ease;
}

.propmapa-timeline-bar__marcador:hover {
    background: rgb(243, 244, 246);
}

.dark .propmapa-timeline-bar__marcador:hover {
    background: rgba(255, 255, 255, 0.08);
}

.propmapa-timeline-bar__icone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 9999px;
    background: rgb(236, 253, 245);
    color: rgb(27, 138, 67);
    flex-shrink: 0;
}

.dark .propmapa-timeline-bar__icone {
    background: rgba(27, 138, 67, 0.25);
    color: rgb(74, 222, 128);
}

.propmapa-timeline-bar__marcador--demo .propmapa-timeline-bar__icone {
    background: rgb(254, 243, 199);
    color: rgb(217, 119, 6);
}

.dark .propmapa-timeline-bar__marcador--demo .propmapa-timeline-bar__icone {
    background: rgba(217, 119, 6, 0.25);
    color: rgb(252, 211, 77);
}

.propmapa-timeline-bar__marcador--ativo .propmapa-timeline-bar__icone {
    background: rgb(27, 138, 67);
    color: #fff;
}

/* No escuro o verde do painel some no fundo gray-900: o marcador selecionado usa
   o mesmo verde claro do talhão selecionado na lista, com o ícone escuro. */
.dark .propmapa-timeline-bar__marcador--ativo .propmapa-timeline-bar__icone {
    background: rgb(74, 222, 128);
    color: rgb(17, 24, 39);
}

.propmapa-timeline-bar__textos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
}

.propmapa-timeline-bar__data {
    font-size: 0.5625rem;
    font-weight: 600;
    color: rgb(31, 41, 55);
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.dark .propmapa-timeline-bar__data {
    color: rgb(229, 231, 235);
}

.propmapa-timeline-bar__marcador--ativo .propmapa-timeline-bar__data {
    color: rgb(27, 138, 67);
}

.dark .propmapa-timeline-bar__marcador--ativo .propmapa-timeline-bar__data {
    color: rgb(74, 222, 128);
}

.propmapa-timeline-bar__dias {
    font-size: 0.5rem;
    font-weight: 500;
    color: rgb(107, 114, 128);
    white-space: nowrap;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.dark .propmapa-timeline-bar__dias {
    color: rgb(156, 163, 175);
}

/* Selo de "tem mídia" (fotos sincronizadas) no marcador da linha do tempo */
.propmapa-timeline-bar__midia {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: rgb(219, 234, 254);
    color: rgb(37, 99, 235);
    flex-shrink: 0;
    margin-left: 0.0625rem;
}

.dark .propmapa-timeline-bar__midia {
    background: rgba(37, 99, 235, 0.25);
    color: rgb(147, 197, 253);
}

/* O filtro tem quatro opções (Fixo, Anotação, Tarefa e Concluídas) e o grid de
   três colunas da base jogava a última para a linha de baixo. Aqui viram uma
   linha só, cada botão do tamanho do seu rótulo. A dupla classe é para vencer
   a regra base, que vem depois no arquivo. */
.pontofixo-toggle.pontofixo-toggle--filter {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.375rem;
}

.pontofixo-toggle--filter .pontofixo-toggle__option {
    flex: 1 1 auto;
    min-width: 0;
}

.pontofixo-toggle--filter .pontofixo-toggle__btn {
    min-height: 2.25rem;
    padding: 0.375rem 0.375rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

/* Pontos Fixos — reutiliza layout do mapa de propriedade */
.fi-pontofixo-page .fi-header {
    display: none;
}

.fi-pontofixo-page > section {
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
}

.fi-pontofixo-body {
    overflow: hidden;
}

/* Mesmo motivo do .fi-propmapa-body acima: 100dvh desconta a barra do navegador
   no Android, senão o rodapé do mapa fica fora da área visível. */
.fi-pontofixo-body .fi-layout {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

.fi-pontofixo-body .fi-main-ctn {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow: hidden;
}

.fi-pontofixo-body .fi-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: none !important;
    width: 100%;
    padding: 0 !important;
    margin: 0;
    background-color: transparent !important;
}

.fi-pontofixo-page.fi-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fi-pontofixo-page.fi-page > section {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fi-pontofixo-page > section > div {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fi-pontofixo-page > section > div > div {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

.fi-pontofixo-empty-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    color: #d1d5db;
}

.dark .fi-pontofixo-empty-icon {
    color: #4b5563;
}

.pontofixo-btn-add {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 0.5rem;
    background-color: #1b8a43;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.pontofixo-btn-add:hover {
    background-color: #157a3a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
}

.pontofixo-btn-add:focus-visible {
    outline: 2px solid #1b8a43;
    outline-offset: 2px;
}

.pontofixo-btn-exportar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pontofixo-btn-exportar:hover {
    background-color: #f3f4f6;
}

.pontofixo-btn-exportar:focus-visible {
    outline: 2px solid #1b8a43;
    outline-offset: 2px;
}

.pontofixo-btn-exportar:disabled {
    opacity: 0.6;
}

.dark .pontofixo-btn-exportar {
    border-color: #4b5563;
    background-color: #1f2937;
    color: #e5e7eb;
}

.dark .pontofixo-btn-exportar:hover {
    background-color: #374151;
}

.pontofixo-pin {
    background: transparent;
    border: none;
}

.pontofixo-pin--editing {
    filter: drop-shadow(0 0 6px rgba(22, 163, 74, 0.85));
}

.pontofixo-popup {
    pointer-events: auto;
}

/* Cortina lateral (editar / visualizar) — fica dentro da coluna da sidebar.
   Teto de 42vw pensado pro arraste do resizer em desktop; abaixo de 768px a
   sidebar vira painel flutuante (ver regra #pontofixo-sidebar.propmapa-sidebar--overlay-mobile
   mais abaixo neste arquivo) e não deve ter esse teto, senão fica com ~157px
   numa tela de celular. */
@media (min-width: 768px) {
    #pontofixo-sidebar.propmapa-sidebar--pontofixo {
        min-width: 0;
        max-width: min(480px, 42vw);
        overflow-x: hidden;
    }
}

.propmapa-sidebar--drawer-open {
    box-shadow: inset -3px 0 0 rgba(27, 138, 67, 0.35);
}

.pontofixo-drawer {
    --pontofixo-drawer-x: 1rem;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    animation: pontofixo-drawer-in 0.22s ease-out;
}

@keyframes pontofixo-drawer-in {
    from {
        opacity: 0.85;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pontofixo-drawer__head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem var(--pontofixo-drawer-x);
    border-bottom: 1px solid rgb(229, 231, 235);
    background: #ffffff;
}

.dark .pontofixo-drawer__head {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgb(17, 24, 39);
}

.pontofixo-drawer__title {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgb(17, 24, 39);
}

.pontofixo-drawer__title--truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pontofixo-drawer__title--with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.pontofixo-drawer__title-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    object-fit: contain;
}

.pontofixo-drawer__title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .pontofixo-drawer__title {
    color: rgb(243, 244, 246);
}

.pontofixo-drawer__back,
.pontofixo-drawer__close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: rgb(107, 114, 128);
    cursor: pointer;
}

.pontofixo-drawer__back:hover,
.pontofixo-drawer__close:hover {
    color: rgb(55, 65, 81);
    background: rgb(243, 244, 246);
}

.dark .pontofixo-drawer__back:hover,
.dark .pontofixo-drawer__close:hover {
    color: rgb(209, 213, 219);
    background: rgba(255, 255, 255, 0.08);
}

.pontofixo-drawer__form,
.pontofixo-drawer__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.pontofixo-drawer__body--view {
    gap: 0;
}

.pontofixo-drawer__scroll {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1rem var(--pontofixo-drawer-x);
}

.pontofixo-drawer__footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: 0.75rem var(--pontofixo-drawer-x) 1rem;
    border-top: 1px solid rgb(229, 231, 235);
    background: rgb(249, 250, 251);
}

.dark .pontofixo-drawer__footer {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: rgb(17, 24, 39);
}

.pontofixo-drawer .pontofixo-modal-panel__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.pontofixo-drawer__body--view .pontofixo-modal-meta {
    margin: 1.25rem 0 0;
    padding: 0;
}

/* Formulário e detalhes (inputs, botões, foto) */
.pontofixo-modal-panel__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pontofixo-modal-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(55, 65, 81);
}

.dark .pontofixo-modal-label {
    color: rgb(229, 231, 235);
}

.pontofixo-modal-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgb(209, 213, 219);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    outline: none;
    background: #ffffff;
    color: rgb(17, 24, 39);
}

.pontofixo-modal-input:focus {
    border-color: #1b8a43;
    box-shadow: 0 0 0 1px #1b8a43;
}

.dark .pontofixo-modal-input {
    border-color: rgb(75, 85, 99);
    background: rgb(17, 24, 39);
    color: rgb(243, 244, 246);
}

/* Tipo de ponto — radios como toggle buttons */
.pontofixo-toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.pontofixo-toggle__option {
    position: relative;
    display: block;
}

.pontofixo-toggle__input {
    position: absolute;
    inset: 0;
    opacity: 0.0001;
    cursor: pointer;
}

.pontofixo-toggle__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgb(209, 213, 219);
    border-radius: 0.5rem;
    background: #ffffff;
    color: rgb(55, 65, 81);
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.pontofixo-toggle__input:hover + .pontofixo-toggle__btn {
    background: rgb(249, 250, 251);
}

.pontofixo-toggle__input:checked + .pontofixo-toggle__btn {
    background: #1b8a43;
    border-color: #1b8a43;
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Checkbox "Concluída" (tipo tarefa) */
.pontofixo-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.pontofixo-checkbox__input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #1b8a43;
    cursor: pointer;
}

.pontofixo-checkbox__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(55, 65, 81);
}

.dark .pontofixo-checkbox__label {
    color: rgb(229, 231, 235);
}

/* Badge tipo (Fixo | Anotação | Tarefa) — pill outlined, cores por tipo */
.pontofixo-badge-tipo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    border: 1px solid var(--pontofixo-badge-border);
    background: var(--pontofixo-badge-bg);
    color: var(--pontofixo-badge-fg);
}

.pontofixo-badge-tipo--list {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
}

.pontofixo-badge-tipo--inline {
    font-size: 0.8125rem;
}

.pontofixo-badge-tipo--fixo {
    --pontofixo-badge-bg: rgb(241, 245, 249);
    --pontofixo-badge-fg: rgb(71, 85, 105);
    --pontofixo-badge-border: rgba(100, 116, 139, 0.25);
}

.pontofixo-badge-tipo--anotacao {
    --pontofixo-badge-bg: rgb(254, 243, 199);
    --pontofixo-badge-fg: rgb(180, 83, 9);
    --pontofixo-badge-border: rgba(217, 119, 6, 0.25);
}

.pontofixo-badge-tipo--tarefa {
    --pontofixo-badge-bg: rgb(219, 234, 254);
    --pontofixo-badge-fg: rgb(29, 78, 216);
    --pontofixo-badge-border: rgba(37, 99, 235, 0.25);
}

.dark .pontofixo-badge-tipo--fixo {
    --pontofixo-badge-bg: rgba(100, 116, 139, 0.2);
    --pontofixo-badge-fg: rgb(203, 213, 225);
    --pontofixo-badge-border: rgba(148, 163, 184, 0.25);
}

.dark .pontofixo-badge-tipo--anotacao {
    --pontofixo-badge-bg: rgba(217, 119, 6, 0.2);
    --pontofixo-badge-fg: rgb(253, 230, 138);
    --pontofixo-badge-border: rgba(251, 191, 36, 0.25);
}

.dark .pontofixo-badge-tipo--tarefa {
    --pontofixo-badge-bg: rgba(37, 99, 235, 0.2);
    --pontofixo-badge-fg: rgb(147, 197, 253);
    --pontofixo-badge-border: rgba(96, 165, 250, 0.25);
}

.pontofixo-list-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
    max-width: 6.75rem;
}

/* Lista — todos os badges com o mesmo padrão outlined (referência: Tarefa) */
.pontofixo-list-badges .pontofixo-badge-tipo,
.pontofixo-list-badges .pontofixo-badge-concluida {
    border: 1px solid var(--pontofixo-badge-border);
    background: var(--pontofixo-badge-bg);
    color: var(--pontofixo-badge-fg);
    box-shadow: none;
}

.pontofixo-list-badges .pontofixo-badge-tipo--fixo,
.pontofixo-list-badges .pontofixo-badge-tipo--anotacao,
.pontofixo-list-badges .pontofixo-badge-tipo--tarefa {
    --pontofixo-badge-bg: rgba(37, 99, 235, 0.08);
    --pontofixo-badge-fg: rgb(29, 78, 216);
    --pontofixo-badge-border: rgb(37, 99, 235);
}

.dark .pontofixo-list-badges .pontofixo-badge-tipo--fixo,
.dark .pontofixo-list-badges .pontofixo-badge-tipo--anotacao,
.dark .pontofixo-list-badges .pontofixo-badge-tipo--tarefa {
    --pontofixo-badge-bg: rgba(96, 165, 250, 0.1);
    --pontofixo-badge-fg: rgb(147, 197, 253);
    --pontofixo-badge-border: rgb(96, 165, 250);
}

/* Badge / estado concluída — mesmo padrão pill outlined */
.pontofixo-badge-concluida {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    border: 1px solid rgba(22, 163, 74, 0.25);
    background: rgb(220, 252, 231);
    color: rgb(21, 128, 61);
}

.pontofixo-badge-concluida--inline {
    font-size: 0.8125rem;
}

.pontofixo-badge-concluida--list {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
    --pontofixo-badge-bg: rgba(22, 163, 74, 0.08);
    --pontofixo-badge-fg: rgb(21, 128, 61);
    --pontofixo-badge-border: rgb(22, 163, 74);
}

.dark .pontofixo-badge-concluida {
    border-color: rgba(74, 222, 128, 0.25);
    background: rgba(22, 163, 74, 0.2);
    color: rgb(134, 239, 172);
}

.dark .pontofixo-list-badges .pontofixo-badge-concluida {
    --pontofixo-badge-bg: rgba(74, 222, 128, 0.1);
    --pontofixo-badge-fg: rgb(134, 239, 172);
    --pontofixo-badge-border: rgb(74, 222, 128);
    background: var(--pontofixo-badge-bg);
    color: var(--pontofixo-badge-fg);
    border-color: var(--pontofixo-badge-border);
}

.pontofixo-list-nome--concluida,
.pontofixo-drawer__title-text--concluida {
    text-decoration: line-through;
    opacity: 0.72;
}

/* Nome + ícone na mesma linha (formulário) */
.pontofixo-nome-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.pontofixo-nome-row__input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.pontofixo-iconpicker {
    position: relative;
    display: inline-block;
    width: 100%;
}

.pontofixo-iconpicker--inline {
    width: auto;
    flex-shrink: 0;
}

.pontofixo-iconpicker--inline .pontofixo-iconpicker__trigger {
    width: auto;
    min-width: 3.25rem;
    height: 100%;
    min-height: 2.375rem;
    padding: 0.375rem 0.5rem;
    gap: 0.25rem;
}

.pontofixo-iconpicker--inline .pontofixo-iconpicker__trigger-chevron {
    width: 0.875rem;
    height: 0.875rem;
}

.pontofixo-iconpicker--inline .pontofixo-iconpicker__popover {
    width: min(360px, calc(100vw - 2rem));
}

.pontofixo-iconpicker__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(209, 213, 219);
    background: #ffffff;
    color: rgb(31, 41, 55);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pontofixo-iconpicker__trigger:hover {
    background: rgb(249, 250, 251);
}

.pontofixo-iconpicker__trigger:focus-visible {
    outline: 2px solid #1b8a43;
    outline-offset: 2px;
}

.pontofixo-iconpicker__trigger-img {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.pontofixo-iconpicker__trigger-fallback {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: rgba(27, 138, 67, 0.12);
    border: 1px solid rgba(27, 138, 67, 0.25);
}

.pontofixo-iconpicker__trigger-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 500;
}

.pontofixo-iconpicker__trigger-chevron {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: rgb(107, 114, 128);
}

.pontofixo-iconpicker__popover {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    z-index: 50;
    width: min(360px, 100%);
    padding: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(229, 231, 235);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.pontofixo-iconpicker__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.pontofixo-iconpicker__option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: transform 0.08s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pontofixo-iconpicker__option:hover {
    background: rgb(243, 244, 246);
}

.pontofixo-iconpicker__option:active {
    transform: scale(0.98);
}

.pontofixo-iconpicker__option:focus-visible {
    outline: 2px solid #1b8a43;
    outline-offset: 2px;
}

.pontofixo-iconpicker__option-img {
    width: 1.5rem;
    height: 1.5rem;
}

.pontofixo-iconpicker__option--active {
    border-color: #1b8a43;
    box-shadow: 0 0 0 1px #1b8a43;
    background: rgba(27, 138, 67, 0.08);
}

.dark .pontofixo-iconpicker__trigger {
    border-color: rgb(75, 85, 99);
    background: rgb(17, 24, 39);
    color: rgb(243, 244, 246);
}

.dark .pontofixo-iconpicker__trigger:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dark .pontofixo-iconpicker__trigger-chevron {
    color: rgb(156, 163, 175);
}

.dark .pontofixo-iconpicker__popover {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgb(17, 24, 39);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.dark .pontofixo-iconpicker__option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.dark .pontofixo-iconpicker__option--active {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px #22c55e;
    background: rgba(34, 197, 94, 0.14);
}

.pontofixo-toggle__input:focus-visible + .pontofixo-toggle__btn {
    outline: 2px solid #1b8a43;
    outline-offset: 2px;
}

.dark .pontofixo-toggle__btn {
    border-color: rgb(75, 85, 99);
    background: rgb(17, 24, 39);
    color: rgb(229, 231, 235);
}

.dark .pontofixo-toggle__input:hover + .pontofixo-toggle__btn {
    background: rgba(255, 255, 255, 0.06);
}

.dark .pontofixo-toggle__input:checked + .pontofixo-toggle__btn {
    background: #1b8a43;
    border-color: #1b8a43;
    color: #ffffff;
}

.pontofixo-modal-file {
    width: 100%;
    font-size: 0.875rem;
    color: rgb(75, 85, 99);
}

.pontofixo-modal-file--hidden {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.pontofixo-modal-foto-tile {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 180px;
    border-radius: 0.5rem;
    border: 1px dashed rgb(209, 213, 219);
    background: rgb(249, 250, 251);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pontofixo-modal-foto-tile:hover {
    background: rgb(243, 244, 246);
}

.pontofixo-modal-foto-tile:focus-visible {
    outline: 2px solid #1b8a43;
    outline-offset: 2px;
}

.pontofixo-modal-foto-tile--empty::after {
    content: '';
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    padding: 0.75rem;
    background-image: url('../images/logo-zopragas.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-origin: content-box;
    background-clip: content-box;
    opacity: 0.07;
    pointer-events: none;
}

.pontofixo-modal-foto-tile--has-preview {
    border-style: solid;
    border-color: rgb(229, 231, 235);
    background: rgb(243, 244, 246);
}

.dark .pontofixo-modal-foto-tile {
    border-color: rgb(75, 85, 99);
    background: rgba(255, 255, 255, 0.03);
}

.dark .pontofixo-modal-foto-tile:hover {
    background: rgba(255, 255, 255, 0.06);
}

.pontofixo-modal-foto-tile__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pontofixo-modal-foto-tile__placeholder {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    color: rgb(107, 114, 128);
    font-size: 0.875rem;
    font-weight: 600;
}

.dark .pontofixo-modal-foto-tile__placeholder {
    color: rgb(156, 163, 175);
}

.pontofixo-modal-foto-tile__remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pontofixo-modal-foto-tile__remove:hover {
    background: rgba(0, 0, 0, 0.75);
}

.pontofixo-modal-foto-tile__remove:focus-visible {
    outline: 2px solid #1b8a43;
    outline-offset: 2px;
}

.pontofixo-modal-foto-preview {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    border-radius: 0.5rem;
    border: 1px solid rgb(229, 231, 235);
    background: rgb(243, 244, 246);
}

.dark .pontofixo-modal-foto-preview {
    border-color: rgb(75, 85, 99);
    background: rgb(55, 65, 81);
}

.pontofixo-modal-foto-preview__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
}

.pontofixo-modal-foto-preview__remove {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pontofixo-modal-foto-preview__remove:hover {
    background: rgba(0, 0, 0, 0.75);
}

.pontofixo-modal-foto-preview__remove:focus-visible {
    outline: 2px solid #1b8a43;
    outline-offset: 2px;
}

.pontofixo-modal-hint {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: rgb(107, 114, 128);
}

.pontofixo-modal-error {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: rgb(220, 38, 38);
}

.pontofixo-modal-location {
    border-radius: 0.5rem;
    border: 1px dashed #4ade80;
    background: rgb(240, 253, 244);
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    color: rgb(22, 101, 52);
}

.dark .pontofixo-modal-location {
    border-color: rgb(22, 163, 74);
    background: rgba(20, 83, 45, 0.2);
    color: rgb(187, 247, 208);
}

.pontofixo-modal-location__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

.pontofixo-modal-location__coords {
    display: block;
    margin-top: 0.125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
}

.pontofixo-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0;
}

.pontofixo-modal-btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.pontofixo-modal-btn--secondary {
    border: 1px solid rgb(209, 213, 219);
    background: #ffffff;
    color: rgb(55, 65, 81);
}

.pontofixo-modal-btn--secondary:hover {
    background: rgb(249, 250, 251);
}

.dark .pontofixo-modal-btn--secondary {
    border-color: rgb(75, 85, 99);
    background: transparent;
    color: rgb(229, 231, 235);
}

.dark .pontofixo-modal-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.06);
}

.pontofixo-modal-btn--primary {
    border: none;
    background: #1b8a43;
    color: #ffffff;
    font-weight: 600;
}

.pontofixo-modal-btn--primary:hover {
    background: #157a3a;
}

.pontofixo-modal-btn--primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.pontofixo-modal-photo {
    position: relative;
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    overflow: hidden;
    background: rgb(229, 231, 235);
}

.dark .pontofixo-modal-photo {
    background: rgb(55, 65, 81);
}

.pontofixo-modal-photo__img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
}

.pontofixo-modal-photo__placeholder {
    display: flex;
    height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgb(156, 163, 175);
}

.pontofixo-modal-photo__placeholder svg {
    width: 3rem;
    height: 3rem;
    opacity: 0.5;
}

.pontofixo-modal-photo__placeholder span {
    font-size: 0.875rem;
}

.pontofixo-modal-meta {
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pontofixo-modal-meta__row {
    display: grid;
    grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr);
    gap: 0.5rem;
    align-items: baseline;
}

.pontofixo-modal-meta__row dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgb(107, 114, 128);
}

.pontofixo-modal-meta__row dd {
    margin: 0;
    min-width: 0;
    font-size: 0.875rem;
    color: rgb(31, 41, 55);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.pontofixo-modal-meta__anotacoes {
    max-width: 100%;
}

.dark .pontofixo-modal-meta__row dd {
    color: rgb(229, 231, 235);
}

.pontofixo-drawer img {
    max-width: 100%;
}

.pontofixo-modal-meta__coords {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    word-break: break-all;
}

.pontofixo-modal-actions--view {
    justify-content: stretch;
}

.pontofixo-modal-actions--view .pontofixo-modal-btn {
    flex: 1;
}

.pontofixo-confirm {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pontofixo-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.pontofixo-confirm__panel {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 2rem));
    border-radius: 0.75rem;
    border: 1px solid rgb(229, 231, 235);
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.dark .pontofixo-confirm__panel {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgb(17, 24, 39);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.pontofixo-confirm__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: rgb(107, 114, 128);
    cursor: pointer;
}

.pontofixo-confirm__close:hover {
    color: rgb(55, 65, 81);
    background: rgb(243, 244, 246);
}

.dark .pontofixo-confirm__close:hover {
    color: rgb(209, 213, 219);
    background: rgba(255, 255, 255, 0.08);
}

.pontofixo-confirm__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem 1.25rem;
}

.pontofixo-confirm__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 9999px;
    background: rgb(254, 243, 199);
    color: rgb(217, 119, 6);
}

.dark .pontofixo-confirm__icon-wrap {
    background: rgba(217, 119, 6, 0.18);
    color: rgb(251, 191, 36);
}

.pontofixo-confirm__icon {
    width: 2rem;
    height: 2rem;
}

.pontofixo-confirm__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgb(17, 24, 39);
}

.dark .pontofixo-confirm__title {
    color: rgb(243, 244, 246);
}

.pontofixo-confirm__text {
    margin: 0;
    max-width: 18rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgb(55, 65, 81);
}

.dark .pontofixo-confirm__text {
    color: rgb(229, 231, 235);
}

.pontofixo-confirm__text-muted {
    font-size: 0.8125rem;
    color: rgb(107, 114, 128);
}

.dark .pontofixo-confirm__text-muted {
    color: rgb(156, 163, 175);
}

.pontofixo-confirm__actions {
    display: flex;
    justify-content: center;
    gap: 0.625rem;
    padding: 0 1.5rem 1.5rem;
}

.pontofixo-confirm__actions .pontofixo-modal-btn {
    min-width: 7rem;
}

.pontofixo-modal-btn--danger {
    border: 1px solid rgb(254, 202, 202);
    background: #ffffff;
    color: rgb(220, 38, 38);
}

.pontofixo-modal-btn--danger:hover {
    background: rgb(254, 242, 242);
}

.dark .pontofixo-modal-btn--danger {
    border-color: rgb(127, 29, 29);
    background: transparent;
    color: rgb(252, 165, 165);
}

.dark .pontofixo-modal-btn--danger:hover {
    background: rgba(127, 29, 29, 0.25);
}

.pontofixo-modal-btn--danger-filled {
    border: none;
    background: rgb(220, 38, 38);
    color: #ffffff;
    font-weight: 600;
}

.pontofixo-modal-btn--danger-filled:hover {
    background: rgb(185, 28, 28);
}

.dark .pontofixo-modal-btn--danger-filled {
    border: none;
    background: rgb(220, 38, 38);
    color: #ffffff;
}

.dark .pontofixo-modal-btn--danger-filled:hover {
    background: rgb(185, 28, 28);
}

.pontofixo-list-item--active {
    background: rgb(240, 253, 244) !important;
    box-shadow: inset 3px 0 0 #1b8a43;
}

.dark .pontofixo-list-item--active {
    background: rgba(20, 83, 45, 0.2) !important;
    box-shadow: inset 3px 0 0 #22c55e;
}

/* Sidebar (Pontos / Anotações) — mais alto para thumb maior */
.pontofixo-list-row {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 5.5rem; /* ~88px (≈2x do visual anterior) */
    overflow: hidden;
}

.pontofixo-list-main {
    flex: 1 1 0%;
    min-width: 0;
    width: 0; /* critical flex shrink trick */
    overflow: hidden;
}

.pontofixo-list-text {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.pontofixo-list-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* Quando o ponto foi colocado em campo. Fica abaixo da anotação e mais apagada
   que ela, para o nome continuar sendo o que salta na lista. Cor explícita:
   os utilitários dark:text-* não existem no bundle desta view. */
.pontofixo-list-data {
    margin-top: 0.125rem;
    /* Menor que a anotação: com a sidebar estreita, no text-xs a hora era a
       primeira coisa a ser cortada ("20/06/2026 0…"), justo o que se quer ver. */
    font-size: 0.6875rem;
    line-height: 1rem;
    font-variant-numeric: tabular-nums;
    /* Nas linhas de tarefa os dois selos espremem a coluna de texto e
       "20/06/2026" não tem onde quebrar: sem isto a data sai cortada. */
    overflow-wrap: anywhere;
    color: #9ca3af;
}

.dark .pontofixo-list-data {
    color: #71717a;
}

.pontofixo-grupo-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4b5563;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.pontofixo-grupo-head__seta {
    transition: transform 120ms ease;
}

.pontofixo-grupo-head__seta--aberta {
    transform: rotate(90deg);
}

.pontofixo-grupo-head__contagem {
    margin-left: auto;
    font-weight: 500;
    color: #6b7280;
}

.pontofixo-list-autor {
    font-size: 0.6875rem;
    line-height: 1.3;
    color: #9ca3af;
}

.dark .pontofixo-grupo-head {
    color: #d1d5db;
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dark .pontofixo-grupo-head__contagem,
.dark .pontofixo-list-autor {
    color: #9ca3af;
}

/* Sidebar (Pontos / Anotações) — ícone antes da miniatura */
.pontofixo-list-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.375rem;  /* ~22px */
    height: 1.375rem;
    color: #22c55e;
}

.pontofixo-list-icon__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pontofixo-list-icon__fallback {
    width: 1.125rem;  /* ~18px */
    height: 1.125rem;
}

.pontofixo-list-thumb {
    display: inline-flex;
    flex-shrink: 0;
    width: 4rem; /* 64px */
    height: 4rem;
    overflow: hidden;
    border-radius: 0.375rem;
    background: rgb(243, 244, 246);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.dark .pontofixo-list-thumb {
    background: rgb(31, 41, 55);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pontofixo-list-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Primeira linha do repeater "Campos personalizados" — gap menor, Título mais largo */
.fi-cp-campos-header-row {
    gap: 0.5rem 0.75rem;
}

.fi-cp-campos-largura-row {
    gap: 0.5rem 0.75rem;
    margin-top: -0.25rem;
}

/* Botão de listagem ao lado do Select "Tipo" (campos personalizados) —
   oculta só a label do Placeholder (espaço reservado), não dos demais campos do item */
.fi-fo-field-wrp:has(.fi-cp-listagem-btn-wrap):not(:has(.fi-fo-field-wrp .fi-cp-listagem-btn-wrap)) > .fi-fo-field-wrp-label {
    visibility: hidden;
}

.fi-cp-listagem-btn-wrap {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
}

.fi-cp-listagem-btn {
    height: 2.5rem;
    width: 2.5rem;
}

.fi-cp-obrigatorio-toggle-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Modal "Itens do cadastro" — grade enterprise (ViewField customizado) */
.fi-cp-itens-cadastro-grid > .fi-fo-field-wrp {
    margin-bottom: 0;
}

.fi-cp-itens-cadastro-grid > .fi-fo-field-wrp-label {
    display: none;
}

.fi-cp-itens-cadastro-box {
    width: 100%;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.375rem;
    overflow: visible;
    background: rgb(255 255 255);
}

.dark .fi-cp-itens-cadastro-box {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.fi-cp-itens-cadastro-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.fi-cp-itens-cadastro-col--reorder {
    width: 2.25rem;
}

.fi-cp-itens-cadastro-col--id {
    width: 7rem;
}

.fi-cp-itens-cadastro-col--delete {
    width: 3.5rem;
}

.fi-cp-itens-cadastro-table th {
    padding: 0.5rem 0.75rem;
    background-color: rgb(243 244 246);
    border-bottom: 1px solid rgb(229 231 235);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    color: rgb(55 65 81);
}

.dark .fi-cp-itens-cadastro-table th {
    background-color: rgb(31 41 55);
    border-bottom-color: rgb(55 65 81);
    color: rgb(209 213 219);
}

.fi-cp-itens-cadastro-table td {
    padding: 0.375rem 0.75rem;
    border-bottom: 1px solid rgb(243 244 246);
    vertical-align: middle;
}

.dark .fi-cp-itens-cadastro-table td {
    border-bottom-color: rgb(31 41 55);
}

.fi-cp-itens-cadastro-table tbody tr:last-child td {
    border-bottom: none;
}

.fi-cp-itens-cadastro-row--empty td {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: rgb(107 114 128);
    text-align: center;
}

.fi-cp-itens-cadastro-row--dragging {
    opacity: 0.55;
}

.fi-cp-itens-cadastro-cell--reorder {
    width: 2.25rem;
    padding-inline: 0.5rem;
    text-align: center;
}

.fi-cp-itens-cadastro-grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: rgb(156 163 175);
    cursor: grab;
}

.fi-cp-itens-cadastro-grip svg {
    width: 1rem;
    height: 1rem;
}

.fi-cp-itens-cadastro-row:active .fi-cp-itens-cadastro-grip {
    cursor: grabbing;
}

.fi-cp-itens-cadastro-cell--id {
    white-space: nowrap;
}

.fi-cp-itens-cadastro-cell--label {
    min-width: 0;
}

.fi-cp-itens-cadastro-input {
    min-height: 2.375rem;
    padding-top: 0.4375rem !important;
    padding-bottom: 0.4375rem !important;
}

.fi-cp-itens-cadastro-cell--delete {
    width: 3.5rem;
    padding-inline: 0.375rem 0.75rem;
    text-align: center;
}

.fi-cp-itens-cadastro-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgb(215 57 37);
    border-radius: 0.375rem;
    background-color: rgb(221 75 57);
    color: rgb(255 255 255);
    transition: background-color 0.15s ease;
}

.fi-cp-itens-cadastro-delete:hover {
    background-color: rgb(215 57 37);
}

.fi-cp-itens-cadastro-delete svg {
    width: 1rem;
    height: 1rem;
}

.fi-cp-itens-cadastro-add {
    display: inline-block;
    margin-top: 0.625rem;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(var(--primary-600));
    cursor: pointer;
}

.dark .fi-cp-itens-cadastro-add {
    color: rgb(var(--primary-400));
}

.fi-cp-itens-cadastro-add:hover {
    text-decoration: underline;
}

.fi-cp-item-id {
    display: inline-block;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: rgb(55 65 81);
}

.dark .fi-cp-item-id {
    color: rgb(209 213 219);
}

.fi-cp-item-id--empty {
    color: rgb(156 163 175);
}

/* Cropwise-style listagem de propriedades */
.fi-propriedades-cropwise-page .fi-header {
    display: none;
}

.fi-propriedades-cropwise-page .fi-page > .fi-page-main {
    padding-top: 0;
}

.prcw {
    margin: -0.5rem -1rem 0;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

@media (min-width: 768px) {
    .prcw {
        margin: -0.5rem -1.5rem 0;
    }
}

.prcw-topbar {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 0.75rem 1.25rem;
}

.dark .prcw-topbar {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
}

.prcw-topbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
}

.prcw-workspace {
    flex-shrink: 0;
}

/* Seletor segmentado: Meu Pragas / Favoritos */
.prcw-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    background: #f1f3f5;
    border-radius: 9999px;
}

.dark .prcw-tabs {
    background: rgb(31 41 55);
}

.prcw-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border: none;
    background: transparent;
    border-radius: 9999px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.prcw-tab:hover {
    color: #374151;
}

.prcw-tab-active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.dark .prcw-tab:hover {
    color: rgb(229 231 235);
}

.dark .prcw-tab-active {
    background: rgb(55 65 81);
    color: rgb(243 244 246);
}

.prcw-workspace-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid #e0e3e7;
    border-radius: 9999px;
    background: #fff;
    color: #1f2937;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.dark .prcw-workspace-btn {
    background: rgb(31 41 55);
    border-color: rgb(75 85 99);
    color: rgb(243 244 246);
}

.prcw-search-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}

.prcw-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #9ca3af;
    pointer-events: none;
}

.prcw-search {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.75rem;
    border: 1px solid #e0e3e7;
    border-radius: 9999px;
    background: #fff;
    font-size: 0.875rem;
    color: #374151;
    outline: none;
}

.prcw-search:focus {
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.dark .prcw-search {
    background: rgb(31 41 55);
    border-color: rgb(75 85 99);
    color: rgb(243 244 246);
}

.prcw-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.prcw-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    background: #1e5c45;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s;
}

.prcw-btn-primary:hover {
    background: #174a37;
    color: #fff;
}

.prcw-btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
}

.prcw-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e0e3e7;
    border-radius: 9999px;
    background: #fff;
    color: #2563eb;
    text-decoration: none;
}

.dark .prcw-btn-icon {
    background: rgb(31 41 55);
    border-color: rgb(75 85 99);
}

.prcw-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #eef0f2;
}

.dark .prcw-meta {
    background: rgb(17 24 39);
    border-color: rgb(55 65 81);
}

.prcw-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.prcw-breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

.dark .prcw-breadcrumb-current {
    color: rgb(229 231 235);
}

.prcw-breadcrumb-sep {
    width: 0.875rem;
    height: 0.875rem;
    color: #d1d5db;
}

.prcw-meta-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.prcw-select-org {
    padding: 0.35rem 0.65rem;
    border: 1px solid #e0e3e7;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    background: #fff;
    color: #374151;
}

.dark .prcw-select-org {
    background: rgb(31 41 55);
    border-color: rgb(75 85 99);
    color: rgb(243 244 246);
}

.prcw-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.8125rem;
    color: #6b7280;
    cursor: pointer;
}

.prcw-filter-toggle strong {
    color: #374151;
    font-weight: 600;
}

.dark .prcw-filter-toggle strong {
    color: rgb(229 231 235);
}

.prcw-list {
    background: #fff;
}

.dark .prcw-list {
    background: rgb(17 24 39);
}

.prcw-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #eef0f2;
    min-height: 4rem;
}

.dark .prcw-row {
    border-color: rgb(55 65 81);
}

@media (max-width: 900px) {
    .prcw-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .prcw-row-stats,
    .prcw-row-actions {
        padding-left: 3.25rem;
    }
}

.prcw-row-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.prcw-star-btn {
    flex-shrink: 0;
    padding: 0.15rem;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.prcw-star {
    width: 1.25rem;
    height: 1.25rem;
    color: #c4c9d0;
}

.prcw-star-on {
    color: #f59e0b;
}

.prcw-star-muted {
    color: #d1d5db;
}

.prcw-prop-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    background: #e8f3ec;
}

.dark .prcw-prop-icon {
    background: rgba(5, 150, 105, 0.2);
}

.prcw-prop-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #1e5c45;
}

.dark .prcw-prop-icon-svg {
    color: #34d399;
}

.prcw-prop-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prcw-prop-name:hover {
    color: #1e5c45;
}

.dark .prcw-prop-name {
    color: rgb(243 244 246);
}

.prcw-row-stats {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    color: #6b7280;
    white-space: nowrap;
}

.prcw-stat-leaf {
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
}

.prcw-row-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.prcw-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    color: #9ca3af;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.12s, background 0.12s;
}

.prcw-action:hover {
    color: #4b5563;
    background: #f3f4f6;
}

.dark .prcw-action:hover {
    color: rgb(229 231 235);
    background: rgb(55 65 81);
}

.prcw-action svg {
    width: 1.125rem;
    height: 1.125rem;
}

.prcw-action-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.prcw-more-wrap {
    position: relative;
}

.prcw-more-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 30;
    min-width: 10rem;
    margin-top: 0.25rem;
    padding: 0.35rem 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dark .prcw-more-menu {
    background: rgb(31 41 55);
    border-color: rgb(75 85 99);
}

.prcw-more-menu a {
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    color: #374151;
    text-decoration: none;
}

.prcw-more-menu a:hover {
    background: #f3f4f6;
}

.dark .prcw-more-menu a {
    color: rgb(243 244 246);
}

.dark .prcw-more-menu a:hover {
    background: rgb(55 65 81);
}

.prcw-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 4rem 1.5rem;
    color: #6b7280;
    text-align: center;
}

.prcw-empty-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: #d1d5db;
}

/* Empty state da aba Favoritos */
.prcw-empty-fav {
    padding: 4.5rem 1.5rem 5rem;
    gap: 1.25rem;
}

.prcw-empty-fav-icon {
    width: 7rem;
    height: 7rem;
}

.prcw-empty-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #374151;
}

.dark .prcw-empty-title {
    color: rgb(229 231 235);
}

.prcw-icon-xs {
    width: 0.875rem;
    height: 0.875rem;
}

.prcw-icon-sm {
    width: 1rem;
    height: 1rem;
}

.prcw-icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.prcw-meta-org {
    justify-content: flex-end;
}

.prcw-filter-link {
    color: #2563eb;
}

.prcw-filter-link strong {
    color: #2563eb;
}

.prcw-breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.prcw-breadcrumb-link:hover {
    color: #374151;
    text-decoration: underline;
}

.prcw-org-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    background: #ede9fe;
}

.dark .prcw-org-icon {
    background: rgba(139, 92, 246, 0.25);
}

.prcw-org-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #7c3aed;
}

.dark .prcw-org-icon-svg {
    color: #a78bfa;
}

.prcw-row-org {
    grid-template-columns: 1fr auto auto;
}

.prcw-footer-msg {
    padding: 2rem 1.25rem 2.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #9ca3af;
    background: #fff;
}

.dark .prcw-footer-msg {
    background: rgb(17 24 39);
    color: rgb(156 163 175);
}

@media (max-width: 768px) {
    .prcw-topbar-inner {
        flex-wrap: wrap;
    }

    .prcw-search-wrap {
        order: 3;
        flex-basis: 100%;
    }

    .prcw-workspace {
        order: 1;
    }

    .prcw-topbar-actions {
        order: 2;
        margin-left: auto;
    }
}

/* ============================================================
   Tela de login — fundo claro/branco com toque agro discreto
   ============================================================ */
.fi-simple-layout {
    background-color: #f6faf7;
    background-image: url('../images/login-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Card branco limpo */
.fi-simple-layout .fi-simple-main {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #e6ece8;
    border-radius: 1rem;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 12px 32px rgba(16, 24, 40, 0.10);
    overflow: hidden;
}

/* Faixa fininha esmeralda no topo do card */
.fi-simple-layout .fi-simple-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

/* Botão Login — verde sólido com leve realce no hover */
.fi-simple-layout .fi-btn-color-primary {
    transition: filter .15s ease, transform .15s ease, box-shadow .2s ease;
}

.fi-simple-layout .fi-btn-color-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.30);
}

/* Logo completa (símbolo + ZoPragas + slogan) no topo do card de login */
.fi-simple-layout .zp-login-logo {
    display: block;
    width: 56%;
    max-width: 180px;
    height: auto;
    margin: 0 auto 0.5rem;
}

/* Esconde o header padrão (logo símbolo + título "Faça login") só no login —
   a logo completa injetada acima já é a identidade da tela. */
.fi-simple-layout .fi-simple-header {
    display: none;
}

/* O card de login é sempre branco: força texto escuro nos campos mesmo com
   o navegador em dark mode (senão label/input ficam brancos e somem). */
.dark .fi-simple-layout .fi-simple-main label,
.dark .fi-simple-layout .fi-simple-main label span,
.dark .fi-simple-layout .fi-simple-main .fi-fo-field-wrp-label span {
    color: rgb(9 9 11);
}

.dark .fi-simple-layout .fi-simple-main .fi-input {
    color: rgb(9 9 11);
    caret-color: rgb(9 9 11);
}

.dark .fi-simple-layout .fi-simple-main .fi-input::placeholder {
    color: #9ca3af;
}

.dark .fi-simple-layout .fi-simple-main .fi-input-wrp {
    background-color: #ffffff;
    --tw-ring-color: #d1d5db;
}

.dark .fi-simple-layout .fi-simple-main .fi-link {
    color: #059669;
}

/* ============================================================
   Painel (tema claro) — mais contraste: fundo, bordas e hover
   Resolve o visual "muito branco" / contornos e hover sumidos.
   (login usa .fi-simple-layout, então não é afetado)
   ============================================================ */
.fi-main {
    background-color: #eef1f6 !important;
}

/* Cards, tabelas e widgets com borda + leve sombra */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat {
    border: 1px solid #e1e5ec !important;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.07), 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* Cabeçalho da tabela mais definido */
.fi-ta-header-cell {
    background-color: #f6f8fa;
}

/* Divisória entre linhas visível */
.fi-ta-row:not(:last-child) {
    border-bottom: 1px solid #e9ecf2;
}

/* HOVER de linha bem perceptível (verde suave do tema) */
.fi-ta-row:hover {
    background-color: #e8f3ec !important;
}

/* ----- equivalentes no dark mode ----- */
.dark .fi-main {
    background-color: #0b0f14 !important;
}
.dark .fi-section,
.dark .fi-ta-ctn,
.dark .fi-wi-stats-overview-stat {
    border-color: rgba(255, 255, 255, 0.08) !important;
}
.dark .fi-ta-header-cell {
    background-color: rgba(255, 255, 255, 0.03);
}
.dark .fi-ta-row:not(:last-child) {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}
.dark .fi-ta-row:hover {
    background-color: rgba(16, 185, 129, 0.12) !important;
}

/* ============================================================
   Símbolo da marca no menu colapsado
   Exibe o ícone da mira no topo da navegação quando a sidebar
   está reduzida (estado controlado pelo Alpine $store.sidebar).
   ============================================================ */
.mc-collapsed-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -0.75rem 0 0.5rem;
}
.mc-collapsed-logo img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

/* A sidebar do Filament usa h-screen (height: 100vh). No Chrome do Android,
   100vh mede o viewport GRANDE — o de barra de endereço retraída —, então o
   <aside> fica mais alto que a área visível (839px contra 783px no emulador) e
   a sobra some atrás da barra do navegador. Essa sobra é justamente o rodapé
   abaixo (seletor de safra + usuário), e como o <aside> é fixed e não rola,
   não havia como alcançá-lo. 100dvh mede a área realmente visível; o 100vh
   acima fica de fallback para navegador sem suporte a dvh. */
.fi-sidebar {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
}

/* Menu do usuário no rodapé da sidebar (oculto no topbar) */
.fi-topbar .fi-user-menu {
    display: none !important;
}

.mc-sidebar-user {
    flex-shrink: 0;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .mc-sidebar-user {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.mc-sidebar-user .fi-user-menu {
    width: auto;
    flex-shrink: 0;
}

.mc-sidebar-user .fi-user-menu button {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.25rem;
    border-radius: 9999px;
    transition: background-color 0.15s ease;
}

.mc-sidebar-user .fi-user-menu button:hover,
.mc-sidebar-user .fi-user-menu button:focus-visible {
    background-color: rgba(0, 0, 0, 0.04);
}

.dark .mc-sidebar-user .fi-user-menu button:hover,
.dark .mc-sidebar-user .fi-user-menu button:focus-visible {
    background-color: rgba(255, 255, 255, 0.06);
}

.mc-sidebar-user--collapsed {
    padding-inline: 0.75rem;
}

.mc-sidebar-user--collapsed .fi-user-menu button {
    justify-content: center;
    padding-inline: 0;
}

/* Linha: avatar (dropdown) + nome do usuário logado */
.mc-sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.mc-sidebar-user-name {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgb(55 65 81);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
    cursor: pointer;
}

.mc-sidebar-user-name:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.45);
    outline-offset: 2px;
    border-radius: 0.375rem;
}

.dark .mc-sidebar-user-name {
    color: rgb(229 231 235);
}

/* Quando colapsada, esconde o nome — só avatar fica visível */
.mc-sidebar-user--collapsed .mc-sidebar-user-row {
    justify-content: center;
}

.mc-sidebar-user--collapsed .mc-sidebar-user-name {
    display: none;
}

.mc-sidebar-user--collapsed .mc-seletor-safra {
    display: none;
}

/* ============================================================
   Listagens (padrão): botões Buscar + Cadastrar lado a lado,
   abaixo do painel de filtros (Cadastrar reposicionado via JS).
   ============================================================ */
.mc-acoes-filtro {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Dropdown "Colunas": itens arrastáveis para reordenar */
.mc-colunas-ordem .fi-sortable-ghost {
    opacity: 0.55;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 0.5rem;
}
.mc-colunas-ordem-handle:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.45);
    outline-offset: 2px;
}

/* ============================================================
   Densidade do painel — reduz a escala base para um visual mais
   compacto (resolve a sensação de "zoom" do Filament padrão).
   Ajuste o valor abaixo para mais/menos denso.
   ============================================================ */
html {
    font-size: 87.5%; /* 16px -> 14px */
}

/* ============================================================
   TableRepeater — repeater renderizado como tabela (cabeçalho +
   uma linha por item). Visual alinhado à tabela de itens dos
   campos personalizados.
   ============================================================ */
.fi-trep-box {
    position: relative;
    width: 100%;
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    background: rgb(255 255 255);
    overflow: visible;
}
.dark .fi-trep-box {
    border-color: rgb(55 65 81);
    background: rgb(17 24 39);
}

.fi-trep-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.fi-trep-table,
.fi-trep-table thead,
.fi-trep-table tbody,
.fi-trep-table tr,
.fi-trep-table th,
.fi-trep-table td {
    overflow: visible;
}

.fi-trep-col--handle {
    width: 2.75rem;
}
.fi-trep-col--actions {
    width: 6rem;
}

.fi-trep-table th {
    padding: 0.5rem 0.625rem;
    background-color: rgb(243 244 246);
    border-bottom: 1px solid rgb(229 231 235);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    color: rgb(55 65 81);
    white-space: nowrap;
}
.dark .fi-trep-table th {
    background-color: rgb(31 41 55);
    border-bottom-color: rgb(55 65 81);
    color: rgb(209 213 219);
}

.fi-trep-table td {
    position: relative;
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid rgb(243 244 246);
    vertical-align: top;
}

.fi-trep-row:focus-within {
    position: relative;
    z-index: 40;
}

.fi-trep .choices__list--dropdown,
.fi-trep .choices__list[aria-expanded] {
    z-index: 60;
}
.dark .fi-trep-table td {
    border-bottom-color: rgb(31 41 55);
}
.fi-trep-table tbody tr:last-child td {
    border-bottom: none;
}

/* Compacta os campos do Filament dentro das células */
.fi-trep-td .fi-fo-field-wrp {
    margin: 0;
}
.fi-trep-td .fi-fo-field-wrp-label {
    display: none;
}

.fi-trep-row--empty td {
    padding: 0.875rem;
    font-size: 0.875rem;
    color: rgb(107 114 128);
    text-align: center;
}

.fi-trep-td--handle {
    text-align: center;
    padding-inline: 0.5rem;
}
.fi-trep-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.3125rem;
    color: rgb(156 163 175);
    cursor: grab;
}
.fi-trep-row:active .fi-trep-handle {
    cursor: grabbing;
}

.fi-trep-td--actions {
    text-align: center;
    padding-inline: 0.25rem;
}
.fi-trep-td--actions .fi-icon-btn {
    margin-top: 0.1875rem;
}

.fi-trep-add-ctn {
    margin-top: 0.625rem;
}

.fi-trep-row--dragging {
    opacity: 0.55;
}

/* ============================================================
   Seletor de safra (contexto global) — renderizado no rodapé da
   sidebar via partial sidebar-user-menu.blade.php.
   ============================================================ */
.mc-seletor-safra {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-block-end: 0.75rem;
    min-width: 0;
}
.mc-seletor-safra-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(107 114 128);
    white-space: nowrap;
}
.dark .mc-seletor-safra-label {
    color: rgb(156 163 175);
}
/* Gatilho do dropdown de safra: replica a aparência do campo fechado (borda,
   arredondamento, chevron), mas o painel aberto é o dropdown temável do Filament. */
.mc-seletor-safra-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid rgb(209 213 219);
    border-radius: 0.5rem;
    padding: 0.35rem 0.5rem 0.35rem 0.625rem;
    font-size: 0.8125rem;
    font-family: inherit;
    line-height: 1.25;
    background-color: #fff;
    color: rgb(17 24 39);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.mc-seletor-safra-trigger:hover {
    background-color: rgb(249 250 251);
}
.mc-seletor-safra-trigger:focus-visible {
    outline: 2px solid rgb(16 185 129);
    outline-offset: 1px;
}
.mc-seletor-safra-trigger-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-seletor-safra-trigger-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: rgb(107 114 128);
}
.dark .mc-seletor-safra-trigger {
    border-color: rgb(75 85 99);
    background-color: rgb(31 41 55);
    color: rgb(243 244 246);
}
.dark .mc-seletor-safra-trigger:hover {
    background-color: rgb(55 65 81);
}
.dark .mc-seletor-safra-trigger-icon {
    color: rgb(156 163 175);
}

/* Painel de opções: abre para cima, no mínimo tão largo quanto o gatilho e
   crescendo para caber o nome completo (sem truncar). */
.mc-seletor-safra-wrap {
    position: relative;
}
.mc-seletor-safra-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.375rem);
    z-index: 50;
    min-width: 100%;
    width: max-content;
    max-width: 18rem;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.25rem;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    outline: 1px solid rgb(17 24 39 / 0.05);
    outline-offset: 0;
}
.dark .mc-seletor-safra-menu {
    background-color: rgb(17 24 39);
    outline-color: rgb(255 255 255 / 0.1);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}
.mc-seletor-safra-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.4rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.25;
    color: rgb(55 65 81);
    text-decoration: none;
    transition: background-color 0.12s ease;
}
.mc-seletor-safra-item:hover {
    background-color: rgb(249 250 251);
}
.dark .mc-seletor-safra-item {
    color: rgb(229 231 235);
}
.dark .mc-seletor-safra-item:hover {
    background-color: rgb(255 255 255 / 0.05);
}
.mc-seletor-safra-item--ativo {
    color: rgb(5 150 105);
    font-weight: 600;
}
.dark .mc-seletor-safra-item--ativo {
    color: rgb(52 211 153);
}
.mc-seletor-safra-item-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
.mc-seletor-safra-item-check-icon {
    width: 1rem;
    height: 1rem;
}
.mc-seletor-safra-item-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================================
   Responsivo mobile — painéis com mapa (Monitoramentos/Pontos) e widgets
   do dashboard.

   O bundle CSS do Filament aqui é pré-compilado e só contém as classes
   utilitárias que os próprios componentes do Filament usam: NÃO existem
   variantes responsivas (sm:/md:/lg:) nem classes com valor arbitrário
   (w-[...], z-[...]) para as views customizadas deste app — usá-las nas
   views é no-op. Por isso toda a responsividade abaixo é @media puro.
   ===================================================================== */

/* Dashboard: tabela "Últimas fazendas sincronizadas" e tabela do modal de
   quadras — alternam entre lista em cards (mobile) e tabela em grade. */
.zp-mobile-cards {
    display: block;
}
.zp-desktop-table {
    display: none;
}
@media (min-width: 640px) {
    .zp-mobile-cards {
        display: none;
    }
    .zp-desktop-table {
        display: block;
    }
}

/* Botão de fechar que só existe no mobile, dentro do cabeçalho da sidebar
   de talhões/pontos. */
.zp-mobile-only-inline {
    display: none;
}
@media (max-width: 767px) {
    .zp-mobile-only-inline {
        display: inline-flex;
    }
}

/* Ordem de empilhamento no mobile das telas de mapa. Tudo que precisa aparecer
   SOBRE o mapa tem que passar de 1000: o Leaflet usa z-index até ~1000 nos
   próprios painéis e controles, e como nenhum ancestral cria contexto de
   empilhamento, ele disputa direto com estes elementos.
       1001  cortina de inspeção (é conteúdo do mapa — ver abaixo)
       1002  botão flutuante que abre o painel de talhões/pontos
       1003  botão do menu do Filament (propmapa-mobile-nav-btn, já existente)
       1004  fundo escurecido do painel de talhões/pontos
       1005  painel de talhões/pontos
       1006  fundo escurecido do menu do Filament
       1007  menu do Filament */

/* A cortina de inspeção já era z-index 1005 (linha ~919) e empatava com o painel
   de talhões, ganhando por vir depois no DOM. No celular ela ocupa 360 dos ~410px
   da tela, então cobria o botão flutuante e o painel: o usuário abria um talhão e
   ficava sem caminho de volta para a lista ou para a troca de fazenda. Ela é
   CONTEÚDO do mapa, não navegação — fica acima do Leaflet e abaixo de tudo que
   devolve o usuário para a navegação. */
@media (max-width: 767px) {
    .propmapa-inspecao-drawer {
        z-index: 1001;
    }

    /* Exceção: o modal "Detalhes da inspeção por ponto" é tela cheia no celular e
       tem o próprio X de fechar, então não precisa da navegação por baixo — e com
       1001 ela ficava DESENHADA POR CIMA dele (o z-index 99999 do modal não vale
       nada aqui: a cortina é position:absolute com z-index, ou seja, um contexto
       de empilhamento que aprisiona os filhos). */
    .propmapa-inspecao-drawer--modal {
        z-index: 1006;
    }
}

/* Monitoramentos: sidebar "Linha do tempo" vira painel flutuante abaixo de
   768px, escondida por padrão. Acima de 768px continua no fluxo normal
   (comportamento original, inalterado). */
@media (max-width: 767px) {
    #propmapa-timeline {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1005;
        width: 85vw;
        max-width: 360px;
        /* O painel é fixed e mantém h-full (height:100%) no markup, que num fixed
           resolve contra o viewport GRANDE do Chrome Android — a mesma semântica do
           100vh que já corrigimos no layout. Sem esta altura explícita, o fim da lista
           fica atrás da barra de endereço e não há scroll de documento para revelá-lo. */
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.2s ease-out;
    }
    #propmapa-timeline.propmapa-sidebar--mobile-open {
        transform: translateX(0);
    }
    #propmapa-timeline-resizer {
        display: none !important;
    }
}

/* Pontos: mesma ideia, mas só quando pronta pra mostrar o mapa (classe
   propmapa-sidebar--overlay-mobile só é aplicada nesse caso; sem safra
   ativa a sidebar continua no fluxo normal, senão o seletor de safra
   ficaria inacessível no mobile). */
@media (max-width: 767px) {
    /* Largura útil no mobile com ou sem safra escolhida. Sem esta regra, o caso
       "sem safra" ficava sem largura nenhuma: a classe Tailwind w-[380px] da view
       é no-op neste bundle e o teto de 42vw passou a valer só a partir de 768px,
       então o <aside> (shrink-0) esticava conforme o conteúdo. */
    #pontofixo-sidebar.propmapa-sidebar--pontofixo {
        width: 85vw;
        max-width: 380px;
    }

    #pontofixo-sidebar.propmapa-sidebar--overlay-mobile {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1005;
        /* Mesmo motivo do #propmapa-timeline acima. */
        height: 100vh;
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.2s ease-out;
    }
    #pontofixo-sidebar.propmapa-sidebar--overlay-mobile.propmapa-sidebar--mobile-open {
        transform: translateX(0);
    }
    #pontofixo-sidebar-resizer {
        display: none !important;
    }
}

/* O menu do Filament (.fi-sidebar, z-index 30) e seu fundo escurecido ficavam
   ATRÁS do mapa: o Leaflet usa z-index 400-1000 nos próprios painéis e controles,
   no mesmo contexto de empilhamento. Resultado: nas telas de mapa o menu abria
   invisível e o botão de abrir sumia (ele se esconde quando o menu está aberto),
   deixando a navegação inacessível no celular. Só no mobile — a partir de 1024px
   o Filament posiciona o menu no fluxo do layout (lg:z-0) e nada disso se aplica. */
@media (max-width: 1023px) {
    .fi-propmapa-body .fi-sidebar-close-overlay,
    .fi-pontofixo-body .fi-sidebar-close-overlay {
        z-index: 1006;
    }

    .fi-propmapa-body .fi-sidebar,
    .fi-pontofixo-body .fi-sidebar {
        z-index: 1007;
    }
}

/* Fundo escurecido + botão flutuante que abrem a sidebar no mobile
   (Monitoramentos e Pontos). */
.propmapa-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1004;
    background: rgba(8, 15, 20, 0.6);
}
.propmapa-mobile-toggle-btn {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    background: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(31, 41, 55);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}
/* Sempre no estilo claro, mesmo com o tema escuro ativo: este botão fica
   sobre o mapa (Leaflet), que já é escuro (#1a1a1a) independente do tema —
   um fundo escuro aqui ficaria com baixíssimo contraste sobre o mapa. */
@media (min-width: 768px) {
    .propmapa-mobile-backdrop,
    .propmapa-mobile-toggle-btn {
        display: none !important;
    }
}

/* --- PropriedadeMapa: modais do drawer (gráfico, conferência e pontos) ---
   O bundle do Filament não gera variantes dark: para estas views, e o <body>
   do painel entra com dark:text-white: modal de fundo branco fixo ficava com
   texto branco sobre branco no tema escuro. Os tokens abaixo dão o par de
   cores de cada superfície; os três modais só consomem as variáveis. */
:root {
    --propmapa-modal-overlay: rgba(17, 24, 39, 0.42);
    --propmapa-modal-superficie: #fff;
    --propmapa-modal-superficie-alt: #f9fafb;
    --propmapa-modal-borda: #e5e7eb;
    --propmapa-modal-texto: #111827;
    --propmapa-modal-texto-fraco: #6b7280;
    --propmapa-modal-destaque: rgb(37, 99, 235);
    --propmapa-modal-esquema: light;
}

/* A classe dark fica no próprio <html>, então :root.dark vence o :root acima. */
:root.dark {
    --propmapa-modal-overlay: rgba(0, 0, 0, 0.6);
    --propmapa-modal-superficie: rgb(17, 24, 39);
    --propmapa-modal-superficie-alt: rgb(31, 41, 55);
    --propmapa-modal-borda: rgb(55, 65, 81);
    --propmapa-modal-texto: rgb(243, 244, 246);
    --propmapa-modal-texto-fraco: rgb(156, 163, 175);
    --propmapa-modal-destaque: rgb(96, 165, 250);
    --propmapa-modal-esquema: dark;
}

/* --- PropriedadeMapa: modal do gráfico de evolução --- */
.propmapa-grafico-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--propmapa-modal-overlay);
    pointer-events: auto;
}

.propmapa-grafico-modal__painel {
    width: min(1100px, 100%);
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--propmapa-modal-borda);
    border-radius: 14px;
    background: var(--propmapa-modal-superficie);
    color: var(--propmapa-modal-texto);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    /* Deixa checkbox, radio e select nativos acompanharem o tema. */
    color-scheme: var(--propmapa-modal-esquema);
}

.propmapa-grafico-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--propmapa-modal-borda);
}

.propmapa-grafico-modal__fechar {
    border: 0;
    background: none;
    color: var(--propmapa-modal-texto-fraco);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.propmapa-grafico-modal__fechar:hover {
    color: var(--propmapa-modal-texto);
}

.propmapa-grafico-modal__corpo {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 500px;
}

.propmapa-grafico-modal__lateral {
    padding: 18px;
    border-right: 1px solid var(--propmapa-modal-borda);
}

.propmapa-grafico-modal__rotulo {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    color: var(--propmapa-modal-texto-fraco);
}

.propmapa-grafico-modal__select {
    width: 100%;
    /* padding-right e o posicionamento abrem espaço para a seta que o reset do
       Filament (select:not(.choices)) injeta como background-image: um
       background curto aqui a ladrilharia por cima do texto. */
    margin: 6px 0 14px;
    padding: 6px 30px 6px 8px;
    border: 1px solid var(--propmapa-modal-borda);
    border-radius: 8px;
    background-color: var(--propmapa-modal-superficie-alt);
    background-position: right 8px center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    color: var(--propmapa-modal-texto);
    font-size: 13px;
}

.propmapa-grafico-modal__lateral-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.propmapa-grafico-modal__link {
    border: 0;
    padding: 0;
    background: none;
    color: var(--propmapa-modal-destaque);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.propmapa-grafico-modal__check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    cursor: pointer;
}

.propmapa-grafico-modal__main {
    padding: 18px;
}

.propmapa-grafico-modal__barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.propmapa-grafico-modal__barra .propmapa-grafico-modal__check,
.propmapa-grafico-modal__limites .propmapa-grafico-modal__check {
    margin-top: 0;
}

.propmapa-grafico-modal__botao {
    padding: 6px 12px;
    border: 1px solid var(--propmapa-modal-borda);
    border-radius: 8px;
    background: var(--propmapa-modal-superficie-alt);
    color: var(--propmapa-modal-texto);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.propmapa-grafico-modal__botao:hover {
    border-color: var(--propmapa-modal-destaque);
    color: var(--propmapa-modal-destaque);
}

.propmapa-grafico-modal__limites {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
    font-size: 13px;
}

.propmapa-grafico-modal__vazio {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
    border: 1px solid var(--propmapa-modal-borda);
    border-radius: 10px;
    color: var(--propmapa-modal-texto-fraco);
    font-weight: 600;
}

.propmapa-grafico-modal__tela {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border: 1px solid var(--propmapa-modal-borda);
    border-radius: 10px;
}

.propmapa-grafico-modal__legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.2;
}

.propmapa-grafico-modal__legenda span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
}

.propmapa-grafico-modal__legenda i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

/* Botão-ícone dos modais (fechar, expandir): as utilitárias hover:bg-gray-100 do
   bundle não têm variante dark e acendiam um quadrado claro no tema escuro. */
.propmapa-modal-icone-btn {
    border-radius: 6px;
    color: var(--propmapa-modal-texto-fraco);
    transition: background-color .15s, color .15s;
}

.propmapa-modal-icone-btn:hover {
    background: var(--propmapa-modal-superficie-alt);
    color: var(--propmapa-modal-texto);
}

/* Linha do tempo de auditoria no detalhe do ponto (Task 5). */
.pontofixo-historico {
    padding: 12px 16px 4px;
    border-top: 1px solid #f3f4f6;
}

.pontofixo-historico__titulo {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 8px;
}

.pontofixo-historico__item {
    padding: 6px 0 6px 12px;
    border-left: 2px solid #d1fae5;
}

.pontofixo-historico__linha {
    display: block;
    font-size: 0.8125rem;
    color: #374151;
}

.pontofixo-historico__mudanca {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.pontofixo-historico__vazio {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.dark .pontofixo-historico {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.dark .pontofixo-historico__linha {
    color: #e5e7eb;
}

.dark .pontofixo-historico__item {
    border-left-color: rgba(16, 185, 129, 0.4);
}

/* --- Formulários com mapa (fazenda e talhão): texto de instrução acima do mapa ---
   Estava com `color: #6b7280` fixo no style= da view, sem par escuro: ficava
   cinza-médio sobre fundo escuro (3,7:1, abaixo do mínimo de 4,5:1). */
.mapa-form-ajuda {
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: #6b7280;
}

.dark .mapa-form-ajuda {
    color: rgb(156, 163, 175);
}
