/* Field Survey — mobile-first cadastral capture UI */
.fs-help {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--gray-dark, #334155);
    margin-bottom: 14px;
    line-height: 1.45;
}
.fs-help i { color: #0891b2; margin-right: 6px; }
.fs-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fs-table td { vertical-align: middle; }
.fs-muted { color: var(--gray, #64748b); font-size: 12px; }
.fs-empty { text-align: center; padding: 28px 12px; color: var(--gray); }
.fs-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    text-transform: uppercase;
}
.fs-badge.final { background: #dcfce7; color: #166534; }
.fs-badge.draft { background: #fef9c3; color: #a16207; }
.fs-badge.land { background: #dbeafe; color: #1d4ed8; }
.fs-badge.plot { background: #dcfce7; color: #166534; }

.fs-session-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.fs-session-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}
.fs-session-title .form-input { flex: 1; font-weight: 700; }

.fs-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 14px;
    align-items: start;
}
@media (max-width: 900px) {
    .fs-grid-layout { grid-template-columns: 1fr; }
}

.fs-map {
    width: 100%;
    height: min(52vh, 420px);
    min-height: 260px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #0f172a;
    z-index: 0;
}
.fs-live-fix {
    margin-top: 8px;
    font-size: 12px;
}
.fs-fix-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.fs-fix-row.is-ok { border-color: #86efac; background: #f0fdf4; }
.fs-fix-row.is-warn { border-color: #fcd34d; background: #fffbeb; }

.fs-capture-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.fs-capture-btn {
    flex: 1;
    min-width: 160px;
    padding: 14px 16px !important;
    font-size: 16px !important;
    font-weight: 700;
}
.fs-acc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray);
}

.fs-card {
    background: var(--card, #fff);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}
.fs-card-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--primary, #0f766e);
}
.fs-form-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.fs-scroll {
    max-height: 200px;
    overflow: auto;
}
.fs-point-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
    margin-bottom: 6px;
}
.fs-point-row.in-ring .fs-point-main {
    border-color: #f59e0b;
    background: #fffbeb;
}
.fs-point-main {
    flex: 1;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
}
.fs-mono { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #64748b; }
.fs-ring-path {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 12px;
    word-break: break-word;
}
.fs-ring-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.fs-actions-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    bottom: 8px;
}
.fs-actions-footer .btn { width: 100%; }

.fs-wizard {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.fs-wiz-step {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
}
.fs-badge.offline { background: #fee2e2; color: #991b1b; }
.fs-qc-summary { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fs-qc-list { margin: 0; padding-left: 18px; font-size: 12px; }
.fs-qc-error { color: #b91c1c; }
.fs-qc-warn { color: #a16207; }
.fs-modal-backdrop {
    position: fixed; inset: 0; z-index: 100050;
    background: rgba(15, 23, 42, 0.45);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 12px;
}
@media (min-width: 700px) {
    .fs-modal-backdrop { align-items: center; }
}
.fs-modal {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.fs-modal h3 { margin: 0 0 8px; }
.fs-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}
.fs-export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.fs-export-grid .btn { width: 100%; }
