.page-tabs { display:flex; gap:8px; padding:8px 12px 0; min-width:0; }
.page-tabs button { background:white; border:1px solid var(--line); color:var(--ink); }
.page-tabs button[aria-selected="true"] { background:var(--navy); color:white; border-color:var(--navy); }
#weld-map-panel { margin:12px; padding:16px; border:1px solid var(--line); border-radius:14px; background:white; min-height:0; min-width:0; display:flex; flex-direction:column; gap:12px; overflow:hidden; }
.weld-map-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
#weld-map-save,.weld-map-help,#weld-map-notice { font-size:.8rem; color:var(--body); }
#weld-map-notice { padding:10px; background:#fff3d8; border-radius:8px; }
.weld-map-stats { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.weld-map-stats>div { padding:10px 12px; background:#f2f6fb; border-radius:8px; }
.weld-map-stats strong { display:block; font-size:1.4rem; color:var(--navy); }
.weld-map-stats span { font-size:.75rem; color:var(--body); }
.weld-map-filters { display:flex; gap:10px; flex-wrap:wrap; }
.weld-map-filters label { font-size:.75rem; flex:1 1 140px; min-width:0; color:var(--body); }
.weld-map-filters label:nth-child(2) { flex-grow:2; }
.weld-map-filters input,.weld-map-filters select { display:block; margin-top:4px; }
.weld-map-table-wrap { overflow:auto; flex:1; min-height:140px; border:1px solid var(--line); border-radius:8px; }
.weld-map-table { border-collapse:separate; border-spacing:0; width:100%; font-size:.8rem; }
.weld-map-table th,.weld-map-table td { padding:9px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle; min-width:135px; max-width:270px; }
.weld-map-table thead th { position:sticky; top:0; background:#edf2f8; z-index:2; white-space:nowrap; }
.weld-map-table th:first-child { position:sticky; left:0; min-width:60px; background:#f1f5fa; z-index:1; }
.weld-map-table thead th:first-child { z-index:3; }
.weld-map-table small { display:block; font-weight:400; font-size:.72rem; }
.weld-map-table td:nth-child(3) { min-width:220px; overflow-wrap:anywhere; }
.weld-map-table td:nth-child(5) { min-width:270px; }
.weld-map-table td:nth-child(10) { min-width:170px; }
.weld-map-table td:nth-child(n+11) { min-width:165px; }
.weld-map-table input,.weld-map-table select { font-size:.8rem; padding:8px !important; min-height:36px; }
.weld-map-table input:disabled,.weld-map-table select:disabled { opacity:1; color:#40516a; background:#f8fafc; }
.weld-map-table button { font-size:.75rem; margin-top:5px; }
.weld-map-table select.inspection-concluido { background:#e5f5ec; color:#16623c; }
.weld-map-table select.inspection-pendente { background:#fff7dc; color:#735609; }
.weld-map-table select.inspection-nao-aplicavel { background:#eff1f5; color:#5f6a78; }
.weld-map-focused>td { background:#edf5ff; }
#weld-map-link-dialog label,#weld-map-add-dialog label { display:block; margin:14px 0 6px; font-size:.85rem; }
#weld-map-link-error,#weld-map-add-error { color:#a32e29; margin-top:10px; }
@media(min-width:960px){
 body { grid-template-rows:auto auto auto minmax(0,1fr); }
 .topbar { grid-row:1; }.connection { grid-row:2; }.page-tabs { grid-row:3; }
 main,#weld-map-panel { grid-row:4; }
}
@media(max-width:959px){
 #weld-map-panel { padding:12px; }.weld-map-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .weld-map-table-wrap { max-height:65dvh; flex:auto; }
}
