/* Municipal infrastructure workspace */

.mun-page { min-height: 100vh; background: #f1f5f9; font-family: 'Inter', sans-serif; }
.mun-loading { min-height: 50vh; display: flex; align-items: center; justify-content: center; color: #64748b; }
.mun-hero { background: linear-gradient(135deg, #1e3a5f, #0f766e); color: #fff; padding: 2rem 1rem 2.5rem; }
.mun-hero-inner { max-width: 72rem; margin: 0 auto; }
.mun-badge { display: inline-block; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.3rem 0.75rem; border-radius: 9999px; margin-bottom: 0.75rem; }
.mun-hero h1 { margin: 0; font-size: 1.75rem; font-weight: 900; }
.mun-hero p { margin: 0.5rem 0 0; opacity: 0.85; font-size: 0.9rem; max-width: 40rem; }
.mun-stats { max-width: 72rem; margin: -1.25rem auto 0; padding: 0 1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; position: relative; z-index: 2; }
@media (min-width: 768px) { .mun-stats { grid-template-columns: repeat(4, 1fr); } }
.mun-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.mun-stat strong { display: block; font-size: 1.35rem; font-weight: 900; color: #0f172a; }
.mun-stat span { font-size: 0.7rem; color: #64748b; }
.mun-container { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 3rem; }
.mun-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; padding: 1rem; }
.mun-tabs { display: flex; background: #f1f5f9; border-radius: 9999px; padding: 0.2rem; }
.mun-tabs button { padding: 0.4rem 1rem; border-radius: 9999px; border: none; font-size: 0.8rem; font-weight: 600; cursor: pointer; background: transparent; color: #64748b; }
.mun-tabs button.active { background: #0f766e; color: #fff; }
.mun-controls input, .mun-controls select { padding: 0.5rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.875rem; }
.mun-controls input { flex: 1; min-width: 10rem; }
.mun-btn { padding: 0.5rem 1rem; border-radius: 0.5rem; border: 1px solid #e2e8f0; background: #fff; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: #334155; }
.mun-btn.primary { background: #0f766e; color: #fff; border: none; }
.mun-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; overflow: hidden; }
.mun-table th, .mun-table td { padding: 0.75rem 1rem; text-align: left; font-size: 0.8rem; border-bottom: 1px solid #f1f5f9; }
.mun-table th { background: #f8fafc; font-weight: 700; color: #475569; }
.mun-table tr { cursor: pointer; }
.mun-table tr:hover { background: #f8fafc; }
.mun-form { background: #fff; border: 1px solid #cbd5e1; border-radius: 1rem; padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 4px 16px rgba(15,23,42,0.08); }
.mun-form h3 { margin: 0 0 1rem; font-size: 1rem; font-weight: 800; color: #0f172a; }
.mun-form-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .mun-form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.mun-field label { display: block; font-size: 0.7rem; font-weight: 600; color: #64748b; text-transform: uppercase; margin-bottom: 0.25rem; }
.mun-field input, .mun-field select, .mun-field textarea { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.875rem; box-sizing: border-box; font-family: inherit; }
.mun-field textarea { min-height: 4rem; resize: vertical; }
.mun-tag { display: inline-block; font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 9999px; }
.mun-tag.high { background: #fee2e2; color: #b91c1c; }
.mun-tag.medium { background: #fef3c7; color: #92400e; }
.mun-tag.low { background: #dbeafe; color: #1d4ed8; }
.mun-priority { font-weight: 800; color: #0f766e; }
.mun-empty { text-align: center; padding: 2rem; color: #64748b; background: #fff; border: 1px solid #e2e8f0; border-radius: 0.75rem; }
