@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 400 700;
    src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- Tokens */

:root {
    /* Colour. Pond for primary buttons and headings (white on it 12.6:1); bell frog for the logo, rings and ticks
       (fills only, text uses frog-text); wattle gold only for selection and what needs attention; ink for text. */
    --pond: #0F3D2E;
    --pond-deep: #0A2B20;
    --frog: #1FA05A;
    --frog-text: #157A45;
    --wattle: #F2B705;
    --wattle-tint: #FCEFC0;
    --wattle-line: #C99700;
    --wattle-ink: #5E4500;
    --ink: #1B2621;
    --bark: #33423A;
    --moss: #55645B;
    --leaf: #E4F3EA;
    --leaf-line: #8CC9A6;
    --flame: #B4232C;
    --flame-text: #8E1B22;
    --flame-tint: #FBE9E7;
    --paper: #F6F8F5;
    --mist: #EAEFEA;
    --line: #DDE4DE;
    --line-strong: #9FB0A5;
    --line-field: #7E8B83;
    --land: #F4F6F1;
    --water: #DDE8E6;

    --radius-tile: 12px;
    --radius-card: 14px;
    --radius-pane: 20px;

    --shadow-float: 0 0 0 1px rgba(15, 61, 46, .1), 0 18px 44px -16px rgba(15, 61, 46, .34);
    --shadow-sheet: 0 0 0 1px rgba(15, 61, 46, .1), 0 28px 64px -20px rgba(15, 61, 46, .45);
    --shadow-lift: 0 4px 12px rgba(15, 61, 46, .16);
    --shadow-menu: 0 18px 40px -14px rgba(15, 61, 46, .4);
    --ring: 0 0 0 3px rgba(31, 160, 90, .35);

    /* Marathi text has no glyphs in either font; it falls back to the system's Devanagari face. */
    --font-sans: "Instrument Sans", "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-display: "Bricolage Grotesque", "Instrument Sans", "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", system-ui, sans-serif;

    /* Bootstrap, re-pointed at the tokens */
    --bs-font-sans-serif: var(--font-sans);
    --bs-body-font-family: var(--font-sans);
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.55;
    --bs-body-color: var(--ink);
    --bs-body-color-rgb: 27, 38, 33;
    --bs-body-bg: var(--paper);
    --bs-body-bg-rgb: 246, 248, 245;
    --bs-emphasis-color: var(--ink);
    --bs-emphasis-color-rgb: 27, 38, 33;
    --bs-secondary-color: var(--moss);
    --bs-secondary-color-rgb: 85, 100, 91;
    --bs-secondary-bg: var(--mist);
    --bs-tertiary-bg: var(--paper);
    --bs-heading-color: var(--pond);
    --bs-link-color: var(--pond);
    --bs-link-color-rgb: 15, 61, 46;
    --bs-link-hover-color: var(--pond-deep);
    --bs-link-hover-color-rgb: 10, 43, 32;
    --bs-border-color: var(--line);
    --bs-border-color-translucent: rgba(15, 61, 46, .12);
    --bs-border-radius: var(--radius-tile);
    --bs-border-radius-sm: 10px;
    --bs-border-radius-lg: var(--radius-card);
    --bs-border-radius-xl: var(--radius-pane);
    --bs-primary: var(--pond);
    --bs-primary-rgb: 15, 61, 46;
    --bs-secondary: var(--moss);
    --bs-secondary-rgb: 85, 100, 91;
    --bs-success: var(--frog-text);
    --bs-success-rgb: 21, 122, 69;
    --bs-info: var(--bark);
    --bs-info-rgb: 51, 66, 58;
    --bs-warning: var(--wattle);
    --bs-warning-rgb: 242, 183, 5;
    --bs-danger: var(--flame-text);
    --bs-danger-rgb: 142, 27, 34;
    --bs-light: var(--paper);
    --bs-light-rgb: 246, 248, 245;
    --bs-dark: var(--ink);
    --bs-dark-rgb: 27, 38, 33;
    --bs-focus-ring-color: rgba(31, 160, 90, .35);
}

/* ---------------------------------------------------------------- Base */

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--pond);
    letter-spacing: -.01em;
    text-wrap: balance;
}

a {
    color: var(--pond);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--pond-deep);
}

:focus-visible {
    outline: 3px solid var(--frog);
    outline-offset: 2px;
}

::selection {
    background: var(--wattle-tint);
    color: var(--ink);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--pond);
}

.display {
    font-family: var(--font-display);
    letter-spacing: -.01em;
}

.tabular,
.num {
    font-variant-numeric: tabular-nums;
}

.num {
    text-align: right;
    white-space: nowrap;
}

.text-muted,
.text-body-secondary {
    color: var(--moss) !important;
}

.text-danger {
    color: var(--flame-text) !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: .6rem 1rem;
    border-radius: 999px;
    background: var(--pond);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.icon {
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.2em;
}

/* ---------------------------------------------------------------- Surfaces */

/* Floats over the land: the top bar, the sign-in card. */
.glass {
    background: rgba(255, 255, 255, .76);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-float);
}

/* Anything you read over something else: dialogs, the phone menu. */
.sheet {
    background: rgba(255, 255, 255, .93);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-sheet);
}

/* Plain content on the paper ground: tables, forms, panels. */
.card {
    --bs-card-bg: #fff;
    --bs-card-color: var(--ink);
    --bs-card-border-color: var(--line);
    --bs-card-border-radius: var(--radius-card);
    --bs-card-inner-border-radius: calc(var(--radius-card) - 1px);
    --bs-card-cap-bg: transparent;
    --bs-card-cap-padding-y: 1rem;
    --bs-card-cap-padding-x: 1.25rem;
    --bs-card-spacer-y: 1.25rem;
    --bs-card-spacer-x: 1.25rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    border-bottom: 1px solid var(--mist);
}

.card-header > .icon {
    color: var(--frog-text);
}

.card-title,
.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--pond);
    line-height: 1.3;
}

.section-lede {
    margin: .2rem 0 0;
    font-size: 14px;
    color: var(--moss);
    line-height: 1.45;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--mist);
}

/* A table inside a card: rows run to the card's edges. */
.table-card {
    overflow: hidden;
}

.table-card > .table-responsive,
.table-card > .table {
    margin: 0;
}

/* ---------------------------------------------------------------- Buttons (solid, never glass) */

.btn {
    --bs-btn-padding-x: 1.25rem;
    --bs-btn-padding-y: 0;
    --bs-btn-font-family: var(--font-sans);
    --bs-btn-font-size: 15px;
    --bs-btn-font-weight: 600;
    --bs-btn-line-height: 1;
    --bs-btn-border-width: 0;
    --bs-btn-border-radius: 999px;
    --bs-btn-disabled-opacity: .5;
    --bs-btn-box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 44px;
    white-space: nowrap;
    text-decoration: none;
    user-select: none;
    transition: background-color .15s, color .15s, box-shadow .15s;
}

.btn:focus-visible {
    outline: 3px solid var(--frog);
    outline-offset: 2px;
    box-shadow: none;
}

.btn-primary,
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--pond);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--pond-deep);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--pond-deep);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--pond);
}

.btn-secondary,
.btn-light,
.btn-warning,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-dark,
.btn-outline-success {
    --bs-btn-color: var(--pond);
    --bs-btn-bg: #fff;
    --bs-btn-hover-color: var(--pond);
    --bs-btn-hover-bg: #EEF3EF;
    --bs-btn-active-color: var(--pond);
    --bs-btn-active-bg: #E4ECE6;
    --bs-btn-disabled-color: var(--pond);
    --bs-btn-disabled-bg: #fff;
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-quiet {
    --bs-btn-color: var(--pond);
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: var(--pond);
    --bs-btn-hover-bg: rgba(15, 61, 46, .08);
    --bs-btn-active-color: var(--pond);
    --bs-btn-active-bg: rgba(15, 61, 46, .12);
    --bs-btn-disabled-color: var(--pond);
    --bs-btn-padding-x: .75rem;
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--flame);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #961C24;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #961C24;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--flame);
}

/* Delete in a row of actions: quiet until pointed at. */
.btn-quiet-danger,
.btn-outline-danger {
    --bs-btn-color: var(--flame-text);
    --bs-btn-bg: transparent;
    --bs-btn-hover-color: var(--flame-text);
    --bs-btn-hover-bg: var(--flame-tint);
    --bs-btn-active-color: var(--flame-text);
    --bs-btn-active-bg: #F6D6D2;
    --bs-btn-disabled-color: var(--flame-text);
    --bs-btn-padding-x: .75rem;
}

.btn-sm {
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 14px;
    --bs-btn-border-radius: 999px;
    height: 36px;
    gap: .4rem;
}

.btn-lg {
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-font-size: 16px;
    --bs-btn-border-radius: 999px;
    height: 48px;
}

.btn-icon {
    --bs-btn-padding-x: 0;
    width: 44px;
}

.btn-icon.btn-sm {
    width: 36px;
}

.btn-quiet.btn-sm,
.btn-quiet-danger.btn-sm {
    --bs-btn-padding-x: .6rem;
}

.btn-quiet.btn-icon,
.btn-quiet-danger.btn-icon {
    --bs-btn-padding-x: 0;
}

.btn .spinner-border {
    width: 1em;
    height: 1em;
    border-width: .15em;
    color: currentColor;
}

/* Row actions: the controls kept together at the end of a row, usually just the row menu. */
.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

/* The row menu (<row-menu>, ifed.rowMenu): a round three-dot button that opens the row's actions, as in StartupFrog. */
.row-menu {
    display: inline-block;
}

.row-menu > .btn[aria-expanded="true"] {
    --bs-btn-bg: #E4ECE6;
}

.dropdown-menu {
    --bs-dropdown-zindex: 1060;
    --bs-dropdown-min-width: 220px;
    --bs-dropdown-padding-x: .375rem;
    --bs-dropdown-padding-y: .375rem;
    --bs-dropdown-spacer: 6px;
    --bs-dropdown-font-size: 14px;
    --bs-dropdown-color: var(--ink);
    --bs-dropdown-bg: #fff;
    --bs-dropdown-border-color: var(--line);
    --bs-dropdown-border-radius: var(--radius-card);
    --bs-dropdown-inner-border-radius: calc(var(--radius-card) - 1px);
    --bs-dropdown-box-shadow: var(--shadow-menu);
    --bs-dropdown-divider-bg: var(--line);
    --bs-dropdown-divider-margin-y: .25rem;
    --bs-dropdown-link-color: var(--ink);
    --bs-dropdown-link-hover-color: var(--ink);
    --bs-dropdown-link-hover-bg: rgba(15, 61, 46, .06);
    --bs-dropdown-link-active-color: var(--ink);
    --bs-dropdown-link-active-bg: rgba(15, 61, 46, .1);
    --bs-dropdown-item-padding-x: .75rem;
    --bs-dropdown-item-padding-y: 0;
    --bs-dropdown-item-border-radius: 10px;
    max-width: 300px;
    box-shadow: var(--bs-dropdown-box-shadow);
}

.dropdown-divider {
    margin-left: .375rem;
    margin-right: .375rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    min-height: 40px;
    font-weight: 500;
}

.dropdown-item:focus-visible {
    outline: none;
    background: rgba(15, 61, 46, .08);
}

.dropdown-item-danger,
.dropdown-item-danger:hover,
.dropdown-item-danger:focus {
    color: var(--flame-text);
}

.dropdown-item-danger:hover,
.dropdown-item-danger:focus-visible {
    background: var(--flame-tint);
}

/* ---------------------------------------------------------------- Forms */

.form-label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.form-label .optional {
    font-weight: 400;
    color: var(--moss);
}

.form-control,
.form-select {
    min-height: 44px;
    padding: .55rem .875rem;
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid var(--line-field);
    border-radius: var(--radius-tile);
    transition: border-color .15s, box-shadow .15s;
}

.form-control::placeholder {
    color: var(--moss);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    color: var(--ink);
    background-color: #fff;
    border-color: var(--pond);
    box-shadow: var(--ring);
    outline: 0;
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--mist);
    border-color: var(--line);
    color: var(--moss);
    opacity: 1;
    cursor: not-allowed;
}

/* Worked out for you: a value the form calculates, not one you type. */
.form-control[readonly]:not(.form-control-plaintext) {
    background-color: var(--paper);
    border-color: var(--line-strong);
    border-style: dashed;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.form-control[readonly]:not(.form-control-plaintext):focus {
    box-shadow: none;
    border-color: var(--line-field);
}

/* A fact shown in a form, read-only: the farmer on an inward, its bags. */
.form-control-plaintext {
    min-height: 0;
    padding: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    border: 0;
    background: transparent;
}

.form-control-plaintext:focus {
    outline: 0;
    box-shadow: none;
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"] {
    border: 2px solid var(--flame);
    background-image: none;
    padding-right: .875rem;
}

.form-control.is-invalid:focus,
.form-control[aria-invalid="true"]:focus {
    border-color: var(--flame);
    box-shadow: 0 0 0 3px rgba(180, 35, 44, .2);
}

textarea.form-control {
    min-height: 92px;
    resize: vertical;
}

.form-select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355645B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-size: 18px;
}

.form-control-sm,
.form-select-sm {
    min-height: 36px;
    padding: .35rem .7rem;
    font-size: 14px;
    border-radius: 10px;
}

.form-select-sm {
    padding-right: 2.25rem;
}

.form-text,
.hint {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--moss);
}

.invalid-feedback,
.field-error {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--flame-text);
}

.invalid-feedback {
    display: none;
}

.was-validated :invalid ~ .invalid-feedback,
.is-invalid ~ .invalid-feedback {
    display: flex;
}

.input-group > .input-group-text {
    min-height: 44px;
    padding: .55rem .875rem;
    font-size: 15px;
    color: var(--bark);
    background: var(--mist);
    border-color: var(--line-field);
    border-radius: var(--radius-tile);
}

.form-check-input {
    width: 1.15em;
    height: 1.15em;
    border-color: var(--line-field);
}

.form-check-input:checked {
    background-color: var(--pond);
    border-color: var(--pond);
}

.form-check-input:focus {
    border-color: var(--pond);
    box-shadow: var(--ring);
}

/* Facts: label over value, for read-only details. */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
}

.facts dt,
.fact-label {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--moss);
}

.facts dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* Longer values (addresses, remarks) read better in the text face. */
.facts dd.fact-text {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.facts-wide {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* The buttons at the end of a form, right-aligned. They scroll with the page (not a sticky bar). */
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1.5rem;
}

.form-actions .form-actions-note {
    margin-right: auto;
    font-size: 13px;
    color: var(--moss);
}

/* ---------------------------------------------------------------- Chips, tags, notes (solid) */

.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 8px;
    background: var(--mist);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
}

.chip-leaf {
    background: var(--leaf);
    color: var(--pond);
}

.chip-wattle {
    background: var(--wattle-tint);
    color: var(--ink);
}

.amount {
    display: inline-flex;
    padding: .1rem .5rem;
    border-radius: 8px;
    background: var(--wattle-tint);
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Status: each kind has a shape as well as a colour. */
.tag {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 3px .65rem;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.tag::before {
    content: "";
    flex-shrink: 0;
}

.tag-live {
    background: var(--leaf);
    color: var(--pond);
}

.tag-live::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--frog);
}

.tag-wait {
    background: var(--wattle-tint);
    color: var(--ink);
}

.tag-wait::before {
    width: 7px;
    height: 7px;
    background: var(--ink);
    transform: rotate(45deg);
}

.tag-fail {
    background: var(--flame-tint);
    color: var(--flame-text);
}

.tag-fail::before {
    content: "!";
    font-weight: 700;
}

.tag-off {
    color: var(--bark);
    box-shadow: inset 0 0 0 1px var(--line-field);
}

.tag-off::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px var(--moss);
}

.tag-part {
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.tag-part::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--frog) 50%, transparent 50%);
    box-shadow: inset 0 0 0 1.5px var(--frog);
}

.alert {
    --bs-alert-border-width: 0;
    --bs-alert-border-radius: var(--radius-tile);
    --bs-alert-padding-x: 1rem;
    --bs-alert-padding-y: .75rem;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: 14px;
    line-height: 1.45;
}

.alert > .icon {
    margin-top: 1px;
}

.alert-danger {
    --bs-alert-bg: var(--flame-tint);
    --bs-alert-color: var(--flame-text);
}

.alert-info,
.alert-success,
.alert-primary,
.alert-secondary {
    --bs-alert-bg: var(--leaf);
    --bs-alert-color: var(--pond);
}

.alert-warning {
    --bs-alert-bg: var(--wattle-tint);
    --bs-alert-color: var(--ink);
}

.spinner-border {
    --bs-spinner-border-width: .2em;
    color: var(--frog);
}

/* ---------------------------------------------------------------- Tables */

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
    --bs-table-border-color: var(--mist);
    --bs-table-hover-bg: rgba(15, 61, 46, .03);
    --bs-table-hover-color: var(--ink);
    margin-bottom: 0;
    font-size: 14px;
    color: var(--ink);
}

.table-light {
    --bs-table-bg: transparent;
    --bs-table-color: var(--moss);
    --bs-table-border-color: var(--ink);
}

.table > :not(caption) > * > * {
    padding: .75rem;
    border-bottom-color: var(--mist);
}

.table > thead > tr > th,
.table > thead > tr > td {
    height: 44px;
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--moss);
    white-space: nowrap;
    vertical-align: middle;
    border-bottom: 1.5px solid var(--ink);
    background: transparent;
}

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

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

.table > :not(caption) > * > *:first-child {
    padding-left: 1.25rem;
}

.table > :not(caption) > * > *:last-child {
    padding-right: 1.25rem;
}

.table > tbody > tr:hover > * {
    --bs-table-bg-state: rgba(15, 61, 46, .03);
}

.table > tfoot > tr > td,
.table > tfoot > tr > th {
    border-top: 1.5px solid var(--line-strong);
    border-bottom: 0;
    font-weight: 600;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 0 1px;
}

.table .cell-main {
    font-weight: 600;
    color: var(--ink);
}

.table .cell-sub {
    display: block;
    font-size: 13px;
    color: var(--moss);
}

.table td.empty-row {
    padding: 2rem 1rem !important;
    text-align: center;
    color: var(--moss);
}

/* Tables of inputs (land records, billers, invoice lines): inputs line up, smaller gaps. */
.table-inputs > :not(caption) > * > * {
    padding: .5rem .4rem;
}

.table-inputs > :not(caption) > * > *:first-child {
    padding-left: 1.25rem;
}

.table-inputs > :not(caption) > * > *:last-child {
    padding-right: 1.25rem;
}

.table-inputs > tbody > tr:hover > * {
    --bs-table-bg-state: transparent;
}

.table-inputs .form-control,
.table-inputs .form-select {
    min-width: 96px;
}

.row-number {
    width: 44px;
    color: var(--moss);
    font-variant-numeric: tabular-nums;
}

.highlight-duplicate > td,
.new-row-blink > td {
    animation: row-flash 1.4s ease-in-out 2;
}

@keyframes row-flash {
    0%, 100% { background-color: transparent; }
    50% { background-color: var(--wattle-tint); }
}

/* DataTables: the search, page size and paging, made to match the fields and buttons above. */
div.dt-container {
    font-size: 14px;
}

div.dt-container .dt-layout-row {
    margin: 0;
    padding: .875rem 1.25rem;
    gap: .75rem;
}

div.dt-container .dt-layout-row.dt-layout-table {
    padding: 0;
}

div.dt-container .dt-layout-row:first-child {
    border-bottom: 1px solid var(--mist);
}

div.dt-container .dt-layout-row:last-child:not(.dt-layout-table) {
    border-top: 1px solid var(--mist);
}

div.dt-container .dt-search label,
div.dt-container .dt-length label {
    font-size: 14px;
    color: var(--moss);
}

div.dt-container .dt-input,
div.dt-container .dt-search input,
div.dt-container .dt-length select {
    min-height: 40px;
    padding: .45rem .8rem;
    font-size: 15px;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid var(--line-field);
    border-radius: var(--radius-tile);
}

div.dt-container .dt-search input {
    width: min(320px, 70vw);
    margin-left: 0;
    padding-left: 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355645B' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center / 18px;
}

div.dt-container .dt-length select {
    margin-right: .5rem;
    padding-right: 2.2rem;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355645B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
}

div.dt-container .dt-input:focus,
div.dt-container .dt-search input:focus {
    border-color: var(--pond);
    box-shadow: var(--ring);
    outline: 0;
}

div.dt-container .dt-info {
    color: var(--moss);
}

div.dt-container .dt-paging nav,
div.dt-container .dt-paging {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem;
}

div.dt-container .dt-paging .dt-paging-button {
    min-width: 36px;
    height: 36px;
    margin: 0;
    padding: 0 .7rem;
    border: 0 !important;
    border-radius: 999px;
    background: transparent !important;
    color: var(--pond) !important;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    box-shadow: none !important;
}

div.dt-container .dt-paging .dt-paging-button:hover {
    background: rgba(15, 61, 46, .08) !important;
    color: var(--pond) !important;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: var(--pond) !important;
    color: #fff !important;
}

div.dt-container .dt-paging .dt-paging-button.disabled,
div.dt-container .dt-paging .dt-paging-button.disabled:hover {
    background: transparent !important;
    color: var(--line-strong) !important;
    cursor: default;
}

div.dt-container .dt-empty {
    padding: 2rem 1rem !important;
    color: var(--moss);
    text-align: center;
}

table.dataTable.table > thead > tr > th,
table.dataTable.table > thead > tr > td {
    padding-top: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1.5px solid var(--ink);
}

table.dataTable.table > tbody > tr > td {
    padding: .75rem;
}

table.dataTable.table > tbody > tr > td:first-child,
table.dataTable.table > thead > tr > th:first-child {
    padding-left: 1.25rem;
}

table.dataTable.table > tbody > tr > td:last-child,
table.dataTable.table > thead > tr > th:last-child {
    padding-right: 1.25rem;
}

table.dataTable.table.no-footer {
    border-bottom: 0;
}

table.dataTable thead > tr > th span.dt-column-order:before,
table.dataTable thead > tr > th span.dt-column-order:after {
    color: var(--moss);
}

table.dataTable > tbody > tr {
    background: transparent;
}

/* DataTables right-aligns any column it sees as numbers (phone numbers, status sorted by count): only .num columns are. */
table.dataTable th.dt-type-numeric:not(.num),
table.dataTable td.dt-type-numeric:not(.num) {
    text-align: left;
}

table.dataTable thead th.dt-type-numeric:not(.num) div.dt-column-header {
    flex-direction: row;
}

/* ---------------------------------------------------------------- Select2 (searchable farmer lists) */

.select2-container--bootstrap-5 .select2-selection {
    min-height: 44px;
    padding: .55rem .875rem;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
    border: 1px solid var(--line-field);
    border-radius: var(--radius-tile);
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355645B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-size: 18px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--ink);
    line-height: 1.4;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    color: var(--moss);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--pond);
    box-shadow: var(--ring);
}

.select2-container--bootstrap-5.select2-container--open.select2-container--below .select2-selection,
.select2-container--bootstrap-5.select2-container--open.select2-container--above .select2-selection {
    border: 1px solid var(--pond);
    border-radius: var(--radius-tile);
}

.select2-container--bootstrap-5 .select2-dropdown,
.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--below,
.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--above {
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-tile);
    box-shadow: var(--shadow-menu);
    overflow: hidden;
}

.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--above {
    margin-top: -4px;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    min-height: 40px;
    font-size: 15px;
    border: 1px solid var(--line-field);
    border-radius: 10px;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: var(--pond);
    box-shadow: var(--ring);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    padding: .6rem .875rem;
    font-size: 15px;
    color: var(--ink);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
    background: var(--leaf);
    color: var(--pond);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    background: var(--pond);
    color: #fff;
}

/* ---------------------------------------------------------------- Dialogs (Bootstrap modals) */

.modal {
    --bs-modal-color: var(--ink);
    --bs-modal-bg: rgba(255, 255, 255, .97);
    --bs-modal-border-width: 0;
    --bs-modal-border-radius: var(--radius-pane);
    --bs-modal-inner-border-radius: var(--radius-pane);
    --bs-modal-box-shadow: var(--shadow-sheet);
    --bs-modal-padding: 1.5rem;
    --bs-modal-header-padding: 1.5rem 1.5rem .25rem;
    --bs-modal-header-border-width: 0;
    --bs-modal-footer-border-width: 1px;
    --bs-modal-footer-border-color: var(--mist);
    --bs-modal-footer-gap: .5rem;
    --bs-modal-width: 480px;
}

.modal-content {
    box-shadow: var(--shadow-sheet);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
}

.modal-backdrop {
    --bs-backdrop-bg: rgba(15, 61, 46, .28);
    --bs-backdrop-opacity: 1;
    -webkit-backdrop-filter: blur(4px) saturate(120%);
    backdrop-filter: blur(4px) saturate(120%);
}

.modal-header {
    align-items: flex-start;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--pond);
}

.modal-subtitle {
    margin: .25rem 0 0;
    font-size: 14px;
    color: var(--moss);
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
}

.btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F3D2E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
    --bs-btn-close-opacity: 1;
    --bs-btn-close-hover-opacity: 1;
    --bs-btn-close-focus-shadow: none;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: -.4rem -.6rem -.4rem auto !important;
    border-radius: 999px;
    background-size: 20px;
}

.btn-close:hover {
    background-color: rgba(15, 61, 46, .08);
}

.btn-close:focus-visible {
    outline: 3px solid var(--frog);
    outline-offset: 2px;
}

.modal-section + .modal-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mist);
}

.modal-section-title {
    margin: 0 0 .75rem;
    font-size: 16px;
    font-weight: 700;
    color: var(--pond);
}

/* A finished task: a tick in a leaf circle. */
.done-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--frog-text);
}

/* Under 576 px a dialog is a sheet from the bottom of the screen. */
@media (max-width: 575.98px) {
    .modal-dialog,
    .modal-dialog-centered {
        display: flex;
        align-items: flex-end;
        min-height: 100%;
        margin: 0;
    }

    .modal-content {
        max-height: 92vh;
        border-radius: var(--radius-pane) var(--radius-pane) 0 0;
    }

    .modal-dialog-scrollable .modal-content {
        max-height: 92vh;
    }

    .modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform .22s cubic-bezier(.2, .9, .3, 1);
    }

    .modal.show .modal-dialog {
        transform: none;
    }

    .modal-footer > .btn {
        flex: 1 1 auto;
    }
}

/* ---------------------------------------------------------------- The app: land strip, glass bar, menu, page */

.app-top {
    position: relative;
    height: 104px;
    overflow: hidden;
    background: var(--water) url("../img/fields.svg") center 22% / cover no-repeat;
}

.app-bar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 64px;
    padding: 0 .5rem 0 .6rem;
    border-radius: var(--radius-pane);
}

@media (min-width: 576px) {
    .app-top {
        height: 120px;
    }

    .app-body {
        min-height: calc(100vh - 120px);
        min-height: calc(100dvh - 120px);
    }

    .app-bar {
        top: 28px;
        left: 24px;
        right: 24px;
        padding-left: .75rem;
    }
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding-right: .25rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--pond);
    text-decoration: none;
}

.app-brand:hover {
    color: var(--pond);
}

.app-brand img {
    display: block;
    width: 36px;
    height: 36px;
}

.app-context {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    padding-left: .75rem;
    margin-left: .25rem;
    border-left: 1px solid rgba(15, 61, 46, .14);
}

.app-org {
    overflow: hidden;
    font-weight: 600;
    color: var(--bark);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-account {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: 0 .75rem 0 .3rem;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.app-account:hover {
    background: rgba(15, 61, 46, .08);
    color: var(--ink);
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pond);
    color: #fff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

/* The page fills the window below the top bar, so the white content area reaches the bottom on short pages. */
.app-body {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 104px);
    min-height: calc(100dvh - 104px);
    margin: 0 auto;
}

.app-main {
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
    padding: 1.5rem 1rem 3rem;
    background: #fff;
}

@media (min-width: 576px) {
    .app-main {
        padding: 1.75rem 1.5rem 3rem;
    }
}

@media (min-width: 992px) {
    .app-main {
        padding: 1.75rem 2rem 3.5rem 1.5rem;
        border-left: 1px solid var(--line);
    }
}

/* The menu: a column beside the page from 992 px, a sheet from the left below that. */
.app-nav {
    --bs-offcanvas-width: 300px;
    --bs-offcanvas-bg: rgba(255, 255, 255, .96);
    --bs-offcanvas-border-width: 0;
    --bs-offcanvas-padding-x: .75rem;
    --bs-offcanvas-padding-y: .5rem;
}

@media (max-width: 991.98px) {
    .app-nav.offcanvas-lg {
        border-radius: 0 var(--radius-pane) var(--radius-pane) 0;
        box-shadow: var(--shadow-sheet);
        -webkit-backdrop-filter: blur(22px) saturate(130%);
        backdrop-filter: blur(22px) saturate(130%);
    }

    .offcanvas-backdrop {
        background: rgba(15, 61, 46, .28);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

    .offcanvas-backdrop.show {
        opacity: 1;
    }
}

@media (min-width: 992px) {
    .app-nav {
        position: sticky;
        top: 0;
        flex: 0 0 256px;
        width: 256px;
        max-height: 100vh;
        overflow-y: auto;
        padding: 1.25rem .5rem 2rem 1.5rem;
        scrollbar-width: thin;
        scrollbar-color: #B9C6BD transparent;
    }
}

.app-nav .offcanvas-header {
    padding: 1rem 1rem .5rem 1.25rem;
}

.app-nav .offcanvas-body {
    flex-direction: column;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-section {
    margin: 1.1rem 0 .3rem;
    padding: 0 .75rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--moss);
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 44px;
    padding: .45rem .75rem;
    border-radius: var(--radius-tile);
    font-size: 15px;
    font-weight: 500;
    color: var(--bark);
    text-decoration: none;
}

.nav-link-item .icon {
    color: var(--moss);
}

.nav-link-item:hover {
    background: rgba(15, 61, 46, .06);
    color: var(--ink);
}

.nav-link-item.active,
.nav-link-item[aria-current="page"] {
    background: var(--leaf);
    color: var(--pond);
    font-weight: 600;
}

.nav-link-item.active .icon,
.nav-link-item[aria-current="page"] .icon {
    color: var(--frog-text);
}

.nav-link-item[aria-disabled="true"] {
    color: var(--moss);
    cursor: default;
}

.nav-link-item[aria-disabled="true"]:hover {
    background: transparent;
}

.nav-link-item .tag {
    margin-left: auto;
    padding: 1px .5rem;
    font-size: 12px;
}

/* Page heading: title, one line about the page, and its main actions. */
.page {
    max-width: 100%;
}

/* Forms and short pages: a column in the middle of the content area. */
.page-narrow {    
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.page-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.015em;
    color: var(--pond);
}

@media (min-width: 576px) {
    .page-title {
        font-size: 32px;
    }
}

.page-lede {
    max-width: 68ch;
    margin: .4rem 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--moss);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 32px;
    margin: -.25rem 0 .35rem -.35rem;
    padding: 0 .5rem 0 .25rem;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pond);
    text-decoration: none;
}

.back-link:hover {
    background: rgba(15, 61, 46, .08);
    color: var(--pond);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Empty and placeholder states */
.empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: .75rem;
    border-radius: 50%;
    background: var(--leaf);
    color: var(--frog-text);
}

.empty h2 {
    margin: 0 0 .35rem;
    font-size: 19px;
}

.empty p {
    max-width: 52ch;
    margin: 0 auto;
    color: var(--moss);
}

/* Sample rows shown until a screen is connected to the database. */
.sample-note {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    border-bottom: 1px solid var(--mist);
    background: #FFFBEA;
    font-size: 13px;
    color: var(--wattle-ink);
}

/* ---------------------------------------------------------------- Home */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

@media (min-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
}

.stat {
    padding: 1.15rem 1.25rem 1.25rem;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .5rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--bark);
}

.stat-label .icon {
    color: var(--frog-text);
}

.stat-value {
    margin: 0;
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.02em;
    color: var(--pond);
    font-variant-numeric: tabular-nums;
}

.stat-note {
    margin: .4rem 0 0;
    font-size: 13px;
    color: var(--moss);
}

@media (max-width: 575.98px) {
    .stat {
        padding: 1rem;
    }

    .stat-value {
        font-size: 28px;
    }
}

.stat-attention {
    border-color: var(--wattle-line);
    box-shadow: inset 0 3px 0 var(--wattle);
}

.quick-link {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 72px;
    padding: .9rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}

.quick-link:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lift);
    color: var(--ink);
}

.quick-link .quick-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-tile);
    background: var(--leaf);
    color: var(--frog-text);
}

.quick-link strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--pond);
}

.quick-link span {
    font-size: 13px;
    color: var(--moss);
}

.quick-link > .icon:last-child {
    margin-left: auto;
    color: var(--moss);
}

/* ---------------------------------------------------------------- Sign in */

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 1.5rem 1rem;
    background: var(--water) url("../img/fields.svg") center / cover no-repeat;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem 1.5rem 1.75rem;
    border-radius: var(--radius-pane);
}

@media (min-width: 576px) {
    .login-card {
        padding: 2.25rem 2.25rem 2rem;
    }
}

.login-card .login-mark {
    display: block;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
}

.login-card h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.login-card .login-lede {
    margin: .4rem 0 1.5rem;
    color: var(--bark);
}

.login-foot {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--bark);
    text-align: center;
}

/* Text set straight onto the land */
.halo {
    text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 5px #fff;
}

/* ---------------------------------------------------------------- Farmer: Aadhaar photo and reading it */

.photo-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    height: 100%;
    min-height: 220px;
    padding: 1.25rem;
    overflow: hidden;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-card);
    background: var(--paper);
    color: var(--bark);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.photo-drop:hover {
    border-color: var(--pond);
    background: #F0F5F1;
}

.photo-drop .empty-mark {
    margin-bottom: .35rem;
}

.photo-drop strong {
    font-family: var(--font-display);
    color: var(--pond);
}

.photo-drop .hint {
    margin: 0;
}

.photo-drop.has-photo {
    padding: .5rem;
    border-style: solid;
    border-color: var(--line);
    background: #fff;
    cursor: default;
}

.photo-drop img {
    max-width: 100%;
    max-height: 230px;
    border-radius: 8px;
    object-fit: contain;
}

.scanner-overlay {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--frog) 20%, var(--wattle) 50%, var(--frog) 80%, transparent);
    box-shadow: 0 0 12px rgba(31, 160, 90, .8), 0 0 24px rgba(242, 183, 5, .5);
    animation: scan 1.5s ease-in-out infinite alternate;
}

@keyframes scan {
    from { top: 2%; }
    to { top: 96%; }
}

.scan-status {
    position: absolute;
    left: 50%;
    bottom: .75rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .85rem;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pond);
    white-space: nowrap;
    transform: translateX(-50%);
}

/* ---------------------------------------------------------------- Company profile */

.logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border: 1.5px solid #B9C6BD;
    border-radius: var(--radius-card);
    background: #fff;
}

.logo-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------------------------------------------------------------- Toasts */

.toast-region {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: min(460px, calc(100vw - 32px));
    pointer-events: none;
    transform: translateX(-50%);
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .85rem .6rem .85rem 1rem;
    border-radius: var(--radius-card);
    background: var(--pond);
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: var(--shadow-menu);
    pointer-events: auto;
    animation: toast-in .2s cubic-bezier(.2, .9, .3, 1);
}

.toast-item > .icon {
    margin-top: 2px;
}

.toast-item.is-error {
    background: var(--flame);
}

.toast-item .toast-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin: -.3rem 0 -.3rem auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
}

.toast-item .toast-close:hover {
    background: rgba(255, 255, 255, .16);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- Motion, transparency, print */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .scanner-overlay {
        top: 50%;
    }
}

/* Glass turns opaque when the system asks for less transparency, more contrast, or cannot blur. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .glass,
    .sheet,
    .modal-content,
    .app-nav.offcanvas-lg,
    .form-actions {
        background: #fff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-color: var(--line-field);
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass,
    .sheet,
    .modal-content {
        background: #fff;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm 12mm;
    }

    body {
        background: #fff !important;
        font-size: 12px;
    }

    .app-top,
    .app-nav,
    .toast-region,
    .page-actions,
    .form-actions,
    .row-actions,
    .no-print,
    div.dt-container .dt-layout-row:not(.dt-layout-table) {
        display: none !important;
    }

    .app-body {
        min-height: 0;
    }

    .app-main {
        padding: 0 !important;
    }

    .card {
        border: 0 !important;
    }

    .form-control,
    .form-select {
        min-height: 0;
        padding: 0;
        border: 0 !important;
        background: transparent !important;
    }
}
