body{margin:0}*{box-sizing:border-box;margin:0;padding:0}body{color:#1a1a1a;background:#f0f2f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.app{max-width:1400px;margin:0 auto;padding:16px}.app-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.app-header h1{font-size:20px;font-weight:600}.tabs{background:#e2e5ea;border-radius:8px;gap:4px;padding:3px;display:flex}.tab{cursor:pointer;color:#555;background:0 0;border:none;border-radius:6px;padding:8px 20px;font-size:14px;font-weight:500;transition:all .15s}.tab-active{color:#1a1a1a;background:#fff;box-shadow:0 1px 3px #0000001a}.app-main{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 4px #00000014}.registry{padding:16px}.registry-loading{text-align:center;color:#888;padding:40px}.registry-count{color:#666;margin-bottom:12px;font-size:14px}.registry-table-wrap{border:1px solid #e5e7eb;border-radius:8px;max-height:calc(100vh - 180px);overflow:auto}.registry-table{border-collapse:collapse;width:100%;font-size:13px}.registry-table thead{z-index:1;position:sticky;top:0}.registry-table th{text-align:left;color:#666;text-transform:uppercase;white-space:nowrap;background:#f8f9fb;border-bottom:2px solid #e5e7eb;padding:10px 12px;font-size:12px;font-weight:600}.registry-table td{border-bottom:1px solid #f0f0f0;padding:8px 12px}.registry-row{cursor:pointer;transition:background .1s}.registry-row:hover{background:#f0f4ff}.registry-address{white-space:nowrap;text-overflow:ellipsis;max-width:400px;overflow:hidden}.registry-distance{text-align:right;white-space:nowrap}.status-badge{color:#fff;white-space:nowrap;border-radius:10px;padding:2px 8px;font-size:11px;font-weight:600;display:inline-block}.status-working{background:#22c55e}.status-malfunction{background:#ef4444}.status-assigned{background:#f97316}.modal-overlay{z-index:100;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-content{background:#fff;border-radius:12px;width:90%;max-width:640px;max-height:85vh;padding:24px;position:relative;overflow-y:auto;box-shadow:0 8px 30px #00000026}.modal-close{cursor:pointer;background:#f0f0f0;border:none;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-size:14px;display:flex;position:absolute;top:16px;right:16px}.modal-title{margin-bottom:16px;padding-right:32px;font-size:18px;font-weight:600}.modal-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.modal-field{flex-direction:column;gap:2px;display:flex}.modal-field label{color:#888;text-transform:uppercase;font-size:11px;font-weight:600}.modal-field span{font-size:14px}.map-container{width:100%;height:calc(100vh - 120px);position:relative}.map{width:100%;height:100%}.app-map-mode{max-width:none;padding:0}.app-map-mode .app-header{z-index:10;background:linear-gradient(#fffffff2 60%,#fff0 100%);margin:0;padding:12px 20px;position:absolute;top:0;left:0;right:0}.app-main-map{box-shadow:none;background:0 0;border-radius:0;overflow:visible}.app-map-mode .map-container{height:100vh}.map-sidebar{z-index:5;background:#fff;border-radius:12px;width:280px;max-height:calc(100vh - 100px);padding:16px;font-size:13px;position:absolute;top:80px;right:16px;overflow-y:auto;box-shadow:0 4px 16px #0000001f}.map-summary h3,.map-malfunctions h3{margin-bottom:10px;font-size:14px;font-weight:600}.map-summary{margin-bottom:16px}.map-summary-row{align-items:center;gap:8px;padding:4px 0;display:flex}.map-filter-row{cursor:pointer;-webkit-user-select:none;user-select:none;padding:3px 0}.map-filter-row input[type=checkbox]{accent-color:#3b82f6;cursor:pointer;width:15px;height:15px}.map-summary-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.map-dot-green{background:#22c55e}.map-dot-red{background:#ef4444}.map-dot-orange{background:#f97316}.map-summary-label{flex:1}.map-summary-count{text-align:right;min-width:24px;font-weight:600}.map-malfunctions{border-top:1px solid #e5e7eb;padding-top:12px}.map-malfunctions-list{margin:0;padding:0;list-style:none}.map-malfunctions-item{border-bottom:1px solid #f0f0f0;flex-direction:column;gap:1px;padding:6px 0;display:flex}.map-malfunctions-name{color:#ef4444;font-size:12px;font-weight:600}.map-malfunctions-addr{color:#888;white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.map-placeholder{text-align:center;color:#666;padding:60px 20px;line-height:1.8}.map-placeholder code{background:#f0f0f0;border-radius:4px;padding:2px 6px;font-size:13px}.map-marker{cursor:pointer;border:2px solid #fff;border-radius:50%;width:14px;height:14px;transition:transform .1s;box-shadow:0 1px 4px #0000004d}.map-marker:hover{transform:scale(1.4)}.map-tooltip{background:#fff;border-radius:8px;max-width:320px;padding:12px 16px;font-size:13px;line-height:1.5;position:absolute;bottom:24px;left:24px;box-shadow:0 4px 16px #0000001f}.map-tooltip-close{cursor:pointer;background:#f0f0f0;border:none;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;font-size:10px;display:flex;position:absolute;top:6px;right:6px}
