:root{color-scheme:light;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;--bangur-blue: #164c9a;--bangur-blue-dark: #0b367a;--bangur-blue-soft: #e8f1ff;--bangur-blue-border: #b8cff7;--surface: #ffffff;--surface-soft: #f5f8ff;--border: #d7e3f5;--text: #0f172a;--muted: #526276;--success: #047857;--warning: #92400e;background:#f5f8ff;color:var(--text)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top,rgba(22,76,154,.16),transparent 30%),linear-gradient(180deg,#f8fbff,#eef5ff);min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}input,select,textarea{width:100%;border-radius:14px;border:1px solid var(--border);padding:.9rem 1rem;background:var(--surface);color:var(--text)}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}.login-page{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.login-card,.panel,.map-card{background:#fffffff2;border:1px solid var(--border);border-radius:20px;box-shadow:0 18px 50px #164c9a14}.login-card{width:min(100%,420px);padding:2rem;display:grid;gap:1.25rem}.login-card h1,.login-card p{margin:0}.login-card h1{color:var(--bangur-blue-dark);font-size:clamp(1.75rem,8vw,2.35rem);line-height:1.05;text-align:center}.panel{padding:1rem}.brand-block{display:flex;justify-content:center}.login-logo{display:block;width:min(100%,220px);height:auto;object-fit:contain}.brand-lockup{display:grid;gap:.2rem;justify-items:center;text-align:center}.brand-eyebrow{color:var(--bangur-blue);font-size:.78rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.brand-name{font-size:1.6rem;font-weight:900;letter-spacing:.03em;color:var(--bangur-blue-dark)}.bangur-logo{display:grid;justify-items:center;width:fit-content;min-width:136px;padding:.7rem 1rem;border-radius:18px;background:linear-gradient(135deg,var(--bangur-blue),#2563c5);color:#fff;box-shadow:0 16px 36px #164c9a38;text-transform:uppercase}.bangur-logo span{font-weight:900;font-size:1.05rem;letter-spacing:.16em;line-height:1}.bangur-logo small{margin-top:.18rem;font-size:.62rem;font-weight:800;letter-spacing:.22em}.stack{display:grid;gap:1rem}.stack-xs{display:grid;gap:.35rem}.page-pad{padding:1rem 1rem 6rem}.page-title{margin:0;font-size:1.6rem}.eyebrow{color:var(--bangur-blue);font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.muted,small{color:var(--muted)}.primary-button,.ghost-button,.login-card button[type=submit]{display:inline-flex;justify-content:center;align-items:center;border-radius:16px;padding:1rem 1.2rem;border:1px solid transparent;min-height:52px}.primary-button,.login-card button[type=submit]{background:linear-gradient(135deg,var(--bangur-blue),#2563c5);color:#fff;font-weight:700}.ghost-button{background:var(--surface);color:var(--bangur-blue-dark);border-color:var(--border)}.ghost-button.danger{color:#be123c;border-color:#fecdd3}.field-shell{min-height:100vh}.field-topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.85rem 1rem;background:#fffffff5;border-bottom:1px solid var(--border);box-shadow:0 12px 30px #164c9a14;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.topbar-logo{display:block;width:clamp(112px,34vw,150px);height:auto;object-fit:contain}.field-app-label{color:var(--bangur-blue-dark);font-weight:800}.field-main{padding-bottom:4rem}.field-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#fffffff5;border-top:1px solid var(--border);box-shadow:0 -12px 30px #164c9a14}.field-nav a{padding:1rem;text-align:center;color:var(--muted);font-weight:700}.field-nav a.active{background:var(--bangur-blue-soft);color:var(--bangur-blue)}.section-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.segmented-control{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem;padding:.35rem;border:1px solid var(--border);border-radius:18px;background:#ffffffbf}.segmented-option{border:1px solid transparent;border-radius:14px;background:transparent;color:var(--muted);font-weight:700;min-height:46px}.segmented-option.active{background:linear-gradient(135deg,var(--bangur-blue),#2563c5);color:#fff}.history-filter-grid{display:grid;gap:.75rem}.visit-card,.list-link,.profile-card{display:grid;gap:.5rem}.visit-card,.list-link{padding:1rem;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.visit-card-footer{display:flex;flex-wrap:wrap;gap:.35rem .75rem;color:var(--muted);font-size:.86rem}.location-list{display:grid;gap:.75rem}.location-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:1rem;padding:1rem;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,rgba(232,241,255,.76),transparent 42%),var(--surface)}.location-card-main{display:grid;gap:.45rem}.location-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.location-action{color:var(--bangur-blue);font-size:.9rem;font-weight:800}.list-link{grid-template-columns:1fr auto;align-items:center}.pill{display:inline-flex;align-items:center;width:fit-content;padding:.3rem .7rem;border-radius:999px;font-size:.8rem;text-transform:capitalize;background:#eef2f7;color:var(--muted)}.pill.valid,.pill.completed,.pill.online{background:#dcfce7;color:var(--success)}.pill.warning{background:#fef3c7;color:var(--warning)}.pill.invalid_data{background:#fee2e2;color:#b91c1c}.empty-state{padding:1rem;border-radius:16px;background:var(--surface-soft);color:var(--muted)}.procedure-progress{display:grid;gap:.45rem;padding:1rem;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--bangur-blue-dark);font-weight:800}.procedure-progress progress{width:100%;height:10px;accent-color:var(--bangur-blue)}.procedure-instruction{margin:0;color:var(--text);line-height:1.55;white-space:pre-wrap}.pdf-frame{width:100%;min-height:70vh;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.75rem}.media-actions{border:0;padding:0;margin:0;min-width:0;display:flex;flex-wrap:wrap;gap:.5rem}.media-action:focus-within,:focus-visible{outline:3px solid var(--bangur-blue);outline-offset:3px}.visit-card,.location-card-main,.media-preview{min-width:0;overflow-wrap:anywhere}.media-action{cursor:pointer}.visually-hidden-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.compact-button{min-height:2rem;padding:.4rem .65rem}.media-preview{display:grid;gap:.4rem;padding:.65rem;border:1px solid var(--border);border-radius:16px;background:var(--surface-soft)}.media-preview img,.media-preview video{width:100%;aspect-ratio:4 / 3;border-radius:12px;background:#0f172a;object-fit:cover}.map-card{padding:0;display:grid;gap:.5rem;overflow:hidden}.map-placeholder{width:100%;min-height:260px;display:grid;place-items:center;background:linear-gradient(180deg,var(--bangur-blue-soft),#f8fbff)}.map-viewport{position:relative;min-height:260px;overflow:hidden;background:#e8f1ff}.leaflet-plant-map{min-height:260px;width:100%}.leaflet-location-pin{display:block;width:22px;height:22px;border:3px solid #eff6ff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--bangur-blue);box-shadow:0 8px 20px #164c9a59}.leaflet-location-pin.selected{width:28px;height:28px;background:#dc2626;box-shadow:0 0 0 8px #dc26262e}.leaflet-location-tooltip{border:1px solid var(--border);border-radius:999px;background:#fffffff5;color:var(--bangur-blue-dark);font-size:.74rem;font-weight:800;box-shadow:0 8px 20px #164c9a33}.leaflet-location-tooltip.selected{background:#fff1f2;color:#be123c}.leaflet-location-tooltip.current{color:var(--success)}.map-pin{width:64px;height:64px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:linear-gradient(135deg,var(--bangur-blue),#2563c5)}.map-card-details{display:grid;gap:.35rem;padding:1rem 1rem 0}.map-card-details small{display:block}.map-open-link{color:var(--bangur-blue);font-size:.85rem;font-weight:800;white-space:nowrap}.profile-card{justify-items:center;padding:1.5rem}.avatar-circle{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--bangur-blue),#38bdf8);color:#fff;font-size:1.6rem;font-weight:800}.error-text{color:#b91c1c;margin:0}.helper-line{margin:0;color:var(--muted);font-size:.92rem}.chip-row{display:flex;flex-wrap:wrap;gap:.5rem}.map-card .chip-row{padding:0 1rem 1rem}.info-chip{display:inline-flex;align-items:center;padding:.35rem .7rem;border-radius:999px;background:var(--bangur-blue-soft);border:1px solid var(--bangur-blue-border);color:var(--bangur-blue-dark);font-size:.82rem;font-weight:700}.warning-chip{background:#fef3c7;border-color:#fde68a;color:var(--warning)}.start-visit-map{position:relative;min-height:320px;overflow:hidden;background:radial-gradient(circle at 20% 20%,rgba(22,76,154,.18),transparent 30%),radial-gradient(circle at 80% 70%,rgba(14,165,233,.12),transparent 28%),linear-gradient(180deg,#ffffff,var(--bangur-blue-soft))}.map-grid{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(rgba(22,76,154,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(22,76,154,.08) 1px,transparent 1px);background-size:56px 56px}.map-node-button{position:absolute;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:.4rem;z-index:1}.map-node-dot{width:18px;height:18px;border-radius:999px;background:linear-gradient(135deg,#38bdf8,var(--bangur-blue));box-shadow:0 0 0 6px #164c9a24}.map-node-label{padding:.35rem .65rem;border-radius:999px;white-space:nowrap;background:#fffffff0;border:1px solid var(--border);color:var(--bangur-blue-dark);font-size:.8rem;font-weight:800}@media (min-width: 768px){.field-main{max-width:640px;margin:0 auto}.history-filter-grid{grid-template-columns:minmax(0,1fr) 180px}}
