/* =====================================================================
   GEO Shape - styles for the new features (blue theme, primary #32BDEA)
   ===================================================================== */
:root {
    --geo-blue: #32BDEA;
    --geo-blue-dark: #1c9fcb;
    --geo-blue-ink: #0f4c61;
    --geo-blue-tint: #e3f6fc;
    --geo-blue-soft: #f1f8fc;
    --geo-border: #d3e9f4;
    --geo-text: #2f4b5a;
    --geo-muted: #6b7f8a;
}

/* ---------- Header search ---------- */
.geo-search { position: relative; width: 420px; max-width: 100%; }
.geo-search .searchbox { position: relative; }
.geo-search__input {
    width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 12px;
    border: 1px solid var(--geo-border); background: var(--geo-blue-soft); color: var(--geo-text); font-size: 14px;
    outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.geo-search__input:focus { background: #fff; border-color: var(--geo-blue); box-shadow: 0 0 0 3px rgba(50, 189, 234, .18); }
.geo-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--geo-blue-dark); font-size: 17px; pointer-events: none; }
.geo-search__hint { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--geo-muted);
    border: 1px solid var(--geo-border); border-radius: 6px; padding: 0 6px; background: #fff; pointer-events: none; }
.geo-search__results {
    display: none; position: absolute; top: 48px; left: 0; right: 0; z-index: 1050; background: #fff;
    border-radius: 14px; border: 1px solid var(--geo-border); box-shadow: 0 16px 40px rgba(15, 76, 97, .16);
    max-height: 420px; overflow-y: auto; padding: 6px;
}
.geo-search__results.open { display: block; }
.geo-search__item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 12px; border-radius: 10px; color: var(--geo-text); text-decoration: none; }
.geo-search__item:hover, .geo-search__item.active { background: var(--geo-blue-tint); text-decoration: none; color: var(--geo-text); }
.geo-search__name { font-weight: 700; color: var(--geo-blue-ink); }
.geo-search__meta { grid-column: 1; font-size: 12px; color: var(--geo-muted); }
.geo-search__tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 11px; background: var(--geo-blue-tint); color: var(--geo-blue-dark); border-radius: 20px; padding: 2px 10px; font-weight: 700; }
.geo-search__all { display: block; text-align: center; padding: 9px; margin-top: 4px; border-top: 1px solid var(--geo-border); color: var(--geo-blue-dark); font-weight: 700; }
.geo-search__empty { padding: 14px; color: var(--geo-muted); text-align: center; }

/* ---------- Notification bell ---------- */
.geo-bell-count {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--geo-blue); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.geo-alert { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #eef4f7; color: var(--geo-text); text-decoration: none; }
.geo-alert:hover { background: var(--geo-blue-soft); text-decoration: none; color: var(--geo-text); }
.geo-alert:last-child { border-bottom: 0; }
.geo-alert__icon { flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--geo-blue-tint); color: var(--geo-blue-dark);
    display: flex; align-items: center; justify-content: center; font-size: 17px; }
.geo-alert__title { font-weight: 700; color: var(--geo-blue-ink); font-size: 13px; margin: 0; }
.geo-alert__text { font-size: 12px; color: var(--geo-muted); margin: 0; }
.geo-alert-empty { padding: 20px; text-align: center; color: var(--geo-muted); }

/* ---------- Page header / cards ---------- */
.geo-page-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.geo-page-title h4 { margin: 0; color: var(--geo-blue-ink); }
.geo-page-title p { margin: 2px 0 0; color: var(--geo-muted); }
.geo-card { background: #fff; border-radius: 16px; border: 1px solid #e6f0f5; box-shadow: 0 4px 18px rgba(15, 76, 97, .06); padding: 18px; margin-bottom: 20px; }
.geo-card__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--geo-blue-ink); }
.geo-card__title small { font-weight: 400; color: var(--geo-muted); }

.geo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.geo-stat { background: #fff; border-radius: 16px; border: 1px solid #e6f0f5; padding: 16px; display: flex; align-items: center; gap: 14px;
    box-shadow: 0 4px 18px rgba(15, 76, 97, .05); }
.geo-stat__icon { flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--geo-blue-tint); color: var(--geo-blue-dark);
    display: flex; align-items: center; justify-content: center; font-size: 22px; }
.geo-stat__value { font-size: 24px; font-weight: 800; color: var(--geo-blue-ink); line-height: 1.1; }
.geo-stat__label { font-size: 12px; color: var(--geo-muted); }

.geo-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 13px;
    border: 1px solid var(--geo-blue-dark); background: linear-gradient(135deg, var(--geo-blue), var(--geo-blue-dark)); color: #fff; cursor: pointer; text-decoration: none; }
.geo-btn:hover { filter: brightness(1.06); color: #fff; text-decoration: none; }
.geo-btn--light { background: var(--geo-blue-soft); border-color: var(--geo-border); color: var(--geo-text); }
.geo-btn--light:hover { color: var(--geo-blue-ink); background: var(--geo-blue-tint); }
.geo-btn--sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
/* WhatsApp button uses the same blue theme */
.geo-btn--whatsapp { }

.geo-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--geo-blue-tint); color: var(--geo-blue-dark); white-space: nowrap; }
.geo-badge--done { background: #e6f6ee; color: #1b8a52; }
.geo-badge--pending { background: #fff4e0; color: #b86b00; }
.geo-badge--muted { background: #eef2f5; color: #6b7f8a; }

.geo-empty { text-align: center; padding: 30px 12px; color: var(--geo-muted); }
.geo-empty i { display: block; font-size: 34px; color: var(--geo-blue); margin-bottom: 6px; }

/* simple list table used on the new pages */
.geo-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.geo-table th { background: var(--geo-blue-soft); color: var(--geo-blue-ink); font-weight: 700; padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--geo-border); white-space: nowrap; }
.geo-table td { padding: 10px 12px; border-bottom: 1px solid #eef4f7; color: var(--geo-text); vertical-align: middle; }
.geo-table tr:hover td { background: #fafdff; }
.geo-table a { color: var(--geo-blue-dark); font-weight: 700; }
.geo-table a.geo-btn, .geo-table a.geo-btn:hover { color: #fff; }
.geo-table a.geo-btn--light { color: var(--geo-text); }
.geo-table .geo-progress-label span:first-child { white-space: nowrap; }

/* progress */
.geo-progress { height: 8px; border-radius: 8px; background: #e8f1f5; overflow: hidden; }
.geo-progress > span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--geo-blue), var(--geo-blue-dark)); }
.geo-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--geo-muted); margin-bottom: 4px; }

/* ---------- Filter chips ---------- */
.geo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.geo-chip { height: 32px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--geo-border); background: #fff; color: var(--geo-text);
    font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s; }
.geo-chip:hover { border-color: var(--geo-blue); color: var(--geo-blue-dark); }
.geo-chip.active { background: var(--geo-blue); border-color: var(--geo-blue); color: #fff; }

/* ---------- Export bar ---------- */
.geo-export-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 10px; }
.geo-export-btn { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--geo-border); background: var(--geo-blue-soft);
    color: var(--geo-blue-ink); font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.geo-export-btn i { font-size: 16px; color: var(--geo-blue-dark); }
.geo-export-btn:hover { background: var(--geo-blue-tint); border-color: var(--geo-blue); }

/* ---------- Tabs (project detail) ---------- */
.geo-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e6f0f5; margin-bottom: 16px; overflow-x: auto; }
.geo-tab { border: 0; background: transparent; padding: 10px 16px; font-weight: 700; color: var(--geo-muted); cursor: pointer; white-space: nowrap;
    border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 14px; }
.geo-tab:hover { color: var(--geo-blue-dark); }
.geo-tab.active { color: var(--geo-blue-ink); border-bottom-color: var(--geo-blue); }
.geo-tab .geo-badge { margin-left: 6px; }
.geo-tabpanel { display: none; }
.geo-tabpanel.active { display: block; }

.geo-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 24px; }
.geo-info dt { font-size: 12px; color: var(--geo-muted); font-weight: 400; margin: 0; }
.geo-info dd { font-size: 14px; color: var(--geo-text); font-weight: 700; margin: 2px 0 0; word-break: break-word; }

/* timeline */
.geo-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--geo-border); }
.geo-timeline li { position: relative; padding: 0 0 16px 14px; }
.geo-timeline li::before { content: ""; position: absolute; left: -25px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--geo-blue); }
.geo-timeline__title { font-weight: 700; color: var(--geo-blue-ink); font-size: 13px; }
.geo-timeline__meta { font-size: 12px; color: var(--geo-muted); }

/* ---------- Kanban board ---------- */
.geo-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.geo-col { flex: 0 0 290px; background: var(--geo-blue-soft); border: 1px solid var(--geo-border); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 240px); }
.geo-col__head { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--geo-blue-ink); border-bottom: 1px solid var(--geo-border); }
.geo-col__body { padding: 10px; overflow-y: auto; min-height: 120px; flex: 1; transition: background .15s; border-radius: 0 0 16px 16px; }
.geo-col__body.drag-over { background: var(--geo-blue-tint); }
.geo-kcard { background: #fff; border-radius: 12px; border: 1px solid #e6f0f5; padding: 10px 12px; margin-bottom: 10px; cursor: grab;
    box-shadow: 0 2px 8px rgba(15, 76, 97, .06); transition: box-shadow .15s, transform .15s; }
.geo-kcard:hover { box-shadow: 0 6px 18px rgba(15, 76, 97, .12); }
.geo-kcard.dragging { opacity: .5; transform: rotate(1deg); }
.geo-kcard.readonly { cursor: default; }
.geo-kcard__name { font-weight: 800; color: var(--geo-blue-ink); font-size: 13px; display: block; margin-bottom: 2px; }
.geo-kcard__meta { font-size: 12px; color: var(--geo-muted); }
.geo-kcard__foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Reports ---------- */
.geo-chart { min-height: 300px; }
.geo-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.geo-filter label { display: block; font-size: 12px; color: var(--geo-muted); margin-bottom: 4px; }
.geo-filter .form-control { min-width: 170px; height: 38px; border-radius: 10px; }

/* ---------- Auth pages (forgot password) ---------- */
.geo-auth-note { font-size: 13px; color: var(--geo-muted); }
.geo-link { color: var(--geo-blue-dark); font-weight: 700; }

/* ---------- Mobile friendly (field staff) ---------- */
@media (max-width: 767px) {
    .geo-search { width: 100%; }
    .geo-search__hint { display: none; }
    .geo-card { padding: 14px; border-radius: 14px; }
    .geo-stat__value { font-size: 20px; }
    .geo-page-title { margin-bottom: 14px; }
    .geo-col { flex-basis: 85vw; }
    .geo-table th, .geo-table td { padding: 9px 8px; }
    /* bigger touch targets on Project Update cards */
    .geo-update-card .btn { min-height: 44px; width: 100%; margin: 6px 0 0 !important; font-size: 15px; }
    .geo-update-card .card-title { font-size: 18px; }
    .geo-file-input { width: 100%; }
    .geo-export-bar { justify-content: flex-start; }
}

.geo-file-input { font-size: 12px; margin-top: 8px; max-width: 100%; }
.geo-file-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--geo-blue-dark); margin-top: 6px; }


/* =====================================================================
   Dashboard
   ===================================================================== */
.dash-head { align-items: flex-end; }
.dash-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.dash-filters label { display: block; font-size: 12px; color: var(--geo-muted); margin-bottom: 4px; }
.dash-filters .form-control { min-width: 220px; height: 38px; border-radius: 10px; }
.dash-period { display: flex; gap: 6px; flex-wrap: wrap; }
.dash-period .geo-chip { display: inline-flex; align-items: center; text-decoration: none; }
.dash-refresh { display: flex; align-items: center; gap: 8px; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.dash-ico { color: var(--geo-blue-dark); }
.dash-fill { height: calc(100% - 20px); }
.dash-trend-label { font-size: 12px; color: var(--geo-muted); margin-bottom: 4px; }

.dash-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e6f0f5; border-radius: 16px; padding: 14px;
    box-shadow: 0 4px 18px rgba(15, 76, 97, .05); text-decoration: none !important; color: var(--geo-text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.kpi:hover { border-color: var(--geo-blue); box-shadow: 0 8px 22px rgba(15, 76, 97, .12); transform: translateY(-1px); }
.kpi .geo-stat__icon { flex: 0 0 42px; height: 42px; font-size: 20px; }
.kpi-body { display: flex; flex-direction: column; min-width: 0; }
.kpi-foot { font-size: 11px; margin-top: 4px; }
.kpi-sub { color: var(--geo-muted); }
.kpi-trend { font-weight: 800; color: var(--geo-muted); }
.kpi-trend.up, .kpi-trend.down { color: var(--geo-blue-dark); }
.kpi-trend i { font-size: 12px; }

.att-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.att-sum { background: var(--geo-blue-soft); border: 1px solid var(--geo-border); border-radius: 12px; padding: 10px 12px; }
.att-sum .v { font-size: 22px; font-weight: 800; color: var(--geo-blue-ink); line-height: 1.1; }
.att-sum .l { font-size: 11px; color: var(--geo-muted); }
.att-tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.att-tab { border: 1px solid var(--geo-border); background: #fff; border-radius: 20px; height: 30px; padding: 0 12px; font-size: 12px; font-weight: 700;
    color: var(--geo-text); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.att-tab.active { background: var(--geo-blue); border-color: var(--geo-blue); color: #fff; }
.att-tab b { background: var(--geo-blue-tint); color: var(--geo-blue-dark); border-radius: 10px; padding: 0 6px; }
.att-tab.active b { background: rgba(255, 255, 255, .25); color: #fff; }
.att-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #eef4f7; color: var(--geo-text); text-decoration: none !important; }
.att-row:hover { background: var(--geo-blue-soft); }
.att-row:last-child { border-bottom: 0; }
.att-row .geo-alert__icon { flex: 0 0 36px; height: 36px; }
.att-main { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--geo-text); text-decoration: none !important; }
.att-main .t { font-weight: 800; color: var(--geo-blue-ink); font-size: 13px; }
.att-main .s { font-size: 12px; color: var(--geo-muted); }
.att-age { font-size: 12px; font-weight: 800; color: var(--geo-blue-dark); background: var(--geo-blue-tint); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }

.status-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-top: 14px; }
.status-tile { display: flex; flex-direction: column; border: 1px solid var(--geo-border); border-left: 4px solid var(--c); border-radius: 12px; padding: 10px 12px;
    background: var(--geo-blue-soft); text-decoration: none !important; }
.status-tile:hover { background: var(--geo-blue-tint); }
.status-tile .v { font-size: 20px; font-weight: 800; color: var(--geo-blue-ink); line-height: 1.1; }
.status-tile .l { font-size: 11px; color: var(--geo-muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; border: 1px solid #e6f0f5; border-radius: 14px; padding: 14px; background: #fff; color: var(--geo-text);
    text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
.cat-card:hover { border-color: var(--geo-blue); box-shadow: 0 6px 18px rgba(15, 76, 97, .10); }
.cat-card .code { align-self: flex-start; font-size: 11px; font-weight: 800; color: var(--geo-blue-dark); background: var(--geo-blue-tint); border-radius: 6px; padding: 2px 8px; }
.cat-card .name { font-weight: 800; color: var(--geo-blue-ink); margin: 8px 0 2px; font-size: 14px; }
.cat-card .count { font-size: 12px; color: var(--geo-muted); margin-bottom: 10px; }
.cat-card .geo-progress-label { display: flex; }
.cat-card .geo-progress { display: block; }
.mini-title { font-size: 11px; color: var(--geo-muted); margin-top: 12px; }
.mini-status { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin: 4px 0 6px; background: #e8f1f5; }
.mini-status span { display: block; height: 100%; }
.mini-legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--geo-muted); }
.mini-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }

.funnel-step { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.funnel-step .geo-alert__icon { flex: 0 0 36px; height: 36px; }
.funnel-main { flex: 1; min-width: 0; }
.funnel-label { color: var(--geo-blue-ink); }
.funnel-num { color: var(--geo-blue-ink); font-size: 14px; }
.funnel-bar { height: 10px; }

@media (max-width: 1599px) { .dash-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
    .dash-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .kpi { padding: 12px; }
    .kpi .geo-stat__icon { display: none; }
    .dash-filters, .dash-filters > div { width: 100%; }
    .dash-filters .form-control { min-width: 0; width: 100%; }
    .dash-actions .geo-btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
}

/* ---------- Upload compression note ---------- */
.geo-upload-note { font-size: 12px; font-weight: 700; color: var(--geo-blue-dark); margin-top: 6px; }
.geo-upload-note i { vertical-align: middle; }
.geo-upload-note.busy { color: var(--geo-muted); }
.geo-upload-note.busy i { display: inline-block; animation: geo-spin 1s linear infinite; }
@keyframes geo-spin { to { transform: rotate(360deg); } }
.geo-log { max-height: 260px; overflow-y: auto; font-size: 12px; background: var(--geo-blue-soft); border: 1px solid var(--geo-border); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.geo-log div { padding: 2px 0; border-bottom: 1px dashed #e3eef4; }

/* disabled buttons stay readable */
.geo-btn:disabled, .geo-btn.aspNetDisabled, .geo-btn[disabled] { color:#fff !important; opacity:.55; cursor:not-allowed; box-shadow:none; }

/* Performance page */
.geo-badge--slow { background: #fdecec; color: #c0392b; }
.perf-list { list-style: none; margin: 0; padding: 0; }
.perf-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #eef4f7; }
.perf-list li:last-child { border-bottom: 0; }
.perf-list i { font-size: 20px; line-height: 1; margin-top: 2px; }
.perf-list .ok { color: #1b8a52; }
.perf-list .warn { color: #c0392b; }
.perf-list b { color: var(--geo-blue-ink); display: block; font-size: 13px; }
.perf-list span { color: var(--geo-muted); font-size: 12px; }
.perf-bar { height: 6px; border-radius: 6px; background: var(--geo-blue-tint); overflow: hidden; min-width: 80px; }
.perf-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--geo-blue), var(--geo-blue-dark)); border-radius: 6px; }
.perf-sql { font-family: Consolas, monospace; font-size: 11px; color: var(--geo-text); word-break: break-all; }
.perf-sub { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--geo-blue-ink); }

/* =====================================================================================
   Round 12: follow-ups, notes, fees, applications, site visits, invoices, map, scanner
   ===================================================================================== */
.geo-spin { display: inline-block; animation: geo-spin 1s linear infinite; }
.geo-loading { text-align: center; padding: 26px; color: var(--geo-blue); font-size: 24px; }
.geo-btn--big { height: 46px; font-size: 15px; padding: 0 20px; border-radius: 12px; }
.geo-btn:disabled { opacity: .6; cursor: default; }
.geo-tabs { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.geo-tabs::-webkit-scrollbar { display: none; }
.geo-tab .geo-badge { min-width: 22px; text-align: center; }

/* forms */
.geo-form-card { background: var(--geo-blue-soft); border: 1px solid var(--geo-border); border-radius: 14px; padding: 16px; margin-top: 12px; }
.geo-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.geo-form-grid .span-2 { grid-column: 1 / -1; }
.geo-field label, .geo-field-label { display: block; font-size: 12px; font-weight: 600; color: var(--geo-muted); margin-bottom: 4px; }
.geo-field .form-control { border-radius: 10px; }
.geo-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.geo-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--geo-text); cursor: pointer; margin: 0; }
.geo-check input { width: 18px; height: 18px; accent-color: var(--geo-blue-dark); }

/* follow-ups */
.fu-list { list-style: none; margin: 0; padding: 0; }
.fu-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #eef4f7; }
.fu-item:last-child { border-bottom: 0; }
.fu-item.overdue .fu-title { color: #b03a2e; }
.fu-item.done .fu-title { text-decoration: line-through; color: var(--geo-muted); }
.fu-check { border: 0; background: none; padding: 0; font-size: 24px; line-height: 1; color: var(--geo-blue-dark); cursor: pointer; }
.fu-check.disabled { cursor: default; color: #9fb4be; }
.fu-item.done .fu-check { color: #1b8a52; }
.fu-main { flex: 1 1 auto; min-width: 0; }
.fu-title { font-weight: 700; color: var(--geo-blue-ink); overflow-wrap: anywhere; }
.fu-project { display: block; font-size: 12px; color: var(--geo-blue-dark); }
.fu-note { font-size: 13px; color: var(--geo-text); margin-top: 2px; }
.fu-meta { font-size: 12px; color: var(--geo-muted); margin-top: 2px; }
.fu-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fu-del, .note-del { border: 0; background: none; color: #9fb4be; font-size: 17px; padding: 2px 4px; cursor: pointer; border-radius: 8px; }
.fu-del:hover, .note-del:hover { color: #c0392b; background: #fdecec; }
.geo-chip b { margin-left: 4px; background: rgba(15, 76, 97, .08); border-radius: 10px; padding: 0 6px; }
.geo-chip.active b { background: rgba(255, 255, 255, .25); }

/* notes + mentions */
.note-compose { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 16px; }
.note-input { position: relative; flex: 1 1 auto; }
.note-input textarea { border-radius: 12px; resize: vertical; min-height: 46px; }
.mention-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: #fff; border: 1px solid var(--geo-border); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 76, 97, .15); padding: 4px; max-height: 260px; overflow-y: auto; }
.mention-item { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 8px; border-radius: 8px; text-align: left; cursor: pointer; }
.mention-item.active, .mention-item:hover { background: var(--geo-blue-tint); }
.mention-item small { display: block; color: var(--geo-muted); }
.note { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef4f7; }
.note:last-child { border-bottom: 0; }
.note-avatar, .staff-avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--geo-blue), var(--geo-blue-dark));
    color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.note-body { flex: 1 1 auto; min-width: 0; }
.note-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.note-head b { color: var(--geo-blue-ink); }
.note-head span { color: var(--geo-muted); font-size: 12px; }
.note-head .note-del { margin-left: auto; }
.note-text { color: var(--geo-text); margin-top: 3px; overflow-wrap: anywhere; white-space: normal; }
.note-mention { color: var(--geo-blue-dark); font-weight: 700; background: var(--geo-blue-tint); border-radius: 6px; padding: 0 4px; }

/* fees */
.geo-stat--due .geo-stat__value { color: #b03a2e; }
.geo-stat--due .geo-stat__icon { background: #fdecec; color: #c0392b; }
.text-right { text-align: right !important; }

/* applications */
.app-card { border: 1px solid var(--geo-border); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #fff; }
.app-card.overdue { border-color: #f3c2bc; box-shadow: inset 4px 0 0 #e74c3c; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--geo-blue-ink); margin-bottom: 10px; }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.app-grid span { display: block; font-size: 11px; color: var(--geo-muted); }
.app-grid small { color: var(--geo-muted); }
.app-note { font-size: 13px; background: var(--geo-blue-soft); border-radius: 10px; padding: 8px 10px; margin-top: 10px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.app-log { margin-top: 12px; }
.geo-table tr.row-overdue td { background: #fff6f5; }

/* site visits */
.visit-loc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--geo-blue-soft); border: 1px solid var(--geo-border); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.visit-loc > i { font-size: 26px; color: var(--geo-blue-dark); }
.visit-loc > div { flex: 1 1 auto; }
.visit-loc b { display: block; color: var(--geo-blue-ink); }
.visit-loc span { font-size: 12px; color: var(--geo-muted); }
.visit-gps { font-size: 13px; padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px dashed var(--geo-border); margin-bottom: 12px; }
.visit-gps.ok { border-style: solid; border-color: #bfe6cf; background: #f1fbf5; color: #1b6e43; }
.visit-gps.warn { border-color: #f5d7a8; background: #fffaf0; color: #8a5a00; }
.visit { border-bottom: 1px solid #eef4f7; padding: 12px 0; }
.visit:last-child { border-bottom: 0; }
.visit-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.visit-head > div { flex: 1 1 auto; }
.visit-head b { display: block; color: var(--geo-blue-ink); }
.visit-head span { font-size: 12px; color: var(--geo-muted); }
.visit-note { font-size: 14px; margin-top: 6px; }
.visit-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.visit-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--geo-border); }

/* pop-up */
.geo-modal-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(8, 36, 48, .45); display: flex; align-items: center; justify-content: center; padding: 16px;
    opacity: 0; transition: opacity .2s; }
.geo-modal-backdrop.show { opacity: 1; }
.geo-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(8, 36, 48, .3);
    transform: translateY(12px); transition: transform .2s; }
.geo-modal--wide { max-width: 760px; }
.geo-modal-backdrop.show .geo-modal { transform: none; }
.geo-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #eef4f7; }
.geo-modal__head h5 { margin: 0; color: var(--geo-blue-ink); font-size: 17px; }
.geo-modal__close { border: 0; background: var(--geo-blue-soft); width: 34px; height: 34px; border-radius: 10px; font-size: 18px; color: var(--geo-blue-ink); }
.geo-modal__body { padding: 18px; }
.share-points { list-style: none; padding: 0; margin: 0 0 16px; }
.share-points li { padding: 4px 0; font-size: 14px; }
.share-points .ri-check-line { color: #1b8a52; } .share-points .ri-close-line { color: #c0392b; }
.share-url { display: flex; gap: 8px; }
.share-url input { font-size: 13px; border-radius: 10px; }

/* notifications card */
.push-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.push-card > i { font-size: 24px; color: var(--geo-blue-dark); }
.push-card > span { flex: 1 1 220px; color: var(--geo-text); }
.push-card--on > i { color: #1b8a52; }
.push-card--blocked > i, .push-card--insecure > i { color: #b86b00; }

/* staff report */
.staff-name { display: flex; align-items: center; gap: 10px; }
.staff-bar { height: 6px; background: var(--geo-blue-tint); border-radius: 6px; overflow: hidden; width: 90px; margin-bottom: 3px; }
.staff-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--geo-blue), var(--geo-blue-dark)); }

/* invoice editor */
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px 110px 110px 34px; gap: 8px; align-items: center; margin-bottom: 8px; }
.inv-line--head { font-size: 11px; font-weight: 700; color: var(--geo-muted); text-transform: uppercase; margin-bottom: 4px; }
.inv-amount { text-align: right; color: var(--geo-blue-ink); font-size: 13px; }
.inv-summary { position: sticky; top: 90px; }
.inv-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e3eef3; font-size: 14px; }
.inv-row--total { border-bottom: 0; font-size: 18px; color: var(--geo-blue-ink); padding-top: 10px; }

/* printable document (invoice / quotation / receipt) */
.doc-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.doc { background: #fff; max-width: 820px; margin: 0 auto 24px; padding: 34px 38px; border-radius: 14px; box-shadow: 0 6px 30px rgba(15, 76, 97, .1); color: #1d3b48; font-size: 13px; }
.doc-head { display: flex; gap: 16px; align-items: flex-start; border-bottom: 2px solid var(--geo-blue); padding-bottom: 14px; }
.doc-head img { height: 58px; }
.doc-company { flex: 1 1 auto; }
.doc-company b { display: block; font-size: 17px; color: var(--geo-blue-ink); }
.doc-company span { display: block; font-size: 12px; color: #5b7683; }
.doc-title { text-align: right; }
.doc-title h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: 1px; color: var(--geo-blue-dark); }
.doc-title span { display: block; font-size: 12px; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 0; }
.doc-parties small { display: block; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: #7b919b; margin-top: 4px; }
.doc-parties b { display: block; font-size: 15px; color: var(--geo-blue-ink); }
.doc-parties span { display: block; }
.doc-table { width: 100%; border-collapse: collapse; }
.doc-table th { background: var(--geo-blue); color: #fff; padding: 8px 10px; font-size: 12px; text-align: left; }
.doc-table td { padding: 8px 10px; border-bottom: 1px solid #e3eef3; vertical-align: top; }
.doc-table .num { text-align: right; white-space: nowrap; }
.doc-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; margin-top: 16px; }
.doc-words small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: #7b919b; }
.doc-words b, .doc-words span { display: block; }
.doc-totals div { display: flex; justify-content: space-between; padding: 5px 0; color: #5b7683; }
.doc-totals div.grand { border-top: 2px solid var(--geo-blue); color: var(--geo-blue-ink); font-size: 16px; font-weight: 800; padding-top: 8px; margin-top: 4px; }
.doc-sign { text-align: right; margin-top: 30px; }
.doc-sign div { height: 44px; }
.doc-sign small { display: inline-block; border-top: 1px solid #b7cbd4; padding-top: 4px; min-width: 180px; text-align: center; color: #5b7683; }
.doc-foot { text-align: center; font-size: 11px; color: #9ab0ba; margin-top: 18px; }
@media print {
    @page { size: A4; margin: 10mm; }
    body * { visibility: hidden; }
    .doc, .doc * { visibility: visible; }
    .doc { position: absolute; left: 0; top: 0; width: 100%; max-width: none; margin: 0; box-shadow: none; border-radius: 0; padding: 0; }
    .no-print { display: none !important; }
}

/* projects map */
.geo-map { height: calc(100vh - 260px); min-height: 380px; border-radius: 14px; z-index: 1; }
.map-card { padding: 10px; }
.geo-pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--geo-blue-dark);
    border: 3px solid #fff; box-shadow: 0 3px 10px rgba(8, 36, 48, .35); }
.geo-pin--done span { background: #1b8a52; }
.geo-pin--hold span { background: #e69500; }
.map-pop b { display: block; color: var(--geo-blue-ink); font-size: 14px; }
.map-pop span { display: block; font-size: 12px; color: var(--geo-muted); }
.map-pop__btns { display: flex; gap: 6px; margin-top: 8px; }
.map-pop__btns .geo-btn { color: #fff; }
.map-pop__btns .geo-btn--light { color: var(--geo-text); }

/* document scanner (full screen) */
.geo-scan-btn { margin: 6px 0 0 0; }
html.geo-scan-open, html.geo-scan-open body { overflow: hidden; }
.geo-scan { position: fixed; inset: 0; z-index: 100001; background: #0d2630; color: #fff; display: flex; flex-direction: column; }
.geo-scan__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: #0a1f27; }
.geo-scan__bar b { flex: 1 1 auto; font-size: 16px; }
.geo-scan__x { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 38px; height: 38px; border-radius: 10px; font-size: 20px; }
.geo-scan__stage { flex: 1 1 auto; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 14px; }
.geo-scan__intro { text-align: center; max-width: 360px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.geo-scan__intro > i { font-size: 54px; color: var(--geo-blue); }
.geo-scan__intro span { color: #b7d3dd; font-size: 14px; }
.geo-scan__edit { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.geo-scan__frame { position: relative; display: inline-block; touch-action: none; }
.geo-scan__frame img { display: block; max-width: 100%; max-height: 56vh; border-radius: 4px; }
.geo-scan__crop { position: absolute; border: 2px solid var(--geo-blue); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); cursor: move; touch-action: none; }
.geo-scan__crop i { position: absolute; width: 26px; height: 26px; background: #fff; border: 3px solid var(--geo-blue); border-radius: 50%; }
.geo-scan__crop i[data-h="nw"] { left: -14px; top: -14px; } .geo-scan__crop i[data-h="ne"] { right: -14px; top: -14px; }
.geo-scan__crop i[data-h="sw"] { left: -14px; bottom: -14px; } .geo-scan__crop i[data-h="se"] { right: -14px; bottom: -14px; }
.geo-scan__tools { display: flex; flex-direction: column; gap: 10px; align-items: center; width: 100%; }
.geo-scan__tools .geo-chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.geo-scan__tools .geo-chip.active { background: var(--geo-blue); border-color: var(--geo-blue); }
.geo-scan__tools .geo-btn--light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); color: #fff; }
.geo-scan__tools .geo-btn--big { width: 100%; max-width: 360px; justify-content: center; }
.geo-scan__pages { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #0a1f27; min-height: 20px; }
.geo-scan__thumb { position: relative; flex: 0 0 auto; }
.geo-scan__thumb img { height: 70px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .3); }
.geo-scan__thumb span { position: absolute; left: 4px; bottom: 4px; background: var(--geo-blue); border-radius: 8px; font-size: 11px; padding: 0 6px; }
.geo-scan__thumb button { position: absolute; right: -6px; top: -6px; border: 0; width: 22px; height: 22px; border-radius: 50%; background: #e74c3c; color: #fff; font-size: 13px; line-height: 1; }

@media (max-width: 767.98px) {
    .geo-form-grid { grid-template-columns: minmax(0, 1fr); }
    .note-compose { flex-direction: column; align-items: stretch; }
    .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inv-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px; border: 1px solid var(--geo-border); border-radius: 12px; }
    .inv-line input[data-k="description"] { grid-column: 1 / -1; }
    .inv-line--head { display: none; }
    .inv-amount { text-align: left; }
    .inv-summary { position: static; }
    .doc { padding: 18px 14px; font-size: 12px; }
    .doc-head { flex-wrap: wrap; }
    .doc-title { text-align: left; width: 100%; }
    .doc-parties, .doc-bottom { grid-template-columns: minmax(0, 1fr); }
    .geo-map { height: calc(100vh - 300px); }
    .share-url { flex-direction: column; }
    .fu-item { gap: 10px; }
}
.geo-stats--money .geo-stat__value { font-size: 19px; white-space: nowrap; }
@media (max-width: 767.98px) { .geo-stats--money { grid-template-columns: minmax(0, 1fr); } .geo-stats--money .geo-stat { align-items: center; } }
@media (max-width: 767.98px) { .inv-line { position: relative; padding-right: 40px; } .inv-line [data-remove] { position: absolute; right: 6px; top: 8px; } }
