/* Field Ops — Corporate workflow theme (navy / blue / semantic accents) */
:root {
    --fo-primary: #1e5a96;
    --fo-primary-light: #2b7bc0;
    --fo-primary-soft: #e8f1f8;
    --fo-navy: #0c2340;
    --fo-success: #1a7f4b;
    --fo-success-light: #22a55f;
    --fo-success-soft: #e8f5ee;
    --fo-warning: #c45c26;
    --fo-warning-soft: #fdf3eb;
    --fo-dark: #0c2340;
    --fo-radius: 1rem;
    /* legacy aliases */
    --fo-orange: var(--fo-warning);
    --fo-orange-light: #d97706;
    --fo-orange-soft: var(--fo-warning-soft);
    --fo-green: var(--fo-success);
    --fo-green-light: var(--fo-success-light);
    --fo-green-soft: var(--fo-success-soft);
}

/* AI insights panel */
.fo-ai-panel {
    background: linear-gradient(135deg, var(--fo-navy) 0%, #1a3a5c 55%, #164a3a 100%);
    border-radius: var(--fo-radius);
    color: #fff;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}
.fo-ai-panel .fo-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(90deg, var(--fo-primary-light), var(--fo-success-light));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}
.fo-ai-focus {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--fo-primary-light);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.65rem 0.85rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}
.fo-ai-card {
    background: rgba(255, 255, 255, 0.95);
    color: var(--fo-dark);
    border-radius: 0.75rem;
    padding: 0.75rem;
    height: 100%;
    border: none;
    transition: transform 0.15s;
}
.fo-ai-card:hover { transform: translateY(-2px); }
.fo-ai-card.priority-High { border-left: 4px solid var(--fo-warning); }
.fo-ai-card.priority-Medium { border-left: 4px solid var(--fo-primary); }
.fo-ai-card.priority-Low { border-left: 4px solid var(--fo-success); }
.fo-ai-card .fo-ai-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--fo-primary-soft); color: var(--fo-primary);
    font-size: 1rem;
}

/* Street / house cards */
.fo-street-header {
    background: linear-gradient(90deg, var(--fo-primary-soft), var(--fo-success-soft));
    border-radius: 0.75rem;
    padding: 0.5rem 0.85rem;
    margin: 1rem 0 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.fo-house-card {
    border: none;
    border-radius: var(--fo-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s, box-shadow 0.15s;
    height: 100%;
}
.fo-house-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12); }
.fo-house-card.visited,
.fo-house-card.ration-mapped { border-top: 4px solid var(--fo-green); }
.fo-house-card.not-visited,
.fo-house-card.ration-pending { border-top: 4px solid var(--fo-orange-light); }
.fo-house-card.visit-completed { box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.25); }
.fo-house-card.visit-pending { box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.35); }
.fo-house-card.member-home { background: linear-gradient(180deg, var(--fo-green-soft) 0%, #fff 35%); }
.fo-house-card.non-member-home { background: linear-gradient(180deg, var(--fo-orange-soft) 0%, #fff 35%); }
.fo-flag-visited {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px;
}
.fo-flag-visited.yes { background: var(--fo-green-soft); color: var(--fo-green); }
.fo-flag-visited.no { background: #fef3c7; color: #b45309; }
.fo-flag-member {
    display: inline-flex; align-items: center; gap: 0.25rem;
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 999px;
}
.fo-flag-member.yes { background: #dbeafe; color: #1d4ed8; }
.fo-flag-member.no { background: #f1f5f9; color: #64748b; }

/* View toggle */
.fo-view-toggle .btn.active {
    background: linear-gradient(135deg, var(--fo-primary), var(--fo-success));
    border-color: transparent;
    color: #fff;
}

/* Performance chips */
.fo-perf-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fo-perf-chip {
    flex: 1 1 140px;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.65rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border-bottom: 3px solid var(--fo-green);
}
.fo-perf-chip.orange { border-bottom-color: var(--fo-orange); }
.fo-perf-chip.green { border-bottom-color: var(--fo-green); }
.fo-perf-chip.blue { border-bottom-color: #3b82f6; }
.fo-perf-chip.amber { border-bottom-color: #f59e0b; }
.fo-perf-chip.purple { border-bottom-color: #8b5cf6; }
.fo-perf-chip h5 { margin: 0; font-weight: 800; }
.fo-perf-chip small { color: #64748b; }

.fo-workflow-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
}
.fo-workflow-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}
.fo-workflow-step {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    transition: box-shadow .15s, border-color .15s, transform .1s;
}
.fo-workflow-step:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08);
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}
.fo-workflow-step.active {
    border-color: var(--fo-orange);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, .15);
    background: #fff7ed;
}
.fo-workflow-step-num {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 800;
    flex-shrink: 0;
}
.fo-workflow-step.active .fo-workflow-step-num {
    background: var(--fo-orange);
    color: #fff;
}
.fo-workflow-step-label {
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .fo-ai-panel { padding: 1rem; }
    .fo-house-card .card-body { padding: 0.75rem; }
    .fo-street-header { font-size: 0.85rem; }
    .fo-workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fo-workflow-step { padding: 0.6rem 0.65rem; }
}

.vr-photo-preview { max-width: 100%; max-height: 220px; border-radius: 0.5rem; object-fit: cover; }
.vr-photo-placeholder { min-height: 160px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; border-radius: 0.5rem; }
.vr-card-photo { width: 48px; height: 48px; object-fit: cover; flex-shrink: 0; }
.vr-card-photo-empty { width: 48px; height: 48px; background: #f1f5f9; flex-shrink: 0; }

/* Ration mapping split panel */
.fo-flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.fo-flow-step {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.fo-flow-step-no,
.fo-step-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    white-space: nowrap;
}
.fo-flow-step-no {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    flex-shrink: 0;
}
.fo-step-chip {
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
}
.fo-ration-split .fo-ration-voter-pane { max-height: 70vh; overflow-y: auto; }
.fo-ration-voter { cursor: pointer; transition: box-shadow .15s, border-color .15s; border-width: 2px !important; }
.fo-ration-voter:hover { box-shadow: 0 4px 12px rgba(13, 110, 253, 0.12); }
.fo-ration-voter.selected { border-color: var(--fo-orange) !important; box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2); background: #fff8f3; }
.fo-ration-voter[data-mapped="true"] { opacity: .85; }
#rationMemberBody tr.table-active { outline: 2px solid var(--bs-primary); outline-offset: -1px; }
.fo-ration-voter .fo-ration-voter-actions { pointer-events: auto; }
.fo-door-chip-row { max-height: 120px; overflow-y: auto; }
.fo-door-chip { font-size: .75rem; padding: .35rem .55rem; border-radius: .75rem; }
.fo-door-chip.active { background: var(--fo-orange, #ea580c); border-color: var(--fo-orange, #ea580c); color: #fff; }
.fo-door-chip.active .opacity-75 { opacity: .9 !important; color: #fff; }
.fo-voter-toolbar .btn { white-space: nowrap; }
.fo-door-group { border: 1px solid #e2e8f0; border-radius: .9rem; padding: .75rem; background: #fff; }
.fo-door-group-header { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; margin-bottom: .5rem; }
.fo-door-group-meta { font-size: .75rem; color: #64748b; }
.fo-door-family-links { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem; }
.fo-door-family-link { display: inline-flex; flex-direction: column; gap: .1rem; padding: .45rem .55rem; border: 1px solid #dbeafe; border-radius: .7rem; background: #f8fbff; color: #0f172a; min-width: 10rem; }
.fo-door-family-link:hover { border-color: #93c5fd; background: #eff6ff; }
.fo-mapped-status { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.manual-member-row { background: #fafbfe; }
.fo-ration-workspace { align-self: flex-start; }
.fo-ration-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}
.fo-ration-guide-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
    font-size: 0.76rem;
    color: #475569;
}
.fo-ration-guide-item strong { color: #0f172a; }
.fo-save-bar {
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #f8fafc;
}
.fo-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
.fo-analysis-card {
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.fo-analysis-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin: 0.2rem 0;
}
.fo-booth-analysis-list {
    display: grid;
    gap: 0.9rem;
}
.fo-booth-analysis {
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background: #f8fbff;
    padding: 0.9rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.fo-booth-analysis.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #eff6ff;
}
.fo-booth-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.fo-street-analysis-list {
    display: grid;
    gap: 0.65rem;
}
.fo-street-analysis {
    padding: 0.75rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.fo-street-analysis.scope-parent {
    border-color: #bfdbfe;
    background: #f8fbff;
}
.fo-street-analysis.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.fo-door-mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.fo-door-mini-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 600;
}

@media (min-width: 992px) {
    .fo-ration-workspace {
        position: sticky;
        top: 1rem;
    }
}

/* Post-import voter setup */
.vs-setup-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 55%, #fff7ed 100%);
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.vs-setup-hero h4 { font-weight: 700; letter-spacing: -0.02em; }
.vs-bulk-panel {
    top: calc(60px + 0.35rem);
    z-index: 1020;
    border-radius: 0.75rem;
    overflow: hidden;
}
.vs-bulk-panel .card-header { font-weight: 600; }
.vs-bulk-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.vs-setup-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    font-size: 0.75rem;
    white-space: nowrap;
}
.vs-setup-table tbody tr:hover { background: #f8fafc; }
.vs-setup-table tr.vs-row-gap { background: #fff7ed; }
.vs-setup-table tr.vs-row-gap:hover { background: #ffedd5; }
.vs-roll-fields .input-group-text {
    min-width: 4.25rem;
    font-size: 0.68rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}
.vs-door-chip {
    min-width: 7.5rem;
    border-radius: 0.75rem !important;
    padding: 0.45rem 0.65rem !important;
    line-height: 1.25;
}
.vs-street-card .card-header {
    background: linear-gradient(90deg, #f0f9ff, #f8fafc);
}
.vs-filter-card .form-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.15rem;
}

/* Booth voters filter scope */
.fo-filter-scope {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.fo-filter-scope-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.fo-filter-scope-chip {
    border-radius: 0.65rem !important;
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8rem;
}
.fo-filter-quick .btn { border-radius: 0.65rem; }

.fo-split-panel-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.35rem;
}
.fo-family-saved-panel .list-group-item { font-size: 0.8rem; }
.fo-ration-voter .voter-door-chk { z-index: 2; }

.fo-flow-progress {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.fo-flow-progress-step {
    flex: 1;
    min-width: 4.5rem;
    text-align: center;
    padding: 0.45rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    transition: background .15s, border-color .15s, color .15s;
}
.fo-flow-progress-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #e2e8f0;
    font-size: 0.65rem;
    margin-right: 0.25rem;
}
.fo-flow-progress-step.active {
    border-color: #0d6efd;
    background: #eff6ff;
    color: #0d6efd;
}
.fo-flow-progress-step.active span { background: #0d6efd; color: #fff; }
.fo-flow-progress-step.done {
    border-color: #198754;
    background: #f0fdf4;
    color: #198754;
}
.fo-flow-progress-step.done span { background: #198754; color: #fff; }

.fo-dual-compare-panel { border-width: 2px !important; }
.fo-dual-list {
    max-height: 280px;
    overflow-y: auto;
    min-height: 120px;
}
.fo-dual-item {
    padding: 0.45rem 0.55rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 0.35rem;
    margin-bottom: 0.35rem;
}
.fo-dual-item:last-child { margin-bottom: 0; }
.fo-dual-item.mapped { border-left: 3px solid #198754; }
.fo-dual-item.ration.matched { border-left: 3px solid #0d6efd; }

.fo-door-voter-edit-table input { min-width: 4rem; }

/* Filter Apply — full-page loading progress */
.fo-page-loading {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 35, 64, 0.42);
    backdrop-filter: blur(3px);
}
.fo-page-loading.show { display: flex; }
.fo-page-loading-card {
    background: #fff;
    border-radius: 1.15rem;
    padding: 1.5rem 1.75rem;
    min-width: 240px;
    max-width: 88vw;
    text-align: center;
    box-shadow: 0 16px 48px rgba(12, 35, 64, 0.22);
}
.fo-page-loading-sub { font-size: 0.72rem; }
body.fo-loading { overflow: hidden; }

/* Round circular loader */
.fo-round-loader {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: var(--fo-primary, #1e5a96);
    border-right-color: var(--fo-success, #1a7f4b);
    animation: fo-round-spin 0.85s linear infinite;
    margin: 0 auto;
}
.fo-round-loader-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
    vertical-align: -0.15em;
}
@keyframes fo-round-spin { to { transform: rotate(360deg); } }

/* Slim top progress bar (field app header) */
.fo-app-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2600;
    background: rgba(255,255,255,0.15);
    display: none;
    overflow: hidden;
}
.fo-app-top-progress.show { display: block; }
.fo-app-top-progress-fill {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, var(--fo-primary, #1e5a96), var(--fo-success, #1a7f4b));
    border-radius: 0 2px 2px 0;
    animation: fo-top-progress 1.1s ease-in-out infinite;
}
@keyframes fo-top-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(320%); }
}
.fo-select-loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%231e5a96' stroke-width='5' stroke-dasharray='90 150' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    padding-right: 1.75rem !important;
}
.fo-await-filter { border-left: 4px solid #0d6efd !important; }

.fo-save-bar.sticky-bottom {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 24%);
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
}

/* Field agent workflow strip */
.fa-workflow-strip .fa-wf-icon {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
    color: var(--fo-primary);
}
.fa-workflow-strip .fa-wf-step.done .fa-wf-icon { color: var(--fo-success); }
.fa-workflow-strip .fa-wf-step.current .fa-wf-icon { color: var(--fo-primary-light); }

/* Workflow action buttons — semantic corporate colours */
.fa-wf-btn-checkin { background: var(--fo-success) !important; border-color: var(--fo-success) !important; color: #fff !important; }
.fa-wf-btn-voters { background: var(--fo-primary) !important; border-color: var(--fo-primary) !important; color: #fff !important; }
.fa-wf-btn-doors { background: #3d6b8c !important; border-color: #3d6b8c !important; color: #fff !important; }
.fa-wf-btn-ration { background: var(--fo-success) !important; border-color: var(--fo-success) !important; color: #fff !important; }
.fa-wf-btn-groups { background: var(--fo-navy) !important; border-color: var(--fo-navy) !important; color: #fff !important; }
.fa-wf-btn-visit { background: var(--fo-warning) !important; border-color: var(--fo-warning) !important; color: #fff !important; }

/* Field agent activity grid */
.fa-activity-grid .fa-activity-tile {
    display: block; text-align: center; padding: 0.65rem 0.35rem;
    background: #fff; border-radius: 0.75rem; border: 1px solid #e2e8f0;
    transition: box-shadow .15s, transform .1s; height: 100%;
}
.fa-activity-grid .fa-activity-tile:hover { box-shadow: 0 4px 12px rgba(15,23,42,.1); transform: translateY(-1px); }
.fa-activity-icon {
    width: 2.5rem; height: 2.5rem; border-radius: 0.65rem;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; margin-bottom: 0.35rem;
}
.fa-activity-label { font-size: 0.72rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
.fa-activity-sub { font-size: 0.62rem; color: #64748b; }
.fo-door-voter-row .fo-voter-toolbar .btn { font-size: 0.65rem; padding: 0.1rem 0.35rem; }
.fo-voter-classify { margin-top: 0.35rem; }
.fo-voter-classify-compact .fo-category-select { max-width: 9rem; font-size: 0.65rem; }
.fo-voter-classify-compact .fo-sentiment-select { font-size: 0.75rem; }
.fo-voter-classify .fo-sentiment-select { margin-top: 0.125rem; }

/* Mapping flow colour legend */
.fo-legend-card { background: #fff; }
.fo-legend-item { display: inline-flex; align-items: center; gap: 0.25rem; }
.fo-legend-swatch {
    width: 0.75rem; height: 0.75rem; border-radius: 2px; display: inline-block; border: 1px solid rgba(0,0,0,.08);
}
.fo-legend-swatch.mapped { background: var(--fo-green); }
.fo-legend-swatch.unmapped { background: var(--fo-orange-light); }
.fo-legend-swatch.member { background: #3b82f6; }
.fo-legend-swatch.supporter { background: #16a34a; }
.fo-legend-swatch.opposition { background: #dc2626; }
.fo-legend-swatch.visited { background: #0ea5e9; }
.fo-legend-swatch.pending { background: #f59e0b; }
.fo-legend-swatch.gift { background: #ec4899; }
.fo-legend-swatch.gap { background: #fde68a; }

/* Field agent KPI dashboard */
.fa-kpi-dashboard .fa-kpi-ring { text-align: center; padding: 0.35rem; background: #f8fafc; border-radius: 0.65rem; }
.fa-kpi-pct { font-size: 1.1rem; font-weight: 800; line-height: 1.1; }

/* Mobile bulk voter select */
.fo-bulk-bar {
    position: sticky; top: 0; z-index: 50; background: #fffbeb; border: 1px solid #fcd34d;
    border-radius: 0.65rem; padding: 0.5rem 0.65rem; margin-bottom: 0.5rem;
}
.fo-bulk-select-all { padding-left: 0.25rem; }

.fa-territory-loaded { border-radius: 0.75rem; background: linear-gradient(90deg, #ecfdf5, #f0fdf4); }
.fa-quick-stats a.card:active { transform: scale(0.98); }
.fa-quick-stats .field-stat h4 { font-size: 1.25rem; }
.fo-auto-territory { border-radius: 0.75rem; background: #f0fdf4; }
.fo-voter-toolbar .btn-outline-success { border-color: #22c55e; }

/* Field agent mobile — voters & family pages */
.field-app-mobile .field-app-content { padding: 0.65rem 0.75rem 0.25rem; }
.field-app-mobile h4 { font-size: 1.05rem; }
.field-app-mobile .fo-map-nav,
.field-app-mobile .fo-workflow-card { display: none !important; }
.field-app-mobile .fo-mobile-voters-head .fw-bold { font-size: 0.95rem; }
.field-app-mobile .fo-mobile-quickbar {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}
.field-app-mobile .fo-mobile-quickbar::-webkit-scrollbar { display: none; }
.field-app-mobile .fo-mobile-quickbar .btn { white-space: nowrap; font-size: 0.68rem; padding: 0.2rem 0.55rem; }
.field-app-mobile .fo-mobile-filter-card { border-radius: 0.85rem; overflow: hidden; }
.field-app-mobile .fo-mobile-filter-card .card-body { padding: 0.65rem; }
.field-app-mobile .fo-filter-scope { display: none; }
.field-app-mobile .fo-kpi-strip { display: none; }
.field-app-mobile .fo-territory-kpi-compact { display: block; }
.field-app-mobile .fo-mobile-kpi-scroll {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.field-app-mobile .fo-mobile-kpi-scroll::-webkit-scrollbar { display: none; }
.field-app-mobile .fo-mobile-kpi-scroll .fo-perf-chip { min-height: auto; padding: 0.45rem 0.55rem; }
.field-app-mobile .fo-mobile-kpi-scroll .fo-perf-chip h5 { font-size: 1rem; }
.field-app-mobile .fo-legend-card details summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 0.78rem;
}
.field-app-mobile .fo-legend-card details summary::-webkit-details-marker { display: none; }
.field-app-mobile .fo-legend-card .fo-legend-items { padding-top: 0.35rem; }
.field-app-mobile .fo-flow-card { border-radius: 0.85rem; }
.field-app-mobile .fo-flow-card .card-body { padding: 0.65rem !important; }
.field-app-mobile .fo-flow-card h6 { font-size: 0.82rem; }
.field-app-mobile .fo-flow-card .small { font-size: 0.68rem; line-height: 1.35; }
.field-app-mobile .fo-flow-card .fo-mobile-hide { display: none !important; }
.field-app-mobile .fo-voter-classify-compact .form-select { font-size: 0.68rem; }
.field-app-mobile .fo-voter-toolbar {
    gap: 0.25rem !important;
    margin-top: 0.35rem;
}
.field-app-mobile .fo-voter-toolbar .btn {
    font-size: 0.62rem;
    padding: 0.15rem 0.4rem;
    white-space: nowrap;
}
.field-app-mobile .fo-bulk-select-all {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #f4f6f9;
    padding: 0.35rem 0;
    margin-bottom: 0.35rem !important;
}
.field-app-mobile #voterBulkBar.fo-bulk-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    z-index: 190;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 -4px 16px rgba(12, 35, 64, 0.12);
}
.field-app-mobile .fo-street-header {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
    margin-top: 0.5rem;
}
.field-app-mobile .alert { font-size: 0.78rem; }
.field-app-mobile .fo-await-filter,
.field-app-mobile .fo-auto-territory { display: none; }
.field-app-mobile .vs-filter-card.fo-desktop-filter { display: none !important; }
.field-app-mobile .row.g-2 > [class*="col-6"] { padding-left: 0.3rem; padding-right: 0.3rem; }
.field-app-mobile .fo-mobile-queue-alert .alert-link { font-size: 0.75rem; }
