/* Shared module: manhole-route-editor — auto-split from the old single styles.css, 178 rule block(s). Do not duplicate class names across files. */

.route-sequence{display:flex;align-items:center;gap:7px;overflow-x:auto;padding:7px 2px 10px;scrollbar-width:thin}

.route-sequence>i{font-style:normal;color:var(--muted);font-size:18px}

.route-node{min-width:150px;border:1px solid var(--line);border-radius:11px;background:var(--card);color:var(--ink);padding:9px;text-align:start;cursor:pointer}

.route-node>span{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#168fb9;color:white;font-size:10px;font-weight:600;margin-inline-end:5px}

.route-node b{font-size:11px}

.route-node small{display:block;margin-top:4px;color:var(--muted);font-size:9px}

#saveDrawRouteBtn:disabled{opacity:.45;cursor:not-allowed}

.route-capacity-card{border:1px solid var(--line);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;justify-content:center}

.route-capacity-card span{font-size:9px;color:var(--muted)}

.route-capacity-card b{font-size:15px;margin-top:3px}

.pipe-segments-head{display:flex;justify-content:space-between;gap:10px;padding:8px 12px;border-top:1px solid var(--line)}

.pipe-segments-head small{font-size:9px;color:var(--muted)}

.pipe-segments-list{display:flex;flex-direction:column;gap:6px;padding:0 12px 12px;max-height:270px;overflow:auto}

.pipe-segment-row{display:grid;grid-template-columns:32px 52px 52px 92px 1.2fr 90px 72px 100px;gap:7px;align-items:end;border:1px solid var(--line);border-radius:10px;padding:8px;background:var(--card)}

.pipe-segment-row small{display:block;font-size:8px;color:var(--muted);margin-bottom:3px}

.pipe-segment-row b{font-size:10px}

.pipe-segment-row input,.pipe-segment-row select{width:100%;min-width:0}

.seg-index{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#147fa8;color:#fff;font-size:10px;font-weight:600;}

@media (max-width:1100px){
.pipe-segment-row{grid-template-columns:30px repeat(3,1fr)}
}

@media (max-width:600px){
.pipe-segment-row{grid-template-columns:1fr 1fr}
}

@media (max-width:600px){
.seg-index{grid-column:span 2}
}

#editSelectedRouteBtn:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(.3)}

.route-linked-manhole-panel{border:1px solid var(--line);border-radius:12px;background:var(--soft);padding:10px 12px}

.route-linked-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}

.route-linked-head b{font-size:12px}

.route-linked-head small{font-size:9px;color:var(--muted)}

.route-linked-list{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow:auto;scrollbar-width:thin}

.route-linked-item{display:grid;grid-template-columns:30px minmax(150px,1fr) auto auto;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:7px 8px;background:var(--card)}

.route-linked-order{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#168fb9;color:white;font-size:10px;font-weight:600;}

.route-linked-info{min-width:0}

.route-linked-info b{display:block;font-size:10px}

.route-linked-info small{display:block;font-size:8.5px;color:var(--muted);margin-top:2px}

.empty-note{padding:12px;text-align:center;color:var(--muted);font-size:10px}

@media (max-width:700px){
.route-linked-item{grid-template-columns:28px 1fr}
}

@media (max-width:700px){
.route-linked-head{align-items:flex-start;flex-direction:column}
}

#resetManholeRouteFilter:disabled{opacity:.45;cursor:not-allowed}

.route-sensor-info-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}

.route-sensor-info-head h4{margin:0;font-size:12px}

.route-sensor-info-head small{display:block;color:var(--muted);font-size:9px;margin-top:4px;max-width:650px}

.sensor-legend{display:flex;gap:10px;white-space:nowrap;font-size:9px}

.sensor-equipped{color:#21b77a}

.sensor-none{color:#9aaab3}

.route-sensor-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:9px}

.route-sensor-summary>div{border:1px solid var(--line);border-radius:9px;padding:8px;background:var(--card);display:flex;flex-direction:column}

.route-sensor-summary span{font-size:8px;color:var(--muted)}

.route-sensor-summary b{font-size:14px;margin-top:3px}

@media (max-width:850px){
.route-sensor-summary{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:520px){
.route-sensor-info-head{flex-direction:column}
}

@media (max-width:520px){
.route-sensor-summary,.sensor-fields{grid-template-columns:1fr}
}

.route-linked-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}

.sensor-btn{border-color:rgba(47,194,229,.55)!important;color:#b8f0ff!important}

.route-linked-item{align-items:center}

.linked-manhole-panel{
  min-height:100%;
}

.route-linked-head{display:flex;justify-content:space-between;align-items:center;gap:10px}

.route-linked-head>div{min-width:0}

.compact-btn{padding:7px 10px!important;white-space:nowrap}

.route-linked-actions{display:flex;gap:5px;flex-wrap:wrap}

.mr74-editor-overlay{position:fixed;inset:0;z-index:100000;background:rgba(2,14,24,.78);display:flex;align-items:flex-start;justify-content:center;padding:60px 16px 20px;overflow:auto}

.mr74-editor{width:min(1500px,97vw);max-height:calc(100vh - 80px);display:flex;flex-direction:column;background:var(--card);border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.45)}

.mr74-editor-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}

.mr74-editor-head h3{margin:0 0 3px}

.mr74-editor-head>button{border:0;background:transparent;color:var(--ink);font-size:28px;cursor:pointer}

.mr74-editor-tabs{display:flex;gap:7px;padding:9px 12px;border-bottom:1px solid var(--line)}

.mr74-editor-tabs button{border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:8px;padding:7px 11px;cursor:pointer}

.mr74-editor-body{padding:14px;overflow:auto;flex:1}

.mr74-editor-foot{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-top:1px solid var(--line)}

.mr74-editor-foot>div{display:flex;gap:8px}

.mr74-form-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:11px}

.mr74-form-grid label{display:flex;flex-direction:column;gap:5px;font-size:11px}

.mr74-form-grid input,.mr74-form-grid textarea,.mr74-form-grid select,.mr74-edit-table input,.mr74-edit-table select{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);padding:7px 8px;font-size:11px}

.mr74-form-grid textarea{min-height:80px}

.mr74-edit-table{width:100%;border-collapse:collapse;min-width:1100px}

.mr74-edit-table th,.mr74-edit-table td{padding:6px;border-bottom:1px solid rgba(110,160,180,.16);text-align:center}

.mr74-edit-table th{font-size:10.5px;font-weight:500}

.mr74-edit-table td{font-size:10.5px}

.mr74-edit-table td small{display:block;color:var(--muted)}

@media (max-width:700px){
.mr74-form-grid{grid-template-columns:1fr}
}

@media (max-width:700px){
.mr74-editor-foot{align-items:flex-start;flex-direction:column}
}

@media (max-width:700px){
.mr74-editor-overlay{padding:45px 7px 10px}
}

#routeStartDrawingBtn:disabled{
  opacity:.42!important;
  cursor:not-allowed!important;
  filter:saturate(.55);
}

.route-manhole-spec-editor{border:1px solid rgba(20,157,207,.55);border-radius:13px;background:linear-gradient(180deg,rgba(11,139,185,.08),rgba(11,139,185,.025));padding:12px;box-shadow:0 8px 22px rgba(5,72,104,.08)}

.route-manhole-spec-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}

.route-manhole-spec-head b{display:block;font-size:12px}

.route-manhole-spec-head small{display:block;font-size:9px;color:var(--muted);margin-top:3px}

.route-manhole-spec-grid{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:9px}

.route-manhole-spec-grid label{font-size:9px;color:var(--muted)}

.route-manhole-spec-grid input,.route-manhole-spec-grid select{width:100%;margin-top:4px}

.route-manhole-spec-preview{display:flex;align-items:center;gap:10px;margin-top:10px;padding:8px 10px;border:1px dashed var(--line);border-radius:10px;background:var(--card)}

.route-manhole-spec-preview>span{font-size:9px;color:var(--muted)}

.route-manhole-spec-preview small{font-size:9px;color:var(--muted)}

.mh-preview-shape{width:28px;height:28px;background:#fff;border:4px solid #0ea5e9;box-shadow:0 3px 8px rgba(0,0,0,.18);display:inline-block}

.mh-preview-shape[data-manhole-shape="circle"]{border-radius:50%}

.mh-preview-shape[data-manhole-shape="square"]{border-radius:5px}

.mh-preview-shape[data-manhole-shape="rectangle"]{width:36px;height:24px;border-radius:5px}

.route-manhole-spec-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}

.route-linked-actions .specs-btn{border-color:rgba(18,149,198,.5);color:#0c83ad}

@media (max-width:950px){
.route-manhole-spec-grid{grid-template-columns:repeat(2,minmax(130px,1fr))}
}

@media (max-width:560px){
.route-manhole-spec-grid{grid-template-columns:1fr}
}

@media (max-width:560px){
.route-manhole-spec-actions{flex-direction:column}
}

@media (max-width:560px){
.route-manhole-spec-actions button{width:100%}
}

.route-builder-rebuilt{gap:12px}

.route-builder-rebuilt .route-builder-section{border:1px solid var(--line);border-radius:14px;padding:12px;background:color-mix(in srgb,var(--card) 94%,transparent)}

.route-rebuild-note{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid rgba(28,180,225,.28);border-radius:12px;background:rgba(23,159,205,.08)}

.route-rebuild-note>div{display:flex;flex-direction:column;gap:2px}

.route-rebuild-note b{font-size:12px}

.route-rebuild-note small{font-size:9px;color:var(--muted)}

.route-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px}

.route-section-title>div{display:flex;flex-direction:column;gap:2px}

.route-section-title b{font-size:12px}

.route-section-title small{font-size:9px;color:var(--muted)}

.route-builder-tools-clean{padding:8px;border-radius:11px;background:var(--soft);border:1px solid var(--line)}

.route-builder-tools-clean button:disabled{opacity:.42;cursor:not-allowed}

.route-mode-badge{padding:5px 10px;border-radius:999px;border:1px solid var(--line);font-size:9px;font-weight:700;background:var(--soft);color:var(--muted);white-space:nowrap}

.route-mode-badge[data-mode="draw"]{color:#0788b6;border-color:rgba(14,160,208,.42);background:rgba(14,160,208,.09)}

.route-mode-badge[data-mode="edit"]{color:#b47909;border-color:rgba(221,158,28,.45);background:rgba(221,158,28,.09)}

.route-mode-badge[data-mode="addManhole"]{color:#0b9364;border-color:rgba(20,166,112,.45);background:rgba(20,166,112,.1)}

.route-editor-instruction{padding:9px 11px;border:1px dashed rgba(43,171,216,.38);border-radius:10px;background:rgba(21,148,192,.06);font-size:10px;color:var(--muted)}

.route-editor-instruction[data-mode="addManhole"]{border-color:rgba(255,179,31,.6);background:rgba(255,179,31,.11);color:var(--ink)}

.route-editor-instruction[data-mode="addManhole"] b{color:#d28a00}

@media (max-width:900px){
.route-section-title,.route-rebuild-note{align-items:flex-start;flex-direction:column}
}

.route-map-workspace{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  align-items:start;
}

.route-manhole-spec-dock{
  min-width:0;
  height:auto;
  overflow:visible;
  position:relative;
  padding:13px;
  border:1px solid rgba(20,157,207,.45);
  background:linear-gradient(180deg,rgba(13,83,112,.09),rgba(7,38,55,.03));
}

.route-manhole-spec-top{order:-1}

.route-spec-empty{min-height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;color:var(--muted);padding:18px}

.route-spec-empty-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:23px;color:#17a7d7;border:3px solid #17a7d7;background:rgba(23,167,215,.10);box-shadow:0 8px 22px rgba(23,167,215,.16)}

.route-spec-empty b{font-size:14px;color:var(--text)}

.route-spec-empty small{font-size:10px;line-height:1.8;max-width:520px}

.route-manhole-spec-dock .route-manhole-spec-grid{grid-template-columns:repeat(4,minmax(135px,1fr));gap:8px}

.route-manhole-spec-dock .route-manhole-spec-head{position:static;padding:2px 0 10px;background:transparent;border-bottom:1px solid var(--line)}

.route-spec-fast-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:rgba(20,166,112,.10);border:1px solid rgba(20,166,112,.30);color:#16a36f;font-size:9px;font-weight:800;white-space:nowrap}

.route-manhole-spec-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}

.route-manhole-spec-bottom .route-manhole-spec-preview{margin-top:0;flex:1;min-width:0}

.route-manhole-spec-dock .route-manhole-spec-actions{position:static;background:transparent;padding:0;border-top:0;margin-top:0;flex:0 0 auto}

.route-manhole-spec-dock .route-spec-save,.route-manhole-spec-dock .route-spec-place{min-width:205px}

.route-spec-place{font-weight:800;box-shadow:0 8px 18px rgba(12,151,202,.16)}

.route-spec-place:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}

@media (max-width:1180px){
.route-manhole-spec-dock .route-manhole-spec-grid{grid-template-columns:repeat(3,minmax(125px,1fr))}
}

@media (max-width:860px){
.route-manhole-spec-dock .route-manhole-spec-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}
}

@media (max-width:860px){
.route-manhole-spec-bottom{align-items:stretch;flex-direction:column}
}

@media (max-width:860px){
.route-manhole-spec-dock .route-manhole-spec-actions{width:100%}
}

@media (max-width:860px){
.route-manhole-spec-dock .route-spec-save,.route-manhole-spec-dock .route-spec-place{width:100%;min-width:0}
}

@media (max-width:560px){
.route-manhole-spec-dock .route-manhole-spec-grid{grid-template-columns:1fr}
}

#routeDrawMap.sensor-place-active .map-v24-marker-manhole{cursor:crosshair!important;z-index:25!important}

.route-auto-divide-btn{border-color:rgba(245,158,11,.45)!important;background:rgba(245,158,11,.08)!important;color:#fbbf24!important}

.route-auto-divide-panel{margin:9px 0 10px;padding:12px;border:1px solid rgba(245,158,11,.35);border-radius:13px;background:linear-gradient(135deg,rgba(245,158,11,.08),rgba(14,165,233,.05));box-shadow:0 10px 30px rgba(0,0,0,.08)}

.route-auto-divide-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}

.route-auto-divide-head>div{display:flex;flex-direction:column;gap:3px}

.route-auto-divide-head b{font-size:13px}

.route-auto-divide-head small{font-size:10px;color:var(--muted);line-height:1.6}

.route-auto-divide-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:end}

.route-auto-divide-grid label{display:flex;flex-direction:column;gap:4px;font-size:10px;color:var(--muted)}

.route-auto-divide-grid input[type="number"],.route-auto-divide-grid input[readonly]{width:100%;min-height:34px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text);font-weight:700}

.route-auto-stat{min-height:54px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--card);display:flex;flex-direction:column;justify-content:center;gap:2px}

.route-auto-stat span{font-size:9px;color:var(--muted)}

.route-auto-stat b{font-size:14px;color:var(--accent)}

.route-auto-check{grid-column:span 2;flex-direction:row!important;align-items:center;gap:7px!important;min-height:54px;padding:8px 10px;border:1px dashed rgba(245,158,11,.34);border-radius:9px;background:rgba(245,158,11,.05);color:var(--text)!important}

.route-auto-check input{accent-color:#f59e0b}

.route-auto-divide-note{margin-top:8px;padding:8px 10px;border-radius:9px;background:rgba(16,185,129,.08);border:1px solid rgba(16,185,129,.24);font-size:10px;color:var(--muted)}

.route-auto-divide-note b{color:var(--text)}

.route-auto-divide-actions{display:flex;justify-content:flex-start;margin-top:9px}

@media (max-width:1180px){
.route-auto-divide-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width:1180px){
.route-auto-check{grid-column:span 3}
}

@media (max-width:700px){
.route-auto-divide-head{flex-direction:column}
}

@media (max-width:700px){
.route-auto-divide-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:700px){
.route-auto-check{grid-column:span 2}
}

.hydraulic-state-tag{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;border:1px solid transparent}

.hydraulic-state-tag.mixed{background:rgba(245,158,11,.13);color:#d97706;border-color:rgba(245,158,11,.3)}

.manhole-measurement{display:inline-flex;flex-direction:column;align-items:center;line-height:1.15;min-width:72px}

.manhole-measurement b{font-size:14px}

.manhole-measurement small{font-size:10px;margin-top:3px}

.manhole-measurement-note{margin-bottom:12px;padding:11px 14px;border-radius:12px;background:rgba(14,165,233,.08);border:1px solid rgba(14,165,233,.22);font-size:12px;line-height:1.8}

.manhole-state-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 16px}

.manhole-state-legend .legend-item{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 14px;border:1px solid var(--border,#dbe6ef);border-radius:14px;background:var(--panel,#fff);box-shadow:0 5px 16px rgba(15,23,42,.05)}

.manhole-state-legend .legend-item b{display:block;font-size:13px;margin-bottom:3px}

.manhole-state-legend .legend-item small{display:block;font-size:11px;line-height:1.55;color:var(--muted,#64748b)}

.legend-arrow{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-size:24px;font-weight:900;flex:0 0 auto}

.legend-alert{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;font-size:22px;font-weight:900;color:#fff;background:#ef4444;box-shadow:0 0 0 0 rgba(239,68,68,.45);animation:manholeBlockagePulse .95s ease-in-out infinite;flex:0 0 auto}

@media (max-width:980px){
.manhole-state-legend{grid-template-columns:1fr}
}
