/* Micronics Control — design system (mockup) */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Paleta alineada a Metalconf CRM — metalconf.micronics-systems.com */
  --ms-bg: #f0f3f5;
  --ms-bg-soft: #e8edf0;
  --ms-surface: #ffffff;
  --ms-surface-2: #fafbfc;
  --ms-sidebar: #192f3f;
  --ms-sidebar-2: #243d4f;
  --ms-sidebar-border: rgba(255, 255, 255, 0.08);
  --ms-sidebar-text: rgba(255, 255, 255, 0.72);
  --ms-sidebar-muted: rgba(255, 255, 255, 0.45);
  --ms-text: #2c3e50;
  --ms-muted: #6b7c8f;
  --ms-border: #dde3e8;
  --ms-border-strong: #c5cdd6;
  --ms-navy: #192f3f;
  --ms-primary: #58af91;
  --ms-primary-dark: #12876f;
  --ms-accent: #e79f4b;
  --ms-accent-soft: rgba(88, 175, 145, 0.12);
  --ms-accent-glow: rgba(88, 175, 145, 0.35);
  --ms-highlight-soft: rgba(231, 159, 75, 0.14);
  --ms-ok: #28a745;
  --ms-ok-soft: #d4edda;
  --ms-warn: #f0ad4e;
  --ms-warn-soft: #fff3cd;
  --ms-late: #dc3545;
  --ms-late-soft: #fde8ea;
  --ms-info: #0c5460;
  --ms-info-soft: #e8f4fd;
  --ms-radius: 12px;
  --ms-radius-sm: 8px;
  --ms-radius-xs: 8px;
  --ms-shadow: 0 4px 24px rgba(25, 47, 63, 0.08);
  --ms-shadow-lg: 0 12px 48px rgba(25, 47, 63, 0.14);
  --ms-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ms-sidebar-w: 260px;
  --ms-top-h: 64px;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--ms-font);
  color: var(--ms-text);
  background: var(--ms-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(88, 175, 145, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 35% at 0% 100%, rgba(25, 47, 63, 0.04), transparent 50%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.mock-ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 7px 16px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ms-navy);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ms-border);
  backdrop-filter: blur(10px);
}

.app {
  display: flex;
  min-height: 100dvh;
  padding-top: 34px;
}

/* Sidebar */
.sidebar {
  width: var(--ms-sidebar-w);
  flex-shrink: 0;
  background: var(--ms-sidebar);
  border-right: 1px solid var(--ms-sidebar-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 34px;
  height: calc(100dvh - 34px);
}

.sidebar__brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--ms-sidebar-border);
}

.sidebar__brand img {
  display: block;
  height: 28px;
  width: auto;
  opacity: 0.96;
}

.sidebar__product {
  margin-top: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ms-sidebar-muted);
}

.sidebar__nav {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group__label {
  padding: 0 10px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-sidebar-muted);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 2px;
  border: none;
  border-radius: var(--ms-radius-sm);
  background: transparent;
  color: var(--ms-sidebar-text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-item.is-active {
  background: var(--ms-primary);
  color: #fff;
  box-shadow: none;
}

.nav-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item.is-active .nav-item__icon { opacity: 1; }

.nav-item__badge {
  margin-left: auto;
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ms-sidebar-muted);
}

.nav-item.is-active .nav-item__badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.sidebar__foot {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--ms-sidebar-border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ms-primary);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border: none;
}

.user-chip__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #eef0f4;
}

.user-chip__role {
  font-size: 0.72rem;
  color: var(--ms-sidebar-muted);
}

/* Main */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar {
  height: var(--ms-top-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ms-border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 34px;
  z-index: 50;
}

.topbar__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ms-navy);
}

.topbar__sub {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--ms-muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-width: 220px;
  border-radius: 999px;
  border: 1px solid var(--ms-border);
  background: var(--ms-surface);
  color: var(--ms-muted);
  font-size: 0.82rem;
}

.search-pill input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--ms-text);
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--ms-radius-sm);
  border: 1px solid var(--ms-border);
  background: var(--ms-surface);
  color: var(--ms-text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn:hover {
  box-shadow: var(--ms-shadow);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ms-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px var(--ms-accent-glow);
}

.btn--primary:hover {
  background: var(--ms-primary-dark);
  box-shadow: 0 6px 20px var(--ms-accent-glow);
}

.btn--ghost {
  background: transparent;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.content {
  padding: 24px 28px 40px;
  flex: 1;
}

.view { display: none; }
.view.is-active { display: block; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.page-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ms-navy);
}

.page-head p {
  margin: 6px 0 0;
  color: var(--ms-muted);
  font-size: 0.92rem;
  max-width: 52ch;
  line-height: 1.5;
}

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi {
  background: var(--ms-surface);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  padding: 18px 18px 16px;
  box-shadow: var(--ms-shadow);
}

.kpi__label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ms-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi__value {
  margin-top: 8px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ms-navy);
}

.kpi__hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--ms-muted);
}

.kpi--accent {
  background: linear-gradient(145deg, #fff 0%, #f0faf6 100%);
  border-color: rgba(88, 175, 145, 0.22);
}

/* Cards & panels */
.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  background: var(--ms-surface);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ms-border);
}

.panel__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ms-navy);
}

.panel__body { padding: 16px 18px; }
.panel__body--flush { padding: 0; }

/* Table */
.table-wrap { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

table.data th {
  text-align: left;
  padding: 11px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ms-muted);
  background: var(--ms-surface-2);
  border-bottom: 1px solid var(--ms-border);
}

table.data td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--ms-border);
  vertical-align: middle;
}

table.data tr:last-child td { border-bottom: none; }

table.data tbody tr:hover td {
  background: rgba(244, 243, 240, 0.65);
}

.cell-main {
  font-weight: 600;
  color: var(--ms-text);
}

.cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--ms-muted);
  font-weight: 400;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge--ok { background: var(--ms-ok-soft); color: #155724; }
.badge--warn { background: var(--ms-warn-soft); color: #856404; }
.badge--late { background: var(--ms-late-soft); color: var(--ms-late); }
.badge--info { background: var(--ms-info-soft); color: var(--ms-info); }

.billing-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.billing-chip--manual {
  background: #eef2f6;
  color: var(--ms-muted);
}

.billing-chip--mp {
  background: #e8f7fc;
  color: #007eb5;
}

.billing-chip--mp-ok {
  background: #dff4fb;
  color: #009ee3;
}

.billing-chip--mp-pending {
  background: #fff4e5;
  color: #b45309;
}

.billing-chip--mp-muted {
  background: #eef2f6;
  color: #64748b;
}

.mp-icon {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
}
.badge--muted { background: #eef1f4; color: var(--ms-muted); }
.badge--accent { background: #fef3e2; color: #b45309; }

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Activity list */
.activity-list { list-style: none; margin: 0; padding: 0; }

.activity-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ms-border);
}

.activity-list li:last-child { border-bottom: none; }

.activity-list__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.activity-list__icon--bill { background: var(--ms-info-soft); }
.activity-list__icon--rent { background: var(--ms-accent-soft); }
.activity-list__icon--maint { background: var(--ms-ok-soft); }

.activity-list__text { flex: 1; min-width: 0; }

.activity-list__title {
  font-size: 0.86rem;
  font-weight: 600;
}

.activity-list__meta {
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--ms-muted);
}

/* Tabs inline */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--ms-bg-soft);
  border-radius: var(--ms-radius-sm);
  margin-bottom: 18px;
  width: fit-content;
}

.tab {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ms-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.tab.is-active {
  background: var(--ms-surface);
  color: var(--ms-primary-dark);
  box-shadow: var(--ms-shadow);
}

[data-tab-panel] { display: none; }
[data-tab-panel].is-active { display: block; }

/* Client cards */
.client-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.client-card {
  background: var(--ms-surface);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  padding: 18px;
  box-shadow: var(--ms-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ms-shadow-lg);
}

.client-card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.client-card__name {
  font-size: 1rem;
  font-weight: 700;
}

.client-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-pill {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--ms-bg-soft);
  color: var(--ms-muted);
}

.tag-pill--rent { background: var(--ms-accent-soft); color: var(--ms-primary-dark); }
.tag-pill--maint { background: var(--ms-ok-soft); color: #155724; }

/* Invoice preview */
.invoice-preview {
  background: #fff;
  border: 1px solid var(--ms-border-strong);
  border-radius: var(--ms-radius-sm);
  padding: 22px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #222;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.invoice-preview__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #111;
  margin-bottom: 16px;
}

.invoice-preview__brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.invoice-preview__brand span { color: var(--ms-primary-dark); }

.invoice-preview__type {
  text-align: right;
  font-size: 0.72rem;
}

.invoice-preview__type strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.invoice-box {
  padding: 10px 12px;
  background: #f8f7f5;
  border-radius: 8px;
}

.invoice-box__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 6px;
}

.invoice-lines {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.invoice-lines th,
.invoice-lines td {
  padding: 8px 6px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.invoice-lines th {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #666;
}

.invoice-total {
  text-align: right;
  font-size: 1rem;
  font-weight: 800;
  margin-top: 8px;
}

.invoice-cae {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #bbb;
  font-size: 0.72rem;
  color: #444;
}

/* CRM placeholder */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-card {
  padding: 20px;
  border-radius: var(--ms-radius);
  border: 1px dashed var(--ms-border-strong);
  background: var(--ms-surface-2);
}

.roadmap-card h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.roadmap-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ms-muted);
  line-height: 1.45;
}

/* Settings form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ms-muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--ms-radius-xs);
  border: 1px solid var(--ms-border);
  background: var(--ms-surface);
  color: var(--ms-text);
}

.field textarea { min-height: 88px; resize: vertical; }

.field--full { grid-column: 1 / -1; }

.hint-box {
  padding: 14px 16px;
  border-radius: var(--ms-radius-sm);
  background: #fef3e2;
  border: 1px solid rgba(231, 159, 75, 0.28);
  font-size: 0.84rem;
  line-height: 1.5;
  color: #7c4a03;
  margin-bottom: 18px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--ms-muted);
}

.empty-state__icon {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }

  .sidebar.is-open { transform: translateX(0); }

  .topbar { padding: 0 16px; top: 0; }
  .content { padding: 18px 16px 32px; }
  .search-pill { display: none; }
  .kpi-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

.hidden { display: none !important; }

/* Login */
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 15%, var(--ms-primary) 0%, transparent 45%),
    linear-gradient(145deg, var(--ms-navy) 0%, #0d1922 100%);
}

.login-card {
  width: min(420px, 100%);
  background: var(--ms-surface);
  border-radius: var(--ms-radius);
  padding: 28px 26px;
  box-shadow: var(--ms-shadow-lg);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--ms-navy);
}

.login-card p {
  margin: 0 0 18px;
  color: var(--ms-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.login-card label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ms-muted);
  margin-bottom: 6px;
}

.login-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-xs);
  margin-bottom: 14px;
}

.login-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--ms-radius-xs);
  background: var(--ms-late-soft);
  color: var(--ms-late);
  font-size: 0.82rem;
}

.login-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-primary-dark);
  margin-bottom: 8px;
}

.app { padding-top: 0; }

.topbar { top: 0; }

.sidebar { top: 0; height: 100dvh; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(25, 47, 63, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal {
  width: min(520px, 100%);
  max-height: 90dvh;
  overflow: auto;
  background: var(--ms-surface);
  border-radius: var(--ms-radius);
  box-shadow: var(--ms-shadow-lg);
  border: 1px solid var(--ms-border);
}

.modal__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ms-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal__head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--ms-navy);
}

.modal__body { padding: 16px 18px 20px; }

.modal__foot {
  padding: 0 18px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  padding: 12px 16px;
  border-radius: var(--ms-radius-sm);
  background: var(--ms-navy);
  color: #fff;
  font-size: 0.84rem;
  box-shadow: var(--ms-shadow-lg);
  max-width: min(360px, calc(100vw - 32px));
}

.toast--error { background: var(--ms-late); }

.loading-inline {
  color: var(--ms-muted);
  font-size: 0.88rem;
  padding: 24px 0;
}

.sk {
  display: inline-block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8edf2 0%, #f4f7fa 50%, #e8edf2 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.1s ease-in-out infinite;
}

.sk--xs { width: 56px; }
.sk--sm { width: 72px; }
.sk--md { width: 120px; max-width: 90%; }
.sk--badge { width: 64px; height: 22px; border-radius: 999px; }
.sk--btn { width: 58px; height: 28px; border-radius: var(--ms-radius-xs); }
.sk--input { width: 100%; height: 36px; border-radius: var(--ms-radius-xs); }

.skeleton-row td { padding-top: 14px; padding-bottom: 14px; }

@keyframes sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: flex-end;
}

.filter-bar .field { margin: 0; min-width: 180px; }

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-xs);
  background: var(--ms-surface);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 0.84rem;
}

.detail-grid dt {
  margin: 0;
  color: var(--ms-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-grid dd {
  margin: 0 0 8px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .detail-grid { grid-template-columns: 1fr; }
}
