/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-jtgxnfdgft] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-jtgxnfdgft] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Support session strip (plan .claude/plans/tenant-sign-in.md): unmistakable in both themes, so the admin never
   forgets whose account they are in. */
.support-banner[b-jtgxnfdgft] {
    background: var(--tblr-warning);
    color: #1d273b;
    font-size: .875rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-3azynp046a],
.components-reconnect-repeated-attempt-visible[b-3azynp046a],
.components-reconnect-failed-visible[b-3azynp046a],
.components-pause-visible[b-3azynp046a],
.components-resume-failed-visible[b-3azynp046a],
.components-rejoining-animation[b-3azynp046a] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-3azynp046a],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-3azynp046a],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-3azynp046a],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-3azynp046a],
#components-reconnect-modal.components-reconnect-retrying[b-3azynp046a],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-3azynp046a],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-3azynp046a],
#components-reconnect-modal.components-reconnect-failed[b-3azynp046a],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-3azynp046a] {
    display: block;
}


#components-reconnect-modal[b-3azynp046a] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-3azynp046a 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-3azynp046a 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-3azynp046a 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-3azynp046a]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-3azynp046a 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-3azynp046a {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-3azynp046a {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-3azynp046a {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-3azynp046a] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-3azynp046a] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-3azynp046a] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-3azynp046a] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-3azynp046a] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-3azynp046a] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-3azynp046a] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-3azynp046a 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-3azynp046a] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-3azynp046a {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Shared/DateRangeCalendar.razor.rz.scp.css */
.drc[b-hhvieni9d9] { width: 100%; max-width: 18rem; }

.drc-head[b-hhvieni9d9] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.drc-month[b-hhvieni9d9] { font-weight: 600; }

.drc-nav[b-hhvieni9d9] {
    border: 0;
    background: transparent;
    width: 2rem;
    height: 2rem;
    border-radius: var(--tblr-border-radius);
    color: var(--tblr-secondary);
}

.drc-nav:hover[b-hhvieni9d9] { background: var(--tblr-bg-surface-secondary); color: var(--tblr-body-color); }

.drc-grid[b-hhvieni9d9] {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
}

.drc-dow[b-hhvieni9d9] {
    text-align: center;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    padding-bottom: 0.25rem;
}

.drc-day[b-hhvieni9d9] {
    border: 0;
    background: transparent;
    height: 2.1rem;
    font-size: 0.85rem;
    color: var(--tblr-body-color);
    border-radius: var(--tblr-border-radius);
}

.drc-day:hover[b-hhvieni9d9] { background: var(--tblr-bg-surface-secondary); }

.drc-day.is-other[b-hhvieni9d9] { color: var(--tblr-secondary); opacity: 0.6; }

.drc-day.is-today[b-hhvieni9d9] { font-weight: 700; text-decoration: underline; }

.drc-day.is-between[b-hhvieni9d9] {
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 0;
}

.drc-day.is-start[b-hhvieni9d9],
.drc-day.is-end[b-hhvieni9d9] {
    background: var(--tblr-primary);
    color: var(--tblr-primary-fg, #fff);
    opacity: 1;
}

.drc-foot[b-hhvieni9d9] {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}
/* /Components/Shared/ListPager.razor.rz.scp.css */
/* The shared list pager. Tabler's .pagination supplies the links; this lays out the summary beside them. */

.list-pager[b-eyvckivss7] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.list-pager-summary[b-eyvckivss7] {
    font-size: 0.85rem;
    color: var(--tblr-secondary);
}

.list-pager .page-link[b-eyvckivss7] {
    min-width: 2.1rem;
    text-align: center;
}

.list-pager .ti[b-eyvckivss7] {
    font-size: 1rem;
    vertical-align: -0.12em;
}
/* /Components/Shared/PhotoViewer.razor.rz.scp.css */
/* Photo viewer (2026-11-02; card design 2026-11-05; shared since 2026-11-11): the photo in a white card, then who / when / where with
   Delete and Done. Theme tokens throughout, so dark mode follows the theme. */
.tm-viewer[b-orzwobrduo] { outline: none; }

.tm-viewer-dialog[b-orzwobrduo] { max-width: 40rem; }

.tm-viewer-card[b-orzwobrduo] {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: var(--tblr-bg-surface);
}

.tm-viewer-stage[b-orzwobrduo] {
    position: relative;
    margin: 1rem 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    background: var(--tblr-bg-surface-secondary);
}

/* The photo sets the height (up to a cap), so a landscape shot fills the card with no empty band; a tall one is
   letterboxed rather than cropped. */
.tm-viewer-img[b-orzwobrduo] {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(60vh, 30rem);
    object-fit: contain;
    animation: tm-viewer-in-b-orzwobrduo 0.2s ease-out;
}

@keyframes tm-viewer-in-b-orzwobrduo {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tm-viewer-nav[b-orzwobrduo] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 1.35rem;
    background: rgba(0, 0, 0, 0.4);
}

    .tm-viewer-nav:hover[b-orzwobrduo],
    .tm-viewer-nav:focus-visible[b-orzwobrduo] { background: rgba(0, 0, 0, 0.65); }
    .tm-viewer-nav.is-prev[b-orzwobrduo] { left: 0.75rem; }
    .tm-viewer-nav.is-next[b-orzwobrduo] { right: 0.75rem; }

.tm-viewer-count[b-orzwobrduo] {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
}

/* A photo's remark (2026-12-02), read-only: a field-looking box so it reads as the uploader's note, not ours. */
.tm-viewer-remarks[b-orzwobrduo] { margin: 1rem 1rem 0; }

.tm-viewer-remarks-text[b-orzwobrduo] {
    max-height: 8rem;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 6px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.875rem;
    background: var(--tblr-bg-surface-secondary);
}

.tm-viewer-foot[b-orzwobrduo] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--tblr-border-color);
    background: var(--tblr-bg-surface-secondary);
}

.tm-viewer-meta[b-orzwobrduo] {
    min-width: 0;
    color: var(--tblr-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
}

    .tm-viewer-meta strong[b-orzwobrduo] { color: var(--tblr-body-color); }

.tm-viewer-actions[b-orzwobrduo] {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .tm-viewer-img[b-orzwobrduo] { max-height: min(50vh, 22rem); }
    .tm-viewer-foot[b-orzwobrduo] { flex-direction: column; align-items: stretch; }
    .tm-viewer-actions[b-orzwobrduo] { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    .tm-viewer-img[b-orzwobrduo] { animation: none; }
}
/* /Components/Shared/PlantingNeedsCard.razor.rz.scp.css */
/* "Inputs this planting needs" (2026-11-10): the table sat edge to edge in the card, with a tall grey row and the
   warning floating mid-row. The card's own gutters, compact rows, and the warning as a note. */

.pn-table[b-sysx7fregf] {
    margin: 0;
}

    .pn-table th[b-sysx7fregf],
    .pn-table td[b-sysx7fregf] {
        padding: 0.65rem 0.75rem;
        background: transparent;
        vertical-align: middle;
    }

    /* Line the first and last columns up with the card header's text. */
    .pn-table th:first-child[b-sysx7fregf],
    .pn-table td:first-child[b-sysx7fregf] {
        padding-left: 1.5rem;
    }

    .pn-table th:last-child[b-sysx7fregf],
    .pn-table td:last-child[b-sysx7fregf] {
        padding-right: 1.5rem;
    }

    /* A global rule pads td[colspan] by 40px for "no rows" cells; the warning cell spans three columns but is a row. */
    .pn-table tbody td[colspan][b-sysx7fregf] {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .pn-table thead th[b-sysx7fregf] {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--tblr-secondary);
        background: var(--tblr-bg-surface-secondary);
        border-bottom: 1px solid var(--tblr-border-color);
    }

    .pn-table tbody tr + tr td[b-sysx7fregf] {
        border-top: 1px solid var(--tblr-border-color);
    }

    .pn-table tbody td[b-sysx7fregf] {
        border-bottom: 0;
    }

.pn-item[b-sysx7fregf] {
    font-weight: 600;
}

.pn-problem[b-sysx7fregf] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.82rem;
    color: #b35c00;
    background: rgba(247, 103, 7, 0.08);
    border: 1px solid rgba(247, 103, 7, 0.25);
    border-radius: 8px;
}

.pn-footer[b-sysx7fregf] {
    padding: 0.9rem 1.5rem;
}
/* /Components/Shared/ScoutingManage.razor.rz.scp.css */
/* The Manage view of a scouting round (2026-11-06). Scoped CSS does not cross components, so the rules it shares with
   TaskManage are copied from TaskManage.razor.css; change one and look at the other. */

.to-avatars[b-obzragcpa8] {
    display: inline-flex;
    align-items: center;
}

.to-avatar[b-obzragcpa8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-inline-start: -0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--tblr-primary);
    /* Solid, not a translucent tint: each avatar covers the one before it, as in the design, rather than
       letting it show through. Later avatars come later in the DOM, so they already sit on top. */
    background: color-mix(in srgb, var(--tblr-primary) 14%, var(--tblr-bg-surface));
    border: 2px solid var(--tblr-bg-surface);
    border-radius: 50%;
}

    .to-avatar:first-child[b-obzragcpa8] {
        margin-inline-start: 0;
    }

.to-avatar-more[b-obzragcpa8] {
    color: var(--tblr-primary);
    background: var(--tblr-bg-surface);
    border-color: var(--tblr-primary);
    border-width: 1px;
}

.to-peek-badge[b-obzragcpa8] {
    --tone: #868e96;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    white-space: nowrap;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    border-radius: 4px;
}

    .to-peek-badge.tone-high[b-obzragcpa8] { --tone: #f76707; }
    .to-peek-badge.tone-medium[b-obzragcpa8] { --tone: #f59f00; }
    .to-peek-badge.tone-low[b-obzragcpa8] { --tone: #667382; }
    .to-peek-badge.tone-todo[b-obzragcpa8] { --tone: #f76707; }
    .to-peek-badge.tone-progress[b-obzragcpa8] { --tone: #206bc4; }
    .to-peek-badge.tone-completed[b-obzragcpa8] { --tone: #2fb344; }
    .to-peek-badge.tone-approved[b-obzragcpa8] { --tone: #ae3ec9; }
    .to-peek-badge.tone-cancelled[b-obzragcpa8] { --tone: #d63939; }
    .to-peek-badge.tone-incomplete[b-obzragcpa8] { --tone: #d6336c; }

.tm-page[b-obzragcpa8] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tm-back[b-obzragcpa8] {
    flex: none;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    color: #fff;
    background: var(--tblr-primary);
    border-radius: 50%;
}

    .tm-back:hover[b-obzragcpa8] {
        color: #fff;
        filter: brightness(0.92);
    }

.tm-main[b-obzragcpa8] {
    flex: 1 1 auto;
    min-width: 0;
}

.tm-code[b-obzragcpa8] {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    font-size: 0.8rem;
    color: var(--tblr-primary);
    border: 1px solid var(--tblr-primary);
    border-radius: 6px;
}

    a.tm-code:hover[b-obzragcpa8] {
        text-decoration: none;
        background: rgba(var(--tblr-primary-rgb), 0.08);
    }

.tm-title[b-obzragcpa8] {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.tm-meta[b-obzragcpa8] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    color: var(--tblr-secondary);
}

    .tm-meta .ti[b-obzragcpa8] {
        margin-right: 0.3rem;
    }

/* Click-away layer for the menu and the activity's worker picker. */
.tm-menu-backdrop[b-obzragcpa8] {
    position: fixed;
    inset: 0;
    z-index: 4;
}

/* Anchored to the button's right edge: dropdown-menu-end only aligns when Bootstrap's JS (Popper) places the
   menu, and this one is opened by Blazor, so it hung off the panel's right edge and was cut. */
.tm-menu[b-obzragcpa8] {
    z-index: 5;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 17rem;
    margin-top: 0.25rem;
}

    .tm-menu .dropdown-item[b-obzragcpa8] {
        display: flex;
        align-items: center;
    }

        .tm-menu .dropdown-item:disabled[b-obzragcpa8] {
            opacity: 0.7;
        }

.tm-tabs[b-obzragcpa8] {
    display: flex;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.tm-tab[b-obzragcpa8] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0 0.75rem;
    color: var(--tblr-body-color);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
}

    .tm-tab.active[b-obzragcpa8] {
        color: var(--tblr-primary);
        border-bottom-color: var(--tblr-primary);
    }

.tm-count[b-obzragcpa8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 999px;
}

.tm-h[b-obzragcpa8] {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.tm-tiles[b-obzragcpa8] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 767.98px) {
    .tm-tiles[b-obzragcpa8] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tm-tile[b-obzragcpa8] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .tm-tile:hover[b-obzragcpa8] {
        color: inherit;
        text-decoration: none;
        border-color: var(--tblr-primary);
    }

.tm-tile-icon[b-obzragcpa8] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.25rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 8px;
}

.tm-out-tiles[b-obzragcpa8] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 767.98px) {
    .tm-out-tiles[b-obzragcpa8] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tm-out-tile[b-obzragcpa8] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

/* The one tile about the chosen day rather than the whole task (2026-11-05): azure instead of the theme's teal, so it
   reads as different from the all-days tiles beside it. */
.tm-out-tile.is-day[b-obzragcpa8] {
    background: rgba(var(--tblr-azure-rgb), 0.08);
    border-color: rgba(var(--tblr-azure-rgb), 0.45);
}

    .tm-out-tile.is-day .tm-tile-icon[b-obzragcpa8] {
        color: var(--tblr-azure);
        background: rgba(var(--tblr-azure-rgb), 0.16);
    }

    .tm-out-tile.is-day .tm-out-figure[b-obzragcpa8] {
        color: var(--tblr-azure);
    }

.tm-out-figure[b-obzragcpa8] {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tblr-primary);
}

.tm-out-hint[b-obzragcpa8] {
    font-size: 0.72rem;
    color: var(--tblr-secondary);
}

.tm-out-of[b-obzragcpa8] {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--tblr-secondary);
}

/* ---- Scouting only ---- */
.sm-code[b-obzragcpa8] { color: #6f42c1; border-color: #6f42c1; }

button.tm-tile[b-obzragcpa8] { width: 100%; text-align: left; background: var(--tblr-bg-surface); }
.sm-tile.is-open[b-obzragcpa8] { border-color: var(--tblr-primary); }

.sm-box[b-obzragcpa8] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    overflow: hidden;
}

.sm-box-h[b-obzragcpa8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--tblr-border-color);
}

.sm-row[b-obzragcpa8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

    .sm-row + .sm-row[b-obzragcpa8] { border-top: 1px solid var(--tblr-border-color); }
    .sm-row .to-avatar[b-obzragcpa8] { margin-inline-start: 0; width: 2rem; height: 2rem; font-size: 0.7rem; }

.sm-crown[b-obzragcpa8] { color: #f59f00; }

.sm-check[b-obzragcpa8] {
    padding: 0.75rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
}

    .sm-check + .sm-check[b-obzragcpa8] { margin-top: 0.6rem; }

.sm-badge[b-obzragcpa8] {
    --tone: #868e96;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    border-radius: 4px;
}

    .sm-badge.is-red[b-obzragcpa8] { --tone: #d63939; }
    .sm-badge.is-green[b-obzragcpa8] { --tone: #2fb344; }
    .sm-badge.is-grey[b-obzragcpa8] { --tone: #667382; }

.sm-h[b-obzragcpa8] {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.sm-visit[b-obzragcpa8] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .sm-visit + .sm-visit[b-obzragcpa8] { margin-top: 0.6rem; }

.sm-fig[b-obzragcpa8] { flex: none; min-width: 5.5rem; }

.tm-out-tile.is-alert .tm-tile-icon[b-obzragcpa8] { color: #d63939; background: rgba(214, 57, 57, 0.12); }
.tm-out-tile.is-alert .tm-out-figure[b-obzragcpa8] { color: #d63939; }

@media (max-width: 575.98px) {
    .sm-visit[b-obzragcpa8] { flex-wrap: wrap; }
    .sm-fig[b-obzragcpa8] { min-width: 0; }
}

/* The people pickers (2026-11-06): the task Setup's popover, copied from TaskManage.razor.css. */
.to-pick[b-obzragcpa8] {
    margin-left: auto;
    width: min(20rem, 100%);
    padding: 0.75rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.to-pick-list[b-obzragcpa8] {
    max-height: 18rem;
    overflow-y: auto;
}

.to-pick-row[b-obzragcpa8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.3rem 0.25rem;
    font-size: 0.9rem;
    text-align: start;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 4px;
}

    .to-pick-row:hover[b-obzragcpa8] {
        background: var(--tblr-bg-surface-secondary);
    }

.to-pick-child[b-obzragcpa8] {
    padding-left: 1.6rem;
}

/* The design's square checkbox: empty, partly (a team with some members) and ticked. */
.to-cb[b-obzragcpa8] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 0.7rem;
    color: transparent;
    border: 1.5px solid var(--tblr-border-color-dark, #c6ccd6);
    border-radius: 3px;
}

    .to-cb.is-on[b-obzragcpa8],
    .to-cb.is-part[b-obzragcpa8] {
        color: #fff;
        background: var(--tblr-primary);
        border-color: var(--tblr-primary);
    }

.sm-pick-pop[b-obzragcpa8] {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    width: 20rem;
    max-width: calc(100vw - 2rem);
    margin-top: 0.25rem;
    text-align: start;
}

.sm-pick-team[b-obzragcpa8] {
    margin: 0.5rem 0 0.15rem;
    padding: 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

/* The box clips to its rounded corners; while a picker is open it lets the popover out. */
.sm-box.is-picking[b-obzragcpa8] { overflow: visible; }

.sm-empty[b-obzragcpa8] { color: var(--tblr-secondary); background: var(--tblr-bg-surface-secondary); }

/* ---- Task Output: visits, items, log (owner design 2026-11-06) ---- */
.sm-visit-card[b-obzragcpa8] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .sm-visit-card + .sm-visit-card[b-obzragcpa8] { margin-top: 0.6rem; }
    .sm-visit-card .sm-visit[b-obzragcpa8] { border: 0; }

.sm-visit-body[b-obzragcpa8] {
    padding: 1rem;
    background: var(--tblr-bg-surface-secondary);
    border-top: 1px solid var(--tblr-border-color);
    border-radius: 0 0 10px 10px;
}

.sm-item[b-obzragcpa8] {
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .sm-item + .sm-item[b-obzragcpa8] { margin-top: 0.6rem; }

.sm-item-head[b-obzragcpa8] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.sm-item-body[b-obzragcpa8] {
    padding: 0.85rem 1rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border-top: 1px solid var(--tblr-border-color);
    border-radius: 0 0 10px 10px;
}

.sm-yesno .btn[b-obzragcpa8] { min-width: 2.75rem; }
.sm-yesno .btn.is-no[b-obzragcpa8] { color: #2fb344; background: rgba(47, 179, 68, 0.12); border-color: rgba(47, 179, 68, 0.4); }
.sm-yesno .btn.is-yes[b-obzragcpa8] { color: #d63939; background: rgba(214, 57, 57, 0.12); border-color: rgba(214, 57, 57, 0.4); }

.sm-form[b-obzragcpa8] {
    padding: 0.85rem 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.05);
    border-radius: 8px;
}

/* What happened: a dotted timeline, newest first. */
.sm-log[b-obzragcpa8] {
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
}

    .sm-log li[b-obzragcpa8] {
        position: relative;
        padding: 0 0 0.75rem 1.1rem;
        border-left: 1px solid var(--tblr-border-color);
        margin-left: 0.3rem;
    }

        .sm-log li[b-obzragcpa8]::before {
            content: '';
            position: absolute;
            left: -0.25rem;
            top: 0.4rem;
            width: 0.5rem;
            height: 0.5rem;
            background: var(--tblr-primary);
            border-radius: 50%;
        }

        .sm-log li:last-child[b-obzragcpa8] { border-left-color: transparent; }

.sm-more-menu[b-obzragcpa8] {
    z-index: 5;
    bottom: 100%;
    top: auto;
    left: 0;
    right: auto;
    margin-bottom: 0.25rem;
    min-width: 12rem;
}

    .sm-more-menu .dropdown-item[b-obzragcpa8] { display: flex; align-items: center; }

.sm-btn-soft[b-obzragcpa8] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-color: transparent;
}

.sm-submit[b-obzragcpa8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.sm-plants[b-obzragcpa8] { width: 11rem; }

.sm-foot[b-obzragcpa8] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tblr-border-color);
}

/* In the response task modal the worker list sits in the form, under its field, so the modal body scrolls to it. */
.sm-worker-pop[b-obzragcpa8] {
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .sm-item-head[b-obzragcpa8] { flex-wrap: wrap; }
}

/* The response task date: Radzen's picker opening on a click anywhere, with the calendar icon drawn over it. */
.sm-date[b-obzragcpa8] {
    position: relative;
}

    .sm-date-field[b-obzragcpa8] {
        cursor: pointer;
        padding-right: 2.5rem;
    }

.sm-date-pop[b-obzragcpa8] {
    display: inline-block;
}

.sm-date-icon[b-obzragcpa8] {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--tblr-secondary);
    pointer-events: none;
}

/* A unit written inside a field, on the right (Plants Check: "plants"). */
.sm-unit-field[b-obzragcpa8] {
    position: relative;
}

    .sm-unit-field .form-control[b-obzragcpa8] {
        padding-right: 4rem;
    }

.sm-unit[b-obzragcpa8] {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    color: var(--tblr-secondary);
    pointer-events: none;
}

/* ---- A visit's photos and their viewer (2026-11-10), copied from TaskManage.razor.css ---- */
.tm-out-photos[b-obzragcpa8] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px dashed var(--tblr-border-color);
    border-radius: 10px;
}

    .tm-out-photos img[b-obzragcpa8] {
        width: 6rem;
        height: 5rem;
        object-fit: cover;
        border-radius: 8px;
    }

/* The worker's remarks, one line inside the log entry that recorded the answer, under its result (2026-12-03). */
.sm-log-remarks[b-obzragcpa8] {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* A Yes finding's photos (2026-12-02), under "What happened", with "n/5" in the bottom-right corner. */
.sm-finding-photos[b-obzragcpa8] {
    position: relative;
    padding-bottom: 1.75rem;
    background: var(--tblr-bg-surface);
}

.sm-photo-count[b-obzragcpa8] {
    position: absolute;
    right: 0.75rem;
    bottom: 0.4rem;
    color: var(--tblr-secondary);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.tm-photo-thumb[b-obzragcpa8] {
    padding: 0;
    border: 0;
    background: none;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .tm-photo-thumb:hover[b-obzragcpa8],
    .tm-photo-thumb:focus-visible[b-obzragcpa8] {
        transform: translateY(-1px);
        box-shadow: 0 0 0 2px var(--tblr-primary);
    }

/* Photo viewer (2026-11-02; card design 2026-11-05): the photo in a white card, then who / when / where with
   Delete and Done. Theme tokens throughout, so dark mode follows the theme. */
.tm-viewer[b-obzragcpa8] { outline: none; }

.tm-viewer-dialog[b-obzragcpa8] { max-width: 40rem; }

.tm-viewer-card[b-obzragcpa8] {
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: var(--tblr-bg-surface);
}

.tm-viewer-stage[b-obzragcpa8] {
    position: relative;
    margin: 1rem 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    background: var(--tblr-bg-surface-secondary);
}

/* The photo sets the height (up to a cap), so a landscape shot fills the card with no empty band; a tall one is
   letterboxed rather than cropped. */
.tm-viewer-img[b-obzragcpa8] {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(60vh, 30rem);
    object-fit: contain;
    animation: tm-viewer-in-b-obzragcpa8 0.2s ease-out;
}

@keyframes tm-viewer-in-b-obzragcpa8 {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tm-viewer-nav[b-obzragcpa8] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 1.35rem;
    background: rgba(0, 0, 0, 0.4);
}

    .tm-viewer-nav:hover[b-obzragcpa8],
    .tm-viewer-nav:focus-visible[b-obzragcpa8] { background: rgba(0, 0, 0, 0.65); }
    .tm-viewer-nav.is-prev[b-obzragcpa8] { left: 0.75rem; }
    .tm-viewer-nav.is-next[b-obzragcpa8] { right: 0.75rem; }

.tm-viewer-count[b-obzragcpa8] {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.5);
}

/* A photo's remark (2026-12-02), read-only, as in Components/Shared/PhotoViewer. */
.tm-viewer-remarks[b-obzragcpa8] { margin: 1rem 1rem 0; }

.tm-viewer-remarks-text[b-obzragcpa8] {
    max-height: 8rem;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 6px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.875rem;
    background: var(--tblr-bg-surface-secondary);
}

.tm-viewer-foot[b-obzragcpa8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--tblr-border-color);
    background: var(--tblr-bg-surface-secondary);
}

.tm-viewer-meta[b-obzragcpa8] {
    min-width: 0;
    color: var(--tblr-secondary);
    font-size: 0.85rem;
    line-height: 1.45;
}

    .tm-viewer-meta strong[b-obzragcpa8] { color: var(--tblr-body-color); }

.tm-viewer-actions[b-obzragcpa8] {
    display: flex;
    flex: 0 0 auto;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .tm-viewer-img[b-obzragcpa8] { max-height: min(50vh, 22rem); }
    .tm-viewer-foot[b-obzragcpa8] { flex-direction: column; align-items: stretch; }
    .tm-viewer-actions[b-obzragcpa8] { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    .tm-viewer-img[b-obzragcpa8] { animation: none; }
    .tm-photo-thumb[b-obzragcpa8] { transition: none; }
}

.tm-photo-add[b-obzragcpa8] {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 6rem;
    height: 5rem;
    margin: 0;
    font-size: 1.25rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.06);
    border: 1px dashed rgba(var(--tblr-primary-rgb), 0.5);
    border-radius: 8px;
    cursor: pointer;
}

    .tm-photo-add:hover[b-obzragcpa8] { background: rgba(var(--tblr-primary-rgb), 0.12); }
    .tm-photo-add.is-busy[b-obzragcpa8] { cursor: progress; opacity: 0.8; }
    .tm-photo-add .small[b-obzragcpa8] { font-size: 0.7rem; }

/* VIEW ONLY (2026-11-24): a farm supervisor on a scouting round not assigned to them. Every button is hidden except the
   ones that only move around or reveal: back, close, the tabs, the resource tiles, an item's "what happened" toggle,
   photos, the viewer's arrows and Done. Fields are disabled in the markup (no Scouting Create). */
.tm-readonly[b-obzragcpa8]  button:not(.tm-back):not(.tm-nav):not(.btn-close):not(.tm-tab):not(.tm-tile):not(.tm-photo-thumb):not(.tm-viewer-nav):not(#sm-photo-done) {
    display: none !important;
}

/* Edit Task's planting card (2026-12-03): TaskManage's .tm-edit-crop, copied, as scoped CSS does not cross components. */
.sm-edit-crop[b-obzragcpa8] {
    padding: 0.75rem 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.08);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.3);
    border-radius: 10px;
}

/* The round's description under the header's meta line (2026-12-03 design): a soft grey box, as wide as its text. */
.sm-head-desc[b-obzragcpa8] {
    display: inline-block;
    max-width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--tblr-bg-surface-secondary, #f6f8fb);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
    color: var(--tblr-secondary);
    white-space: pre-line;
    overflow-wrap: anywhere;
}
/* /Components/Shared/ScoutingOverviewPanel.razor.rz.scp.css */
/* Scouting overview (2026-11-12 design; Task Overview's Observation → List view since 2026-11-25): an alert card, and the visit table with tabs. */

/* ---------------- Cards ---------------- */

.so-card[b-43qgz465o0] {
    margin-bottom: 1.5rem;
    border-radius: 12px;
}

.so-card-title[b-43qgz465o0] {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.so-link[b-43qgz465o0] {
    color: var(--tblr-primary);
    font-weight: 500;
    text-decoration: none;
}

    .so-link:hover[b-43qgz465o0] { text-decoration: underline; }

.so-alert[b-43qgz465o0] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

    .so-alert + .so-alert[b-43qgz465o0] { border-top: 1px solid var(--tblr-border-color); }

.so-alert-icon[b-43qgz465o0] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    color: #d63939;
    background: rgba(214, 57, 57, 0.1);
}

.so-alert-actions[b-43qgz465o0] {
    flex: none;
    display: flex;
    gap: 1rem;
}

/* ---------------- Visits ---------------- */

.so-tabs[b-43qgz465o0] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.so-tab[b-43qgz465o0] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.25rem;
    margin-bottom: -1px;
    font: inherit;
    color: var(--tblr-body-color);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
}

    .so-tab.active[b-43qgz465o0] {
        color: var(--tblr-primary);
        border-bottom-color: var(--tblr-primary);
    }

.so-tab-count[b-43qgz465o0] {
    min-width: 1.5rem;
    padding: 0.05rem 0.45rem;
    font-size: 0.75rem;
    border-radius: 999px;
    color: #206bc4;
    background: rgba(32, 107, 196, 0.1);
}

.so-search[b-43qgz465o0] { width: 16rem; max-width: 100%; }

.so-filter-btn[b-43qgz465o0] { background: var(--tblr-bg-surface-secondary); }

.so-filter-menu[b-43qgz465o0] {
    width: 19rem;
    max-width: calc(100vw - 2rem);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    z-index: 1001;
}

.so-filter-backdrop[b-43qgz465o0] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.so-chip[b-43qgz465o0] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.4rem 0.35rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 999px;
    color: var(--tblr-body-color);
    background: color-mix(in srgb, var(--tblr-primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
}

.so-chip-x[b-43qgz465o0] {
    display: inline-flex;
    padding: 0.1rem;
    color: inherit;
    background: none;
    border: 0;
}

.so-table th[b-43qgz465o0] { white-space: nowrap; }

.so-sort[b-43qgz465o0] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit;
    background: none;
    border: 0;
    white-space: nowrap;
}

    .so-sort > i[b-43qgz465o0] { opacity: 0.45; }
    .so-sort:hover > i[b-43qgz465o0],
    .so-sort.is-on > i[b-43qgz465o0] { opacity: 1; }
    .so-sort.is-on[b-43qgz465o0] { color: var(--tblr-primary); }

.so-cat[b-43qgz465o0] {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 4px;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
}

.so-status[b-43qgz465o0] {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 4px;
    white-space: nowrap;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, transparent);
}

    .so-status.tone-pending[b-43qgz465o0] { --tone: #f76707; }
    .so-status.tone-active[b-43qgz465o0] { --tone: #2fb344; }
    .so-status.tone-upcoming[b-43qgz465o0] { --tone: #206bc4; }
    .so-status.tone-done[b-43qgz465o0] { --tone: #0b5f57; }
    .so-status.tone-review[b-43qgz465o0] { --tone: #ae3ec9; }
    .so-status.tone-overdue[b-43qgz465o0] { --tone: #d63939; }
    .so-status.tone-stopped[b-43qgz465o0] { --tone: #667382; }
/* /Components/Shared/TaskManage.razor.rz.scp.css */
/* Moved from TaskScheduler.razor.css with the tabbed view (2026-10-28). Scoped CSS does not cross components. */

/* Overlapping initials, as the design's avatar stack. */
.to-avatars[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
}

.to-avatar[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-inline-start: -0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--tblr-primary);
    /* Solid, not a translucent tint: each avatar covers the one before it, as in the design, rather than
       letting it show through. Later avatars come later in the DOM, so they already sit on top. */
    background: color-mix(in srgb, var(--tblr-primary) 14%, var(--tblr-bg-surface));
    border: 2px solid var(--tblr-bg-surface);
    border-radius: 50%;
}

    .to-avatar:first-child[b-nfduqp6n4i] {
        margin-inline-start: 0;
    }

.to-avatar-more[b-nfduqp6n4i] {
    color: var(--tblr-primary);
    background: var(--tblr-bg-surface);
    border-color: var(--tblr-primary);
    border-width: 1px;
}

.to-peek-body[b-nfduqp6n4i] {
    padding: 0.75rem;
}

.to-peek-card[b-nfduqp6n4i] {
    padding: 1.25rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.to-peek-head[b-nfduqp6n4i] {
    padding-bottom: 0;
}

.to-peek-code[b-nfduqp6n4i] {
    padding: 0.1rem 0.5rem;
    font-size: 0.78rem;
    color: var(--tblr-primary);
    border: 1px solid var(--tblr-primary);
    border-radius: 6px;
}

.to-peek-badge[b-nfduqp6n4i] {
    --tone: #868e96;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    white-space: nowrap;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    border-radius: 4px;
}

    .to-peek-badge.tone-high[b-nfduqp6n4i] { --tone: #f76707; }
    .to-peek-badge.tone-medium[b-nfduqp6n4i] { --tone: #f59f00; }
    .to-peek-badge.tone-low[b-nfduqp6n4i] { --tone: #667382; }
    .to-peek-badge.tone-todo[b-nfduqp6n4i] { --tone: #f76707; }
    .to-peek-badge.tone-progress[b-nfduqp6n4i] { --tone: #206bc4; }
    .to-peek-badge.tone-completed[b-nfduqp6n4i] { --tone: #2fb344; }
    .to-peek-badge.tone-approved[b-nfduqp6n4i] { --tone: #ae3ec9; }
    .to-peek-badge.tone-cancelled[b-nfduqp6n4i] { --tone: #d63939; }
    .to-peek-badge.tone-incomplete[b-nfduqp6n4i] { --tone: #d6336c; }
    /* Task statuses (owner, 2026-11-26), as on Task Overview's board (Common/Tasks/TaskStatusDisplay). */
    .to-peek-badge.tone-task-upcoming[b-nfduqp6n4i],
    .to-peek-badge.tone-task-progress[b-nfduqp6n4i] { --tone: #2fb344; }
    .to-peek-badge.tone-task-overdue[b-nfduqp6n4i] { --tone: #d63939; }
    .to-peek-badge.tone-task-pm[b-nfduqp6n4i],
    .to-peek-badge.tone-task-psa[b-nfduqp6n4i] { --tone: #4299e1; }
    .to-peek-badge.tone-task-done[b-nfduqp6n4i] { --tone: #0f5c2b; background: #a6e6bd; }   /* Completed: #a6e6bd fill, dark green text */
    .to-peek-badge.tone-task-cancelled[b-nfduqp6n4i] { --tone: #868e96; }

.to-peek-actions[b-nfduqp6n4i] {
    white-space: nowrap;
    border-radius: 8px;
}

.to-peek-x[b-nfduqp6n4i] {
    flex: none;
    margin-top: 0.55rem;
}

.to-peek-title[b-nfduqp6n4i] {
    margin: 0.75rem 0 0.15rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.to-peek-box[b-nfduqp6n4i] {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

.to-peek-crop[b-nfduqp6n4i] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    color: #d63939;
    background: rgba(214, 57, 57, 0.1);
    border-radius: 50%;
}

.to-peek-stage[b-nfduqp6n4i] {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    color: #2fb344;
    background: rgba(47, 179, 68, 0.12);
    border-radius: 4px;
}

/* Underlined tabs along the bottom of the header card. */
.to-peek-tabs[b-nfduqp6n4i] {
    display: flex;
    gap: 1.75rem;
    margin-top: 1.25rem;
}

.to-peek-tab[b-nfduqp6n4i] {
    padding: 0.4rem 0 0.75rem;
    font-size: 0.95rem;
    color: var(--tblr-body-color);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
}

    .to-peek-tab.active[b-nfduqp6n4i] {
        color: var(--tblr-primary);
        border-bottom-color: var(--tblr-primary);
    }

.to-peek-h[b-nfduqp6n4i] {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.to-peek-sub[b-nfduqp6n4i] {
    padding: 1rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

.to-peek-meter[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

.to-peek-meter-icon[b-nfduqp6n4i] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 8px;
}

.to-peek-meter-value[b-nfduqp6n4i] {
    margin-bottom: 0.3rem;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--tblr-primary);
}

    .to-peek-meter-value span[b-nfduqp6n4i] {
        font-size: 0.85rem;
        font-weight: 400;
        color: var(--tblr-secondary);
    }

.to-peek-meter .progress[b-nfduqp6n4i] {
    background: rgba(var(--tblr-primary-rgb), 0.2);
}

/* A card whose title sits on a rule, then a list of rows each with an icon or avatar. */
.to-peek-card-h[b-nfduqp6n4i] {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid var(--tblr-border-color);
}

    .to-peek-card-h h3[b-nfduqp6n4i] {
        font-size: 1.05rem;
        font-weight: 600;
    }

.to-peek-link[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
}

.to-peek-rows[b-nfduqp6n4i] {
    margin: 0;
    padding: 0 1.25rem;
    list-style: none;
}

    .to-peek-rows > li[b-nfduqp6n4i] {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.8rem 0;
    }

        .to-peek-rows > li + li[b-nfduqp6n4i] {
            border-top: 1px solid var(--tblr-border-color);
        }

        .to-peek-rows > li > .ti[b-nfduqp6n4i] {
            flex: none;
            font-size: 1.5rem;
            color: var(--tblr-secondary);
        }

    .to-peek-rows .to-avatar[b-nfduqp6n4i] {
        flex: none;
        width: 2rem;
        height: 2rem;
        margin: 0;
        font-size: 0.7rem;
        object-fit: cover;
        border: 1px solid var(--tblr-primary);
    }

.to-peek-crown[b-nfduqp6n4i] {
    margin-left: 0.25rem;
    color: #f59f00;
}

/* ---------------- Worker Output tab (2026-10-20 design) ---------------- */

/* The panel's footer, outside the scrolling body, so "Mark all complete" stays in view. */
.to-peek-footer[b-nfduqp6n4i] {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1rem;
    background: var(--tblr-bg-surface);
    border-top: 1px solid var(--tblr-border-color);
}

.to-peek-back[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--tblr-primary);
    background: none;
    border: 0;
}

.to-peek-pick[b-nfduqp6n4i] {
    cursor: pointer;
}

    .to-peek-pick:hover[b-nfduqp6n4i],
    .to-peek-pick:focus-visible[b-nfduqp6n4i] {
        background: var(--tblr-bg-surface-secondary);
        outline: none;
    }

/* A round tick: an empty ring until done, then filled in the primary colour. */
.to-check[b-nfduqp6n4i] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    font-size: 0.75rem;
    color: transparent;
    border: 1.5px solid var(--tblr-border-color-dark, #c6ccd6);
    border-radius: 50%;
}

    .to-check.is-on[b-nfduqp6n4i] {
        color: #fff;
        background: var(--tblr-primary);
        border-color: var(--tblr-primary);
    }

.to-peek-decide[b-nfduqp6n4i] {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-end;
}

/* Activity assignees: greyed until their part is approved. */
.to-peek-mini + .to-peek-mini[b-nfduqp6n4i] {
    margin-inline-start: -0.4rem;
}

.to-peek-mini.is-pending .to-avatar[b-nfduqp6n4i] {
    filter: grayscale(1);
    opacity: 0.55;
    border-color: var(--tblr-border-color);
}

.to-peek-photos[b-nfduqp6n4i] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

    .to-peek-photos img[b-nfduqp6n4i] {
        width: 6rem;
        height: 6rem;
        object-fit: cover;
        border-radius: 8px;
    }

.to-peek-remarks[b-nfduqp6n4i] {
    min-height: 4.5rem;
    padding: 0.5rem 0.75rem;
    white-space: pre-line;
    border: 1px solid var(--tblr-border-color);
    border-radius: 6px;
}

/* ---------------- Setup tab (2026-10-20 design) ---------------- */

.to-peek-tiles[b-nfduqp6n4i] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .to-peek-tiles[b-nfduqp6n4i] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.to-peek-tile[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .to-peek-tile:hover[b-nfduqp6n4i],
    .to-peek-tile:focus-visible[b-nfduqp6n4i] {
        color: inherit;
        text-decoration: none;
        border-color: var(--tblr-primary);
        outline: none;
    }

/* The picker opens under the row it came from, as its own list item spanning the card. */
.to-pick[b-nfduqp6n4i] {
    margin-left: auto;
    width: min(20rem, 100%);
    padding: 0.75rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.to-pick-list[b-nfduqp6n4i] {
    max-height: 18rem;
    overflow-y: auto;
}

.to-pick-row[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.3rem 0.25rem;
    font-size: 0.9rem;
    text-align: start;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 4px;
}

    .to-pick-row:hover[b-nfduqp6n4i] {
        background: var(--tblr-bg-surface-secondary);
    }

.to-pick-child[b-nfduqp6n4i] {
    padding-left: 1.6rem;
}

.to-pick-group[b-nfduqp6n4i] {
    margin: 0.5rem 0 0.15rem;
    font-size: 0.78rem;
    color: var(--tblr-secondary);
}

/* The design's square checkbox: empty, partly (a team with some members) and ticked. */
.to-cb[b-nfduqp6n4i] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 0.7rem;
    color: transparent;
    border: 1.5px solid var(--tblr-border-color-dark, #c6ccd6);
    border-radius: 3px;
}

    .to-cb.is-on[b-nfduqp6n4i],
    .to-cb.is-part[b-nfduqp6n4i] {
        color: #fff;
        background: var(--tblr-primary);
        border-color: var(--tblr-primary);
    }

/* ---------------- Setup › Activities (2026-10-20 design) ---------------- */

.to-act-head[b-nfduqp6n4i] {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.to-act-body[b-nfduqp6n4i] {
    padding: 0.85rem 1.25rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border-radius: 0 0 10px 10px;
}

.to-act-body .to-avatars .to-avatar[b-nfduqp6n4i] {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.6rem;
    object-fit: cover;
    border-color: var(--tblr-primary);
}

/* The activity picker floats over the form, under its field. */
.to-pick-pop[b-nfduqp6n4i] {
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 0.25rem;
    margin-top: 0.25rem;
}

/* ---------------- The Manage page (2026-10-28 design) ---------------- */

.tm-page[b-nfduqp6n4i] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tm-back[b-nfduqp6n4i] {
    flex: none;
    padding: 0;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-top: 0.25rem;
    font-size: 1.1rem;
    color: #fff;
    background: var(--tblr-primary);
    border-radius: 50%;
}

    .tm-back:hover[b-nfduqp6n4i] {
        color: #fff;
        filter: brightness(0.92);
    }

.tm-main[b-nfduqp6n4i] {
    flex: 1 1 auto;
    min-width: 0;
}

.tm-code[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    font-size: 0.8rem;
    color: var(--tblr-primary);
    border: 1px solid var(--tblr-primary);
    border-radius: 6px;
}

    a.tm-code:hover[b-nfduqp6n4i] {
        text-decoration: none;
        background: rgba(var(--tblr-primary-rgb), 0.08);
    }

.tm-title[b-nfduqp6n4i] {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.tm-meta[b-nfduqp6n4i] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    color: var(--tblr-secondary);
}

    .tm-meta .ti[b-nfduqp6n4i] {
        margin-right: 0.3rem;
    }

/* Click-away layer for the menu and the activity's worker picker. */
.tm-menu-backdrop[b-nfduqp6n4i] {
    position: fixed;
    inset: 0;
    z-index: 4;
}

/* Anchored to the button's right edge: dropdown-menu-end only aligns when Bootstrap's JS (Popper) places the
   menu, and this one is opened by Blazor, so it hung off the panel's right edge and was cut. */
.tm-menu[b-nfduqp6n4i] {
    z-index: 5;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 17rem;
    margin-top: 0.25rem;
}

    .tm-menu .dropdown-item[b-nfduqp6n4i] {
        display: flex;
        align-items: center;
    }

        .tm-menu .dropdown-item:disabled[b-nfduqp6n4i] {
            opacity: 0.7;
        }

.tm-tabs[b-nfduqp6n4i] {
    display: flex;
    gap: 1.75rem;
    margin-top: 1.5rem;
}

.tm-tab[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0 0.75rem;
    color: var(--tblr-body-color);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
}

    .tm-tab.active[b-nfduqp6n4i] {
        color: var(--tblr-primary);
        border-bottom-color: var(--tblr-primary);
    }

.tm-count[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 999px;
}

.tm-h[b-nfduqp6n4i] {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.tm-tiles[b-nfduqp6n4i] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 767.98px) {
    .tm-tiles[b-nfduqp6n4i] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tm-tile[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .tm-tile:hover[b-nfduqp6n4i] {
        color: inherit;
        text-decoration: none;
        border-color: var(--tblr-primary);
    }

.tm-tile-icon[b-nfduqp6n4i] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.25rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 8px;
}

.tm-box[b-nfduqp6n4i] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

.tm-box-head[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

    .tm-box-head h3[b-nfduqp6n4i] {
        font-size: 1.05rem;
        font-weight: 600;
    }

.tm-box-body[b-nfduqp6n4i] {
    padding: 1rem 1.25rem;
}

/* One activity; the accordion opens under its row. */
.tm-act[b-nfduqp6n4i] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    overflow: visible;
}

    .tm-act + .tm-act[b-nfduqp6n4i] {
        margin-top: 0.75rem;
    }

    .tm-act.is-editing[b-nfduqp6n4i] {
        border-color: var(--tblr-primary);
    }

.tm-act-row[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.75rem 1.25rem;
}

@media (max-width: 767.98px) {
    .tm-act-row[b-nfduqp6n4i] {
        flex-wrap: wrap;
    }
}

.tm-rate[b-nfduqp6n4i] {
    flex: none;
    white-space: nowrap;
}

.tm-act-people[b-nfduqp6n4i] {
    flex: none;
    min-width: 3.5rem;
}

    .tm-act-people .to-avatar[b-nfduqp6n4i] {
        width: 2rem;
        height: 2rem;
        font-size: 0.7rem;
    }

.tm-act-edit-panel[b-nfduqp6n4i] {
    padding: 1rem 1.25rem;
    background: rgba(var(--tblr-primary-rgb), 0.06);
    border-top: 1px solid var(--tblr-border-color);
    border-radius: 0 0 10px 10px;
}

    .tm-act-edit-panel .to-pick-pop[b-nfduqp6n4i] {
        z-index: 5;
        width: 100%;
    }

/* Assigned Workers: the button the picker pops up from. Right-aligned under a row's button; under the
   "Assign workers" / "Add assistant supervisor" buttons it opens to the right instead. */
.tm-pick-anchor[b-nfduqp6n4i] {
    position: relative;
    flex: none;
    display: inline-block;
}

.tm-pick-pop[b-nfduqp6n4i] {
    position: absolute;
    z-index: 5;
    top: 100%;
    right: 0;
    left: auto;
    width: 20rem;
    max-width: calc(100vw - 2rem);
    margin-top: 0.25rem;
    text-align: start;
}

.tm-pick-anchor.is-start .tm-pick-pop[b-nfduqp6n4i] {
    right: auto;
    left: 0;
}

.tm-act-workers[b-nfduqp6n4i] {
    background-color: var(--tblr-bg-surface);
}

/* A RadzenNumeric inside a Tabler input-group (Rate · RM): Radzen fixes its height to --rz-input-height, shorter
   than the addon beside it, and theme.css rounds all four corners. Stretch it to the group and square the side that
   meets the addon. ::deep because the element is RadzenNumeric's, not this component's. */
.tm-act-edit-panel[b-nfduqp6n4i]  .input-group > .rz-numeric {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: auto;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ---------------- Task Output (2026-10-29 design) ---------------- */

.tm-out-tiles[b-nfduqp6n4i] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 767.98px) {
    .tm-out-tiles[b-nfduqp6n4i] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tm-out-tile[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

/* The one tile about the chosen day rather than the whole task (2026-11-05): azure instead of the theme's teal, so it
   reads as different from the all-days tiles beside it. */
.tm-out-tile.is-day[b-nfduqp6n4i] {
    background: rgba(var(--tblr-azure-rgb), 0.08);
    border-color: rgba(var(--tblr-azure-rgb), 0.45);
}

    .tm-out-tile.is-day .tm-tile-icon[b-nfduqp6n4i] {
        color: var(--tblr-azure);
        background: rgba(var(--tblr-azure-rgb), 0.16);
    }

    .tm-out-tile.is-day .tm-out-figure[b-nfduqp6n4i] {
        color: var(--tblr-azure);
    }

.tm-out-figure[b-nfduqp6n4i] {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tblr-primary);
}

.tm-out-hint[b-nfduqp6n4i] {
    font-size: 0.72rem;
    color: var(--tblr-secondary);
}

.tm-out-of[b-nfduqp6n4i] {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--tblr-secondary);
}

/* The day: a pill, a picker when the task runs over more than one day. */
.tm-day[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    white-space: nowrap;
    color: var(--tblr-body-color);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.35);
    border-radius: 999px;
}

    .tm-day:disabled[b-nfduqp6n4i] {
        opacity: 1;
        cursor: default;
    }

.tm-day-menu[b-nfduqp6n4i] {
    min-width: 16rem;
    max-height: 20rem;
    overflow-y: auto;
}

.tm-out-act[b-nfduqp6n4i] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .tm-out-act + .tm-out-act[b-nfduqp6n4i] {
        margin-top: 0.75rem;
    }

.tm-out-act-row[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
}

.tm-out-act-body[b-nfduqp6n4i] {
    padding: 1rem;
    border-top: 1px solid var(--tblr-border-color);
}

.tm-out-toggle[b-nfduqp6n4i] {
    flex: none;
}

/* The activity's done ring. */
.tm-ring[b-nfduqp6n4i] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.7rem;
    color: transparent;
    border: 1.5px solid var(--tblr-secondary);
    border-radius: 50%;
}

    .tm-ring.is-on[b-nfduqp6n4i] {
        color: #fff;
        background: var(--tblr-primary);
        border-color: var(--tblr-primary);
    }

/* The circle that ticks an activity for approval (2026-11-05), and the empty slot that keeps names aligned. */
.tm-pick[b-nfduqp6n4i],
.tm-pick-slot[b-nfduqp6n4i] {
    flex: none;
    width: 1.35rem;
    height: 1.35rem;
}

.tm-pick[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.8rem;
    color: transparent;
    background: var(--tblr-bg-surface);
    border: 1.5px solid var(--tblr-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

    .tm-pick:hover[b-nfduqp6n4i],
    .tm-pick:focus-visible[b-nfduqp6n4i] { border-color: var(--tblr-primary); }

    .tm-pick.is-on[b-nfduqp6n4i] {
        color: #fff;
        background: var(--tblr-primary);
        border-color: var(--tblr-primary);
    }

    .tm-pick:disabled[b-nfduqp6n4i] { cursor: default; opacity: 0.6; }

.tm-out-act.is-picked[b-nfduqp6n4i] { border-color: var(--tblr-primary); }

@media (prefers-reduced-motion: reduce) {
    .tm-pick[b-nfduqp6n4i] { transition: none; }
}

/* One worker's record card. */
.tm-rec[b-nfduqp6n4i] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    overflow: hidden;
}

    /* overflow: hidden keeps the rounded corners, but it cut the record's More actions menu off at the card's edge
       (2026-11-05). While that menu is open the card lets it out. */
    .tm-rec:has(.tm-row-menu)[b-nfduqp6n4i] {
        overflow: visible;
    }

    .tm-rec.is-editing[b-nfduqp6n4i] {
        border-color: var(--tblr-primary);
    }

.tm-rec-row[b-nfduqp6n4i] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 0.85rem 1rem;
}

    .tm-rec-row .to-avatar[b-nfduqp6n4i] {
        flex: none;
        width: 2rem;
        height: 2rem;
        margin: 0;
        font-size: 0.7rem;
        border: 1px solid var(--tblr-primary);
    }

.tm-rec-figure[b-nfduqp6n4i] {
    flex: none;
    min-width: 6.5rem;
}

.tm-rec-output[b-nfduqp6n4i] {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tm-rec-review[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    font-size: 0.8rem;
    background: none;
    border: 0;
}

    .tm-rec-review.tone-high[b-nfduqp6n4i] { color: #f76707; }
    .tm-rec-review.tone-cancelled[b-nfduqp6n4i] { color: #d63939; }
    .tm-rec-review.tone-completed[b-nfduqp6n4i] { color: #2fb344; }
    .tm-rec-review.tone-low[b-nfduqp6n4i] { color: var(--tblr-secondary); }
    .tm-rec-review.tone-link[b-nfduqp6n4i] { color: var(--tblr-primary); }

.tm-rec-adjust[b-nfduqp6n4i] {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    color: var(--tblr-primary);
    background: none;
    border: 0;
}

/* "Add output" on a worker with no record this day (2026-11-11): a supervisor or manager records it for them. */
.tm-rec-add[b-nfduqp6n4i] {
    flex: none;
    margin-inline-start: 0.5rem;
    color: var(--tblr-primary);
    border-color: rgba(var(--tblr-primary-rgb), 0.45);
}

/* Edit Task: dates refused because output is recorded on days they leave out. */
.tm-edit-blocked[b-nfduqp6n4i] {
    line-height: 1.45;
}

.tm-edit-blocked-days[b-nfduqp6n4i],
.tm-edit-blocked-steps[b-nfduqp6n4i] {
    margin: 0.35rem 0 0;
    padding-left: 1.25rem;
}

.tm-edit-blocked-days li + li[b-nfduqp6n4i],
.tm-edit-blocked-steps li + li[b-nfduqp6n4i] {
    margin-top: 0.15rem;
}

.tm-edit-blocked-note[b-nfduqp6n4i] {
    opacity: 0.85;
}

.tm-rec-stamp[b-nfduqp6n4i] {
    margin: 0.3rem 0 0.75rem;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
}

.tm-rec-details[b-nfduqp6n4i] {
    padding: 0.85rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border-top: 1px solid var(--tblr-border-color);
}

.tm-rec-base[b-nfduqp6n4i] {
    font-weight: 600;
    color: var(--tblr-primary);
}

.tm-rec-table[b-nfduqp6n4i] {
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

/* Sized to its content: a fixed 8rem left the number about three characters once a long unit ("Volume") took
   its share. The number keeps room for "1,234.56"; the unit takes what it needs and never wraps. */
.tm-rec-qty[b-nfduqp6n4i] {
    width: auto;
    flex-wrap: nowrap;
}

    .tm-rec-qty > .form-control[b-nfduqp6n4i] {
        flex: 0 0 6.5rem;
        width: 6.5rem;
        min-width: 0;
        text-align: right;
    }

    .tm-rec-qty > .input-group-text[b-nfduqp6n4i] {
        white-space: nowrap;
    }

.tm-row-menu[b-nfduqp6n4i] {
    left: 0;
    right: auto;
}

/* Adjust Pay. */
.tm-pay[b-nfduqp6n4i] {
    padding: 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.06);
    border-top: 1px solid var(--tblr-border-color);
}

.tm-pay-sum[b-nfduqp6n4i] {
    width: min(100%, 22rem);
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    background: rgba(var(--tblr-primary-rgb), 0.08);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.35);
    border-radius: 10px;
}

    .tm-pay-sum > div + div[b-nfduqp6n4i] {
        margin-top: 0.2rem;
    }

.tm-pay-total[b-nfduqp6n4i] {
    padding-top: 0.4rem;
    margin-top: 0.4rem !important;
    font-weight: 600;
    border-top: 1px solid rgba(var(--tblr-primary-rgb), 0.35);
}

/* Bottom: the workers' photos and the whole task's cost. */
/* A record's worker remarks and photos, under its table (2026-12-02). The remarks are read-only on the web, so a
   field-looking box rather than an input, with the design's placeholder when the worker wrote none. */
.tm-rec-extras[b-nfduqp6n4i] { margin-top: 0.85rem; }

    .tm-rec-extras + .tm-rec-extras[b-nfduqp6n4i] {
        padding-top: 0.85rem;
        border-top: 1px solid var(--tblr-border-color);
    }

.tm-rec-worker-remarks[b-nfduqp6n4i] {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 6px;
    background: var(--tblr-bg-surface);
    font-size: 0.875rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

    .tm-rec-worker-remarks.is-empty[b-nfduqp6n4i] { color: var(--tblr-secondary); }

.tm-rec-extras .tm-out-photos[b-nfduqp6n4i] {
    position: relative;
    padding-bottom: 1.75rem;
    background: var(--tblr-bg-surface);
}

/* "1/5" in the photo box's bottom-right corner (2026-12-02). */
.tm-photo-count[b-nfduqp6n4i] {
    position: absolute;
    right: 0.75rem;
    bottom: 0.4rem;
    color: var(--tblr-secondary);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.tm-out-photos[b-nfduqp6n4i] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px dashed var(--tblr-border-color);
    border-radius: 10px;
}

    .tm-out-photos img[b-nfduqp6n4i] {
        width: 6rem;
        height: 5rem;
        object-fit: cover;
        border-radius: 8px;
    }

.tm-photo-thumb[b-nfduqp6n4i] {
    padding: 0;
    border: 0;
    background: none;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.15s, box-shadow 0.15s;
}

    .tm-photo-thumb:hover[b-nfduqp6n4i],
    .tm-photo-thumb:focus-visible[b-nfduqp6n4i] {
        transform: translateY(-1px);
        box-shadow: 0 0 0 2px var(--tblr-primary);
    }

/* The photo viewer moved to Components/Shared/PhotoViewer.razor(.css) on 2026-11-11, shared with Crop setup. */

@media (prefers-reduced-motion: reduce) {
    .tm-photo-thumb[b-nfduqp6n4i] { transition: none; }
}

.tm-cost[b-nfduqp6n4i] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.06);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.35);
    border-radius: 10px;
}

.tm-cost-lines[b-nfduqp6n4i] {
    width: min(100%, 16rem);
    font-size: 0.85rem;
}

    .tm-cost-lines > div + div[b-nfduqp6n4i] {
        margin-top: 0.2rem;
    }

.tm-cost-items[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
}

    .tm-cost-items:disabled[b-nfduqp6n4i] {
        opacity: 1;
    }

.tm-cost-total[b-nfduqp6n4i] {
    padding-top: 0.4rem;
    margin-top: 0.4rem !important;
    font-weight: 600;
    border-top: 1px solid rgba(var(--tblr-primary-rgb), 0.35);
}

    .tm-cost-total span:last-child[b-nfduqp6n4i] {
        color: var(--tblr-primary);
    }

/* Marked as completed: stays at the bottom of the panel while the records scroll. */
.tm-foot[b-nfduqp6n4i] {
    position: sticky;
    bottom: -1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    background: var(--tblr-bg-surface);
    border-top: 1px solid var(--tblr-border-color);
}

/* "From template …" under the Task Setup heading. */
.tm-origin[b-nfduqp6n4i] { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; font-size: 0.875rem; }

/* Under a record's review badge: who signed off, or why it was cancelled (2026-11-02). */
.tm-rec-sub[b-nfduqp6n4i] {
    max-width: 14rem;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-rec-cancelled td[b-nfduqp6n4i] { color: var(--tblr-secondary); }
    .tm-rec-cancelled .tm-rec-qty > .form-control[b-nfduqp6n4i] { text-decoration: line-through; }

/* Add Worker Output (2026-11-02 design; layout 2026-12-01). */
.tm-add-static[b-nfduqp6n4i] { min-height: 2.25rem; font-size: 0.875rem; background: var(--tblr-bg-surface-secondary); }

/* The record's day, beside the dialog title. */
.tm-add-day[b-nfduqp6n4i] {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    vertical-align: middle;
    color: var(--tblr-blue);
    background: color-mix(in srgb, var(--tblr-blue) 12%, transparent);
    border-radius: var(--tblr-border-radius);
}

/* The pay band: tinted, full width of the dialog. */
.tm-add-pay[b-nfduqp6n4i] { background: color-mix(in srgb, var(--tblr-primary) 6%, var(--tblr-bg-surface)); }
.tm-add-pay-title[b-nfduqp6n4i] { font-weight: 600; }

/* The pay summary. No overflow clipping here: the info tip draws above the box. */
.tm-add-sum[b-nfduqp6n4i] {
    margin-top: 1rem;
    padding: 0.75rem 0.75rem 0.625rem;
    font-size: 0.8125rem;
    background: color-mix(in srgb, var(--tblr-primary) 10%, var(--tblr-bg-surface));
    border: 1px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
    border-radius: var(--tblr-border-radius-lg);
}
.tm-add-sum-row[b-nfduqp6n4i] { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .tm-add-sum-row + .tm-add-sum-row[b-nfduqp6n4i] { margin-top: 0.25rem; }
.tm-add-sum-total[b-nfduqp6n4i] {
    margin-top: 0.5rem !important;
    padding-top: 0.5rem;
    border-top: 1px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
}
    .tm-add-sum-total > span:last-child[b-nfduqp6n4i] { font-size: 1rem; font-weight: 600; }
.tm-add-sum-note[b-nfduqp6n4i] { margin-top: 0.375rem; font-size: 0.75rem; color: var(--tblr-secondary); }

/* A hover (or keyboard focus) tip on an info icon: a dark bubble above, pointing down at the icon. CSS only, so it needs
   no tooltip initialisation and survives every re-render. The bubble starts a little left of the icon's label ("Base
   pay") rather than centring on the icon, which put half of it outside the dialog, and off screen on a phone. */
.tm-tip[b-nfduqp6n4i] { position: relative; display: inline-flex; margin-left: 0.25rem; font-size: 0.8125rem; color: var(--tblr-secondary); cursor: help; outline: none; }
    .tm-tip:focus-visible[b-nfduqp6n4i] { border-radius: 50%; box-shadow: 0 0 0 2px var(--tblr-primary); }
.tm-tip-text[b-nfduqp6n4i] {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: -4.25rem;
    z-index: 10;
    width: max-content;
    max-width: 17rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: left;
    color: #fff;
    background: #1f2937;
    border-radius: var(--tblr-border-radius);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0.12s ease;
}
    .tm-tip-text[b-nfduqp6n4i]::after {
        content: "";
        position: absolute;
        top: 100%;
        /* Back over the icon: the bubble's offset plus half the icon. */
        left: calc(4.25rem + 0.4rem);
        border: 5px solid transparent;
        border-top-color: #1f2937;
        transform: translateX(-50%);
    }
.tm-tip:hover .tm-tip-text[b-nfduqp6n4i],
.tm-tip:focus .tm-tip-text[b-nfduqp6n4i] { opacity: 1; visibility: visible; }

/* Rescheduled and duplicated-from flags in the Manage header (2026-11-03). */
.tm-flag[b-nfduqp6n4i] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 999px;
    white-space: nowrap;
}

    .tm-flag.tone-rescheduled[b-nfduqp6n4i] {
        color: #ae3ec9;
        background: rgba(174, 62, 201, 0.08);
        border-color: rgba(174, 62, 201, 0.3);
    }

    a.tm-flag:hover[b-nfduqp6n4i] { text-decoration: none; color: var(--tblr-primary); }

/* The upload tile at the end of the photo strip (2026-11-03). */
.tm-photo-add[b-nfduqp6n4i] {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 6rem;
    height: 5rem;
    margin: 0;
    font-size: 1.25rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.06);
    border: 1px dashed rgba(var(--tblr-primary-rgb), 0.5);
    border-radius: 8px;
    cursor: pointer;
}

    .tm-photo-add:hover[b-nfduqp6n4i] { background: rgba(var(--tblr-primary-rgb), 0.12); }
    .tm-photo-add.is-busy[b-nfduqp6n4i] { cursor: progress; opacity: 0.8; }
    .tm-photo-add .small[b-nfduqp6n4i] { font-size: 0.7rem; }

/* Edit Task (2026-11-04): the task's crop and place at the top of the dialog. */
.tm-edit-crop[b-nfduqp6n4i] {
    padding: 0.75rem 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.08);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.3);
    border-radius: 10px;
}

/* Edit Task: a date picker whose field has an error (Radzen renders it, so ::deep). */
[b-nfduqp6n4i] .rz-datepicker.tm-field-invalid,
[b-nfduqp6n4i] .tm-field-invalid .rz-inputtext {
    border-color: var(--tblr-danger) !important;
}

.input-group.is-invalid > .input-group-text[b-nfduqp6n4i] { border-color: var(--tblr-danger); }

/* Task Setup › Agro Inputs / Equipment / Fleet modal (2026-11-04). The tiles are buttons now. */
button.tm-tile[b-nfduqp6n4i] {
    width: 100%;
    text-align: start;
    color: inherit;
    background: transparent;
}

.tm-res-add[b-nfduqp6n4i] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-color: transparent;
}

    .tm-res-add:hover[b-nfduqp6n4i] { background: rgba(var(--tblr-primary-rgb), 0.2); }

.tm-res-line[b-nfduqp6n4i] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .tm-res-line + .tm-res-line[b-nfduqp6n4i] { margin-top: 0.5rem; }

.tm-res-badge[b-nfduqp6n4i] {
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    background: rgba(var(--tblr-secondary-rgb, 102, 115, 130), 0.12);
    border-radius: 6px;
}

    .tm-res-badge.is-category[b-nfduqp6n4i] {
        color: #2fb344;
        background: rgba(47, 179, 68, 0.12);
    }

.tm-res-menu[b-nfduqp6n4i] {
    min-width: 10rem;
}

.tm-res-empty[b-nfduqp6n4i] {
    padding: 1.5rem;
    text-align: center;
    color: var(--tblr-secondary);
    border: 1px dashed var(--tblr-border-color);
    border-radius: 10px;
}

.tm-res-summary[b-nfduqp6n4i] {
    padding: 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

/* Output bed by bed (2026-11-16): one small input per bed of the task's planting, under the record or in Add
   Worker Output; the saved figures as chips when the record is not being edited. */
.tm-beds[b-nfduqp6n4i] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 0.5rem 0.75rem;
}

.tm-bed-label[b-nfduqp6n4i] {
    display: block;
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
}

.tm-bed .form-control[b-nfduqp6n4i] {
    min-width: 0;
    text-align: right;
}

.tm-bed-chip[b-nfduqp6n4i] {
    padding: 0.125rem 0.5rem;
    font-size: 0.8125rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 999px;
    white-space: nowrap;
}

.tm-beds:has(> .tm-bed-chip)[b-nfduqp6n4i] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.tm-rec-beds-row > td[b-nfduqp6n4i] {
    padding-top: 0;
    border-top: 0;
}

/* A record entered by bed (owner, 2026-11-19): a row per bed, then the Total row that is approved. */
.tm-rec-bed td[b-nfduqp6n4i] {
    border-bottom-style: dashed;
}

    .tm-rec-bed td:nth-child(2)[b-nfduqp6n4i] {
        padding-left: 1.5rem;
        color: var(--tblr-secondary);
    }

.tm-rec-total td[b-nfduqp6n4i] {
    font-weight: 600;
    background: var(--tblr-bg-surface-secondary);
}

/* VIEW ONLY (2026-11-24): a farm supervisor on a task not assigned to them. Every button is hidden except the ones that
   only move around or reveal: back, close, the tabs, the resource tiles, the output day, a row's expand and details,
   photos and their viewer, the cost breakdown. Fields are disabled in the markup (no edit permission). ::deep so
   buttons rendered by child markup are covered too. */
.tm-readonly[b-nfduqp6n4i]  button:not(.tm-back):not(.tm-nav):not(.btn-close):not(.tm-tab):not(.tm-tile):not(.tm-day):not(.tm-out-toggle):not(.tm-rec-review):not(.tm-photo-thumb):not(.tm-viewer-nav):not(.tm-cost-items):not(#tm-viewer-done) {
    display: none !important;
}

.tm-readonly[b-nfduqp6n4i]  .tm-photo-add,
.tm-readonly[b-nfduqp6n4i]  label[for^="tm-photo-input"] {
    display: none !important;
}
/* /Components/Shared/TaskSidePanel.razor.rz.scp.css */
/* The task side panel (Components/Shared/TaskSidePanel), moved from Task Overview's stylesheet with it on 2026-11-11.
   The badge, avatar and flag rules are also in TaskScheduler.razor.css: the board and the list use them too, and scoped
   CSS reaches only its own component's markup. */

/* Overlapping initials, as the design's avatar stack. */
.to-avatars[b-sxtgbtava7] {
    display: inline-flex;
    align-items: center;
}

.to-avatar[b-sxtgbtava7] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-inline-start: -0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--tblr-primary);
    /* Solid, not a translucent tint: each avatar covers the one before it, as in the design, rather than
       letting it show through. Later avatars come later in the DOM, so they already sit on top. */
    background: color-mix(in srgb, var(--tblr-primary) 14%, var(--tblr-bg-surface));
    border: 2px solid var(--tblr-bg-surface);
    border-radius: 50%;
}

    .to-avatar:first-child[b-sxtgbtava7] {
        margin-inline-start: 0;
    }

.to-avatar-more[b-sxtgbtava7] {
    color: var(--tblr-primary);
    background: var(--tblr-bg-surface);
    border-color: var(--tblr-primary);
    border-width: 1px;
}

/* ---------------- Task side panel (2026-10-20 design) ---------------- */

.to-peek[b-sxtgbtava7] {
    width: min(42rem, 100vw);
    background: var(--tblr-bg-surface-secondary);
    /* Tabler hides a closed offcanvas with visibility at once, which would cut the slide-out; hold it until the
       transform has finished. Opening shows it at once. */
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s, width 0.3s ease-in-out;
    overflow-x: hidden;
}

    /* MANAGE: the panel widens for TaskManage's two-column rows. */
    .to-peek.is-wide[b-sxtgbtava7] {
        width: min(62rem, 100vw);
    }

    .to-peek.show[b-sxtgbtava7] {
        visibility: visible;
        transition: transform 0.3s ease-in-out, visibility 0s, width 0.3s ease-in-out;
    }

/* The summary and Manage views: each fills the panel and keeps the body's own scrolling. */
.to-view[b-sxtgbtava7] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* MANAGE slides the next view in from the right; Back to summary slides the summary back from the left. */
.to-view-next[b-sxtgbtava7] {
    animation: to-view-in-next-b-sxtgbtava7 0.3s ease-out;
}

.to-view-back[b-sxtgbtava7] {
    animation: to-view-in-back-b-sxtgbtava7 0.3s ease-out;
}

@keyframes to-view-in-next-b-sxtgbtava7 {
    from { transform: translateX(100%); opacity: 0.4; }
    to { transform: none; opacity: 1; }
}

@keyframes to-view-in-back-b-sxtgbtava7 {
    from { transform: translateX(-100%); opacity: 0.4; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .to-view-next[b-sxtgbtava7],
    .to-view-back[b-sxtgbtava7] {
        animation: none;
    }

    .to-peek[b-sxtgbtava7],
    .to-peek.show[b-sxtgbtava7] {
        transition: none;
    }
}

/* The backdrop is always rendered too; faded out it must not catch clicks meant for the page. */
.to-peek-backdrop:not(.show)[b-sxtgbtava7] {
    pointer-events: none;
}

/* The host's back arrow (OnBack; Task Setup: back to the activity panel), TaskManage's look so the two read the same. */
.to-peek-back[b-sxtgbtava7] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 1.1rem;
    color: #fff;
    background: var(--tblr-primary);
    border: 0;
    border-radius: 50%;
}

    .to-peek-back:hover[b-sxtgbtava7] {
        color: #fff;
        filter: brightness(0.92);
    }

.to-peek-body[b-sxtgbtava7] {
    padding: 0.75rem;
    /* Scrolling past the end of the panel stops there rather than passing to the page (2026-11-06). */
    overscroll-behavior: contain;
}

.to-peek-card[b-sxtgbtava7] {
    padding: 1.25rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.to-peek-head[b-sxtgbtava7] {
    padding-bottom: 0;
}

.to-peek-code[b-sxtgbtava7] {
    padding: 0.1rem 0.5rem;
    font-size: 0.78rem;
    color: var(--tblr-primary);
    border: 1px solid var(--tblr-primary);
    border-radius: 6px;
}

.to-peek-badge[b-sxtgbtava7] {
    --tone: #868e96;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    white-space: nowrap;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    border-radius: 4px;
}

    .to-peek-badge.tone-high[b-sxtgbtava7] { --tone: #f76707; }
    .to-peek-badge.tone-medium[b-sxtgbtava7] { --tone: #f59f00; }
    .to-peek-badge.tone-low[b-sxtgbtava7] { --tone: #667382; }
    .to-peek-badge.tone-todo[b-sxtgbtava7] { --tone: #f76707; }
    .to-peek-badge.tone-progress[b-sxtgbtava7] { --tone: #206bc4; }
    .to-peek-badge.tone-completed[b-sxtgbtava7] { --tone: #2fb344; }
    .to-peek-badge.tone-approved[b-sxtgbtava7] { --tone: #ae3ec9; }
    .to-peek-badge.tone-cancelled[b-sxtgbtava7] { --tone: #d63939; }
    .to-peek-badge.tone-incomplete[b-sxtgbtava7] { --tone: #d6336c; }
    /* Task statuses (owner, 2026-11-26), as on Task Overview's board (Common/Tasks/TaskStatusDisplay). */
    .to-peek-badge.tone-task-upcoming[b-sxtgbtava7],
    .to-peek-badge.tone-task-progress[b-sxtgbtava7] { --tone: #2fb344; }
    .to-peek-badge.tone-task-overdue[b-sxtgbtava7] { --tone: #d63939; }
    .to-peek-badge.tone-task-pm[b-sxtgbtava7],
    .to-peek-badge.tone-task-psa[b-sxtgbtava7] { --tone: #4299e1; }
    .to-peek-badge.tone-task-done[b-sxtgbtava7] { --tone: #0f5c2b; background: #a6e6bd; }   /* Completed: #a6e6bd fill, dark green text */
    .to-peek-badge.tone-task-cancelled[b-sxtgbtava7] { --tone: #868e96; }

.to-peek-actions[b-sxtgbtava7] {
    white-space: nowrap;
    border-radius: 8px;
}

.to-peek-x[b-sxtgbtava7] {
    flex: none;
    margin-top: 0.55rem;
}

.to-peek-title[b-sxtgbtava7] {
    margin: 0.75rem 0 0.15rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.to-peek-box[b-sxtgbtava7] {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

.to-peek-crop[b-sxtgbtava7] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    color: #d63939;
    background: rgba(214, 57, 57, 0.1);
    border-radius: 50%;
}

.to-peek-stage[b-sxtgbtava7] {
    display: inline-block;
    margin-top: 0.15rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    color: #2fb344;
    background: rgba(47, 179, 68, 0.12);
    border-radius: 4px;
}

/* Underlined tabs along the bottom of the header card. */
/* ---------------- Task side panel summary (2026-10-28 design) ---------------- */

.to-sum-avatars .to-avatar[b-sxtgbtava7] {
    width: 2.4rem;
    height: 2.4rem;
    margin-inline-start: -0.6rem;
    font-size: 0.8rem;
}

    .to-sum-avatars .to-avatar:first-child[b-sxtgbtava7] {
        margin-inline-start: 0;
    }

.to-peek-heading[b-sxtgbtava7] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.6rem;
    row-gap: 0.15rem;
}

.to-peek-code[b-sxtgbtava7] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tblr-primary);
}

    .to-peek-code:hover[b-sxtgbtava7] {
        text-decoration: underline;
    }

.to-sum-manage[b-sxtgbtava7] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tblr-primary);
    background: none;
    border: 0;
}

    .to-sum-manage:hover[b-sxtgbtava7] {
        text-decoration: underline;
    }

.to-sum-crop[b-sxtgbtava7] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.to-sum-progress[b-sxtgbtava7] {
    padding: 0.85rem 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.1);
    border-radius: 10px;
}

    .to-sum-progress .progress[b-sxtgbtava7] {
        background: var(--tblr-bg-surface);
    }

.to-sum-percent[b-sxtgbtava7] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tblr-primary);
}

.to-sum-label[b-sxtgbtava7] {
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
}

.to-sum-info[b-sxtgbtava7] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

.to-sum-icon[b-sxtgbtava7] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.25rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border-radius: 8px;
}

    .to-sum-icon.tone-blue[b-sxtgbtava7] {
        color: #1c7ed6;
        background: rgba(28, 126, 214, 0.1);
    }

    .to-sum-icon.tone-green[b-sxtgbtava7] {
        color: var(--tblr-primary);
        background: rgba(var(--tblr-primary-rgb), 0.12);
    }

/* Rescheduled and duplicated-from flags, on the board's cards and in the panel (2026-11-03). */
.to-flag[b-sxtgbtava7] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.05rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 999px;
    white-space: nowrap;
}

    .to-flag.tone-rescheduled[b-sxtgbtava7] {
        color: #ae3ec9;
        background: rgba(174, 62, 201, 0.08);
        border-color: rgba(174, 62, 201, 0.3);
    }

    a.to-flag:hover[b-sxtgbtava7] { text-decoration: none; color: var(--tblr-primary); }

.to-cancelled[b-sxtgbtava7] {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: #d63939;
    background: rgba(214, 57, 57, 0.06);
    border-radius: 8px;
}

/* /Features/Assets/AssetOverview/AssetOverviewPage.razor.rz.scp.css */
/* Equipment / Fleet Overview: the Crop Overview's tinted-icon tiles, and a bar list for "by type". */

.ao-select[b-xdz4kjnfsa] {
    width: auto;
    min-width: 10rem;
}

/* ---------------- Tiles ---------------- */

.ao-stats[b-xdz4kjnfsa] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .ao-stats[b-xdz4kjnfsa] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ao-stats[b-xdz4kjnfsa] {
        grid-template-columns: minmax(0, 1fr);
    }

    .ao-select[b-xdz4kjnfsa] {
        width: 100%;
    }
}

.ao-tile[b-xdz4kjnfsa] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 5.5rem;
    padding: 0.85rem 1rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.ao-tile-icon[b-xdz4kjnfsa] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 8px;
    font-size: 1.35rem;
}

.ao-tile-icon.is-blue[b-xdz4kjnfsa]   { color: #206bc4; background: rgba(32, 107, 196, 0.1); }
.ao-tile-icon.is-green[b-xdz4kjnfsa]  { color: #2fb344; background: rgba(47, 179, 68, 0.1); }
.ao-tile-icon.is-orange[b-xdz4kjnfsa] { color: #f76707; background: rgba(247, 103, 7, 0.1); }
.ao-tile-icon.is-red[b-xdz4kjnfsa]    { color: #d63939; background: rgba(214, 57, 57, 0.1); }

.ao-tile-label[b-xdz4kjnfsa] {
    color: var(--tblr-secondary);
    font-size: 0.8rem;
}

.ao-tile-sub[b-xdz4kjnfsa] {
    color: var(--tblr-secondary);
    font-size: 0.75rem;
}

/* The period's running cost, the Costs card's headline figure. */
.ao-cost-total[b-xdz4kjnfsa] {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.ao-tile-value[b-xdz4kjnfsa] {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
}

/* ---------------- Attention dots ---------------- */

.ao-dot[b-xdz4kjnfsa] {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
}

.ao-dot.is-red[b-xdz4kjnfsa]    { background: #d63939; }
.ao-dot.is-orange[b-xdz4kjnfsa] { background: #f76707; }
.ao-dot.is-yellow[b-xdz4kjnfsa] { background: #f59f00; }

/* ---------------- By type ---------------- */

.ao-bar-row[b-xdz4kjnfsa] {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 2.5rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.ao-bar-label[b-xdz4kjnfsa] {
    font-size: 0.875rem;
}

.ao-bar-track[b-xdz4kjnfsa] {
    height: 0.6rem;
    border-radius: 4px;
    background: var(--tblr-bg-surface-secondary);
    overflow: hidden;
}

.ao-bar-fill[b-xdz4kjnfsa] {
    height: 100%;
    border-radius: 4px;
    background: var(--tblr-primary);
}

.ao-bar-value[b-xdz4kjnfsa] {
    text-align: right;
    font-weight: 600;
}

/* Rental, service, repair and fuel two by two: the card is too narrow for the datagrid's own 15rem columns. */
.ao-cost-grid[b-xdz4kjnfsa] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* /Features/Assets/AssetSetup/AssetSetupPage.razor.rz.scp.css */
/* Equipment / Fleet Setup: the Crop Overview's segmented control and toolbar, and a right-hand side panel
   (Figma "Add New Equipment", 617:19737) drawn without JavaScript: a fixed aside over a backdrop. */

/* ---------------- Toolbar ---------------- */

.as-toolbar[b-kdtkku6tsx] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1rem 0;
}

.as-filters[b-kdtkku6tsx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.as-select[b-kdtkku6tsx] {
    width: auto;
    min-width: 9rem;
}

.as-search[b-kdtkku6tsx] {
    position: relative;
}

    .as-search input[b-kdtkku6tsx] {
        padding-left: 2rem;
        min-width: 14rem;
    }

    .as-search i[b-kdtkku6tsx] {
        position: absolute;
        left: 0.65rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--tblr-secondary);
        pointer-events: none;
    }

@media (max-width: 575.98px) {
    .as-filters[b-kdtkku6tsx],
    .as-search[b-kdtkku6tsx],
    .as-search input[b-kdtkku6tsx],
    .as-select[b-kdtkku6tsx] {
        width: 100%;
        min-width: 0;
    }
}

/* ---------------- Segmented control ---------------- */

.as-segment[b-kdtkku6tsx] {
    display: inline-flex;
    padding: 0.2rem;
    gap: 0.2rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

.as-segment-btn[b-kdtkku6tsx] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--tblr-secondary);
    font-weight: 500;
}

    .as-segment-btn.active[b-kdtkku6tsx] {
        background: var(--tblr-bg-surface);
        color: var(--tblr-body-color);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    }

    .as-segment-btn:disabled[b-kdtkku6tsx] {
        opacity: 0.6;
    }

.as-segment-sm .as-segment-btn[b-kdtkku6tsx] {
    padding: 0.3rem 0.8rem;
}

/* ---------------- Table ---------------- */

.as-row[b-kdtkku6tsx] {
    cursor: pointer;
}

    .as-row:focus-visible[b-kdtkku6tsx] {
        outline: 2px solid var(--tblr-primary);
        outline-offset: -2px;
    }

/* The side panel itself is the shared .sp-* set in wwwroot/css/theme.css (also used by Components/Shared/AssetCheck*). */
/* /Features/Categories/CategoryAdmin/CategoryAdmin.razor.rz.scp.css */
/* The colour dot beside each category name. */
.category-swatch[b-lgmftc5usc] {
    display: inline-block;
    width: 0.875rem;
    height: 0.875rem;
    padding: 0;
    border-radius: 50%;
    vertical-align: middle;
}

/* The rename box: wide enough for a 50-character name, never wider than a phone screen. */
.category-edit-name[b-lgmftc5usc] {
    flex: 1 1 8rem;
    min-width: 0;
    max-width: 18rem;
}
/* /Features/CropCycles/CycleCreate/CropCycleCreate.razor.rz.scp.css */
/* New Planting (2026-10-27 design): a crop header, then steps | the step | Smart Insights. */

.np-back[b-b5dly4azvc] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.np-crop[b-b5dly4azvc] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.2rem;
    color: #d63939;
    background: rgba(214, 57, 57, 0.1);
    border-radius: 50%;
}

.np-crop-sm[b-b5dly4azvc] {
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
}

.np-crop-name[b-b5dly4azvc] {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.np-chip[b-b5dly4azvc] {
    padding: 0.1rem 0.55rem;
    font-size: 0.78rem;
    color: #e8590c;
    background: rgba(247, 103, 7, 0.1);
    border-radius: 999px;
}

.np-place[b-b5dly4azvc] {
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border-radius: 6px;
}

.np-layout[b-b5dly4azvc] {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr) 17rem;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1199.98px) {
    .np-layout[b-b5dly4azvc] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Steps ---- */

.np-step[b-b5dly4azvc] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    color: var(--tblr-body-color);
    background: none;
    border: 0;
    border-radius: 8px;
}

    .np-step + .np-step[b-b5dly4azvc] {
        margin-top: 0.75rem;
    }

    .np-step.is-current[b-b5dly4azvc] {
        background: rgba(var(--tblr-primary-rgb), 0.1);
    }

        .np-step.is-current .np-step-title[b-b5dly4azvc] {
            color: var(--tblr-primary);
        }

    .np-step:disabled[b-b5dly4azvc] {
        opacity: 1;
        cursor: default;
    }

.np-step-no[b-b5dly4azvc] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-weight: 600;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border-radius: 50%;
}

.np-step.is-current .np-step-no[b-b5dly4azvc],
.np-step.is-done .np-step-no[b-b5dly4azvc] {
    color: #fff;
    background: var(--tblr-primary);
}

/* ---- Map and the selected plots ---- */

.np-map[b-b5dly4azvc] {
    height: 26rem;
    border-radius: 12px;
    overflow: hidden;
}

.np-map-empty[b-b5dly4azvc] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
}

.np-selected[b-b5dly4azvc] {
    height: 26rem;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.np-selected-head[b-b5dly4azvc] {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.np-selected-list[b-b5dly4azvc] {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem;
}

.np-plot[b-b5dly4azvc] {
    padding: 0.85rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .np-plot + .np-plot[b-b5dly4azvc] {
        margin-top: 0.6rem;
    }

.np-plot-name[b-b5dly4azvc] {
    font-weight: 600;
    color: var(--tblr-primary);
}

.np-tag[b-b5dly4azvc] {
    padding: 0.05rem 0.5rem;
    font-size: 0.78rem;
    background: var(--tblr-border-color-light, #eef0f3);
    border-radius: 6px;
}

    .np-tag.is-muted[b-b5dly4azvc] {
        color: var(--tblr-secondary);
    }

/* ---- Smart Insights ---- */

.np-insight-icon[b-b5dly4azvc] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.3rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 8px;
}

.np-figure[b-b5dly4azvc] {
    height: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
}

.np-check-title[b-b5dly4azvc] {
    margin: 1.25rem 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.np-checks[b-b5dly4azvc] {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .np-checks li[b-b5dly4azvc] {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.3rem 0;
        font-size: 0.9rem;
        color: var(--tblr-secondary);
    }

        .np-checks li.is-done[b-b5dly4azvc] {
            color: var(--tblr-body-color);
        }

            .np-checks li.is-done .ti[b-b5dly4azvc] {
                color: var(--tblr-primary);
            }

/* A check item is a link to where it is fixed. */
.np-check-link[b-b5dly4azvc] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    text-align: start;
    color: inherit;
    background: none;
    border: 0;
}

    .np-check-link:hover span[b-b5dly4azvc] {
        color: var(--tblr-primary);
        text-decoration: underline;
    }

/* A little room above a section scrolled to. */
.np-anchor[b-b5dly4azvc] {
    scroll-margin-top: 1rem;
}

.np-tip[b-b5dly4azvc] {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    background: rgba(32, 107, 196, 0.08);
    border-radius: 8px;
}

/* ---- Step 2: the schedule ---- */

.np-option[b-b5dly4azvc] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    height: 100%;
    padding: 0.85rem 1rem;
    cursor: pointer;
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .np-option.is-on[b-b5dly4azvc] {
        border-color: var(--tblr-primary);
    }

    .np-option .form-check-input[b-b5dly4azvc] {
        flex: none;
        margin-top: 0.2rem;
    }

/* The supervisor dropdown stays inside its card (2026-11-24): Radzen's label does not shrink, so a long name or
   placeholder pushed the control past the card's edge. It now truncates with an ellipsis. */
.np-supervisor-pick[b-b5dly4azvc] {
    min-width: 0;
    max-width: 100%;
}

    .np-supervisor-pick[b-b5dly4azvc]  .rz-dropdown {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .np-supervisor-pick[b-b5dly4azvc]  .rz-dropdown-label,
    .np-supervisor-pick[b-b5dly4azvc]  .rz-placeholder {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.np-stage[b-b5dly4azvc] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

/* Bulk actions (2026-11-20): select-all, the action, its people, Apply. */
.np-bulk[b-b5dly4azvc] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.np-bulk-action[b-b5dly4azvc] {
    width: auto;
    min-width: 11rem;
}

.np-bulk-people[b-b5dly4azvc] {
    flex: 0 1 15rem;
    min-width: 11rem;
}

/* A stage's selection box sits outside its card, as the design draws it. */
.np-stage-row[b-b5dly4azvc] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

    .np-stage-row > .np-sel[b-b5dly4azvc] {
        margin-top: 1.1rem;
        flex-shrink: 0;
    }

.np-sel[b-b5dly4azvc] {
    margin: 0;
}

.np-task-head[b-b5dly4azvc],
.np-task[b-b5dly4azvc] {
    display: grid;
    grid-template-columns: 1.25rem 7rem minmax(0, 1fr) minmax(11rem, 13rem);
    gap: 1rem;
    align-items: center;
}

/* New Planting's Priority column (2026-11-23); Edit Planting has no such column. */
.np-stage.has-priority .np-task-head[b-b5dly4azvc],
.np-stage.has-priority .np-task[b-b5dly4azvc] {
    grid-template-columns: 1.25rem 7rem minmax(0, 1fr) minmax(11rem, 13rem) 4rem;
}

/* The switch is red when on: a high-priority task. */
.np-priority .form-check-input:checked[b-b5dly4azvc] {
    background-color: var(--tblr-red);
    border-color: var(--tblr-red);
}

.np-priority .form-check-input:focus[b-b5dly4azvc] {
    border-color: var(--tblr-red);
    box-shadow: 0 0 0 0.25rem rgba(var(--tblr-red-rgb), .25);
}

.np-task-head[b-b5dly4azvc] {
    margin: 0.75rem 0 0.4rem;
    padding: 0 1rem;
    font-size: 0.82rem;
    color: var(--tblr-secondary);
}

.np-task[b-b5dly4azvc] {
    padding: 0.75rem 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .np-task + .np-task[b-b5dly4azvc] {
        margin-top: 0.6rem;
    }

/* Switched off for this planting (2026-11-10): faded, but the switch stays clear so it can be put back. */
.np-stage.is-off[b-b5dly4azvc] {
    background: var(--tblr-bg-surface-secondary);
}

.np-task.is-off > :not(.np-assign-cell):not(.np-sel)[b-b5dly4azvc],
.np-stage.is-off .np-task-head[b-b5dly4azvc] {
    opacity: .45;
}

.np-task.is-off .ti[b-b5dly4azvc],
.np-task.is-off .fw-semibold[b-b5dly4azvc] {
    text-decoration: line-through;
    text-decoration-color: var(--tblr-secondary);
}

@media (max-width: 767.98px) {
    .np-task-head[b-b5dly4azvc] {
        display: none;
    }

    /* The selection box keeps its own column; everything else stacks beside it. */
    .np-task[b-b5dly4azvc],
    .np-stage.has-priority .np-task[b-b5dly4azvc] {
        grid-template-columns: 1.25rem minmax(0, 1fr);
        gap: 0.5rem 0.75rem;
    }

        .np-task > :not(.np-sel)[b-b5dly4azvc] {
            grid-column: 2;
        }

    .np-bulk-people[b-b5dly4azvc],
    .np-bulk-action[b-b5dly4azvc] {
        flex: 1 1 100%;
    }
}

.np-task-date[b-b5dly4azvc] {
    font-size: 0.88rem;
}

.np-cat[b-b5dly4azvc] {
    padding: 0.05rem 0.5rem;
    color: #1c7ed6;
    background: rgba(28, 126, 214, 0.1);
    border-radius: 4px;
}

    .np-cat.is-scout[b-b5dly4azvc] {
        color: #d6336c;
        background: rgba(214, 51, 108, 0.1);
    }

.np-assign-cell[b-b5dly4azvc] {
    position: relative;
}

/* "Assign a Supervisor": the supervisor assigns each task after creation. */
.np-pending[b-b5dly4azvc] {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    font-size: 0.82rem;
    color: #e8590c;
    background: rgba(247, 103, 7, 0.1);
    border-radius: 999px;
}

/* ---- Review planting summary ---- */

.np-review-head[b-b5dly4azvc] {
    align-items: flex-start;
}

.np-review-block[b-b5dly4azvc] {
    padding-left: 2rem;
}

.np-review-row[b-b5dly4azvc] {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--tblr-border-color-light, #eef0f3);
}

.np-tag.is-team[b-b5dly4azvc] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.1);
}

.np-assign[b-b5dly4azvc] {
    background-color: var(--tblr-bg-surface);
}

/* Covers the page under the open picker so an outside click closes it. */
.np-pick-backdrop[b-b5dly4azvc] {
    position: fixed;
    inset: 0;
    z-index: 5;
}

/* The people-or-teams picker, floating under the field. */
.np-pick[b-b5dly4azvc] {
    position: absolute;
    z-index: 6;
    top: 100%;
    right: 0;
    width: min(18rem, 90vw);
    margin-top: 0.25rem;
    padding: 0.75rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.14);
}

.np-pick-list[b-b5dly4azvc] {
    max-height: 18rem;
    overflow-y: auto;
}

.np-pick-row[b-b5dly4azvc] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.3rem 0.25rem;
    font-size: 0.9rem;
    text-align: start;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 4px;
}

    .np-pick-row:hover[b-b5dly4azvc] {
        background: var(--tblr-bg-surface-secondary);
    }

.np-pick-child[b-b5dly4azvc] {
    padding-left: 1.6rem;
}

.np-pick-group[b-b5dly4azvc] {
    margin: 0.5rem 0 0.15rem;
    font-size: 0.78rem;
    color: var(--tblr-secondary);
}

.np-cb[b-b5dly4azvc] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    font-size: 0.7rem;
    color: transparent;
    border: 1.5px solid var(--tblr-border-color-dark, #c6ccd6);
    border-radius: 3px;
}

    .np-cb.is-on[b-b5dly4azvc],
    .np-cb.is-part[b-b5dly4azvc] {
        color: #fff;
        background: var(--tblr-primary);
        border-color: var(--tblr-primary);
    }

/* ---- Where in a plot the planting is (2026-11-16): the plot's beds and areas of the chosen crop ---- */

.np-area[b-b5dly4azvc] {
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px dashed var(--tblr-border-color);
}

.np-beds[b-b5dly4azvc] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

/* A bed: picked (filled), unpicked (outlined), or in another planting (struck through, not clickable). */
.np-bed[b-b5dly4azvc] {
    min-width: 1.9rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--tblr-secondary);
    cursor: pointer;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 6px;
}

.np-bed.is-on[b-b5dly4azvc] {
    color: #fff;
    background: var(--tblr-primary);
    border-color: var(--tblr-primary);
}

.np-bed.is-busy[b-b5dly4azvc] {
    text-decoration: line-through;
    cursor: not-allowed;
    background: var(--tblr-border-color-light, #eef0f3);
    opacity: 0.7;
}
/* /Features/Crops/CropOverview/CropFarmCardView.razor.rz.scp.css */
/* The Crop Distribution farm card. Scoped; RadzenIcon glyphs are reached with ::deep (see StatTile.razor's note).
   Status colours are the Farm Overview's, so a farm reads the same on both pages. */

.crop-farm-card[b-g9gwj4mf0f] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
    background: var(--tblr-bg-surface);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

    /* An inactive farm keeps its text, as in the design; its bars go grey (below). */

.farm-status[b-g9gwj4mf0f] {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.farm-status-dot[b-g9gwj4mf0f] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.farm-status-Active[b-g9gwj4mf0f] { color: #2fb344; }
.farm-status-PendingPlanting[b-g9gwj4mf0f] { color: #f59f00; }
.farm-status-Maintenance[b-g9gwj4mf0f] { color: #4299e1; }
.farm-status-Inactive[b-g9gwj4mf0f] { color: #868e96; }

.crop-farm-name[b-g9gwj4mf0f] {
    font-weight: 600;
    font-size: 1rem;
}

.crop-farm-address[b-g9gwj4mf0f] {
    color: var(--tblr-secondary);
    font-size: 0.8rem;
}

.crop-farm-figures[b-g9gwj4mf0f] {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.figure[b-g9gwj4mf0f] {
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    padding: 0.35rem 0.7rem 0.4rem;
    min-width: 5.5rem;
}

.figure-plants[b-g9gwj4mf0f] {
    background: rgba(var(--tblr-green-rgb), 0.1);
}

.figure-crops[b-g9gwj4mf0f] {
    background: rgba(var(--tblr-orange-rgb), 0.1);
}

.figure-value[b-g9gwj4mf0f] {
    font-weight: 700;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.figure-plants .figure-value[b-g9gwj4mf0f] { color: var(--tblr-green); }
.figure-crops .figure-value[b-g9gwj4mf0f] { color: var(--tblr-orange); }

.figure-label[b-g9gwj4mf0f] {
    font-size: 0.72rem;
    color: var(--tblr-secondary);
}

.crop-farm-none[b-g9gwj4mf0f] {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--tblr-secondary);
}

.crop-progress-list[b-g9gwj4mf0f] {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.crop-progress[b-g9gwj4mf0f] {
    --crop-color: var(--tblr-primary);
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
}

.crop-progress-name[b-g9gwj4mf0f] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crop-progress-ready[b-g9gwj4mf0f] {
    margin-left: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--tblr-primary);
}

.crop-progress-track[b-g9gwj4mf0f] {
    display: block;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--tblr-border-color-light, #e6e7e9);
    overflow: hidden;
}

/* One teal for every crop, as in the design (crop colours stay on the By crop cards); grey on an inactive farm. */
.crop-progress-fill[b-g9gwj4mf0f] {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--tblr-primary);
}

.crop-farm-card:has(.farm-status-Inactive) .crop-progress-fill[b-g9gwj4mf0f] {
    background: #9aa0ac;
}

.crop-progress-highlight .crop-progress-name[b-g9gwj4mf0f] {
    font-weight: 700;
}

.crop-farm-link[b-g9gwj4mf0f] {
    margin-top: auto;
    padding-top: 0.75rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

    .crop-farm-link[b-g9gwj4mf0f]  .rzi {
        font-size: 0.95rem;
    }
/* /Features/Crops/CropOverview/CropOverview.razor.rz.scp.css */
/* Crop Overview page layout — the 2026-10-07 design: tinted-icon tiles, a segmented tab control, and a
   toolbar of plain filters on the right. Tabler Icons glyphs (<i class="ti">) are this component's own
   elements, so no ::deep is needed for them. */

/* ---------------- Tiles ---------------- */

.co-stats[b-n7gm9d4082] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .co-stats[b-n7gm9d4082] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .co-stats[b-n7gm9d4082] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Top row (icon, figure, range picker), then the mini chart along the bottom edge. NOT overflow:hidden —
   the range dropdown's menu must be able to leave the tile; only the chart is clipped to the corners. */
.co-tile[b-n7gm9d4082] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 7.5rem;
    padding: 0.85rem 1rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.co-tile-top[b-n7gm9d4082] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.co-tile-picker[b-n7gm9d4082] {
    flex: none;
    margin-left: auto;
    line-height: 1;
}

/* The chart sits flush with the tile's sides and bottom, as in the design. The rounded corners are cut
   on the svg, NOT by clipping this wrapper: ApexCharts draws its hover tooltip as an HTML element beside
   the svg, and it has to be free to spill out of the tile — the dashboard's .kpi-spark, same reason. */
.co-tile-chart[b-n7gm9d4082] {
    margin: auto -1rem -0.85rem;
    padding-top: 0.25rem;
    height: 48px;
}

    .co-tile-chart[b-n7gm9d4082]  svg {
        clip-path: inset(0 round 0 0 11px 11px);
    }

/* A tile showing a tooltip is lifted, so the next tile does not paint over it. */
.co-tile:has(.apexcharts-tooltip.apexcharts-active)[b-n7gm9d4082] {
    z-index: 5;
}

.co-tile-icon[b-n7gm9d4082] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 8px;
    font-size: 1.35rem;
}

.co-tile-icon.is-blue[b-n7gm9d4082]   { color: #206bc4; background: rgba(32, 107, 196, 0.1); }
.co-tile-icon.is-orange[b-n7gm9d4082] { color: #f76707; background: rgba(247, 103, 7, 0.1); }
.co-tile-icon.is-green[b-n7gm9d4082]  { color: #2fb344; background: rgba(47, 179, 68, 0.1); }
.co-tile-icon.is-purple[b-n7gm9d4082] { color: #ae3ec9; background: rgba(174, 62, 201, 0.1); }

.co-tile-body[b-n7gm9d4082] {
    min-width: 0;
    flex: 1 1 auto;
}

.co-tile-label[b-n7gm9d4082] {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
}

.co-tile-value[b-n7gm9d4082] {
    display: block;
    margin-top: 0.15rem;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--tblr-body-color);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.co-tile-value:hover[b-n7gm9d4082] {
    color: var(--tblr-primary);
    text-decoration: none;
}

.co-tile-unit[b-n7gm9d4082] {
    margin-left: 0.3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tblr-secondary);
}

.co-tile-sub[b-n7gm9d4082] {
    font-size: 0.75rem;
    color: var(--tblr-secondary);
}

/* ---------------- Toolbar ---------------- */

.co-toolbar[b-n7gm9d4082] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

/* The segmented tab control: a light track, the active option raised on white. */
.co-segment[b-n7gm9d4082] {
    display: inline-flex;
    padding: 0.2rem;
    gap: 0.15rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
}

.co-segment-btn[b-n7gm9d4082] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: var(--tblr-secondary);
    background: transparent;
    border: 0;
    border-radius: 6px;
}

    .co-segment-btn:hover[b-n7gm9d4082] {
        color: var(--tblr-body-color);
    }

    .co-segment-btn.active[b-n7gm9d4082] {
        color: var(--tblr-body-color);
        background: var(--tblr-bg-surface);
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    }

    .co-segment-btn .ti[b-n7gm9d4082] {
        font-size: 1.05rem;
    }

.co-segment-sm .co-segment-btn[b-n7gm9d4082] {
    padding: 0.3rem 0.6rem;
    font-size: 0.82rem;
}

.co-filters[b-n7gm9d4082] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.co-select[b-n7gm9d4082] {
    width: auto;
    min-width: 12rem;
}

.co-search[b-n7gm9d4082] {
    position: relative;
    width: 20rem;
    max-width: 100%;
}

    .co-search .form-control[b-n7gm9d4082] {
        padding-right: 2.25rem;
    }

    .co-search .ti[b-n7gm9d4082] {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        color: var(--tblr-secondary);
        pointer-events: none;
    }

.crop-farm-grid[b-n7gm9d4082] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
}

/* Crop Distribution, by crop (feedback C9). */
.crop-dist-grid[b-n7gm9d4082] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
    gap: 1rem;
}

.crop-dist-card[b-n7gm9d4082] {
    --crop-color: var(--tblr-primary);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--tblr-border-color);
    border-top: 3px solid var(--crop-color);
    border-radius: 8px;
    background: var(--tblr-bg-surface);
}

.crop-dist-head[b-n7gm9d4082] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crop-dist-swatch[b-n7gm9d4082] {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--crop-color);
    flex: none;
}

.crop-dist-name[b-n7gm9d4082] {
    font-weight: 600;
    font-size: 1rem;
    color: var(--tblr-body-color);
}

.crop-dist-figures[b-n7gm9d4082] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

    .crop-dist-figures > div[b-n7gm9d4082] {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .crop-dist-figures .figure-value[b-n7gm9d4082] {
        font-size: 1.15rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .crop-dist-figures .figure-label[b-n7gm9d4082],
    .crop-dist-label[b-n7gm9d4082] {
        font-size: 0.72rem;
        color: var(--tblr-secondary);
    }

.crop-dist-label[b-n7gm9d4082] {
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: -0.3rem;
}

.crop-stage-bar[b-n7gm9d4082] {
    display: flex;
    gap: 2px;
    height: 0.6rem;
    border-radius: 999px;
    overflow: hidden;
    background: var(--tblr-bg-surface-secondary);
}

.crop-stage-seg[b-n7gm9d4082] {
    flex-basis: 0;
    min-width: 4px;
}

.crop-stage-seg-0[b-n7gm9d4082] { background: color-mix(in srgb, var(--crop-color) 35%, var(--tblr-bg-surface)); }
.crop-stage-seg-1[b-n7gm9d4082] { background: color-mix(in srgb, var(--crop-color) 55%, var(--tblr-bg-surface)); }
.crop-stage-seg-2[b-n7gm9d4082] { background: color-mix(in srgb, var(--crop-color) 75%, var(--tblr-bg-surface)); }
.crop-stage-seg-3[b-n7gm9d4082] { background: var(--crop-color); }
.crop-stage-seg-4[b-n7gm9d4082] { background: color-mix(in srgb, var(--crop-color) 70%, var(--tblr-body-color)); }

.crop-stage-legend[b-n7gm9d4082],
.crop-dist-farms[b-n7gm9d4082] {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.82rem;
}

.crop-stage-legend[b-n7gm9d4082] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0.9rem;
}

    .crop-stage-legend li[b-n7gm9d4082] {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

.crop-stage-key[b-n7gm9d4082] {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 2px;
}

.crop-dist-farms li[b-n7gm9d4082] {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.15rem 0;
}

/* ---------------- Crop Yield: the chart card ---------------- */

.yield-card[b-n7gm9d4082] {
    border-radius: 12px;
}

.yield-card-title[b-n7gm9d4082] {
    font-size: 1.15rem;
    font-weight: 600;
}

.yield-card-link[b-n7gm9d4082] {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
}

    .yield-card-link .ti[b-n7gm9d4082] {
        margin-left: 0.25rem;
        font-size: 0.95rem;
        vertical-align: -0.1em;
    }

/* ---------------- Crop Yield: Upcoming harvest table ---------------- */

/* The column titles on a grey band, as in the design. */
.upcoming-table thead th[b-n7gm9d4082] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border-bottom: 1px solid var(--tblr-border-color);
}

/* ---------------- Crop Yield: Recent Planted timeline ---------------- */

.recent-card[b-n7gm9d4082] {
    border-radius: 12px;
}

.recent-title[b-n7gm9d4082] {
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}

/* The line runs from the first dot to below the last, down the left. */
.recent-timeline[b-n7gm9d4082] {
    position: relative;
    margin: 0;
    padding: 0 0 0.75rem 1.4rem;
    list-style: none;
}

    .recent-timeline[b-n7gm9d4082]::before {
        content: "";
        position: absolute;
        top: 0.35rem;
        bottom: 0;
        left: 0.3rem;
        width: 2px;
        background: var(--tblr-primary);
    }

.recent-item[b-n7gm9d4082] {
    position: relative;
}

    .recent-item + .recent-item[b-n7gm9d4082] {
        margin-top: 1.1rem;
    }

    /* The dot, centred on the line and level with the crop name. */
    .recent-item[b-n7gm9d4082]::before {
        content: "";
        position: absolute;
        top: 0.3rem;
        left: calc(-1.4rem + 0.3rem + 1px - 0.3rem);
        width: 0.6rem;
        height: 0.6rem;
        border-radius: 50%;
        background: var(--tblr-primary);
    }

.recent-link[b-n7gm9d4082] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

    .recent-link:hover .recent-crop[b-n7gm9d4082] {
        color: var(--tblr-primary);
    }

.recent-main[b-n7gm9d4082] {
    min-width: 0;
}

.recent-crop[b-n7gm9d4082] {
    display: block;
    font-weight: 600;
    color: var(--tblr-body-color);
}

.recent-sub[b-n7gm9d4082] {
    display: block;
    font-size: 0.82rem;
    color: var(--tblr-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-farm[b-n7gm9d4082] {
    color: var(--tblr-primary);
}

.recent-date[b-n7gm9d4082] {
    padding-top: 0.1rem;
    font-size: 0.82rem;
    color: var(--tblr-secondary);
    white-space: nowrap;
}

.recent-ago[b-n7gm9d4082] {
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 6px;
}

/* The shared ListPager under the Crop Distribution grids. */
.co-pager[b-n7gm9d4082] {
    margin-top: 1.25rem;
}

/* The sortable column titles: plain text that keeps the header's look, with an arrow beside it. */
.upcoming-table .sort-btn[b-n7gm9d4082] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

    .upcoming-table .sort-btn:hover[b-n7gm9d4082],
    .upcoming-table .sort-btn.is-active[b-n7gm9d4082] {
        color: var(--tblr-body-color);
    }

    .upcoming-table .sort-btn .ti[b-n7gm9d4082] {
        font-size: 0.9rem;
        opacity: 0.6;
    }

    .upcoming-table .sort-btn.is-active .ti[b-n7gm9d4082] {
        opacity: 1;
        color: var(--tblr-primary);
    }
/* /Features/Crops/CropOverview/CropYieldChart.razor.rz.scp.css */
/* "Yield by Harvest Cycle", the 2026-10-08 design: outlined pills for the legend, a value axis on the left,
   one stem per harvest cycle, and a tinted, outlined bubble per crop cycle with its crop icon and weight.
   Band colours come from Tabler's theme variables, so the chart follows light and dark mode. RadzenIcon's
   <i> is a child component's element, so it is reached with ::deep. */

.band-Above[b-o32l6msood] { --band: var(--tblr-green); }
.band-Near[b-o32l6msood] { --band: var(--tblr-orange); }
.band-Below[b-o32l6msood] { --band: var(--tblr-red); }
.band-NoTarget[b-o32l6msood] { --band: var(--tblr-secondary); }

/* ---------------- Legend ---------------- */

.yield-legend[b-o32l6msood] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.band-pill[b-o32l6msood] {
    padding: 0.1rem 0.55rem;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--band);
    background: color-mix(in srgb, var(--band) 8%, var(--tblr-bg-surface));
    border: 1px solid var(--band);
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 0.12s;
}

    .band-pill:hover[b-o32l6msood] {
        background: color-mix(in srgb, var(--band) 16%, var(--tblr-bg-surface));
    }

    .band-pill:focus-visible[b-o32l6msood] {
        outline: 2px solid color-mix(in srgb, var(--band) 45%, transparent);
        outline-offset: 2px;
    }

    /* A hidden band: faded and struck through, still clickable to bring it back. */
    .band-pill.is-off[b-o32l6msood] {
        opacity: 0.45;
        text-decoration: line-through;
        background: var(--tblr-bg-surface);
    }

/* ---------------- Plot ---------------- */

.yield-scroll[b-o32l6msood] {
    overflow-x: auto;
    padding: 2rem 0 0.25rem; /* half a bubble above the top of the scale, inside the scroll box */
}

.yield-frame[b-o32l6msood] {
    --plot-height: 300px;
    display: flex;
}

/* The value axis: labels at their heights, centred on the line they name. */
.yield-y[b-o32l6msood] {
    position: relative;
    flex: none;
    width: 3rem;
    height: var(--plot-height);
}

.yield-tick[b-o32l6msood] {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--tblr-secondary);
    white-space: nowrap;
}

.yield-cols[b-o32l6msood] {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.yield-col[b-o32l6msood] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The stem runs the full height of the plot, through the bubbles. */
.yield-plot[b-o32l6msood] {
    position: relative;
    width: 100%;
    height: var(--plot-height);
}

    .yield-plot[b-o32l6msood]::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        border-left: 1px solid var(--tblr-border-color);
    }

.yield-bubble[b-o32l6msood] {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    color: var(--band);
    background: color-mix(in srgb, var(--band) 10%, var(--tblr-bg-surface));
    border: 2px solid var(--band);
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.12s;
}

    .yield-bubble:hover[b-o32l6msood],
    .yield-bubble:focus-visible[b-o32l6msood] {
        z-index: 2;
        transform: translate(-50%, -50%) scale(1.08);
        box-shadow: 0 2px 8px rgba(16, 24, 40, 0.15);
        text-decoration: none;
        outline: none;
    }

    .yield-bubble[b-o32l6msood]  i {
        font-size: 1.15rem;
        line-height: 1;
        /* The crop's own colour when it has one (inline style); the band colour otherwise. */
        color: var(--band);
    }

.yield-value[b-o32l6msood] {
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.yield-x[b-o32l6msood] {
    max-width: 100%;
    margin-top: 1.9rem; /* half a bubble below zero, so a small harvest does not cover the label */
    padding: 0 0.25rem;
    font-size: 0.85rem;
    color: var(--tblr-body-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Features/Crops/CropSetup/CropEditor.razor.rz.scp.css */
/* Crop setup editor: section nav | section | Smart insights. RadzenIcon glyphs need ::deep (see StatTile.razor).
   .crop-avatar and .crop-facts repeat CropSetup.razor.css: scoped styles do not cross components. */

.editor-grid[b-cuy37je9oj] {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr) 17rem;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1199px) {
    .editor-grid[b-cuy37je9oj] {
        grid-template-columns: 13rem minmax(0, 1fr);
    }

    .editor-insights[b-cuy37je9oj] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .editor-grid[b-cuy37je9oj] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.editor-main[b-cuy37je9oj] {
    min-width: 0;
}

.editor-nav ul[b-cuy37je9oj] {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
}

.editor-nav li[b-cuy37je9oj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 6px;
    padding-right: 0.4rem;
}

    .editor-nav li.active[b-cuy37je9oj] {
        background: rgba(var(--tblr-primary-rgb), 0.12);
    }

        .editor-nav li.active a[b-cuy37je9oj] {
            color: var(--tblr-primary);
            font-weight: 600;
        }

    .editor-nav li.off a[b-cuy37je9oj] {
        color: var(--tblr-secondary);
    }

    .editor-nav a[b-cuy37je9oj] {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 0.6rem;
        color: var(--tblr-body-color);
        text-decoration: none;
        font-size: 0.875rem;
    }

    .editor-nav[b-cuy37je9oj]  .rzi {
        font-size: 1.1rem;
    }

.insights-icon[b-cuy37je9oj] {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--tblr-primary-rgb), 0.12);
    color: var(--tblr-primary);
}

.insights-heading[b-cuy37je9oj] {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.insights-checks[b-cuy37je9oj] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
}

    .insights-checks li[b-cuy37je9oj] {
        display: flex;
        align-items: flex-start;
        gap: 0.35rem;
    }

        .insights-checks li a[b-cuy37je9oj] {
            color: var(--tblr-body-color);
        }

    .insights-required[b-cuy37je9oj] {
        font-size: 0.72rem;
        color: var(--tblr-secondary);
    }

        .insights-checks li.done a[b-cuy37je9oj] {
            color: var(--tblr-secondary);
        }

    .insights-checks[b-cuy37je9oj]  .rzi {
        font-size: 1rem;
        color: var(--tblr-secondary);
    }

    .insights-checks li.done[b-cuy37je9oj]  .rzi {
        color: var(--tblr-green);
    }

.insights-tips[b-cuy37je9oj] {
    display: grid;
    gap: 0.5rem;
}

.insights-tip[b-cuy37je9oj] {
    display: flex;
    gap: 0.4rem;
    font-size: 0.8rem;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: rgba(var(--tblr-azure-rgb), 0.1);
    color: var(--tblr-body-color);
    text-decoration: none;
}

    .insights-tip[b-cuy37je9oj]  .rzi {
        font-size: 1rem;
        color: var(--tblr-azure);
    }

.crop-avatar[b-cuy37je9oj] {
    --crop-color: var(--tblr-primary);
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--crop-color) 15%, transparent);
    color: color-mix(in srgb, var(--crop-color) 70%, var(--tblr-body-color));
}

    .crop-avatar[b-cuy37je9oj]  .rzi {
        font-size: 1.6rem;
    }

.crop-facts[b-cuy37je9oj] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: 0.9rem 1.5rem;
    margin: 0 0 1rem;
}

    .crop-facts dt[b-cuy37je9oj] {
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--tblr-secondary);
    }

    .crop-facts dd[b-cuy37je9oj] {
        margin: 0.15rem 0 0;
    }

.swatches[b-cuy37je9oj],
.icon-picker[b-cuy37je9oj] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.swatch[b-cuy37je9oj] {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--swatch);
    box-shadow: inset 0 0 0 2px var(--tblr-bg-surface);
}

    .swatch.selected[b-cuy37je9oj] {
        box-shadow: 0 0 0 2px var(--tblr-bg-surface), 0 0 0 4px var(--tblr-body-color);
    }

.icon-choice[b-cuy37je9oj] {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    border: 1px solid var(--tblr-border-color);
    background: var(--tblr-bg-surface);
    color: var(--tblr-body-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .icon-choice.selected[b-cuy37je9oj] {
        border-color: var(--tblr-primary);
        background: rgba(var(--tblr-primary-rgb), 0.12);
        color: var(--tblr-primary);
    }

.task-chip[b-cuy37je9oj] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 0.2rem 0.4rem 0.2rem 0.7rem;
    background: var(--tblr-bg-surface-secondary);
}

.btn-close-sm[b-cuy37je9oj] {
    width: 0.6rem;
    height: 0.6rem;
    padding: 0.2rem;
    background-size: 0.55rem;
}

.photo-grid[b-cuy37je9oj] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 0.75rem;
}

.photo[b-cuy37je9oj],
.photo-add[b-cuy37je9oj] {
    position: relative;
    aspect-ratio: 1;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
}

    .photo img[b-cuy37je9oj] {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* A photo opens the viewer (2026-11-11); its stages sit on it as a tag. */
.photo-open[b-cuy37je9oj] {
    display: block;
    padding: 0;
    border: 1px solid var(--tblr-border-color);
    background: var(--tblr-bg-surface-secondary);
    cursor: zoom-in;
}

    .photo-open:hover[b-cuy37je9oj],
    .photo-open:focus-visible[b-cuy37je9oj] {
        border-color: var(--tblr-primary);
        outline: none;
    }

.photo-stage[b-cuy37je9oj] {
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.35rem;
    padding: 0.1rem 0.45rem;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 6px;
}

.photo-remove[b-cuy37je9oj] {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 0;
}

.photo-add[b-cuy37je9oj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 2px dashed var(--tblr-border-color);
    color: var(--tblr-secondary);
    cursor: pointer;
    font-size: 0.8rem;
}

    .photo-add:hover[b-cuy37je9oj] {
        border-color: var(--tblr-primary);
        color: var(--tblr-primary);
    }

    .photo-add[b-cuy37je9oj]  .rzi {
        font-size: 1.6rem;
    }

/* Stage filter (feedback U1). */
.stage-filter[b-cuy37je9oj] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.stage-filter-label[b-cuy37je9oj] {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
    margin-right: 0.25rem;
}

.stage-chip[b-cuy37je9oj] {
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    color: var(--tblr-body-color);
    background: var(--tblr-bg-surface);
    text-decoration: none;
}

    .stage-chip:hover[b-cuy37je9oj] {
        border-color: var(--tblr-primary);
        text-decoration: none;
    }

    .stage-chip.active[b-cuy37je9oj] {
        background: var(--tblr-primary);
        border-color: var(--tblr-primary);
        color: #fff;
    }

/* Harvest produce (feedback C8). */
.produce-edit-row[b-cuy37je9oj] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.2fr) auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
    .produce-edit-row[b-cuy37je9oj] {
        grid-template-columns: minmax(0, 1fr) auto;
    }

        .produce-edit-row .input-group[b-cuy37je9oj] {
            grid-column: 1;
        }
}

.produce-lines[b-cuy37je9oj] {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

    .produce-lines li[b-cuy37je9oj] {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.15rem 0;
    }

/* Resources (Figma "Required Resources"): bordered groups, grey rows, the stages on the right. Read-only. */
.resource-group[b-cuy37je9oj] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    padding: 0.85rem 1rem 1rem;
}

.resource-group-title[b-cuy37je9oj] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

    .resource-group-title[b-cuy37je9oj]  .rzi {
        font-size: 1.1rem;
        color: var(--tblr-secondary);
    }

.resource-row[b-cuy37je9oj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color-translucent);
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

    .resource-row + .resource-row[b-cuy37je9oj] {
        margin-top: 0.5rem;
    }

.resource-info[b-cuy37je9oj] {
    min-width: 0;
}

.resource-stages[b-cuy37je9oj] {
    flex-shrink: 0;
    min-width: 10rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 6px;
    background: var(--tblr-bg-surface);
    font-size: 0.875rem;
}

@media (max-width: 575px) {
    .resource-row[b-cuy37je9oj] {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-stages[b-cuy37je9oj] {
        min-width: 0;
    }
}
/* /Features/Crops/CropSetup/CropSetup.razor.rz.scp.css */
/* Crop Setup layout. RadzenIcon glyphs are reached with ::deep (see StatTile.razor's note). */

.crop-tree-card[b-sq94qxxlle] {
    position: sticky;
    top: 1rem;
}

.crop-tree[b-sq94qxxlle] {
    max-height: calc(100vh - 22rem);
    min-height: 12rem;
    overflow-y: auto;
    margin: 0 1rem;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--tblr-border-color);
}

.tree-toggle[b-sq94qxxlle] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    border: 0;
    background: none;
    color: var(--tblr-body-color);
    text-align: left;
    padding: 0.45rem 0.25rem 0.45rem calc(var(--depth, 0) * 1rem);
    font-size: 0.9rem;
    border-radius: 6px;
}

    /* A class under a category: lighter, as in the design. */
    .tree-toggle.is-sub[b-sq94qxxlle] {
        color: var(--tblr-secondary);
    }

    .tree-toggle:hover[b-sq94qxxlle] {
        background: var(--tblr-bg-surface-secondary);
    }

    .tree-chevron[b-sq94qxxlle] {
        flex: none;
        width: 1rem;
        font-size: 1rem;
        color: var(--tblr-body-color);
    }

    .tree-toggle.is-sub .tree-chevron[b-sq94qxxlle] {
        color: var(--tblr-secondary);
    }

/* The category's icon, in the brand colour on a light tint. */
.tree-icon[b-sq94qxxlle] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.1);
}

    .tree-icon[b-sq94qxxlle]  .rzi {
        font-size: 1rem;
    }

.tree-label[b-sq94qxxlle] {
    flex: 1;
    min-width: 0;
}

.tree-count[b-sq94qxxlle] {
    flex: none;
    font-size: 0.72rem;
    min-width: 1.6rem;
    text-align: center;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    background: var(--tblr-bg-surface-secondary);
    color: var(--tblr-secondary);
}

.tree-crop[b-sq94qxxlle] {
    display: block;
    padding: 0.5rem 0.75rem 0.5rem calc(0.75rem + var(--depth, 0) * 1rem);
    margin: 0.1rem 0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--tblr-secondary);
    text-decoration: none;
}

    .tree-crop:hover[b-sq94qxxlle] {
        background: var(--tblr-bg-surface-secondary);
        text-decoration: none;
    }

    .tree-crop.active[b-sq94qxxlle] {
        background: rgba(var(--tblr-primary-rgb), 0.12);
        color: var(--tblr-primary);
        font-weight: 500;
    }

    .tree-crop.inactive[b-sq94qxxlle] {
        color: var(--tblr-secondary);
    }

.crop-avatar[b-sq94qxxlle] {
    --crop-color: var(--tblr-primary);
    flex: none;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--crop-color) 15%, transparent);
    color: color-mix(in srgb, var(--crop-color) 70%, var(--tblr-body-color));
}

    .crop-avatar[b-sq94qxxlle]  .rzi {
        font-size: 1.8rem;
    }

.min-w-0[b-sq94qxxlle] {
    min-width: 0;
}

.crop-facts[b-sq94qxxlle] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: 0.9rem 1.5rem;
    margin: 1.25rem 0 1rem;
}

/* The design's three headline facts, one per third. */
.crop-facts-main[b-sq94qxxlle] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.5rem 0 0.75rem;
}

@media (max-width: 575.98px) {
    .crop-facts-main[b-sq94qxxlle] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.crop-facts-more[b-sq94qxxlle] {
    margin-top: 0;
}

    .crop-facts dt[b-sq94qxxlle] {
        font-size: 0.72rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--tblr-secondary);
    }

    .crop-facts dd[b-sq94qxxlle] {
        margin: 0.2rem 0 0;
        font-size: 0.95rem;
    }

    .tree-crop[b-sq94qxxlle]  .tree-adopted {
        font-size: 0.95rem;
        vertical-align: -0.15em;
        margin-left: 0.25rem;
        color: var(--tblr-green);
    }

/* ---------------- The 2026-10-12 restyle ---------------- */

.crop-tree-card[b-sq94qxxlle] {
    border-radius: 12px;
}

.crop-panel-top[b-sq94qxxlle] {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
}

.crop-panel-title[b-sq94qxxlle] {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

/* My crops | Browse all: a light track, the active option raised on white. */
.crop-seg[b-sq94qxxlle] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0.2rem;
    gap: 0.15rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
}

.crop-seg-btn[b-sq94qxxlle] {
    padding: 0.4rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--tblr-secondary);
    border-radius: 6px;
    text-decoration: none;
}

    .crop-seg-btn:hover[b-sq94qxxlle] {
        color: var(--tblr-body-color);
        text-decoration: none;
    }

    .crop-seg-btn.active[b-sq94qxxlle] {
        color: var(--tblr-body-color);
        background: var(--tblr-bg-surface);
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    }

.crop-search[b-sq94qxxlle] {
    position: relative;
}

    .crop-search .form-control[b-sq94qxxlle] {
        padding-right: 2.25rem;
    }

    .crop-search .ti[b-sq94qxxlle] {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        color: var(--tblr-secondary);
        pointer-events: none;
    }

.crop-new[b-sq94qxxlle] {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* ---- The crop's header card ---- */

.crop-header-card[b-sq94qxxlle] {
    border-radius: 12px;
}

.crop-avatar-lg[b-sq94qxxlle] {
    width: 4.5rem;
    height: 4.5rem;
}

    .crop-avatar-lg[b-sq94qxxlle]  .rzi {
        font-size: 2.2rem;
    }

.crop-title[b-sq94qxxlle] {
    margin: 0 0 0.4rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.crop-edit-btn[b-sq94qxxlle] {
    align-self: flex-start;
}

.crop-header-foot[b-sq94qxxlle] {
    margin-top: 0.25rem;
}

/* ---- Browse all: a library crop, styled as a crop on My crops ---- */

.tpl-stages-head[b-sq94qxxlle] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.tpl-stages-title[b-sq94qxxlle] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.tpl-stages-total[b-sq94qxxlle] {
    font-size: 0.82rem;
    color: var(--tblr-secondary);
}

.tpl-stage-list[b-sq94qxxlle] {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.tpl-stage[b-sq94qxxlle] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.25rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.tpl-stage-number[b-sq94qxxlle] {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.1);
}

.tpl-stage-name[b-sq94qxxlle] {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
}

.tpl-stage-meta[b-sq94qxxlle] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.8rem;
    color: var(--tblr-secondary);
}

    .tpl-stage-meta > span[b-sq94qxxlle] {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .tpl-stage-meta .ti[b-sq94qxxlle] {
        font-size: 1rem;
    }

.tpl-stage-harvest[b-sq94qxxlle] {
    color: var(--tblr-green);
}

.tpl-adopt-title[b-sq94qxxlle] {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.tpl-adopt-row[b-sq94qxxlle] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.5rem;
}

@media (max-width: 575.98px) {
    .tpl-adopt-row[b-sq94qxxlle] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tpl-adopt-help[b-sq94qxxlle] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin-top: 0.6rem;
}
/* /Features/Crops/CropSetup/MyCrops.razor.rz.scp.css */
/* "My Crop": filters on the left, three cards a row. Tabler Icons (<i class="ti">) are this component's own
   elements; RadzenIcon's <i> is reached with ::deep. */

.my-crops-filters[b-09lrvgccrf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.my-crops-select[b-09lrvgccrf] {
    width: auto;
    min-width: 12rem;
}

.my-crops-search[b-09lrvgccrf] {
    position: relative;
    width: 20rem;
    max-width: 100%;
}

    .my-crops-search .form-control[b-09lrvgccrf] {
        padding-right: 2.25rem;
    }

    .my-crops-search .ti[b-09lrvgccrf] {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        color: var(--tblr-secondary);
        pointer-events: none;
    }

.my-crops-grid[b-09lrvgccrf] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
    gap: 1.25rem;
}

/* ---------------- Card ---------------- */

.my-crop-card[b-09lrvgccrf] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 1rem 1rem 0.85rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.my-crop-head[b-09lrvgccrf] {
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.my-crop-avatar[b-09lrvgccrf] {
    --crop-color: var(--tblr-primary);
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--crop-color) 15%, transparent);
    color: color-mix(in srgb, var(--crop-color) 70%, var(--tblr-body-color));
}

    .my-crop-avatar[b-09lrvgccrf]  .rzi {
        font-size: 1.5rem;
    }

.my-crop-main[b-09lrvgccrf] {
    min-width: 0;
    flex: 1 1 auto;
}

.my-crop-status[b-09lrvgccrf] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

    .my-crop-status.is-active[b-09lrvgccrf] { color: #2fb344; }
    .my-crop-status.is-inactive[b-09lrvgccrf] { color: #868e96; }

.my-crop-dot[b-09lrvgccrf] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.my-crop-name[b-09lrvgccrf] {
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-crop-sci[b-09lrvgccrf] {
    font-size: 0.85rem;
    color: var(--tblr-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Under a rule, indented to the text column as in the design. */
.my-crop-facts[b-09lrvgccrf] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-left: 4rem;
    padding: 0.55rem 0 0 1.25rem;
    border-top: 1px solid var(--tblr-border-color);
    font-size: 0.8rem;
    color: var(--tblr-secondary);
}

    .my-crop-facts span[b-09lrvgccrf] {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .my-crop-facts .ti[b-09lrvgccrf] {
        font-size: 1rem;
    }

.my-crop-edit[b-09lrvgccrf] {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    text-decoration: none;
}

    .my-crop-edit:hover[b-09lrvgccrf] {
        text-decoration: underline;
    }

.my-crops-pager[b-09lrvgccrf] {
    margin-top: 1.25rem;
}
/* /Features/Crops/CropSetup/PlantingEditor.razor.rz.scp.css */
/* The Bed & spacing matrix: rows of values, "All stages" then one column per stage. */

.planting-matrix th[scope="row"][b-gqdh47xowd] {
    white-space: nowrap;
    font-weight: 600;
}

.planting-matrix td[b-gqdh47xowd] {
    min-width: 6.5rem;
}

.planting-matrix .planting-crop-col[b-gqdh47xowd] {
    background: rgba(var(--tblr-primary-rgb), 0.04);
}

.planting-matrix .planting-group th[b-gqdh47xowd] {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary, transparent);
}

/* A stage cell that overrides the crop's value. */
.planting-matrix td.overridden input[b-gqdh47xowd] {
    border-color: var(--tblr-primary);
    font-weight: 600;
}

.planting-matrix .planting-derived td[b-gqdh47xowd],
.planting-matrix .planting-same[b-gqdh47xowd] {
    color: var(--tblr-secondary);
    font-size: 0.85rem;
}
/* /Features/Crops/CropSetup/StageListEditor.razor.rz.scp.css */
/* The growth stage list, read-only and in edit mode. */

/* The Growth Stage heading: title (and total) on the left, Edit stages, + Stage and Set up on the right. */
.stages-head[b-k4c5067fzw] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.min-w-0[b-k4c5067fzw] {
    min-width: 0;
}

.stages-title[b-k4c5067fzw] {
    display: inline;
    margin: 0 0.6rem 0 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.stages-total[b-k4c5067fzw] {
    font-size: 0.82rem;
    color: var(--tblr-secondary);
}

/* Set up, as in the design: the brand colour on its own light tint. */
.stages-setup[b-k4c5067fzw] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-color: transparent;
}

    .stages-setup:hover[b-k4c5067fzw] {
        color: #fff;
        background: var(--tblr-primary);
    }

/* Each stage its own card, the whole card a link to that stage's tasks. */
.stage-list[b-k4c5067fzw] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.stage-row[b-k4c5067fzw] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.25rem;
    color: inherit;
    text-decoration: none;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .stage-row:hover[b-k4c5067fzw],
    .stage-row:focus-visible[b-k4c5067fzw] {
        color: inherit;
        text-decoration: none;
        border-color: var(--tblr-primary);
        box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb), 0.12);
        outline: none;
    }

.stage-number[b-k4c5067fzw] {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.1);
}

.stage-go[b-k4c5067fzw] {
    font-size: 1.25rem;
    color: var(--tblr-body-color);
}

.stage-main[b-k4c5067fzw] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stage-name[b-k4c5067fzw] {
    font-size: 1.05rem;
    font-weight: 600;
}

.stage-meta[b-k4c5067fzw] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    font-size: 0.8rem;
    color: var(--tblr-secondary);
}

    .stage-meta > span[b-k4c5067fzw] {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
    }

    .stage-meta .ti[b-k4c5067fzw] {
        font-size: 1rem;
    }

.stage-harvest[b-k4c5067fzw] {
    color: var(--tblr-green);
}

.stage-edit-head[b-k4c5067fzw],
.stage-edit-row[b-k4c5067fzw] {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) 9.5rem 4.5rem 2.25rem;
    gap: 0.6rem;
    align-items: center;
}

.stage-edit-head[b-k4c5067fzw] {
    margin-bottom: 0.35rem;
}

.stage-edit-row[b-k4c5067fzw] {
    margin-bottom: 0.5rem;
}

.stage-move[b-k4c5067fzw] {
    display: flex;
    gap: 0.15rem;
}

.stage-add-inline[b-k4c5067fzw] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

@media (max-width: 640px) {
    .stage-edit-head[b-k4c5067fzw] {
        display: none;
    }

    .stage-edit-row[b-k4c5067fzw] {
        grid-template-columns: 4.5rem minmax(0, 1fr) 2.25rem;
    }

        .stage-edit-row .input-group[b-k4c5067fzw] {
            grid-column: 2;
        }
}

/* What happens to a deleted stage's tasks (feedback U7). */
.stage-delete-list[b-k4c5067fzw] {
    list-style: none;
    padding-left: 0;
}

    .stage-delete-list li[b-k4c5067fzw] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.2rem 0;
    }

.stage-delete-choice .form-select[b-k4c5067fzw] {
    min-width: 14rem;
}
/* /Features/Dashboards/AdminDashboard/AdminAudit.razor.rz.scp.css */
/* A row's before/after values, as on the platform viewer: long JSON wraps, and a very long value scrolls inside its cell. */
.audit-detail[b-qjmagfot1y] {
    margin-left: 2.25rem;
}

.audit-value[b-qjmagfot1y] {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--tblr-font-monospace);
    font-size: 0.75rem;
    max-width: 28rem;
}

@media (max-width: 575.98px) {
    .audit-detail[b-qjmagfot1y] {
        margin-left: 0;
    }
}
/* /Features/Dashboards/Dashboard.razor.rz.scp.css */
/* The "Farms Overview" layout. Scoped: these rules reach only elements Dashboard.razor renders itself,
   so anything inside a child component (RadzenIcon's <i>, the charts, the maps) goes through ::deep. */

.farm-list-card .card-body[b-5449b05mv0] {
    min-height: 0;
}

/* The wrapper takes whatever height is left in the widget. The list inside is absolutely positioned, so
   however many farms there are it contributes no height of its own — it scrolls inside the widget
   instead of stretching it. */
.farm-list-wrap[b-5449b05mv0] {
    position: relative;
    flex: 1 1 auto;
    min-height: 80px;
}

.farm-list[b-5449b05mv0] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 2px;
}

.farm-item[b-5449b05mv0] {
    text-decoration: none;
    border: 1px solid var(--tblr-border-color);
    box-shadow: none;
    flex-shrink: 0; /* scroll the list, never squash the cards to fit it */
}

.farm-item:hover[b-5449b05mv0] {
    border-color: var(--tblr-primary);
}

.chip[b-5449b05mv0] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    background-color: #F1F2F4;
    border-radius: var(--tblr-border-radius-sm);
}

.chip[b-5449b05mv0]  i,
.next-task[b-5449b05mv0]  i,
.input-icon-addon[b-5449b05mv0]  i {
    font-size: 1rem;
}

.crop-avatar[b-5449b05mv0] {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.next-task[b-5449b05mv0] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    background: rgba(var(--tblr-primary-rgb), 0.1);
    border-radius: var(--tblr-border-radius-sm);
    min-width: 0;
}

/* The sparkline's DRAWING is clipped to the card's rounded bottom corners — the svg only, never the
   wrapper. Clipping the wrapper (overflow:hidden) also clipped the hover tooltip, which ApexCharts renders
   as an HTML element beside the svg and which has to be free to spill out of the card; and clipping the
   card would also clip the range dropdown opening out of its header. */
.kpi-spark[b-5449b05mv0]  svg {
    clip-path: inset(0 round 0 0 var(--tblr-card-border-radius, 18px) var(--tblr-card-border-radius, 18px));
}

/* A widget later in the grid paints over an earlier one's open menu unless the open one is lifted. */
.grid-stack-item:has(.dropdown-menu.show)[b-5449b05mv0],
.grid-stack-item:has(.apexcharts-tooltip.apexcharts-active)[b-5449b05mv0] {
    z-index: 1010;
}

/* Columns follow the widget's width, not the page's: each tile gets at least 11rem, and the grid fits
   as many as the card allows. So resizing the widget in edit mode reflows the tiles — one column when
   narrow, two, three or four when wide — instead of squeezing a fixed two into any width. */
.attention-grid[b-5449b05mv0] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.5rem;
}

.attention-tile[b-5449b05mv0] {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}

.attention-tile:hover[b-5449b05mv0] {
    border-color: var(--tblr-primary);
}

/* Zero is a normal answer, so it is shown — just quietly. */
.attention-tile.is-zero[b-5449b05mv0] {
    opacity: 0.45;
}

.attention-count[b-5449b05mv0] {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--tblr-primary);
}

.attention-label[b-5449b05mv0] {
    display: block;
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* The icon and the chevron keep their size; only the text shrinks, and the label truncates rather than
   wrapping one word per line. */
.attention-icon[b-5449b05mv0],
.attention-tile[b-5449b05mv0]  .attention-go {
    flex-shrink: 0;
}

.attention-text[b-5449b05mv0] {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---------------- The widget grid (GridStack) ---------------- */

.grid-stack[b-5449b05mv0] {
    margin: 0 -8px 1rem; /* GridStack's margin is inside each cell; this lines the cards up with the header */
}

/* GridStack scrolls a cell's content by default. The cards already manage their own overflow, and a
   scrolling cell clips the range dropdowns that open out of the headline cards. */
.grid-stack-item-content[b-5449b05mv0] {
    overflow: visible !important;
}

/* Cards whose body should take every pixel the widget has: a chart or a map inside grows and shrinks
   with the widget. */
.fill-card[b-5449b05mv0] {
    display: flex;
    flex-direction: column;
}

.fill-body[b-5449b05mv0] {
    flex: 1 1 auto;
    min-height: 0;
}

.kpi-card[b-5449b05mv0] {
    display: flex;
    flex-direction: column;
}

/* A headline card keeps its label on ONE line at any width, cut with an ellipsis (the full label is its
   tooltip). The card's height is the grid's, fixed; a label that wrapped onto a second line in a narrow
   card pushed the figure down and the 48px sparkline out through the bottom of the card. */
.kpi-card .card-body > .d-flex:first-child[b-5449b05mv0] {
    gap: 0.5rem;
    min-width: 0;
}

.kpi-card .subheader[b-5449b05mv0] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kpi-card .card-body > .d-flex:first-child > .ms-auto[b-5449b05mv0] {
    flex: none;
}

.kpi-spark[b-5449b05mv0] {
    margin-top: auto;
    min-height: 48px; /* holds the sparkline's space while it waits for the grid to be revealed */
}

/* Edit mode: every widget outlined and draggable as a whole. Its content stops taking the pointer, so a
   drag that starts on a map, a chart or a link moves the widget instead of panning or navigating. */
.grid-stack.is-editing .grid-stack-item-content[b-5449b05mv0] {
    cursor: move;
    outline: 2px dashed rgba(var(--tblr-primary-rgb), 0.55);
    outline-offset: -1px;
    border-radius: var(--tblr-card-border-radius, 18px);
}

.grid-stack.is-editing .grid-stack-item-content > *[b-5449b05mv0] {
    pointer-events: none;
    user-select: none;
}

.grid-stack.is-editing .grid-stack-item-content:hover[b-5449b05mv0] {
    outline-color: var(--tblr-primary);
}

/* ---------------- First paint ---------------- */

/* While GridStack arranges the widgets at their saved positions, the grid is laid out at full width —
   so charts and the map measure themselves correctly — but takes no height and cannot be seen. The
   skeleton holds the space meanwhile. visibility, not display:none: a display:none grid has no width to
   measure, and every chart inside would draw at zero size. */
.grid-shell.is-pending[b-5449b05mv0] {
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.grid-shell.is-revealed[b-5449b05mv0] {
    animation: dash-fade-in-b-5449b05mv0 0.25s ease-out;
}

@keyframes dash-fade-in-b-5449b05mv0 {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grid-shell.is-revealed[b-5449b05mv0] {
        animation: none;
    }
}

/* The Scouting due card's arrow, sized like the range pickers beside the other headline figures. */
.kpi-go[b-5449b05mv0]  .rzi {
    font-size: 1.1rem;
}
/* /Features/Dashboards/DashboardSkeleton.razor.rz.scp.css */
/* The same grid GridStack draws: 12 columns, 72px rows, 16px between widgets (its margin is 8px on each
   side of every cell). A row track of 56px plus a 16px gap makes a widget of h rows exactly
   72h - 16px tall — the height GridStack gives it — so nothing changes size when the real grid fades in.
   Each cell's position comes from its --gc / --gr variables, set from the layout. */
.dash-skeleton[b-kg1n19olb8] {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 56px;
    gap: 16px;
    /* GridStack insets every widget 8px inside its cell, so its first row starts 8px below the grid's
       top edge; the skeleton starts at the same place, or the fade-in would nudge everything down. */
    padding-top: 8px;
    margin-bottom: 1rem;
}

.sk-cell[b-kg1n19olb8] {
    grid-column: var(--gc);
    grid-row: var(--gr);
    min-width: 0;
}

/* Below GridStack's 992px breakpoint it stacks every widget full width, in y-then-x order (the order
   the cells are rendered in), each keeping its own height. So does this. */
@media (max-width: 991.98px) {
    .dash-skeleton[b-kg1n19olb8] {
        grid-template-columns: minmax(0, 1fr);
    }

    .sk-cell[b-kg1n19olb8] {
        grid-column: 1;
        grid-row: span var(--h);
    }
}

.sk-card[b-kg1n19olb8] {
    overflow: hidden;
}

.sk-card .placeholder[b-kg1n19olb8] {
    display: block;
    border-radius: var(--tblr-border-radius-sm);
}

.sk-fill[b-kg1n19olb8] {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.sk-input[b-kg1n19olb8] {
    height: 2.25rem;
}

.sk-item[b-kg1n19olb8] {
    padding: 0.875rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}

.sk-figure[b-kg1n19olb8] {
    height: 1.75rem;
}

.sk-block[b-kg1n19olb8] {
    flex: 1 1 auto;
    width: 100%;
}

.sk-donut[b-kg1n19olb8] {
    width: min(13rem, 100%);
    aspect-ratio: 1;
    height: auto;
    max-height: 100%;
    border-radius: 50% !important;
}

.sk-tile[b-kg1n19olb8] {
    height: 4.25rem;
}

.sk-bar[b-kg1n19olb8] {
    height: 1.25rem;
}

/* Same width-driven columns as the real Needs Attention tiles (.attention-grid in Dashboard.razor.css). */
.sk-attention[b-kg1n19olb8] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.5rem;
}
/* /Features/Dashboards/FarmLocationsMap.razor.rz.scp.css */
.loc-crumbs[b-gct605n911] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

/* The hover panel floats over the top-right of the map, as in the design. */
.loc-panel[b-gct605n911] {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 15rem;
    z-index: 1000; /* above Leaflet's panes and controls, which sit at 400-800 */

    /* Shown while something on the map is hovered, so it must never take the pointer itself: a pin
       underneath it would get mouseout, the panel would hide, and it would flicker. */
    pointer-events: none;
}

.loc-stat[b-gct605n911] {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.625rem;
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    border-radius: var(--tblr-border-radius-sm);
}

.loc-stat span[b-gct605n911] {
    font-size: 0.75rem;
    color: var(--tblr-secondary);
}

@media (max-width: 575.98px) {
    .loc-panel[b-gct605n911] {
        position: static;
        width: auto;
        margin-top: 0.75rem;
    }
}

/* The map fills its widget: breadcrumb on top, the map taking the rest, the note (if any) at the bottom.
   Resizing the widget resizes the map — farmLocationsMap.js watches the element and re-measures Leaflet. */
.loc-root[b-gct605n911] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.loc-map-wrap[b-gct605n911] {
    position: relative;
    flex: 1 1 auto;
    min-height: 140px;
}

.loc-map[b-gct605n911] {
    position: absolute;
    inset: 0;
    border-radius: var(--tblr-border-radius);
}
/* /Features/Farms/FarmDashboard/FarmCardView.razor.rz.scp.css */
/* The farm card. Scoped to this component; RadzenIcon glyphs are reached with ::deep because scoped CSS
   does not stamp a child component's elements (see StatTile.razor's note). */

.farm-item[b-nxdof3bf9x] {
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
    padding: 0.85rem 1rem;
    cursor: pointer;
    background: var(--tblr-bg-surface);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .farm-item > div:first-child[b-nxdof3bf9x] {
        align-self: stretch;
        min-height: 1.75rem;
    }

    /* Inactive farms are listed but parked: dimmed, still clickable. */
    .farm-item:has(.farm-status-Inactive)[b-nxdof3bf9x] {
        opacity: 0.7;
    }

    .farm-item:hover[b-nxdof3bf9x],
    .farm-item:focus-visible[b-nxdof3bf9x] {
        border-color: var(--tblr-primary);
        box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb), 0.15);
        outline: none;
    }

.farm-name[b-nxdof3bf9x] {
    font-weight: 600;
    font-size: 0.95rem;
}

.farm-address[b-nxdof3bf9x] {
    color: var(--tblr-secondary);
    font-size: 0.8rem;
}

.farm-meta[b-nxdof3bf9x] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

    .farm-meta > span[b-nxdof3bf9x] {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        background: var(--tblr-bg-surface-secondary);
        border-radius: 4px;
        padding: 0.1rem 0.45rem;
        font-size: 0.75rem;
        color: var(--tblr-secondary);
    }

    .farm-meta[b-nxdof3bf9x]  .rzi {
        font-size: 0.9rem;
    }

.farm-status[b-nxdof3bf9x] {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.farm-status-dot[b-nxdof3bf9x] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

/* Same colours farmOverviewMap.js draws the shapes in. */
.farm-status-Active[b-nxdof3bf9x] { color: #2fb344; }
.farm-status-PendingPlanting[b-nxdof3bf9x] { color: #f59f00; }
.farm-status-Maintenance[b-nxdof3bf9x] { color: #4299e1; }
.farm-status-Inactive[b-nxdof3bf9x] { color: #868e96; }

.farm-crops[b-nxdof3bf9x] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.crop-chip[b-nxdof3bf9x] {
    --crop-color: #868e96;
    position: relative;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    /* Blended with the body colour so a dark crop colour stays readable on the dark theme. */
    color: color-mix(in srgb, var(--crop-color) 65%, var(--tblr-body-color));
    background: color-mix(in srgb, var(--crop-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--crop-color) 40%, transparent);
}

.crop-chip-alert[b-nxdof3bf9x] {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #d63939;
    border: 2px solid var(--tblr-bg-surface);
}

.farm-no-crops[b-nxdof3bf9x] {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--tblr-secondary);
}

.farm-harvest[b-nxdof3bf9x] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
}

/* Pushes the harvest pill to the bottom, so pills line up across a row of equal-height cards. */
.farm-crops[b-nxdof3bf9x],
.farm-no-crops[b-nxdof3bf9x] {
    margin-bottom: auto;
}

.farm-harvest-ready[b-nxdof3bf9x] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.1);
}
/* /Features/Farms/FarmDashboard/FarmDashboard.razor.rz.scp.css */
/* Farm Overview. Scoped to this page; the cards themselves are styled by FarmCardView.razor.css. */

.farm-list-card[b-hryj9y0rqw] {
    position: sticky;
    top: 1rem;
}

.farm-list[b-hryj9y0rqw] {
    max-height: calc(100vh - 14rem);
    min-height: 12rem;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* The map legend. Same two colours as the cards and farmOverviewMap.js. */
.farm-status[b-hryj9y0rqw] {
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.farm-status-dot[b-hryj9y0rqw] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
}

.farm-status-Active[b-hryj9y0rqw] { color: #2fb344; }
.farm-status-PendingPlanting[b-hryj9y0rqw] { color: #f59f00; }
.farm-status-Maintenance[b-hryj9y0rqw] { color: #4299e1; }
.farm-status-Inactive[b-hryj9y0rqw] { color: #868e96; }

.farm-overview-stats[b-hryj9y0rqw] {
    margin-bottom: 1rem;
}
/* /Features/Farms/FarmDashboard/FarmSetupList.razor.rz.scp.css */
/* Farm List. Scoped to this page; the cards are styled by FarmCardView.razor.css. */

.farm-filters[b-2mhp8u45jg] {
    position: sticky;
    top: 1rem;
}

.farm-clear[b-2mhp8u45jg] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0 0;
    color: var(--tblr-body-color);
    text-decoration: none;
    font-size: 0.85rem;
}

    .farm-clear:disabled[b-2mhp8u45jg] {
        color: var(--tblr-secondary);
    }

.farm-facet[b-2mhp8u45jg] {
    border-top: 1px solid var(--tblr-border-color);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.farm-facet-title[b-2mhp8u45jg] {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.farm-facet .form-check[b-2mhp8u45jg] {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

/* Equal-height cards per row. Set here rather than on the card, which also lives in the overview's
   scrolling list, where 100% would mean the height of the whole list. */
.farm-grid[b-2mhp8u45jg]  .farm-item {
    height: 100%;
}
/* /Features/Farms/FarmEdit/FarmEdit.razor.rz.scp.css */
/* The farm form: map left, tabbed panel right. Scoped — RadzenIcon's <i> and the map component's own
   element are reached through ::deep. */

.title-edit[b-xk2egj0xkg] {
    color: var(--tblr-primary);
    line-height: 1;
}

/* The map fills the viewport below the header, never shorter than is usable. */
.map-frame[b-xk2egj0xkg] {
    height: calc(100vh - 13rem);
    min-height: 26rem;
    overflow: hidden;
    /* The facility toolbar is placed over the map from here (2026-11-13). */
    position: relative;
    border-radius: var(--tblr-card-border-radius, 18px);
    background: var(--tblr-bg-surface-secondary);
}

.map-frame[b-xk2egj0xkg]  .farm-boundary-map {
    width: 100%;
    height: 100%;
}

.map-skeleton[b-xk2egj0xkg] {
    display: block;
    height: calc(100vh - 13rem);
    min-height: 26rem;
    border-radius: var(--tblr-card-border-radius, 18px);
}

/* The steps above the panel. A step that can be clicked (see CanGoTo) looks it. */
.panel-steps .step-item.is-reachable[b-xk2egj0xkg] {
    cursor: pointer;
}

.panel-steps .step-item.is-reachable:hover[b-xk2egj0xkg] {
    color: var(--tblr-green);
    text-decoration: underline;
}

.panel-steps .step-item.is-reachable:focus-visible[b-xk2egj0xkg] {
    outline: 2px solid rgba(var(--tblr-green-rgb), 0.5);
    outline-offset: 2px;
    border-radius: var(--tblr-border-radius-sm);
}

/* The side panel is exactly as tall as the map beside it — never taller. The steps take their own
   height, the card takes the rest, and the card BODY scrolls (see .panel-card .card-body), so the header
   and the footer buttons stay in view however long the plot list and its settings grow. */
.panel-col[b-xk2egj0xkg] {
    height: calc(100vh - 13rem);
    min-height: 26rem;
}

.panel-card[b-xk2egj0xkg] {
    flex: 1 1 0;
    min-height: 0;
}

/* ---------------- Steps ---------------- */

.step[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number[b-xk2egj0xkg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    font-weight: 600;
    border-radius: 50%;
    color: #fff;
    background: var(--tblr-primary);
}

.step-number[b-xk2egj0xkg]  i {
    font-size: 1.125rem;
}

.step.is-pending .step-number[b-xk2egj0xkg] {
    background: var(--tblr-border-color);
}

.step-title[b-xk2egj0xkg] {
    font-size: 1rem;
    font-weight: 600;
}

.step-tip[b-xk2egj0xkg] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    border-radius: var(--tblr-border-radius);
}

.step-tip.is-current[b-xk2egj0xkg] {
    color: var(--tblr-blue);
    background: rgba(var(--tblr-blue-rgb), 0.08);
}

.step-tip[b-xk2egj0xkg]  i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.card-footer .btn[b-xk2egj0xkg]  i {
    font-size: 1.125rem;
    margin-right: 0.25rem;
}

@media (max-width: 991.98px) {
    .map-frame[b-xk2egj0xkg],
    .map-skeleton[b-xk2egj0xkg] {
        height: 60vh;
    }

    /* Stacked under the map on a narrow screen: as tall as the map, and still scrolling inside. */
    .panel-col[b-xk2egj0xkg] {
        height: 70vh;
    }
}

/* The name, while it is being edited in place of the title. */
.title-editor[b-xk2egj0xkg] {
    max-width: 32rem;
}

/* Step 1 once saved: the design's tinted summary with a pencil to redraw. */
.boundary-summary[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(21, 170, 191, 0.08);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.6);
    border-radius: var(--tblr-border-radius);
}

/* ---------------- The Plots tab ---------------- */

.plot-list[b-xk2egj0xkg] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plot-card[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    border: 1px solid transparent;
    border-radius: var(--tblr-border-radius);
}

.plot-card:hover[b-xk2egj0xkg] {
    border-color: var(--tblr-border-color);
}

/* The selected plot: the same tinted card the saved-boundary summary uses. */
.plot-card.is-selected[b-xk2egj0xkg] {
    background: rgba(21, 170, 191, 0.08);
    border-color: rgba(var(--tblr-primary-rgb), 0.6);
}

.min-w-0[b-xk2egj0xkg] {
    min-width: 0;
}

.plot-remove[b-xk2egj0xkg] {
    line-height: 1;
}

.plot-remove[b-xk2egj0xkg]  i {
    font-size: 1.375rem;
    font-weight: 700;
}

/* The panel scrolls when the plot list and form outgrow it, keeping the footer in view. */
.panel-card .card-body[b-xk2egj0xkg] {
    overflow-y: auto;
}

/* ---------------- Step 1: finding the farm and GPS tracks ---------------- */

/* Latitude, longitude, Go and "my location" on one row; the two inputs share what is left. */
.coord-search[b-xk2egj0xkg] {
    display: flex;
    gap: 0.375rem;
}

.coord-search .form-control[b-xk2egj0xkg] {
    flex: 1 1 0;
    min-width: 0;
}

.coord-search .btn[b-xk2egj0xkg]  i,
.gps-tracks[b-xk2egj0xkg]  i {
    font-size: 1rem;
}

.gps-tracks[b-xk2egj0xkg] {
    padding: 0.75rem;
    background: rgba(var(--tblr-blue-rgb), 0.06);
    border: 1px solid rgba(var(--tblr-blue-rgb), 0.2);
    border-radius: var(--tblr-border-radius);
}

.gps-track[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(var(--tblr-blue-rgb), 0.15);
}

/* A badge with an icon (the detected location): icon and text on one centre line. RadzenIcon's own
   line-height sits the glyph above the text otherwise. */
.icon-badge[b-xk2egj0xkg] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

.icon-badge[b-xk2egj0xkg]  i {
    font-size: 1rem;
    line-height: 1;
}

/* ---------------- Bedding Crops: Smart Suggestions ---------------- */

.suggestions[b-xk2egj0xkg] {
    padding: 1rem;
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}

.suggestions-icon[b-xk2egj0xkg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: var(--tblr-border-radius);
}

.suggestions-icon[b-xk2egj0xkg]  i {
    font-size: 1.25rem;
}

.suggestion-figure[b-xk2egj0xkg] {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-sm);
}

.suggestion-figure span[b-xk2egj0xkg] {
    font-size: 0.75rem;
    color: var(--tblr-secondary);
}

.suggestion-figure strong[b-xk2egj0xkg] {
    font-size: 1rem;
}

.gauge[b-xk2egj0xkg] {
    position: relative;
    max-width: 15rem;
    margin: 0 auto;
}

.gauge-svg[b-xk2egj0xkg] {
    display: block;
    width: 100%;
    height: auto;
}

.gauge-track[b-xk2egj0xkg],
.gauge-fill[b-xk2egj0xkg] {
    fill: none;
    stroke-width: 34;
}

.gauge-track[b-xk2egj0xkg] {
    stroke: rgba(var(--tblr-primary-rgb), 0.3);
}

.gauge-fill[b-xk2egj0xkg] {
    stroke: var(--smartag-brand-dark, #099487);
}

.gauge-needle[b-xk2egj0xkg] {
    fill: var(--tblr-body-color);
}

/* The figure sits inside the bowl of the arc, under the needle's pivot. */
.gauge-label[b-xk2egj0xkg] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.25rem;
    text-align: center;
}

.gauge-value[b-xk2egj0xkg] {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
}

.fit-note[b-xk2egj0xkg] {
    padding: 0.625rem 0.875rem;
    border-radius: var(--tblr-border-radius);
}

.fit-note[b-xk2egj0xkg]  i {
    font-size: 1rem;
}

.fit-note.is-good[b-xk2egj0xkg] {
    color: var(--tblr-success);
    background: rgba(var(--tblr-success-rgb), 0.1);
}

.fit-note.is-good .small[b-xk2egj0xkg] {
    color: var(--tblr-body-color);
}

.fit-note.is-info[b-xk2egj0xkg] {
    color: var(--tblr-blue);
    background: rgba(var(--tblr-blue-rgb), 0.08);
}

.fit-note.is-warn[b-xk2egj0xkg] {
    color: var(--tblr-orange);
    background: rgba(var(--tblr-orange-rgb), 0.1);
}

.apply-btn[b-xk2egj0xkg] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.15);
    border-color: transparent;
}

.apply-btn:hover[b-xk2egj0xkg] {
    color: #fff;
    background: var(--tblr-primary);
}

/* ---------------- Bedding Crops: settings ---------------- */

.setting-value[b-xk2egj0xkg] {
    color: var(--tblr-primary);
    font-weight: 500;
}

.bed-settings .input-group .btn[b-xk2egj0xkg]  i {
    font-size: 1.125rem;
}

/* After Apply, a setting was changed: the plot no longer follows the Smart Suggestion. */
.bed-warning[b-xk2egj0xkg] {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--tblr-orange);
    background: rgba(var(--tblr-orange-rgb), 0.1);
    border-radius: var(--tblr-border-radius-sm);
}

.bed-warning[b-xk2egj0xkg]  i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* The bedding sliders, per the design: a thick, rounded, light-teal track; the filled part in the brand
   colour; a large brand-colour handle with a white ring. Set through Radzen 11's own slider variables, so
   a Radzen upgrade that renames an element does not silently undo this. Scoped to .bed-settings. */
.bed-settings[b-xk2egj0xkg] {
    --rz-slider-horizontal-height: 0.5rem;
    --rz-slider-border: none;
    --rz-slider-border-radius: 999px;
    --rz-slider-background-color: rgba(var(--tblr-primary-rgb), 0.3);
    --rz-slider-range-background-color: var(--smartag-brand-dark, #099487);
    --rz-slider-range-border: none;

    --rz-slider-handle-width: 1.375rem;
    --rz-slider-handle-height: 1.375rem;
    --rz-slider-handle-border-radius: 50%;
    --rz-slider-handle-background-color: var(--smartag-brand-dark, #099487);
    --rz-slider-handle-border: 3px solid #fff;
    --rz-slider-handle-shadow: 0 1px 4px rgba(16, 24, 40, 0.25);
    --rz-slider-handle-hover-background-color: var(--smartag-brand-dark, #099487);
    --rz-slider-handle-hover-border: 3px solid #fff;
    --rz-slider-handle-hover-shadow: 0 0 0 4px rgba(var(--tblr-primary-rgb), 0.2), 0 1px 4px rgba(16, 24, 40, 0.25);
    --rz-slider-handle-focus-outline: 3px solid rgba(var(--tblr-primary-rgb), 0.35);
    --rz-slider-handle-focus-outline-offset: 1px;
}

/* The "Saved Successfully" modal's tick, as in the design: a thin green circle. */
.saved-icon[b-xk2egj0xkg] {
    color: var(--tblr-success);
}

/* The "Recorded Plants" warning (2026-12-02): the same modal in orange, with the affected areas listed. */
.plants-warning-icon[b-xk2egj0xkg] {
    color: var(--tblr-orange, #f76707);
}

.plants-warning-group[b-xk2egj0xkg] {
    margin-top: 1rem;
    padding: 0.75rem;
    text-align: left;
    background: rgba(var(--tblr-orange-rgb, 247, 103, 7), 0.08);
    border-radius: var(--tblr-border-radius, 6px);
}

#farm-plants-save[b-xk2egj0xkg] {
    color: #fff;
    background-color: var(--tblr-orange, #f76707);
    border-color: var(--tblr-orange, #f76707);
}

/* ---------------- Panel tabs and Facilities & points (2026-11-12) ---------------- */

/* The two icon tabs above the side panel: farm setup, and facilities & points. */
.panel-tabs[b-xk2egj0xkg] {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.panel-tab[b-xk2egj0xkg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 2.5rem;
    padding: 0;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}

.panel-tab:hover:not(:disabled)[b-xk2egj0xkg] {
    color: var(--tblr-primary);
}

.panel-tab.is-active[b-xk2egj0xkg] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.08);
    border-color: rgba(var(--tblr-primary-rgb), 0.6);
}

.panel-tab:disabled[b-xk2egj0xkg] {
    opacity: 0.5;
    cursor: not-allowed;
}

.panel-tab[b-xk2egj0xkg]  i {
    font-size: 1.25rem;
}

/* The type picker: four to a row, three on a narrow side panel. */
.facility-types[b-xk2egj0xkg] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 1399.98px) and (min-width: 992px), (max-width: 420px) {
    .facility-types[b-xk2egj0xkg] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.facility-type[b-xk2egj0xkg] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.625rem 0.25rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
}

.facility-type:hover:not(:disabled)[b-xk2egj0xkg] {
    border-color: rgba(var(--tblr-primary-rgb), 0.6);
}

.facility-type.is-selected[b-xk2egj0xkg] {
    background: rgba(28, 126, 214, 0.08);
    border-color: #1c7ed6;
}

.facility-type-label[b-xk2egj0xkg] {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--tblr-secondary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.facility-type-icon[b-xk2egj0xkg] {
    display: inline-flex;
    line-height: 1;
}

.facility-type-icon[b-xk2egj0xkg]  i {
    font-size: 1.375rem;
}

/* A facility type's (or roads') description: what it is for, apart from the blue step-tip (how to draw). */
.type-info[b-xk2egj0xkg] {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius);
    background: var(--tblr-bg-surface);
}

.type-info-icon[b-xk2egj0xkg] {
    display: inline-flex;
    line-height: 1;
    flex-shrink: 0;
}

.type-info-icon[b-xk2egj0xkg]  i {
    font-size: 1.25rem;
}

/* Coverage area: read-only, follows the shape on the map. */
.facility-coverage[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    border-radius: var(--tblr-border-radius);
}


/* ---------------- Map toolbar over the map (2026-11-13) ---------------- */

/* Light, like the map's own controls and the side panel (owner, 2026-11-13: same layout, white rather than
   dark). In the place of Leaflet's zoom and focus buttons, which are hidden on the Facilities tab (it has its
   own), above the map's controls (z-index 1000). Tabler tokens, so it follows the theme. */
.facility-toolbar[b-xk2egj0xkg] {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.375rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.facility-tool[b-xk2egj0xkg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: var(--tblr-secondary);
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
}

.facility-tool:hover:not(:disabled)[b-xk2egj0xkg] {
    color: var(--tblr-body-color);
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.04));
}

.facility-tool.is-active[b-xk2egj0xkg] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
}

/* Nothing to do (Redo with nothing taken back, Undo with no point, 2026-11-24): clearly greyed out, so it is
   not mistaken for a working button. */
.facility-tool:disabled[b-xk2egj0xkg] {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Between zoom & focus and the drawing tools. */
.facility-toolbar-divider[b-xk2egj0xkg] {
    height: 1px;
    margin: 0.125rem 0.25rem;
    background: var(--tblr-border-color);
}

.facility-tool[b-xk2egj0xkg]  i {
    font-size: 1.25rem;
}

/* The tool's settings, beside the toolbar. */
.facility-tool-settings[b-xk2egj0xkg] {
    position: absolute;
    top: 10px;
    left: 62px;
    z-index: 1001;
    width: 17.5rem;
    max-height: calc(100% - 20px);
    overflow-y: auto;
    padding: 1rem;
    color: var(--tblr-body-color);
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.tool-modes[b-xk2egj0xkg] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.tool-mode[b-xk2egj0xkg] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    padding: 0.75rem 0.25rem;
    color: var(--tblr-body-color);
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.625rem;
}

.tool-mode:hover[b-xk2egj0xkg] {
    border-color: rgba(var(--tblr-primary-rgb), 0.6);
}

.tool-mode.is-active[b-xk2egj0xkg] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.08);
    border-color: var(--tblr-primary);
}

.tool-mode[b-xk2egj0xkg]  i {
    font-size: 1.75rem;
}

.tool-hint[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    border-radius: 0.5rem;
}

/* A phone: the settings go under the toolbar's row rather than beside it. */
@media (max-width: 575.98px) {
    .facility-tool-settings[b-xk2egj0xkg] {
        top: auto;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 55%;
    }
}

/* ---------------- The eraser's Undo toast (2026-11-13) ---------------- */

/* A compact white card at the bottom of the screen: the message, a divider, and "Undo" in the link colour; a
   thin line along the bottom shrinks to nothing over the time Undo is on offer (animation-duration inline). */
.undo-toast[b-xk2egj0xkg] {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 1100;
    transform: translateX(-50%);
    display: flex;
    align-items: stretch;
    max-width: calc(100vw - 2rem);
    overflow: hidden;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.625rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.undo-message[b-xk2egj0xkg] {
    padding: 0.875rem 1.25rem;
    font-weight: 500;
    color: var(--tblr-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.undo-button[b-xk2egj0xkg] {
    padding: 0 1.125rem;
    font-weight: 600;
    color: var(--tblr-azure, #4299e1);
    background: transparent;
    border: 0;
    border-left: 1px solid var(--tblr-border-color);
}

.undo-button:hover[b-xk2egj0xkg] {
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.04));
}

.undo-progress[b-xk2egj0xkg] {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--tblr-azure, #4299e1);
    transform-origin: left;
    animation-name: undo-countdown-b-xk2egj0xkg;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes undo-countdown-b-xk2egj0xkg {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ---------------- Roads (2026-11-13) ---------------- */

/* The road outline colour, as farmBoundaryEditor.js ROAD_CASING. */
.road-icon[b-xk2egj0xkg] {
    color: #495057;
}

/* Line style: a short sample of each line in the Solid / Dashed buttons. */
.tool-mode.line-style[b-xk2egj0xkg] {
    padding: 0.625rem 0.25rem;
}

.line-sample[b-xk2egj0xkg] {
    display: block;
    width: 70%;
    height: 0;
    margin: 0.375rem 0;
    border-top: 3px solid currentColor;
}

.line-sample.is-dashed[b-xk2egj0xkg] {
    border-top-style: dashed;
}

/* A toolbar tool that cannot be used yet (2026-11-13: Circle over a boundary drawn by its corners).
   Disabled; its title says why. */
.facility-tool.is-blocked[b-xk2egj0xkg] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---- Crop areas (2026-11-16) ---- */

/* The beds of the picked crop area, one chip each, in the colour of the crop the bed grows (--bed-color).
   Clicking one picks the bed, as clicking it on the map does. */
.bed-chips[b-xk2egj0xkg] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.bed-chip[b-xk2egj0xkg] {
    min-width: 2rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--tblr-body-color);
    cursor: pointer;
    background: color-mix(in srgb, var(--bed-color, #ff922b) 28%, var(--tblr-bg-surface));
    border: 2px solid var(--bed-color, #ff922b);
    border-radius: var(--tblr-border-radius-sm, 4px);
}

.bed-chip:hover[b-xk2egj0xkg] {
    background: color-mix(in srgb, var(--bed-color, #ff922b) 45%, var(--tblr-bg-surface));
}

.bed-chip.is-selected[b-xk2egj0xkg] {
    color: var(--tblr-bg-surface);
    background: var(--tblr-body-color);
    border-color: var(--tblr-body-color);
}

.bed-chip:disabled[b-xk2egj0xkg] {
    cursor: default;
    opacity: 0.7;
}

/* A crop area's card (2026-11-16): a head (its number, where it is, how many beds), then one row per crop with
   the beds it grows on, then — on the picked area — its beds and "Add another crop". */
.area-card[b-xk2egj0xkg] {
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    border: 1px solid transparent;
    border-radius: var(--tblr-border-radius);
}

.area-card:hover[b-xk2egj0xkg] {
    border-color: var(--tblr-border-color);
}

.area-card.is-selected[b-xk2egj0xkg] {
    background: rgba(21, 170, 191, 0.08);
    border-color: rgba(var(--tblr-primary-rgb), 0.6);
}

.area-card-head[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem 0.25rem 1rem;
    cursor: pointer;
}

.area-crops[b-xk2egj0xkg] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0 0.5rem 0.5rem;
}

.area-crop[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--tblr-border-radius-sm, 4px);
}

.area-crop:hover[b-xk2egj0xkg] {
    background: var(--tblr-bg-surface);
}

/* Its beds are the ones picked on the map. */
.area-crop.is-active[b-xk2egj0xkg] {
    background: var(--tblr-bg-surface);
    border-color: var(--tblr-body-color);
}

.area-crop-remove[b-xk2egj0xkg] {
    --tblr-btn-padding-y: 0;
    min-height: 1.5rem;
    min-width: 1.5rem;
}

.area-beds[b-xk2egj0xkg] {
    padding: 0.5rem 0.75rem 0.75rem;
    border-top: 1px solid var(--tblr-border-color);
}

/* The pencil beside a crop area's name, and the tip under it while the shape is being changed. */
.area-edit[b-xk2egj0xkg] {
    --tblr-btn-padding-y: 0;
    min-width: 1.5rem;
    min-height: 1.5rem;
}

.area-edit.is-active[b-xk2egj0xkg] {
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
}

.area-edit[b-xk2egj0xkg]  i {
    font-size: 1rem;
}

.area-edit-tip[b-xk2egj0xkg] {
    display: flex;
    gap: 0.4rem;
    margin: 0 0.75rem 0.4rem 1rem;
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
}

.area-edit-tip[b-xk2egj0xkg]  i {
    font-size: 1rem;
    color: var(--tblr-yellow, #f59f00);
}

/* A blocked tool says why the moment the pointer is over it (2026-11-16): a title tooltip makes the user wait.
   The toolbar is a column down the map's left edge, so the reason opens to the tool's right. A disabled button
   still matches :hover, which is all this needs. */
.facility-tool.is-blocked[data-tip][b-xk2egj0xkg] {
    position: relative;
}

.facility-tool.is-blocked[data-tip]:hover[b-xk2egj0xkg]::after {
    content: attr(data-tip);
    position: absolute;
    top: 50%;
    left: calc(100% + 0.75rem);
    z-index: 1002;
    width: max-content;
    max-width: 17rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.35;
    color: #fff;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    background: #1f2937;
    border-radius: 0.375rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%);
}

/* ---- The Crops step (owner design 2026-11-18): numbered heading, Growing Location, area cards, subdivisions ---- */
.crop-areas-head[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.crop-areas-step[b-xk2egj0xkg] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    font-weight: 600;
    color: #fff;
    background: var(--tblr-primary);
    border-radius: 50%;
}

.crop-areas-title[b-xk2egj0xkg] {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.crop-areas-count[b-xk2egj0xkg] {
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.05));
    border-radius: var(--tblr-border-radius-sm, 4px);
}

.area-card.is-outlined[b-xk2egj0xkg] {
    background: var(--tblr-bg-surface);
    border-color: rgba(var(--tblr-primary-rgb), 0.55);
}

    .area-card.is-outlined.is-selected[b-xk2egj0xkg] {
        background: rgba(var(--tblr-primary-rgb), 0.05);
        border-color: var(--tblr-primary);
        box-shadow: 0 0 0 1px var(--tblr-primary);
    }

.area-card-foot[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.75rem 1rem;
}

.area-badges[b-xk2egj0xkg] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    min-width: 0;
}

.area-badge[b-xk2egj0xkg] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--crop-color);
    background: color-mix(in srgb, var(--crop-color) 12%, transparent);
    border-radius: var(--tblr-border-radius-sm, 4px);
    white-space: nowrap;
}

    .area-badge.is-none[b-xk2egj0xkg] {
        color: var(--tblr-secondary);
        background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.06));
    }

    .area-badge[b-xk2egj0xkg]  i {
        font-size: 0.875rem;
    }

.area-manage[b-xk2egj0xkg],
.area-add[b-xk2egj0xkg],
.area-panel-link[b-xk2egj0xkg] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    font-weight: 500;
    color: var(--tblr-primary);
    text-decoration: none;
    white-space: nowrap;
}

    .area-manage[b-xk2egj0xkg]  i,
    .area-add[b-xk2egj0xkg]  i,
    .area-panel-link[b-xk2egj0xkg]  i {
        font-size: 1rem;
    }

.area-add[b-xk2egj0xkg] {
    margin: 0.25rem 0 1rem;
}

.subdiv-head[b-xk2egj0xkg] {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.subdiv-box[b-xk2egj0xkg] {
    padding: 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.05);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.25);
    border-radius: var(--tblr-border-radius-lg, 8px);
}

/* ---- Manage Area: the side panel. No backdrop: the map's beds stay clickable while it is open. ---- */
.area-panel[b-xk2egj0xkg] {
    width: min(32rem, 100vw);
    visibility: visible;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
}

    .area-panel .offcanvas-header[b-xk2egj0xkg] {
        padding: 1.5rem 1.5rem 1rem;
    }

    .area-panel .offcanvas-title[b-xk2egj0xkg] {
        font-size: 1.5rem;
        font-weight: 600;
        margin: 0.125rem 0;
    }

    .area-panel .offcanvas-body[b-xk2egj0xkg] {
        padding: 0.5rem 1.5rem 1.5rem;
    }

.area-panel-kicker[b-xk2egj0xkg],
.area-panel-section > span[b-xk2egj0xkg] {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
}

.area-panel-close[b-xk2egj0xkg] {
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.05));
}

.area-panel-section[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.area-panel-box[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
}

.area-panel-pill[b-xk2egj0xkg],
.assign-pill[b-xk2egj0xkg] {
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.06));
    border-radius: var(--tblr-border-radius-sm, 4px);
    white-space: nowrap;
}

    .assign-pill.is-count[b-xk2egj0xkg] {
        color: var(--tblr-blue);
        background: rgba(var(--tblr-blue-rgb), 0.1);
    }

.assign-box[b-xk2egj0xkg] {
    margin-bottom: 0.75rem;
    padding: 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.06);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.45);
    border-radius: var(--tblr-border-radius-lg, 8px);
}

.assign-chips[b-xk2egj0xkg] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.5rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
}

.assign-chip[b-xk2egj0xkg] {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.05));
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: var(--tblr-border-radius, 6px);
    cursor: pointer;
}

    .assign-chip.has-crop[b-xk2egj0xkg] {
        border-bottom-color: var(--bed-color);
    }

    .assign-chip:hover[b-xk2egj0xkg] {
        border-color: var(--tblr-border-color);
    }

    .assign-chip.is-selected[b-xk2egj0xkg] {
        color: var(--tblr-body-color);
        background: var(--tblr-bg-surface);
        border-color: var(--tblr-gray-500, #6c7a91);
        box-shadow: 0 0 0 1px var(--tblr-gray-500, #6c7a91);
    }

.assign-rows[b-xk2egj0xkg] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.assign-row[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
    cursor: pointer;
}

    .assign-row:hover[b-xk2egj0xkg] {
        background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.03));
    }

    .assign-row.is-active[b-xk2egj0xkg] {
        border-color: rgba(var(--tblr-primary-rgb), 0.6);
        background: rgba(var(--tblr-primary-rgb), 0.05);
    }

.assign-radio[b-xk2egj0xkg] {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    border: 1px solid var(--tblr-gray-400, #9ba9be);
    border-radius: 50%;
}

    .assign-radio.is-on[b-xk2egj0xkg] {
        border: 5px solid var(--bed-color);
        background: #fff;
    }

.area-panel-foot[b-xk2egj0xkg] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--tblr-border-color);
}

    .area-panel-foot .btn[b-xk2egj0xkg]  i {
        font-size: 1.125rem;
        margin-right: 0.25rem;
    }

/* Crop assignments, to the owner's card design (2026-11-18): a bed with a crop is tinted in its crop's colour, an
   unassigned one grey; a crop row's circle is outlined in its colour. These come after the first version's rules. */
.assign-chip[b-xk2egj0xkg] {
    min-width: 2.5rem;
    height: 2.5rem;
    color: var(--tblr-secondary);
    background: var(--tblr-gray-100, #f1f3f5);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
}

    .assign-chip.has-crop[b-xk2egj0xkg] {
        color: var(--bed-color);
        background: color-mix(in srgb, var(--bed-color) 10%, #fff);
        border-color: color-mix(in srgb, var(--bed-color) 35%, #fff);
    }

    .assign-chip.is-selected[b-xk2egj0xkg] {
        color: var(--tblr-body-color);
        border-color: var(--tblr-gray-500, #6c7a91);
        box-shadow: 0 0 0 1px var(--tblr-gray-500, #6c7a91);
    }

    .assign-chip.has-crop.is-selected[b-xk2egj0xkg] {
        color: var(--bed-color);
        border-color: var(--bed-color);
        box-shadow: 0 0 0 1px var(--bed-color);
    }

.assign-hint[b-xk2egj0xkg] {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
}

.assign-radio[b-xk2egj0xkg] {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--tblr-gray-100, #f1f3f5);
    border: 1.5px solid var(--tblr-gray-400, #9ba9be);
}

    .assign-radio.has-crop[b-xk2egj0xkg] {
        background: #fff;
        border-color: var(--bed-color);
    }

    .assign-radio.is-on[b-xk2egj0xkg] {
        border-width: 5px;
        border-color: var(--bed-color);
        background: #fff;
    }

.assign-row .fw-medium[b-xk2egj0xkg] {
    font-weight: 600 !important;
}

/* The area card's crops and ⋮ menu (owner design 2026-11-18, second pass). */
.area-card-crops[b-xk2egj0xkg] {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem 0.5rem 1rem;
}

.area-card-crop[b-xk2egj0xkg] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.area-menu-btn[b-xk2egj0xkg]  i {
    font-size: 1.25rem;
}

.area-menu-btn.is-active[b-xk2egj0xkg] {
    color: var(--tblr-primary);
}

.area-menu-backdrop[b-xk2egj0xkg] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.area-menu[b-xk2egj0xkg] {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 1001;
    min-width: 0;
}

    .area-menu .dropdown-item[b-xk2egj0xkg]  i {
        font-size: 1.125rem;
    }

/* The ⋮ menu: two plain items, Edit and Delete (owner, 2026-11-18). */
.area-menu[b-xk2egj0xkg] {
    /* Fit the two words: the theme gives dropdowns a min width and, in places, width: 100%. */
    --tblr-dropdown-min-width: 0;
    min-width: 0;
    width: max-content;
    padding: 0.25rem 0;
    border-radius: var(--tblr-border-radius-lg, 8px);
}

    .area-menu .dropdown-item[b-xk2egj0xkg] {
        padding: 0.5rem 1rem;
    }

/* Delete stays red on hover (the theme's dropdown hover turns every item teal), on a light red background. */
.area-menu .dropdown-item.text-danger:hover[b-xk2egj0xkg],
.area-menu .dropdown-item.text-danger:focus[b-xk2egj0xkg] {
    color: var(--tblr-danger) !important;
    background: rgba(var(--tblr-danger-rgb), 0.08);
}

/* The ✕ at the end of a crop row in Manage Area: unassigns that crop. */
.assign-clear[b-xk2egj0xkg] {
    margin-right: -0.25rem;
    flex-shrink: 0;
}

    .assign-clear[b-xk2egj0xkg]  i {
        font-size: 1.125rem;
    }
/* /Features/Farms/FarmEdit/PlantStock/FarmPlantStock.razor.rz.scp.css */
/* The farm setup screen: view-only map left, Farm Details panel right, both the viewport's height on a wide
   screen. Scoped — RadzenIcon's <i> and the map component's element are reached through ::deep. */

.map-frame[b-xk769bghe8] {
    display: block;
    height: calc(100vh - 13rem);
    min-height: 26rem;
    overflow: hidden;
    position: relative;
    border-radius: var(--tblr-card-border-radius, 18px);
    background: var(--tblr-bg-surface-secondary);
}

.map-frame[b-xk769bghe8]  .farm-boundary-map {
    width: 100%;
    height: 100%;
}

.details-card[b-xk769bghe8] {
    height: calc(100vh - 13rem);
    min-height: 26rem;
    display: flex;
    flex-direction: column;
}

.details-body[b-xk769bghe8] {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* On a phone the map and the panel stack; the panel then grows with its content. */
@media (max-width: 991.98px) {
    .map-frame[b-xk769bghe8] {
        height: 55vh;
        min-height: 18rem;
    }

    .details-card[b-xk769bghe8] {
        height: auto;
        min-height: 0;
    }

    .details-body[b-xk769bghe8] {
        overflow-y: visible;
    }
}

.section-title[b-xk769bghe8] {
    color: var(--tblr-secondary);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: .5rem;
}

.summary-tile[b-xk769bghe8] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
    height: 100%;
}

.summary-icon[b-xk769bghe8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--tblr-border-radius, 6px);
    flex: 0 0 auto;
}

.area-card[b-xk769bghe8] {
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
}

.area-head[b-xk769bghe8] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .75rem;
    background: none;
    border: 0;
    text-align: left;
    color: inherit;
}

.area-body[b-xk769bghe8] {
    padding: 0 .75rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.crop-row[b-xk769bghe8] {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.crop-row-card[b-xk769bghe8],
.managed-crop[b-xk769bghe8] {
    padding: .5rem .75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
}

/* Manage reads as a link but is not underlined on hover (owner, 2026-12-01). */
.manage-link[b-xk769bghe8],
.manage-link:hover[b-xk769bghe8],
.manage-link:focus[b-xk769bghe8] {
    text-decoration: none;
}

/* Select Crop: one bordered list, a row per crop, the picked one tinted. */
.crop-list[b-xk769bghe8] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    overflow: hidden;
}

.crop-choice[b-xk769bghe8] {
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    padding: .7rem 1rem;
    color: inherit;
    background: var(--tblr-bg-surface);
    border: 0;
}

.crop-choice + .crop-choice[b-xk769bghe8] {
    border-top: 1px solid var(--tblr-border-color);
}

.crop-choice:hover[b-xk769bghe8],
.crop-choice:focus-visible[b-xk769bghe8] {
    background: rgba(var(--tblr-primary-rgb), .06);
    outline: none;
}

.crop-choice.picked[b-xk769bghe8] {
    background: rgba(var(--tblr-primary-rgb), .12);
}

/* "Current planting: Corn-Oct2026 ↗", a pill that opens the planting in Task Setup. */
.planting-chip[b-xk769bghe8] {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    max-width: 100%;
    padding: .2rem .6rem;
    border: 1px solid rgba(var(--tblr-primary-rgb), .35);
    border-radius: 999px;
    background: rgba(var(--tblr-primary-rgb), .08);
    color: var(--tblr-primary);
    font-size: .875rem;
    text-decoration: none;
    white-space: nowrap;
}

.planting-chip:hover[b-xk769bghe8] {
    background: rgba(var(--tblr-primary-rgb), .16);
}

.planting-chip[b-xk769bghe8]  .rzi {
    font-size: 1rem;
}

.crop-avatar[b-xk769bghe8] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    flex: 0 0 auto;
}

.stock-tile[b-xk769bghe8] {
    padding: .75rem 1rem;
    border-radius: var(--tblr-border-radius-lg, 8px);
    background: var(--tblr-bg-surface-secondary);
}

.bed-label[b-xk769bghe8] {
    flex: 0 0 auto;
    min-width: 3.5rem;
    white-space: nowrap;
    margin: 0;
}

.min-w-0[b-xk769bghe8] {
    min-width: 0;
}

/* The switch confirmation's warning sign (owner design 2026-12-01). */
[b-xk769bghe8] .switch-icon {
    font-size: 2.5rem;
}

/* Recent activity: past four lines it scrolls inside its own section (owner, 2026-12-01). About four lines tall at panel width;
   a line is usually two to three rows of text (what wraps, then when) and its gap. */
.activity-list.scrolls[b-xk769bghe8] {
    max-height: 17rem;
    overflow-y: auto;
    padding-right: .25rem;
    overscroll-behavior: contain;
}

/* The crop-change reset warning (2026-12-02): the farm form's Recorded Plants design, in orange. */
[b-xk769bghe8] .reset-warning-icon,
.reset-warning-icon[b-xk769bghe8] {
    color: var(--tblr-orange, #f76707);
}

.reset-warning-group[b-xk769bghe8] {
    margin-top: 1rem;
    padding: .75rem;
    text-align: left;
    background: rgba(var(--tblr-orange-rgb, 247, 103, 7), .08);
    border-radius: var(--tblr-border-radius, 6px);
}

.reset-confirm[b-xk769bghe8],
.reset-confirm:hover[b-xk769bghe8] {
    color: #fff;
    background-color: var(--tblr-orange, #f76707);
    border-color: var(--tblr-orange, #f76707);
}
/* /Features/Farms/FarmList/FarmList.razor.rz.scp.css */
/* Farm Setup's card grid. Scoped: anything rendered by a child component (RadzenIcon's <i>) is reached
   through ::deep. */

.filter-card[b-b08s9nhuz9] {
    position: sticky;
    top: 9rem; /* below the two-row sticky header */
}

.clear-all[b-b08s9nhuz9] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

.filter-group[b-b08s9nhuz9] {
    padding-top: 0.875rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--tblr-border-color);
}

.filter-title[b-b08s9nhuz9] {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.filter-group .form-check[b-b08s9nhuz9] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.filter-count[b-b08s9nhuz9] {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
}

.farm-card[b-b08s9nhuz9] {
    border: 1px solid var(--tblr-border-color);
    box-shadow: none;
}

.farm-card:hover[b-b08s9nhuz9] {
    border-color: var(--tblr-primary);
}

.farm-name[b-b08s9nhuz9] {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--tblr-body-color);
    text-decoration: none;
}

.farm-name:hover[b-b08s9nhuz9] {
    color: var(--tblr-primary);
}

.edit-link[b-b08s9nhuz9] {
    color: var(--tblr-primary);
    line-height: 1;
}

.chip[b-b08s9nhuz9] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.04));
    border-radius: var(--tblr-border-radius-sm);
}

.chip[b-b08s9nhuz9]  i,
.next-harvest[b-b08s9nhuz9]  i,
.clear-all[b-b08s9nhuz9]  i,
.input-icon-addon[b-b08s9nhuz9]  i,
.edit-link[b-b08s9nhuz9]  i {
    font-size: 1.125rem;
}

.chip[b-b08s9nhuz9]  i {
    font-size: 0.9375rem;
}

.crop-avatar[b-b08s9nhuz9] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.375rem;
    border: 1px solid transparent;
    border-radius: 50%;
}

/* The design's red dot: the crop whose harvest is due now. */
.crop-dot[b-b08s9nhuz9] {
    position: absolute;
    top: 0.125rem;
    right: 0.125rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--tblr-danger);
    box-shadow: 0 0 0 2px var(--tblr-bg-surface);
}

.next-harvest[b-b08s9nhuz9] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    max-width: 100%;
    padding: 0.25rem 0.625rem;
    font-size: 0.875rem;
    color: #0c8599;
    background: rgba(21, 170, 191, 0.1);
    border-radius: var(--tblr-border-radius-sm);
}

@media (max-width: 767.98px) {
    .filter-card[b-b08s9nhuz9] {
        position: static;
    }
}

/* A count still loading: a short grey bar where the number will be, rather than a misleading 0. */
.sk-count[b-b08s9nhuz9] {
    display: inline-block;
    width: 1.25rem;
    height: 0.75rem;
    border-radius: var(--tblr-border-radius-sm);
}
/* /Features/Farms/FarmList/FarmListSkeleton.razor.rz.scp.css */
.sk-farm-card[b-p35fcr4zts] {
    border: 1px solid var(--tblr-border-color);
    box-shadow: none;
}

.sk-farm-card .placeholder[b-p35fcr4zts] {
    display: block;
    border-radius: var(--tblr-border-radius-sm);
}

.sk-farm-card .d-flex .placeholder[b-p35fcr4zts] {
    display: inline-block;
}

.sk-icon[b-p35fcr4zts] {
    width: 1.25rem;
    height: 1.25rem;
}

.sk-name[b-p35fcr4zts] {
    height: 1.125rem;
}

.sk-chip[b-p35fcr4zts] {
    width: 4.5rem;
    height: 1.375rem;
}

.sk-crop[b-p35fcr4zts] {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50% !important;
}

.sk-harvest[b-p35fcr4zts] {
    height: 1.625rem;
}
/* /Features/Farms/FarmList/FilterOptionsPlaceholder.razor.rz.scp.css */
.sk-option[b-8zltcko0bb] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.sk-option .placeholder[b-8zltcko0bb] {
    border-radius: var(--tblr-border-radius-sm);
}

.sk-box[b-8zltcko0bb] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
/* /Features/Farms/FarmOverview/FarmOverview.razor.rz.scp.css */
/* The farm page, 3.0 design (2026-11-24). Scoped — RadzenIcon's <i> and the map component's element are reached
   through ::deep. */

/* ---- Header ---- */
.back-link[b-q8txudumwk] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--tblr-primary);
    text-decoration: none;
}

.back-link[b-q8txudumwk]  i {
    font-size: 1rem;
}

.farm-name[b-q8txudumwk] {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.farm-location[b-q8txudumwk] {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--tblr-body-color);
}

.farm-location[b-q8txudumwk]  i {
    color: var(--tblr-primary);
    font-size: 1.25rem;
}

.farm-chip[b-q8txudumwk] {
    padding: 0.125rem 0.5rem;
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary, rgba(0, 0, 0, 0.04));
    border-radius: var(--tblr-border-radius);
}

/* ---- Map | Crop Production: the same height on a wide screen ---- */
.map-frame[b-q8txudumwk],
.side-card[b-q8txudumwk] {
    height: 32rem;
}

.map-frame[b-q8txudumwk] {
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: var(--tblr-card-border-radius, 18px);
    background: var(--tblr-bg-surface-secondary);
}

.map-frame[b-q8txudumwk]  .farm-boundary-map {
    width: 100%;
    height: 100%;
}

.map-empty[b-q8txudumwk] {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.map-empty[b-q8txudumwk]  i {
    font-size: 2rem;
}

.side-card[b-q8txudumwk] {
    display: flex;
    flex-direction: column;
}

.side-scroll[b-q8txudumwk] {
    flex: 1 1 auto;
    overflow-y: auto;
}

.crop-chips[b-q8txudumwk] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* A crop's Material Symbols icon in its colour, on a light tint of it. */
.crop-icon[b-q8txudumwk] {
    --crop-color: #2fb344;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: var(--crop-color);
    background: color-mix(in srgb, var(--crop-color) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--crop-color) 30%, transparent);
}

.crop-icon[b-q8txudumwk]  i {
    font-size: 1.375rem;
}

.cycle-card[b-q8txudumwk] {
    padding: 0.75rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 8px);
}

/* The crop cycle bar (owner, 2026-11-25): thicker than Tabler's, and Growing in the design's orange. */
.cycle-progress[b-q8txudumwk] {
    height: 0.625rem;
    border-radius: 999px;
}

.cycle-progress .progress-bar[b-q8txudumwk] {
    border-radius: 999px;
}

.bar-growing[b-q8txudumwk] {
    background-color: #FA9427;
}

/* ---- Weather: today, then the next days ---- */
.weather-strip[b-q8txudumwk] {
    display: grid;
    grid-template-columns: 2fr repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.weather-day[b-q8txudumwk] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 10.5rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-radius: var(--tblr-card-border-radius, 12px);
    /* A visible card in both themes: the surface colours sit too close to the page background. */
    background: rgba(var(--tblr-secondary-rgb), 0.1);
}

/* Workers: initials small enough to stay readable where the stacked avatars overlap. */
.worker-avatar[b-q8txudumwk] {
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid var(--tblr-bg-surface);
}

.weather-day.is-today[b-q8txudumwk] {
    color: #fff;
    background: #5b6575;
}

/* The weather pictures (wwwroot/img/weather, 2026-11-25). Square-ish PNGs with soft glows, about 400 px wide. */
.weather-img[b-q8txudumwk] {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: contain;
}

.weather-day.is-today .weather-img[b-q8txudumwk] {
    width: 6rem;
    height: 6rem;
}

/* ---- Phone and tablet: everything stacks ---- */
@media (max-width: 991.98px) {
    .map-frame[b-q8txudumwk] {
        height: 55vh;
        min-height: 18rem;
    }

    .side-card[b-q8txudumwk] {
        height: auto;
        max-height: 32rem;
    }
}

@media (max-width: 575.98px) {
    /* Today across the top, the next five in a row under it. */
    .weather-strip[b-q8txudumwk] {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.375rem;
    }

    .weather-day.is-today[b-q8txudumwk] {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .weather-day[b-q8txudumwk] {
        min-height: 7rem;
        padding: 0.5rem 0.25rem;
    }

    .weather-img[b-q8txudumwk] {
        width: 2.5rem;
        height: 2.5rem;
    }
}
/* /Features/Platform/AuditLog/PlatformAudit.razor.rz.scp.css */
/* A row's before/after values: long JSON wraps, and a very long value scrolls inside its cell. */
.audit-detail[b-yh1du9buw1] {
    margin-left: 2.25rem;
}

.audit-value[b-yh1du9buw1] {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: var(--tblr-font-monospace);
    font-size: 0.75rem;
    max-width: 28rem;
}

.audit-value:empty[b-yh1du9buw1]::before {
    content: "—";
}

@media (max-width: 575.98px) {
    .audit-detail[b-yh1du9buw1] {
        margin-left: 0;
    }
}
/* /Features/Platform/CropLibrary/CropLibrary.razor.rz.scp.css */
/* The Category › Class › Sub class tree: one row per node, indented by level (inline padding). */
.library-tree .library-node[b-i7j7ujpgqf] {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    padding-right: 0.5rem;
}

.library-tree .library-node.active[b-i7j7ujpgqf] {
    background: var(--tblr-primary-lt);
}

.library-tree .library-node.retired .library-node-name[b-i7j7ujpgqf] {
    text-decoration: line-through;
    color: var(--tblr-secondary);
}

.library-tree .library-node-name[b-i7j7ujpgqf] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Keeps names aligned whether or not a row has an expand chevron. */
.library-spacer[b-i7j7ujpgqf] {
    display: inline-block;
    width: 1.5rem;
    flex: none;
}

.library-move[b-i7j7ujpgqf] {
    display: inline-flex;
    flex: none;
}
/* /Features/Platform/CropLibrary/CropTemplateEditor.razor.rz.scp.css */
/* A stage row: the days box is sized to its numbers rather than stretched across the card. */
.stage-days[b-naslrp5cpp] {
    width: 9rem;
    flex: none;
}

/* A stage's eleven nutrients: as many narrow boxes per line as fit, four or more on a phone. */
.stage-nutrients[b-naslrp5cpp] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
    gap: .5rem;
}

.stage-nutrient[b-naslrp5cpp] {
    display: flex;
    flex-direction: column;
    margin: 0;
}
/* /Features/Platform/CropLibrary/PestCatalogue.razor.rz.scp.css */
.catalogue-search[b-qmatfzha4f] {
    flex: 1 1 16rem;
    min-width: 0;
}
/* /Features/Tasks/Calendar/TaskScheduler.razor.rz.scp.css */
/* Task Overview (2026-10-14 design): tinted-icon tiles, segmented view tabs, the Radzen scheduler restyled
   through its own CSS variables, and the read-only Task Board. Tabler Icons (<i class="ti">) are this
   component's own elements; Radzen's markup is reached with ::deep. */

/* ---------------- Tiles ---------------- */

.to-stats[b-c838h94l58] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
    .to-stats[b-c838h94l58] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .to-stats[b-c838h94l58] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.to-tile[b-c838h94l58] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.to-tile-icon[b-c838h94l58] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 8px;
    font-size: 1.35rem;
}

.is-blue[b-c838h94l58] { --tone: #206bc4; }
.is-purple[b-c838h94l58] { --tone: #ae3ec9; }
.is-green[b-c838h94l58] { --tone: #2fb344; }
.is-orange[b-c838h94l58] { --tone: #f76707; }

.to-tile-icon[b-c838h94l58] {
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 10%, transparent);
}

.to-tile-body[b-c838h94l58] {
    flex: 1 1 auto;
    min-width: 0;
}

.to-tile-label[b-c838h94l58] {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.to-tile-value[b-c838h94l58] {
    margin-top: 0.15rem;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

    /* All task reads in the body colour, as in the design; the others in their tile's colour. */
    .to-tile-value.is-purple[b-c838h94l58],
    .to-tile-value.is-orange[b-c838h94l58] {
        color: var(--tone);
    }

    .to-tile-value.is-green[b-c838h94l58] {
        color: var(--tblr-body-color);
    }

.to-tile-picker[b-c838h94l58] {
    flex: none;
    line-height: 1;
}

/* A tile that opens a page (Scouting, 2026-11-12): the icon, label and figure are the link. */
.to-tile-link[b-c838h94l58] {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

    .to-tile-link:hover[b-c838h94l58] { text-decoration: none; }

    /* A button since 2026-11-25 (it opens the Scouting overview on this page): no button chrome. */
    button.to-tile-link[b-c838h94l58] {
        flex: 1 1 auto;
        padding: 0;
        font: inherit;
        text-align: left;
        background: none;
        border: 0;
    }
    .to-tile-link:hover .to-tile-label[b-c838h94l58] { color: var(--tblr-primary); }

.to-tile-arrow[b-c838h94l58] {
    margin-left: 0.25rem;
    font-size: 1.1rem;
    vertical-align: middle;
}

/* ---------------- Maintenance / Observation, and the view tabs (2026-11-25) ---------------- */

.to-toolbar[b-c838h94l58] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.to-kind[b-c838h94l58] {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.to-kind-btn[b-c838h94l58] {
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    color: var(--tblr-body-color);
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
}

    .to-kind-btn:hover[b-c838h94l58] {
        border-color: var(--tblr-primary);
    }

    .to-kind-btn.active[b-c838h94l58] {
        color: var(--tblr-primary);
        background: rgba(var(--tblr-primary-rgb), 0.08);
        border-color: var(--tblr-primary);
        font-weight: 500;
    }

/* ---------------- View tabs ---------------- */

.to-segment[b-c838h94l58] {
    display: inline-flex;
    padding: 0.2rem;
    gap: 0.15rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
}

.to-segment-btn[b-c838h94l58] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: var(--tblr-secondary);
    background: transparent;
    border: 0;
    border-radius: 6px;
}

    .to-segment-btn:hover[b-c838h94l58] {
        color: var(--tblr-body-color);
    }

    .to-segment-btn.active[b-c838h94l58] {
        color: var(--tblr-body-color);
        background: var(--tblr-bg-surface);
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    }

    .to-segment-btn .ti[b-c838h94l58] {
        font-size: 1.05rem;
    }

/* ---------------- Calendar: the scheduler, through its own variables ---------------- */

.to-calendar[b-c838h94l58] {
    border-radius: 12px;

    --rz-scheduler-border: 1px solid var(--tblr-border-color);
    --rz-scheduler-border-color: var(--tblr-border-color);
    --rz-scheduler-minor-border-color: var(--tblr-border-color-light, #eef0f3);
    --rz-scheduler-border-radius: 8px;
    --rz-scheduler-background-color: var(--tblr-bg-surface);
    --rz-scheduler-other-month-background-color: var(--tblr-bg-surface);
    --rz-scheduler-weekend-background-color: var(--tblr-bg-surface);
    --rz-scheduler-color: var(--tblr-secondary);

    --rz-scheduler-toolbar-background-color: transparent;
    --rz-scheduler-toolbar-padding: 0 0 1rem;
    --rz-scheduler-toolbar-title-font-size: 1.6rem;
    --rz-scheduler-toolbar-title-font-weight: 600;
    --rz-scheduler-toolbar-title-color: var(--tblr-body-color);

    --rz-scheduler-prev-next-button-background-color: var(--tblr-bg-surface);
    --rz-scheduler-prev-next-button-color: var(--tblr-body-color);
    --rz-scheduler-prev-next-button-padding-block: 0.5rem;
    --rz-scheduler-prev-next-button-padding-inline: 0.85rem;
    --rz-scheduler-prev-button-border-start-start-radius: 8px;
    --rz-scheduler-prev-button-border-end-start-radius: 8px;
    --rz-scheduler-prev-button-border-start-end-radius: 8px;
    --rz-scheduler-prev-button-border-end-end-radius: 8px;
    --rz-scheduler-next-button-border-start-start-radius: 8px;
    --rz-scheduler-next-button-border-end-start-radius: 8px;
    --rz-scheduler-next-button-border-start-end-radius: 8px;
    --rz-scheduler-next-button-border-end-end-radius: 8px;
    --rz-scheduler-today-button-text-transform: none;
    --rz-scheduler-today-button-font-size: 0.95rem;
    --rz-scheduler-today-button-padding: 0.5rem 1.1rem;
    --rz-scheduler-today-button-margin-inline-start: 0.5rem;

    --rz-scheduler-view-button-background-color: var(--tblr-bg-surface);
    --rz-scheduler-view-button-color: var(--tblr-body-color);
    --rz-scheduler-view-button-border: 1px solid var(--tblr-border-color);
    --rz-scheduler-view-selected-background-color: rgba(var(--tblr-primary-rgb), 0.12);
    --rz-scheduler-view-selected-border-color: var(--tblr-primary);
    --rz-scheduler-view-selected-color: var(--tblr-primary);

    --rz-scheduler-header-background-color: var(--tblr-bg-surface-secondary);
    --rz-scheduler-header-font-size: 0.85rem;
    --rz-scheduler-header-padding: 0.5rem 0;
    --rz-scheduler-header-color: var(--tblr-secondary);

    --rz-scheduler-slot-title-font-size: 1.05rem;
    --rz-scheduler-slot-title-padding: 0.35rem 0.6rem;

    --rz-scheduler-event-font-size: 0.82rem;
    --rz-scheduler-event-line-height: 1.2;
    --rz-scheduler-event-content-padding: 0 0.55rem;
    --rz-scheduler-event-padding-inline: 4px;
    /* The gap between stacked bars: each bar's box is Radzen's row, the chip sits inside it with this margin. */
    --rz-scheduler-event-padding-block: 3px;
    --rz-scheduler-event-list-button-color: var(--tblr-primary);
    --rz-scheduler-event-list-button-font-size: 0.8rem;
}

    /* The prev / next / Today buttons as separate outlined buttons, a little apart, as in the design. */
    .to-calendar[b-c838h94l58]  .rz-scheduler-nav-prev-next {
        gap: 0.5rem;
    }

        .to-calendar[b-c838h94l58]  .rz-scheduler-nav-prev-next .rz-button {
            border: 1px solid var(--tblr-border-color);
            box-shadow: none;
        }

            .to-calendar[b-c838h94l58]  .rz-scheduler-nav-prev-next .rz-button.rz-today {
                margin-inline-start: 0.25rem;
            }

    /* Month / Week / Day look exactly like the prev / next / Today buttons (owner, 2026-11-04): separate white outlined
       buttons a little apart, sentence-case text. Radzen draws them as filled, uppercase, joined primary buttons, so
       each property it sets is put back. The selected view keeps the same button, outlined and lettered in primary. */
    .to-calendar[b-c838h94l58]  .rz-scheduler-nav-views {
        display: flex;
        gap: 0.5rem;
    }

        .to-calendar[b-c838h94l58]  .rz-scheduler-nav-views .rz-button {
            margin: 0;
            padding: 0.5rem 1.1rem;
            font-size: 0.95rem;
            font-weight: 400;
            letter-spacing: normal;
            text-transform: none;
            color: var(--tblr-body-color);
            background: var(--tblr-bg-surface);
            border: 1px solid var(--tblr-border-color);
            border-radius: 8px !important;
            box-shadow: none;
        }

            .to-calendar[b-c838h94l58]  .rz-scheduler-nav-views .rz-button:hover {
                background: var(--tblr-bg-surface-secondary);
            }

            .to-calendar[b-c838h94l58]  .rz-scheduler-nav-views .rz-button.rz-state-active {
                color: var(--tblr-primary);
                border-color: var(--tblr-primary);
            }

    /* No outline round the scheduler: neither its border nor the focus ring it draws when clicked. */
    .to-calendar[b-c838h94l58]  .rz-scheduler,
    .to-calendar[b-c838h94l58]  .rz-scheduler:focus,
    .to-calendar[b-c838h94l58]  .rz-scheduler:focus-visible {
        border: 0;
        border-radius: 8px;
        box-shadow: none;
        outline: none;
    }

    /* Room to breathe. Radzen places month bars with inline top/height in em, so the em of the event layer is
       the row pitch: 1.2rem gives each bar about 1.8rem, a ~1.45rem chip plus 3px above and below. The text has its own
       rem size, so it does not grow with it. */
    .to-calendar[b-c838h94l58]  .rz-month-view .rz-events,
    .to-calendar[b-c838h94l58]  .rz-month-view .rz-event {
        font-size: 1.2rem;
    }

    /* A chip: the task in the body weight, crop · farm smaller beside it, centred in its bar. */
    .to-calendar[b-c838h94l58]  .rz-event-content {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        border-radius: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .to-calendar[b-c838h94l58]  .rz-event-content > * {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .to-calendar[b-c838h94l58]  .chip-title {
        font-weight: 500;
    }

    /* The task name keeps its width; crop · farm is what gives way to the ellipsis on a short bar. */
    .to-calendar[b-c838h94l58]  .chip-title,
    .to-calendar[b-c838h94l58]  .cal-scout-icon {
        flex: none;
    }

    .to-calendar[b-c838h94l58]  .chip-sub {
        flex: 1 1 auto;
        font-size: 0.76rem;
        opacity: 0.75;
    }

/* ---------------- Task Board (2026-10-14 design) ---------------- */

.to-board[b-c838h94l58] {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(17rem, 1fr);
    gap: 1rem;
    align-items: start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    cursor: grab;
}

    /* While dragging sideways (dragScroll.js): no text selection, and no card hover flicker. */
    .to-board.is-dragging[b-c838h94l58] {
        cursor: grabbing;
        user-select: none;
    }

        .to-board.is-dragging .to-board-card[b-c838h94l58] {
            cursor: grabbing;
            pointer-events: none;
        }

.to-board-col[b-c838h94l58] {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
    padding: 0.6rem;
    background: var(--tblr-bg-surface-secondary);
    border-radius: 12px;
}

/* The column title on its own tint, as in the design; the count in the tint's deeper colour. */
.to-board-head[b-c838h94l58] {
    --tone: #868e96;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: color-mix(in srgb, var(--tone) 12%, var(--tblr-bg-surface));
    border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
    border-radius: 8px;
}

    .to-board-head.tone-todo[b-c838h94l58] { --tone: #f76707; }
    .to-board-head.tone-progress[b-c838h94l58] { --tone: #206bc4; }
    .to-board-head.tone-completed[b-c838h94l58] { --tone: #2fb344; }
    .to-board-head.tone-approved[b-c838h94l58] { --tone: #ae3ec9; }
    .to-board-head.tone-cancelled[b-c838h94l58] { --tone: #d63939; }
    .to-board-head.tone-incomplete[b-c838h94l58] { --tone: #d6336c; }
    /* Task statuses (owner, 2026-11-26): Upcoming and In Progress normal green, Overdue red, Pending Manager Approval
       light blue, Completed #a6e6bd, Cancelled grey. The calendar chips take the same families (TaskStatusDisplay.ChipColors). */
    .to-board-head.tone-task-upcoming[b-c838h94l58],
    .to-board-head.tone-task-progress[b-c838h94l58] { --tone: #2fb344; }
    .to-board-head.tone-task-overdue[b-c838h94l58] { --tone: #d63939; }
    .to-board-head.tone-task-pm[b-c838h94l58],
    .to-board-head.tone-task-psa[b-c838h94l58] { --tone: #4299e1; }
    .to-board-head.tone-task-done[b-c838h94l58] { --tone: #0f5c2b; background: #a6e6bd; border-color: #86d6a3; }   /* Completed: #a6e6bd */
    .to-board-head.tone-task-cancelled[b-c838h94l58] { --tone: #868e96; }
    /* The Observation board uses the task tones above since 2026-12-03 (owner): TaskScheduler.ScoutTone. */

.to-board-title[b-c838h94l58] {
    font-size: 1.15rem;
    font-weight: 600;
}

.to-board-count[b-c838h94l58] {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tone);
}

.to-board-empty[b-c838h94l58] {
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--tblr-secondary);
}

.to-board-card[b-c838h94l58] {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .to-board-card:hover[b-c838h94l58],
    .to-board-card:focus-visible[b-c838h94l58] {
        color: inherit;
        text-decoration: none;
        border-color: var(--tblr-primary);
        box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb), 0.12);
        outline: none;
    }

/* Title and crop, then a rule, then the facts. */
.to-board-card-top[b-c838h94l58] {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem 0.7rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.to-board-card-title[b-c838h94l58] {
    font-size: 1rem;
    font-weight: 600;
}

.to-board-card-sub[b-c838h94l58] {
    font-size: 0.88rem;
    color: var(--tblr-secondary);
}

/* The template's category, when it has one (optional since 2026-11-25). */
.to-board-card-category[b-c838h94l58] {
    align-self: flex-start;
    margin-top: 0.35rem;
}

.to-board-card-body[b-c838h94l58] {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem 1rem 0.85rem;
}

.to-board-card-meta[b-c838h94l58] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
}

    .to-board-card-meta > .ti[b-c838h94l58] {
        font-size: 1.1rem;
        color: var(--tblr-secondary);
    }

.to-board-overdue[b-c838h94l58] {
    padding: 0.05rem 0.5rem;
    font-size: 0.72rem;
    color: #d63939;
    background: rgba(214, 57, 57, 0.08);
    border: 1px solid rgba(214, 57, 57, 0.2);
    border-radius: 999px;
}

/* Overlapping initials, as the design's avatar stack. */
.to-avatars[b-c838h94l58] {
    display: inline-flex;
    align-items: center;
}

.to-avatar[b-c838h94l58] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin-inline-start: -0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--tblr-primary);
    /* Solid, not a translucent tint: each avatar covers the one before it, as in the design, rather than
       letting it show through. Later avatars come later in the DOM, so they already sit on top. */
    background: color-mix(in srgb, var(--tblr-primary) 14%, var(--tblr-bg-surface));
    border: 2px solid var(--tblr-bg-surface);
    border-radius: 50%;
}

    .to-avatar:first-child[b-c838h94l58] {
        margin-inline-start: 0;
    }

.to-avatar-more[b-c838h94l58] {
    color: var(--tblr-primary);
    background: var(--tblr-bg-surface);
    border-color: var(--tblr-primary);
    border-width: 1px;
}

/* ---------------- Shared with the task side panel ---------------- */
/* The panel itself is Components/Shared/TaskSidePanel (2026-11-11), with its own copy of these: the list's status
   badge and the board's flags use them here, and scoped CSS reaches only its own component's markup. */

.to-peek-badge[b-c838h94l58] {
    --tone: #868e96;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    white-space: nowrap;
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, transparent);
    border-radius: 4px;
}

    .to-peek-badge.tone-high[b-c838h94l58] { --tone: #f76707; }
    .to-peek-badge.tone-medium[b-c838h94l58] { --tone: #f59f00; }
    .to-peek-badge.tone-low[b-c838h94l58] { --tone: #667382; }
    .to-peek-badge.tone-todo[b-c838h94l58] { --tone: #f76707; }
    .to-peek-badge.tone-progress[b-c838h94l58] { --tone: #206bc4; }
    .to-peek-badge.tone-completed[b-c838h94l58] { --tone: #2fb344; }
    .to-peek-badge.tone-approved[b-c838h94l58] { --tone: #ae3ec9; }
    .to-peek-badge.tone-cancelled[b-c838h94l58] { --tone: #d63939; }
    .to-peek-badge.tone-incomplete[b-c838h94l58] { --tone: #d6336c; }
    .to-peek-badge.tone-task-upcoming[b-c838h94l58],
    .to-peek-badge.tone-task-progress[b-c838h94l58] { --tone: #2fb344; }
    .to-peek-badge.tone-task-overdue[b-c838h94l58] { --tone: #d63939; }
    .to-peek-badge.tone-task-pm[b-c838h94l58],
    .to-peek-badge.tone-task-psa[b-c838h94l58] { --tone: #4299e1; }
    .to-peek-badge.tone-task-done[b-c838h94l58] { --tone: #0f5c2b; background: #a6e6bd; }   /* Completed: #a6e6bd fill, dark green text */
    .to-peek-badge.tone-task-cancelled[b-c838h94l58] { --tone: #868e96; }
    .to-peek-badge.tone-scout-upcoming[b-c838h94l58] { --tone: #206bc4; }
    .to-peek-badge.tone-scout-due[b-c838h94l58] { --tone: var(--smartag-scouting); }
    .to-peek-badge.tone-scout-missed[b-c838h94l58] { --tone: #d6336c; }
    .to-peek-badge.tone-scout-done[b-c838h94l58] { --tone: #2fb344; }
    .to-peek-badge.tone-scout-completed[b-c838h94l58] { --tone: #ae3ec9; }

/* Rescheduled and duplicated-from flags, on the board's cards and in the panel (2026-11-03). */
.to-flag[b-c838h94l58] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.05rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 999px;
    white-space: nowrap;
}

    .to-flag.tone-rescheduled[b-c838h94l58] {
        color: #ae3ec9;
        background: rgba(174, 62, 201, 0.08);
        border-color: rgba(174, 62, 201, 0.3);
    }

    a.to-flag:hover[b-c838h94l58] { text-decoration: none; color: var(--tblr-primary); }

/* List view (2026-11-03): sortable headers, the task-number search, one supervisor badge per line. */
.to-sort[b-c838h94l58] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    color: inherit;
    background: none;
    border: 0;
    white-space: nowrap;
}

    .to-sort > i[b-c838h94l58] { opacity: 0.45; }
    .to-sort:hover > i[b-c838h94l58],
    .to-sort.is-on > i[b-c838h94l58] { opacity: 1; }
    .to-sort.is-on[b-c838h94l58] { color: var(--tblr-primary); }

/* ---------------- Maintenance list (2026-11-26 design; the Scouting overview's look) ---------------- */

.tl-card[b-c838h94l58] { border-radius: 12px; }

.tl-title[b-c838h94l58] {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tl-tabs[b-c838h94l58] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    border-bottom: 1px solid var(--tblr-border-color);
}

.tl-tab[b-c838h94l58] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.25rem;
    margin-bottom: -1px;
    font: inherit;
    color: var(--tblr-body-color);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
}

    .tl-tab.active[b-c838h94l58] {
        color: var(--tblr-primary);
        border-bottom-color: var(--tblr-primary);
    }

.tl-tab-count[b-c838h94l58] {
    min-width: 1.5rem;
    padding: 0.05rem 0.45rem;
    font-size: 0.75rem;
    border-radius: 999px;
    color: #206bc4;
    background: rgba(32, 107, 196, 0.1);
}

.tl-search[b-c838h94l58] { width: 16rem; max-width: 100%; }

.tl-filter-btn[b-c838h94l58] { background: var(--tblr-bg-surface-secondary); }

.tl-filter-menu[b-c838h94l58] {
    width: 19rem;
    max-width: calc(100vw - 2rem);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    z-index: 1001;
}

.tl-filter-backdrop[b-c838h94l58] {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.tl-chip[b-c838h94l58] {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 999px;
    color: var(--tblr-body-color);
    background: color-mix(in srgb, var(--tblr-primary) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
}

.tl-table th[b-c838h94l58] { white-space: nowrap; }

.tl-link[b-c838h94l58] {
    color: var(--tblr-primary);
    font-weight: 500;
    text-decoration: none;
}

    .tl-link:hover[b-c838h94l58] { text-decoration: underline; }

.tl-task[b-c838h94l58] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* The priority flag: a high-priority task. */
.tl-flag[b-c838h94l58] {
    display: inline-flex;
    flex: none;
    color: #d63939;
}

.tl-type[b-c838h94l58],
.tl-cat[b-c838h94l58],
.tl-status[b-c838h94l58],
.tl-timing[b-c838h94l58] {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.78rem;
    border-radius: 4px;
    white-space: nowrap;
}

.tl-type[b-c838h94l58] {
    color: #206bc4;
    background: rgba(32, 107, 196, 0.1);
    margin-right: 0.25rem;
}

.tl-cat[b-c838h94l58] {
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
}

.tl-status[b-c838h94l58] {
    color: var(--tone);
    background: color-mix(in srgb, var(--tone) 12%, transparent);
}

    .tl-status.tone-pending[b-c838h94l58] { --tone: #f76707; }
    .tl-status.tone-overdue[b-c838h94l58] { --tone: #d63939; }
    /* The task status colours (owner, 2026-11-26), as on the board; Pending assignment keeps its orange. */
    .tl-status.tone-active[b-c838h94l58] { --tone: #2fb344; }
    .tl-status.tone-upcoming[b-c838h94l58] { --tone: #2fb344; }
    .tl-status.tone-approval[b-c838h94l58] { --tone: #4299e1; }
    .tl-status.tone-done[b-c838h94l58] { --tone: #0f5c2b; background: #a6e6bd; }   /* Completed: #a6e6bd */
    .tl-status.tone-cancelled[b-c838h94l58],
    .tl-status.tone-other[b-c838h94l58] { --tone: #868e96; }

.tl-timing[b-c838h94l58] { margin-left: 0.5rem; }

    .tl-timing.is-late[b-c838h94l58] {
        color: #d63939;
        background: rgba(214, 57, 57, 0.1);
    }

    .tl-timing.is-ontime[b-c838h94l58] {
        color: #2fb344;
        background: rgba(47, 179, 68, 0.1);
    }
/* /Features/Tasks/TaskSetup/TaskSetup.razor.rz.scp.css */
/* Task Setup (2026-10-27 design): a tree card on the left, the selected plot on the right. */

.ts-layout[b-7c0mjpa7n3] {
    display: grid;
    grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 767.98px) {
    .ts-layout[b-7c0mjpa7n3] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ts-tree[b-7c0mjpa7n3] {
    min-height: 30rem;
}

.ts-tree-title[b-7c0mjpa7n3] {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.ts-country[b-7c0mjpa7n3] {
    margin: 0.75rem 0 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
}

.ts-node[b-7c0mjpa7n3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.45rem 0.25rem;
    font-size: 0.92rem;
    text-align: start;
    color: var(--tblr-body-color);
    background: none;
    border: 0;
    border-radius: 6px;
}

    .ts-node:hover[b-7c0mjpa7n3] {
        background: var(--tblr-bg-surface-secondary);
    }

    .ts-node > .ti[b-7c0mjpa7n3] {
        flex: none;
        font-size: 1rem;
    }

    .ts-node.is-active[b-7c0mjpa7n3] {
        color: var(--tblr-primary);
    }

.ts-farm[b-7c0mjpa7n3] {
    padding-left: 0.5rem;
}

.ts-plot[b-7c0mjpa7n3] {
    padding-left: 1.75rem;
}

.ts-planting[b-7c0mjpa7n3] {
    padding-left: 3.4rem;
    color: var(--tblr-secondary);
}

.ts-label[b-7c0mjpa7n3] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ts-count[b-7c0mjpa7n3] {
    flex: none;
    min-width: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.7rem;
    line-height: 1.25rem;
    text-align: center;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 999px;
}

.ts-empty[b-7c0mjpa7n3] {
    padding: 0.35rem 0 0.35rem 1.75rem;
    font-size: 0.85rem;
    color: var(--tblr-secondary);
}

/* The design's dashed "New Planting" row under an open plot. */
.ts-new[b-7c0mjpa7n3] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0.5rem;
    padding: 0.55rem;
    font-size: 0.92rem;
    color: var(--tblr-primary);
    text-decoration: none;
    border: 1px dashed rgba(var(--tblr-primary-rgb), 0.55);
    border-radius: 8px;
}

    .ts-new:hover[b-7c0mjpa7n3] {
        text-decoration: none;
        background: rgba(var(--tblr-primary-rgb), 0.06);
    }

.ts-plantings[b-7c0mjpa7n3] {
    margin: 0;
    padding: 0;
    list-style: none;
}

    .ts-plantings > li[b-7c0mjpa7n3] {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 1.25rem;
    }

        .ts-plantings > li + li[b-7c0mjpa7n3] {
            border-top: 1px solid var(--tblr-border-color);
        }

        .ts-plantings > li.is-active[b-7c0mjpa7n3] {
            background: rgba(var(--tblr-primary-rgb), 0.06);
        }

.ts-crop[b-7c0mjpa7n3] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
    color: #2fb344;
    background: rgba(47, 179, 68, 0.12);
    border-radius: 50%;
}

/* ---- Select Crop modal ---- */

.ts-modal-head[b-7c0mjpa7n3] {
    align-items: flex-start;
}

.ts-crop-list[b-7c0mjpa7n3] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    overflow: hidden;
}

.ts-crop-row[b-7c0mjpa7n3] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 0.7rem 1rem;
    color: inherit;
    background: var(--tblr-bg-surface);
    border: 0;
}

    .ts-crop-row + .ts-crop-row[b-7c0mjpa7n3] {
        border-top: 1px solid var(--tblr-border-color);
    }

    .ts-crop-row:hover[b-7c0mjpa7n3],
    .ts-crop-row:focus-visible[b-7c0mjpa7n3] {
        background: rgba(var(--tblr-primary-rgb), 0.06);
        outline: none;
    }

/* ---- The crop setup summary ---- */

.ts-sum-card[b-7c0mjpa7n3] {
    height: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

.ts-sum-value[b-7c0mjpa7n3] {
    margin-top: 0.35rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.ts-sum-row[b-7c0mjpa7n3] {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
}

    .ts-sum-row + .ts-sum-row[b-7c0mjpa7n3] {
        border-top: 1px solid var(--tblr-border-color);
    }

.ts-sum-icon[b-7c0mjpa7n3] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.2rem;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-radius: 8px;
}

/* ---- The planting view (2026-10-27 design) ---- */

.ts-plantings > li[role="button"][b-7c0mjpa7n3] {
    cursor: pointer;
}

.ts-back[b-7c0mjpa7n3] {
    font-size: 0.8rem;
}

.ts-crop-lg[b-7c0mjpa7n3] {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.2rem;
}

.ts-planting-name[b-7c0mjpa7n3] {
    margin: 0 0 0.35rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.ts-chip[b-7c0mjpa7n3] {
    padding: 0.1rem 0.55rem;
    font-size: 0.8rem;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border-radius: 6px;
}

    .ts-chip.is-cat[b-7c0mjpa7n3] {
        color: #1098ad;
        background: rgba(16, 152, 173, 0.1);
    }

    .ts-chip.is-task[b-7c0mjpa7n3] {
        color: #1c7ed6;
        background: rgba(28, 126, 214, 0.1);
    }

    .ts-chip.is-scout[b-7c0mjpa7n3] {
        color: #d6336c;
        background: rgba(214, 51, 108, 0.1);
    }

.ts-progress[b-7c0mjpa7n3] {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.ts-stages[b-7c0mjpa7n3] {
    flex: 1 1 auto;
    display: grid;
    gap: 2px;
}

/* Each stage is a button (2026-11-11): picking one shows its activities below. */
.ts-stage[b-7c0mjpa7n3] {
    min-width: 0;
    padding: 0.25rem 0 0;
    color: inherit;
    text-align: center;
    background: none;
    border: 0;
    border-radius: 6px;
}

    .ts-stage:hover .ts-stage-name[b-7c0mjpa7n3] {
        color: var(--tblr-primary);
    }

    .ts-stage:focus-visible[b-7c0mjpa7n3] {
        outline: 2px solid rgba(var(--tblr-primary-rgb), 0.5);
        outline-offset: 2px;
    }

    /* The picked stage: its name bold, and a ring round its bar, so it reads apart from today's (teal) stage. */
    .ts-stage.is-selected .ts-stage-name[b-7c0mjpa7n3] {
        font-weight: 600;
        color: var(--tblr-primary);
    }

    .ts-stage.is-selected .ts-stage-bar[b-7c0mjpa7n3] {
        box-shadow: 0 0 0 2px var(--tblr-bg-surface), 0 0 0 4px rgba(var(--tblr-primary-rgb), 0.45);
    }

.ts-stage-name[b-7c0mjpa7n3] {
    display: block;
    margin-bottom: 0.3rem;
    overflow: hidden;
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ts-stage-bar[b-7c0mjpa7n3] {
    display: block;
    height: 0.6rem;
    background: var(--tblr-border-color);
    border-radius: 999px;
}

.ts-stage.is-past .ts-stage-bar[b-7c0mjpa7n3] {
    background: rgba(var(--tblr-primary-rgb), 0.15);
}

.ts-stage.is-current .ts-stage-name[b-7c0mjpa7n3] {
    color: var(--tblr-primary);
}

.ts-stage.is-current .ts-stage-bar[b-7c0mjpa7n3] {
    background: var(--tblr-primary);
}

.ts-day[b-7c0mjpa7n3] {
    flex: none;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.ts-tabs[b-7c0mjpa7n3] {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: 8px;
}

.ts-tab[b-7c0mjpa7n3] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    color: var(--tblr-secondary);
    background: none;
    border: 0;
    border-radius: 6px;
}

    .ts-tab.is-on[b-7c0mjpa7n3] {
        color: var(--tblr-body-color);
        background: var(--tblr-bg-surface);
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
    }

.ts-task[b-7c0mjpa7n3] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: inherit;
    text-decoration: none;
}

    .ts-task + .ts-task[b-7c0mjpa7n3] {
        margin-top: 0.6rem;
    }

    .ts-task:hover[b-7c0mjpa7n3] {
        color: inherit;
        text-decoration: none;
        border-color: var(--tblr-primary);
    }

.ts-task-icon[b-7c0mjpa7n3] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
    color: #1c7ed6;
    background: rgba(28, 126, 214, 0.1);
    border-radius: 50%;
}

.ts-task-title[b-7c0mjpa7n3] {
    font-size: 1rem;
    font-weight: 600;
}

.ts-unassigned[b-7c0mjpa7n3] {
    flex: none;
    padding: 0.15rem 0.6rem;
    font-size: 0.8rem;
    color: #e8590c;
    background: rgba(247, 103, 7, 0.1);
    border-radius: 999px;
}

.ts-avatars[b-7c0mjpa7n3] {
    flex: none;
    display: inline-flex;
    align-items: center;
}

/* Solid, overlapping avatars, later ones on top — Task Overview's look. */
.ts-avatar[b-7c0mjpa7n3] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-inline-start: -0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tblr-primary);
    object-fit: cover;
    background: color-mix(in srgb, var(--tblr-primary) 14%, var(--tblr-bg-surface));
    border: 2px solid var(--tblr-bg-surface);
    border-radius: 50%;
}

    .ts-avatar:first-child[b-7c0mjpa7n3] {
        margin-inline-start: 0;
    }

    .ts-avatar.is-more[b-7c0mjpa7n3] {
        background: var(--tblr-bg-surface);
        border: 1px solid var(--tblr-primary);
    }

/* ---- Activities (2026-11-11): a row per activity, response tasks nested under their scouting ---- */

button.ts-task[b-7c0mjpa7n3] {
    width: 100%;
    text-align: start;
}

    .ts-task.is-active[b-7c0mjpa7n3] {
        border-color: var(--tblr-primary);
    }

.ts-activity + .ts-activity[b-7c0mjpa7n3] {
    margin-top: 0.6rem;
}

.ts-task-icon.is-scout[b-7c0mjpa7n3] {
    color: #ae3ec9;
    background: rgba(174, 62, 201, 0.1);
}

.ts-desc[b-7c0mjpa7n3] {
    max-width: 28rem;
}

.ts-chip.is-response[b-7c0mjpa7n3] {
    color: #d63939;
    background: rgba(214, 57, 57, 0.1);
}

/* A response task hangs off its scouting with an elbow line, as in the design. */
.ts-responses[b-7c0mjpa7n3] {
    margin: 0.5rem 0 0 2.75rem;
}

.ts-response[b-7c0mjpa7n3] {
    position: relative;
    padding-left: 1.75rem;
}

    .ts-response + .ts-response[b-7c0mjpa7n3] {
        margin-top: 0.5rem;
    }

    .ts-response[b-7c0mjpa7n3]::before {
        content: "";
        position: absolute;
        top: -0.5rem;
        left: 0;
        width: 1.25rem;
        height: calc(50% + 0.5rem);
        border-left: 1px solid var(--tblr-border-color);
        border-bottom: 1px solid var(--tblr-border-color);
        border-bottom-left-radius: 8px;
    }

/* ---- The activity side panel: Task Overview's panel (.to-peek), restyled here because its CSS is scoped there ---- */

.ts-panel[b-7c0mjpa7n3] {
    width: min(34rem, 100vw);
    background: var(--tblr-bg-surface-secondary);
    /* Hold visibility until the slide-out has finished; opening shows it at once. */
    transition: transform 0.3s ease-in-out, visibility 0s linear 0.3s;
}

    .ts-panel.show[b-7c0mjpa7n3] {
        visibility: visible;
        transition: transform 0.3s ease-in-out, visibility 0s;
    }

@media (prefers-reduced-motion: reduce) {
    .ts-panel[b-7c0mjpa7n3],
    .ts-panel.show[b-7c0mjpa7n3] {
        transition: none;
    }
}

/* Always rendered: faded out, it must not catch clicks meant for the page. */
.ts-panel-backdrop:not(.show)[b-7c0mjpa7n3] {
    pointer-events: none;
}

.ts-panel-body[b-7c0mjpa7n3] {
    padding: 1rem;
    overscroll-behavior: contain;
}

.ts-panel-card[b-7c0mjpa7n3] {
    padding: 1.25rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 12px;
}

.ts-panel-title[b-7c0mjpa7n3] {
    margin: 0.1rem 0 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.ts-panel-label[b-7c0mjpa7n3] {
    margin: 1rem 0 0.4rem;
    font-weight: 600;
}

.ts-rule[b-7c0mjpa7n3] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.35rem 1rem;
    margin: 0;
    font-size: 0.85rem;
}

    .ts-rule dt[b-7c0mjpa7n3] {
        font-weight: normal;
        color: var(--tblr-secondary);
    }

    .ts-rule dd[b-7c0mjpa7n3] {
        margin: 0;
        text-align: end;
    }

.ts-dispatch[b-7c0mjpa7n3] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: start;
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
}

    .ts-dispatch + .ts-dispatch[b-7c0mjpa7n3] {
        margin-top: 0.5rem;
    }

    .ts-dispatch:hover[b-7c0mjpa7n3] {
        color: inherit;
        text-decoration: none;
        border-color: var(--tblr-primary);
    }

@media (max-width: 575.98px) {
    .ts-progress[b-7c0mjpa7n3] {
        flex-direction: column;
        align-items: stretch;
    }

    .ts-task[b-7c0mjpa7n3] {
        flex-wrap: wrap;
    }

    .ts-responses[b-7c0mjpa7n3] {
        margin-left: 0.75rem;
    }
}

/* ---- Template refresh (2026-11-20): the button beside Task List's calendar link, and its modal ---- */

.ts-sync[b-7c0mjpa7n3] {
    gap: 0.45rem;
    padding-inline: 0.7rem;
}

.ts-sync-count[b-7c0mjpa7n3] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: var(--tblr-danger);
    border-radius: 999px;
}

.ts-sync-list[b-7c0mjpa7n3] {
    border: 1px solid var(--tblr-border-color);
    border-radius: 10px;
    overflow: hidden;
}

.ts-sync-item[b-7c0mjpa7n3] {
    padding: 0.7rem 1rem;
    background: var(--tblr-bg-surface);
}

    .ts-sync-item + .ts-sync-item[b-7c0mjpa7n3] {
        border-top: 1px solid var(--tblr-border-color);
    }
/* /Features/TaskTemplates/TemplateCrud/TaskTemplateEdit.razor.rz.scp.css */
/* "Back to Task Templates": on hover only the text turns the brand colour, no ghost-button background. */
#tt-back:hover[b-1w04ihv56s],
#tt-back:focus-visible[b-1w04ihv56s] {
    color: var(--tblr-primary);
    background-color: transparent;
    border-color: transparent;
}

/* A Radzen dropdown whose field has an error (Radzen renders it, so ::deep). */
[b-1w04ihv56s] .rz-dropdown.tt-field-invalid {
    border-color: var(--tblr-danger) !important;
}

/* The Draft badge beside the page title: badge-sized, not title-sized (it sits inside the h2). */
#tt-draft-badge[b-1w04ihv56s] {
    font-size: 0.7rem;
    line-height: 1;
    padding: 0.25em 0.5em;
}

/* ---------------- Stepper: three equal cards, the current one tinted in the brand colour ---------------- */

.tt-steps[b-1w04ihv56s] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.tt-step[b-1w04ihv56s] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    text-align: left;
    color: var(--tblr-body-color);
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
    cursor: pointer;
}

    /* A locked step: the "not allowed" cursor, and its tooltip says what unlocks it. */
    .tt-step:disabled[b-1w04ihv56s] {
        cursor: not-allowed;
        opacity: 1;
    }

    .tt-step:not(:disabled):not(.is-current):hover[b-1w04ihv56s] {
        border-color: var(--tblr-primary);
    }

    .tt-step.is-current[b-1w04ihv56s] {
        color: var(--tblr-primary);
        background: rgba(var(--tblr-primary-rgb), 0.1);
        border-color: var(--tblr-primary);
    }

.tt-step-number[b-1w04ihv56s] {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--tblr-gray-300, #cbd5e1);
    border-radius: 50%;
}

.tt-step.is-current .tt-step-number[b-1w04ihv56s] {
    background: var(--tblr-primary);
}

.tt-step-text[b-1w04ihv56s] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tt-step-title[b-1w04ihv56s] {
    font-weight: 500;
}

.tt-step-caption[b-1w04ihv56s] {
    font-size: 0.75rem;
    color: var(--tblr-secondary);
}

.tt-step.is-current .tt-step-caption[b-1w04ihv56s] {
    color: inherit;
}

/* On a phone the captions go and the three steps stay on one row. */
@media (max-width: 575.98px) {
    .tt-step[b-1w04ihv56s] {
        flex-direction: column;
        gap: 0.35rem;
        text-align: center;
    }

    .tt-step-caption[b-1w04ihv56s] {
        display: none;
    }

    .tt-step-title[b-1w04ihv56s] {
        font-size: 0.8rem;
    }
}

/* ---------------- Sections ---------------- */

.tt-section-title[b-1w04ihv56s] {
    margin: 0 0 0.15rem;
    font-size: 1rem;
    font-weight: 600;
}

.tt-add-btn[b-1w04ihv56s] {
    flex: none;
    color: var(--tblr-primary);
    background: rgba(var(--tblr-primary-rgb), 0.12);
    border-color: transparent;
}

    .tt-add-btn:hover[b-1w04ihv56s] {
        color: var(--tblr-primary);
        background: rgba(var(--tblr-primary-rgb), 0.2);
    }

.tt-empty[b-1w04ihv56s] {
    padding: 1.25rem;
    text-align: center;
    color: var(--tblr-secondary);
    border: 1px dashed var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
}

/* The red "needs at least one activity" alert blinks three times so a refused delete is noticed, then stays red.
   Not endless: a constantly flashing element is hard to read and distracting. Off for reduced-motion users. */
.tt-blink[b-1w04ihv56s] {
    animation: tt-blink-b-1w04ihv56s 0.5s ease-in-out 3;
}

@keyframes tt-blink-b-1w04ihv56s {
    50% {
        opacity: 0.25;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-blink[b-1w04ihv56s] {
        animation: none;
    }
}

/* The ⋮ button on an activity card: a larger icon, on the card's right edge. */
.tt-menu-btn .ti[b-1w04ihv56s] {
    font-size: 1.35rem;
}

/* An activity's ⋮ menu (Edit / Delete): a small card under the button, closed by a click anywhere else. */
.tt-menu[b-1w04ihv56s] {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1031;
    min-width: 7.5rem;
    margin-top: 0.25rem;
    padding: 0.35rem 0;
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
}

    /* Hover and keyboard focus: brand-coloured text on a light brand tint. */
    .tt-menu .dropdown-item:hover[b-1w04ihv56s],
    .tt-menu .dropdown-item:focus-visible[b-1w04ihv56s] {
        color: var(--tblr-primary);
        background-color: rgba(var(--tblr-primary-rgb), 0.1);
    }

.tt-menu-backdrop[b-1w04ihv56s] {
    position: fixed;
    inset: 0;
    z-index: 1030;
}

/* ---------------- Activity modal ---------------- */

.tt-modal-header[b-1w04ihv56s] {
    align-items: flex-start;
}

/* Rate Configuration: a grey panel. */
.tt-rate-box[b-1w04ihv56s] {
    padding: 1rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
}

.tt-calc-btn[b-1w04ihv56s] {
    flex: none;
    color: var(--tblr-primary);
    background: var(--tblr-bg-surface);
    border-color: var(--tblr-border-color);
    border-radius: 999px;
}

    .tt-calc-btn:hover[b-1w04ihv56s] {
        color: var(--tblr-primary);
        border-color: var(--tblr-primary);
    }

/* The Rate Calculator: a white card inside the grey panel. */
.tt-calc[b-1w04ihv56s] {
    padding: 1rem;
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
}

.tt-calc-standard[b-1w04ihv56s] {
    padding: 0.75rem 1rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
}

.tt-calc-caption[b-1w04ihv56s] {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--tblr-secondary);
}

.tt-calc-figure[b-1w04ihv56s] {
    font-size: 1.1rem;
    font-weight: 600;
}

/* "ESTIMATE EARNINGS" between two rules. */
.tt-calc-divider[b-1w04ihv56s] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--tblr-secondary);
}

    .tt-calc-divider[b-1w04ihv56s]::before,
    .tt-calc-divider[b-1w04ihv56s]::after {
        content: "";
        flex: 1;
        border-top: 1px solid var(--tblr-border-color);
    }

.tt-calc-estimate[b-1w04ihv56s] {
    padding: 0.75rem 1rem;
    background: rgba(var(--tblr-primary-rgb), 0.08);
    border: 1px solid rgba(var(--tblr-primary-rgb), 0.3);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
}

.tt-calc-earnings[b-1w04ihv56s] {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--tblr-primary);
}

/* An activity: its name and badge, then three facts in columns. */
.tt-item[b-1w04ihv56s] {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
}

.tt-facts[b-1w04ihv56s] {
    font-size: 0.8rem;
}

.tt-fact-label[b-1w04ihv56s] {
    color: var(--tblr-secondary);
}

/* A resource group (Agroinput, Equipment, Fleet) and its lines on a light grey band. */
.tt-group[b-1w04ihv56s] {
    padding: 1rem 1.25rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
}

.tt-group-title[b-1w04ihv56s] {
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.tt-line[b-1w04ihv56s] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg, 0.5rem);
}

    .tt-line .badge[b-1w04ihv56s],
    .tt-item .badge[b-1w04ihv56s] {
        font-weight: 400;
    }
/* /Features/TaskTemplates/TemplateCrud/TaskTemplateList.razor.rz.scp.css */
/* The column titles on a grey band, as in the 3.0 design. */
.template-table thead th[b-r8trnr7cnz] {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tblr-secondary);
    background: var(--tblr-bg-surface-secondary);
    border-bottom: 1px solid var(--tblr-border-color);
}

.template-table tbody td[b-r8trnr7cnz] {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.template-table .badge[b-r8trnr7cnz] {
    font-weight: 400;
}

/* The sortable column titles: plain text that keeps the header's look, with an arrow beside it. */
.template-table .sort-btn[b-r8trnr7cnz] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

    .template-table .sort-btn:hover[b-r8trnr7cnz],
    .template-table .sort-btn.is-active[b-r8trnr7cnz] {
        color: var(--tblr-body-color);
    }

    .template-table .sort-btn .ti[b-r8trnr7cnz] {
        font-size: 0.9rem;
        opacity: 0.6;
    }

    .template-table .sort-btn.is-active .ti[b-r8trnr7cnz] {
        opacity: 1;
        color: var(--tblr-primary);
    }
