html[data-bs-theme="light"] {
    --bs-primary: #0f6e56;
    --bs-primary-rgb: 15, 110, 86;
    --bs-link-color-rgb: 15, 110, 86;
    --bs-link-hover-color-rgb: 8, 80, 65;
    --bs-body-bg: #f5f4f0;
    --bs-body-color: #1a1a18;
    --app-navbar-bg: #ffffff;
    --app-navbar-border: #e5e4de;
    --app-primary: #0f6e56;
    --app-primary-hover: #085041;
}

html[data-bs-theme="dark"] {
    --bs-primary: #5dcaa5;
    --bs-primary-rgb: 93, 202, 165;
    --bs-link-color-rgb: 93, 202, 165;
    --bs-link-hover-color-rgb: 159, 225, 203;
    --app-navbar-bg: var(--bs-body-bg);
    --app-navbar-border: var(--bs-border-color);
    --app-primary: #5dcaa5;
    --app-primary-hover: #9fe1cb;
}

body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 14px;
    line-height: 1.5;
}

.offline-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connectivity-dot--online {
    background: #198754 !important;
}

.connectivity-dot--offline {
    background: #dc3545 !important;
}

.dashboard-card {
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--app-shadow);
    height: 100%;
}

.metric-card {
    text-align: center;
    padding: 15px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
    color: #0f6e56;
}

.metric-label {
    color: #6b6a66;
    font-size: 0.9rem;
}

.chart-container {
    min-height: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    .chart-container {
        min-height: 200px;
    }
}

.btn-ts-temp {
    color: #ff6b6b;
    border-color: #ff6b6b;
    border-radius: 8px;
}

.btn-ts-temp.active,
.btn-ts-temp:hover {
    background-color: #ff6b6b;
    color: white;
}

.btn-ts-precip {
    color: #4ecdc4;
    border-color: #4ecdc4;
    border-radius: 8px;
}

.btn-ts-precip.active,
.btn-ts-precip:hover {
    background-color: #4ecdc4;
    color: white;
}

.btn-ts-harvest {
    color: #45b7d1;
    border-color: #45b7d1;
    border-radius: 8px;
}

.btn-ts-harvest.active,
.btn-ts-harvest:hover {
    background-color: #45b7d1;
    color: white;
}

#signatureCanvas {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: crosshair;
    background-color: white;
    width: 100%;
    height: 200px;
}

.signature-preview {
    font-family: "Brush Script MT", cursive;
    font-size: 32px;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar {
    background-color: var(--app-navbar-bg) !important;
    border-bottom: 1px solid var(--app-navbar-border);
}

.text-primary,
.text-success {
    color: var(--app-primary) !important;
}

.app-navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 500;
}

.app-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e1f5ee;
    color: #0f6e56;
    font-size: 1rem;
    line-height: 1;
    flex: 0 0 auto;
}

.bg-primary {
    background-color: var(--app-primary) !important;
}

.btn-primary,
.btn-success {
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary-hover);
    --bs-btn-hover-border-color: var(--app-primary-hover);
    --bs-btn-active-bg: var(--app-primary-hover);
    --bs-btn-active-border-color: var(--app-primary-hover);
}

.btn-outline-primary,
.btn-outline-success {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-active-bg: var(--app-primary);
    --bs-btn-active-border-color: var(--app-primary);
    --bs-btn-disabled-color: var(--app-primary);
    --bs-btn-disabled-border-color: var(--app-primary);
    --bs-btn-disabled-bg: transparent;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
.btn-close:focus,
.accordion-button:focus {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 0.25rem rgba(15, 110, 86, 0.1);
}

.accordion {
    --bs-accordion-active-color: var(--bs-body-color);
    --bs-accordion-active-bg: var(--bs-body-bg);
}

.form-control,
.form-select,
textarea,
.input-group-text {
    font-size: 14px;
}

.form-control,
textarea,
.input-group-text {
    padding: 0.375rem 0.75rem;
}

.form-select {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 2.25rem;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-label,
.form-check-label,
.table,
.dropdown-item,
.dropdown-item-text,
.nav-link,
.navbar-brand,
.modal-title,
.card-header h5,
.card-header h6,
h2,
h5,
h6,
p,
small,
.form-text {
    font-size: 14px;
}

.table thead th {
    font-size: 12px;
}

.moisture-progress {
    min-width: 100px;
    flex-grow: 1;
    height: 20px;
}

.moisture-progress .progress-bar {
    float: right;
    color: #000000;
}

.signature-canvas,
#signatureCanvas {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: crosshair;
    background-color: white;
    width: 100%;
    height: 200px;
}

.signature-preview {
    font-family: 'Brush Script MT', cursive;
    font-size: 32px;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page-scroll-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1040;
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18);
}

.quick-actions-wrap {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.quick-actions-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.quick-actions {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    gap: 0.5rem;
}

.quick-action-btn {
    white-space: nowrap;
}

.dashboard-task-tabs {
    gap: 0.5rem;
}

.dashboard-task-tabs .nav-link {
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    white-space: nowrap;
}

.dashboard-task-tabs .nav-link.active {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
}

.dashboard-task-tabs .badge {
    margin-left: 0.25rem;
}

.quick-actions-desktop-inline {
    display: none;
}

.mobile-action-bar {
    display: none;
}

.mobile-harvest-total {
    display: none;
}

.btn-lot-blue {
    --bs-btn-color: #000;
    --bs-btn-bg: #0dcaf0;
    --bs-btn-border-color: #0dcaf0;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #31d2f2;
    --bs-btn-hover-border-color: #25cff2;
    --bs-btn-focus-shadow-rgb: 11, 172, 204;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #3dd5f3;
    --bs-btn-active-border-color: #25cff2;
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #0dcaf0;
    --bs-btn-disabled-border-color: #0dcaf0;
}

@media (min-width: 992px) {
    .quick-actions-mobile-only {
        display: none;
    }

    .quick-actions-desktop-inline {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .has-mobile-action-bar {
        padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
    }

    .has-mobile-action-bar > .navbar,
    .has-mobile-action-bar > footer,
    .has-mobile-action-bar .quick-actions-wrap,
    .has-mobile-action-bar .quick-actions-mobile-only {
        display: none;
    }

    .mobile-action-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        min-height: calc(4.5rem + env(safe-area-inset-bottom));
        padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
        background: var(--bs-body-bg);
        border-top: 1px solid var(--app-navbar-border);
        box-shadow: 0 -0.35rem 1rem rgba(0, 0, 0, 0.10);
    }

    .mobile-action-bar--has-fab {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .mobile-action-bar__item,
    .mobile-action-bar__fab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-width: 0;
        border: 0;
        color: var(--bs-secondary-color);
        background: transparent;
        font-size: 0.60rem;
        line-height: 1.1;
        text-decoration: none;
    }

    .mobile-action-bar__item > i {
        font-size: 1.25rem;
        color: var(--app-primary);
    }

    .mobile-action-bar__item.is-active {
        color: var(--app-primary);
        font-weight: 700;
    }

    .mobile-action-bar__fab {
        align-self: start;
        width: 3.25rem;
        height: 3.25rem;
        margin: -1.15rem auto 0;
        border-radius: 50%;
        color: #fff;
        background: var(--app-primary);
        box-shadow: 0 0.4rem 0.9rem rgba(15, 110, 86, 0.32);
    }

    .mobile-action-bar__fab > i { font-size: 1.4rem; }
    .mobile-action-bar__fab > span { font-size: 0.55rem; }
    .mobile-menu-heading { margin: 1.1rem 0 0.35rem; color: var(--bs-secondary-color); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
    .mobile-menu-link { display: flex; width: 100%; align-items: center; gap: 0.8rem; padding: 0.75rem 0; border: 0; color: var(--bs-body-color); background: transparent; font-size: 0.95rem; text-align: left; text-decoration: none; }
    .mobile-menu-link > i { width: 1.25rem; color: var(--app-primary); font-size: 1.1rem; text-align: center; }
    .mobile-menu-language { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--app-navbar-border); font-size: 0.9rem; }

    .has-mobile-action-bar #page-scroll-toggle { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
    .has-mobile-action-bar #pwa-install-prompt { bottom: calc(5.25rem + env(safe-area-inset-bottom)); }
    .mobile-sheet-open .mobile-action-bar { display: none; }
    .is-standalone-app .modal-backdrop { display: none; }

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1030;
    }

    .navbar-utility-nav {
        border-top: 0;
        margin-top: 1.25rem;
        padding: 0.75rem 0.875rem 0.875rem;
        border-radius: 0.75rem;
        background: rgba(var(--bs-secondary-bg-rgb), 0.55);
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem 1rem;
    }

    .navbar-version-item,
    .navbar-theme-item {
        display: flex;
        align-items: center;
        min-height: 2.25rem;
    }

    .navbar-version-item {
        padding-left: 0 !important;
    }

    .navbar-utility-nav #toggle-theme {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 2.25rem;
        padding-top: 0;
        padding-bottom: 0;
    }

    .navbar-user-nav {
        border-top: 0;
        margin-top: 1rem;
        padding-top: 0;
    }

    .navbar-user-nav .nav-link {
        padding-left: 0;
    }

    .quick-actions-wrap {
        position: sticky;
        top: 57px;
        z-index: 1029;
        margin-top: 0;
        margin-bottom: 0.75rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        background-color: var(--bs-body-bg);
        border-bottom: 1px solid var(--app-navbar-border);
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
    }

    .quick-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0.4rem;
    }

    .quick-action-btn {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #page-scroll-toggle.is-visible {
        display: inline-flex;
    }

    #addHarvestModal .modal-dialog,
    #editHarvestModal .modal-dialog,
    #receiptModal .modal-dialog,
    #addMoistureModal .modal-dialog,
    #closeLotModal .modal-dialog,
    #signReciboPromptModal .modal-dialog,
    #harvestSignatureModal .modal-dialog {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(100%, 31rem);
        max-width: none;
        height: 100%;
        margin: 0;
        transform: translateX(100%) !important;
        transition: transform 0.22s ease-out !important;
    }

    #addHarvestModal.show .modal-dialog,
    #editHarvestModal.show .modal-dialog,
    #receiptModal.show .modal-dialog,
    #addMoistureModal.show .modal-dialog,
    #closeLotModal.show .modal-dialog,
    #signReciboPromptModal.show .modal-dialog,
    #harvestSignatureModal.show .modal-dialog { transform: translateX(0) !important; }
    #addHarvestModal .modal-content,
    #editHarvestModal .modal-content,
    #receiptModal .modal-content,
    #addMoistureModal .modal-content,
    #closeLotModal .modal-content,
    #signReciboPromptModal .modal-content,
    #harvestSignatureModal .modal-content { height: 100%; border: 0; border-radius: 0; color: var(--bs-body-color); background: var(--bs-body-bg); }
    #addHarvestModal .modal-header,
    #editHarvestModal .modal-header,
    #receiptModal .modal-header,
    #addMoistureModal .modal-header,
    #closeLotModal .modal-header,
    #signReciboPromptModal .modal-header,
    #harvestSignatureModal .modal-header { min-height: 4rem; background: var(--bs-body-bg); border-bottom-color: var(--app-navbar-border); }
    #addHarvestModal .modal-header .btn-close,
    #editHarvestModal .modal-header .btn-close,
    #receiptModal .modal-header .btn-close,
    #addMoistureModal .modal-header .btn-close,
    #closeLotModal .modal-header .btn-close,
    #signReciboPromptModal .modal-header .btn-close,
    #harvestSignatureModal .modal-header .btn-close { order: -1; margin: 0 0.75rem 0 0; padding: 0; width: 2.25rem; height: 2.25rem; background: none; opacity: 1; }
    #addHarvestModal .modal-header .btn-close::before,
    #editHarvestModal .modal-header .btn-close::before,
    #receiptModal .modal-header .btn-close::before,
    #addMoistureModal .modal-header .btn-close::before,
    #closeLotModal .modal-header .btn-close::before,
    #signReciboPromptModal .modal-header .btn-close::before,
    #harvestSignatureModal .modal-header .btn-close::before { content: "←"; color: var(--app-primary); font-size: 1.8rem; line-height: 1; }
    #addHarvestModal .modal-body,
    #editHarvestModal .modal-body,
    #receiptModal .modal-body,
    #addMoistureModal .modal-body,
    #closeLotModal .modal-body,
    #signReciboPromptModal .modal-body,
    #harvestSignatureModal .modal-body { overflow-y: auto; }
    .desktop-add-harvest { display: none; }
    .is-standalone-app .form-control,
    .is-standalone-app .form-select,
    .is-standalone-app textarea { font-size: 16px; }
    #mobile-navigation-sheet { z-index: 1060; }
    #mobile-navigation-sheet .modal-dialog { position: fixed; top: 0; right: 0; bottom: 0; width: min(22rem, 88vw); max-width: none; height: 100%; margin: 0; transform: translateX(100%) !important; transition: transform 0.22s ease-out !important; }
    #mobile-navigation-sheet.show .modal-dialog { transform: translateX(0) !important; }
    #mobile-navigation-sheet .modal-content { height: 100%; border: 0; border-radius: 0; }
    #mobile-navigation-sheet .modal-header { min-height: 4rem; border-bottom-color: var(--app-navbar-border); }
    #mobile-navigation-sheet .modal-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; }
    .mobile-menu-status { display: flex; align-items: center; gap: 0.45rem; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--app-navbar-border); color: var(--bs-secondary-color); font-size: 0.8rem; }
    .mobile-menu-status .connectivity-dot { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%; }
    body:not(.is-standalone-app) .mobile-action-bar { display: none !important; }
    body:not(.is-standalone-app) #addHarvestModal .modal-dialog,
    body:not(.is-standalone-app) #editHarvestModal .modal-dialog,
    body:not(.is-standalone-app) #receiptModal .modal-dialog,
    body:not(.is-standalone-app) #addMoistureModal .modal-dialog,
    body:not(.is-standalone-app) #closeLotModal .modal-dialog,
    body:not(.is-standalone-app) #signReciboPromptModal .modal-dialog,
    body:not(.is-standalone-app) #harvestSignatureModal .modal-dialog { position: relative; inset: auto; width: auto; max-width: var(--bs-modal-width); height: auto; margin: var(--bs-modal-margin); transform: none !important; transition: none !important; }
    body:not(.is-standalone-app) #addHarvestModal .modal-content,
    body:not(.is-standalone-app) #editHarvestModal .modal-content,
    body:not(.is-standalone-app) #receiptModal .modal-content,
    body:not(.is-standalone-app) #addMoistureModal .modal-content,
    body:not(.is-standalone-app) #closeLotModal .modal-content,
    body:not(.is-standalone-app) #signReciboPromptModal .modal-content,
    body:not(.is-standalone-app) #harvestSignatureModal .modal-content { height: auto; border: var(--bs-modal-border-width) solid var(--bs-modal-border-color); border-radius: var(--bs-modal-border-radius); background: var(--bs-modal-bg); }
    body:not(.is-standalone-app) #addHarvestModal .modal-header,
    body:not(.is-standalone-app) #editHarvestModal .modal-header,
    body:not(.is-standalone-app) #receiptModal .modal-header,
    body:not(.is-standalone-app) #addMoistureModal .modal-header,
    body:not(.is-standalone-app) #closeLotModal .modal-header,
    body:not(.is-standalone-app) #signReciboPromptModal .modal-header,
    body:not(.is-standalone-app) #harvestSignatureModal .modal-header { min-height: 0; background: var(--bs-modal-bg); }
    body:not(.is-standalone-app) #addHarvestModal .modal-header .btn-close,
    body:not(.is-standalone-app) #editHarvestModal .modal-header .btn-close,
    body:not(.is-standalone-app) #receiptModal .modal-header .btn-close,
    body:not(.is-standalone-app) #addMoistureModal .modal-header .btn-close,
    body:not(.is-standalone-app) #closeLotModal .modal-header .btn-close,
    body:not(.is-standalone-app) #signReciboPromptModal .modal-header .btn-close,
    body:not(.is-standalone-app) #harvestSignatureModal .modal-header .btn-close { order: initial; margin: calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto; padding: .25em .25em; width: 1em; height: 1em; background: transparent var(--bs-btn-close-bg) center / 1em auto no-repeat; opacity: .5; }
    body:not(.is-standalone-app) #addHarvestModal .modal-header .btn-close::before,
    body:not(.is-standalone-app) #editHarvestModal .modal-header .btn-close::before,
    body:not(.is-standalone-app) #receiptModal .modal-header .btn-close::before,
    body:not(.is-standalone-app) #addMoistureModal .modal-header .btn-close::before,
    body:not(.is-standalone-app) #closeLotModal .modal-header .btn-close::before,
    body:not(.is-standalone-app) #signReciboPromptModal .modal-header .btn-close::before,
    body:not(.is-standalone-app) #harvestSignatureModal .modal-header .btn-close::before { content: none; }
    body:not(.is-standalone-app) .desktop-add-harvest { display: inline-block; }
}

@media (max-width: 767.98px) {
    .is-standalone-app .mobile-compact-enabled { display: none; }
    .is-standalone-app .mobile-compact-list { display: grid; gap: 0.65rem; }
    .mobile-compact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-height: 4.25rem; padding: 0.7rem 0.8rem; border: 1px solid var(--app-navbar-border); border-radius: 0.75rem; color: var(--bs-body-color); background: var(--bs-body-bg); text-align: left; box-shadow: 0 0.15rem 0.45rem rgba(0, 0, 0, 0.04); }
    .mobile-compact-row__field { display: flex; min-width: 0; flex-direction: column; gap: 0.2rem; }
    .mobile-compact-row__field--2 { text-align: right; }
    .mobile-compact-row small { overflow: hidden; color: var(--bs-secondary-color); font-size: 0.63rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
    .mobile-compact-row strong { overflow: hidden; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-compact-row--lot { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr) minmax(0, 1fr); }
    .mobile-compact-row--lot .mobile-compact-row__field--0 strong { overflow: visible; font-size: 0.7rem; line-height: 1.1; text-overflow: clip; white-space: normal; word-break: break-word; }
    .mobile-compact-row__moisture { gap: 0.3rem; }
    .mobile-compact-row__moisture strong { color: var(--app-primary); }
    .mobile-receipt-signature { display: inline-flex; align-items: center; gap: 0.25rem; width: fit-content; margin-top: 0.2rem; padding: 0.15rem 0.35rem; border-radius: 999px; font-size: 0.62rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
    .mobile-receipt-signature--signed { color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 12%, transparent); }
    .mobile-receipt-signature--pending { color: #8a5a00; background: #fff3cd; }
    .mobile-receipt-signature > i { font-size: 0.7rem; }
    .mobile-moisture-meter { display: block; height: 0.35rem; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--app-primary) 16%, var(--bs-tertiary-bg)); }
    .mobile-moisture-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--app-primary); }
    .is-standalone-app .mobile-harvest-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.9rem; padding: 0.85rem 1rem; border: 1px solid color-mix(in srgb, var(--app-primary) 28%, transparent); border-radius: 0.75rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, var(--bs-body-bg)); }
    .mobile-harvest-total span { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; }
    .mobile-harvest-total strong { font-size: 1.35rem; }
    .mobile-detail-sheet { width: min(31rem, 100vw); background: var(--bs-body-bg); }
    .mobile-sheet-header { min-height: 4.25rem; background: var(--bs-body-bg); border-bottom: 1px solid var(--app-navbar-border); }
    .mobile-sheet-back { width: 2.5rem; height: 2.5rem; margin-right: 0.5rem; border: 0; border-radius: 50%; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, var(--bs-body-bg)); font-size: 1.35rem; }
    .mobile-detail-sheet .offcanvas-body { padding: 1rem; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
    .mobile-sheet-hero { margin-bottom: 1rem; padding: 1rem; border-radius: 1rem; color: #fff; background: var(--app-primary); box-shadow: 0 0.5rem 1.25rem rgba(15, 110, 86, 0.22); }
    .mobile-sheet-hero p { margin: 0 0 0.25rem; opacity: 0.8; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
    .mobile-sheet-hero strong { display: block; overflow-wrap: anywhere; font-size: 1.45rem; }
    .mobile-sheet-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
    .mobile-sheet-field { min-width: 0; padding: 0.75rem; border: 1px solid var(--app-navbar-border); border-radius: 0.75rem; background: var(--bs-tertiary-bg); }
    .mobile-sheet-field span { display: block; margin-bottom: 0.25rem; overflow: hidden; color: var(--bs-secondary-color); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
    .mobile-sheet-field strong { display: block; overflow-wrap: anywhere; font-size: 0.95rem; }
    .mobile-sheet-field--moisture strong { color: var(--app-primary); }
    .mobile-sheet-field--moisture .mobile-moisture-meter { margin-top: 0.45rem; }
    .mobile-sheet-actions { display: grid; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--app-navbar-border); }
    .mobile-sheet-action { display: grid; grid-template-columns: 1.5rem 1fr 1rem; align-items: center; gap: 0.65rem; width: 100%; min-height: 3.35rem; padding: 0.75rem; border: 1px solid color-mix(in srgb, var(--app-primary) 28%, transparent); border-radius: 0.75rem; color: var(--app-primary); background: var(--bs-body-bg); font-weight: 700; text-align: left; }
    .mobile-sheet-action > i:first-child { font-size: 1.15rem; }
    .is-standalone-app #signReciboPromptModal .modal-content { display: flex; flex-direction: column; }
    .is-standalone-app #signReciboPromptModal .harvest-sign-prompt__body { display: flex; align-items: center; padding: 1.5rem; }
    .is-standalone-app .harvest-sign-prompt { width: 100%; text-align: center; }
    .is-standalone-app .harvest-sign-prompt__icon { display: inline-flex; align-items: center; justify-content: center; width: 4.25rem; height: 4.25rem; margin-bottom: 1.25rem; border-radius: 50%; color: #fff; background: var(--app-primary); box-shadow: 0 0.6rem 1.4rem rgba(15, 110, 86, 0.24); font-size: 1.75rem; }
    .is-standalone-app .harvest-sign-prompt__eyebrow { margin: 0 0 0.4rem; color: var(--app-primary); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
    .is-standalone-app .harvest-sign-prompt h3 { margin-bottom: 0.65rem; font-size: 1.5rem; }
    .is-standalone-app .harvest-sign-prompt__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 1.5rem 0 0; text-align: left; }
    .is-standalone-app .harvest-sign-prompt__summary > div { padding: 0.8rem; border: 1px solid var(--app-navbar-border); border-radius: 0.75rem; background: var(--bs-tertiary-bg); }
    .is-standalone-app .harvest-sign-prompt__summary dt { color: var(--bs-secondary-color); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
    .is-standalone-app .harvest-sign-prompt__summary dd { margin: 0.2rem 0 0; overflow-wrap: anywhere; font-size: 1rem; font-weight: 700; }
    .is-standalone-app #signReciboPromptModal .harvest-sign-prompt__actions { display: grid; grid-template-columns: 1fr; gap: 0.65rem; padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--app-navbar-border); }
    .is-standalone-app #signReciboPromptModal .harvest-sign-prompt__actions .btn { min-height: 3.25rem; font-size: 1rem; font-weight: 700; }
}

@media (min-width: 768px) {
    .mobile-compact-list { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #addHarvestModal .modal-dialog { transition: none !important; }
}

.dashboard-task-list {
    max-height: 15rem;
    overflow-y: auto;
}
