.micrm-wrap {
  color: #1f2937;
}

.micrm-wrap h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
}

.micrm-global-search,
.micrm-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
}

.micrm-global-search input[type="search"] {
  width: min(680px, 100%);
  min-height: 38px;
}

.micrm-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.micrm-kpis > div,
.micrm-panel,
.micrm-kanban-column,
.micrm-calendar article {
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.micrm-kpis > div {
  padding: 16px;
}

.micrm-kpis strong {
  display: block;
  color: #0f5ea8;
  font-size: 24px;
}

.micrm-kpis span {
  color: #64748b;
}

.micrm-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.micrm-panel {
  padding: 16px;
}

.micrm-panel h2,
.micrm-kanban-column h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.micrm-form-grid,
.micrm-settings-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.micrm-field span {
  display: block;
  margin-bottom: 5px;
  color: #334155;
  font-weight: 600;
}

.micrm-field input,
.micrm-field select,
.micrm-field textarea {
  width: 100%;
}

.micrm-tabs,
.micrm-segmented {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.micrm-tabs button,
.micrm-segmented a {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #1f2937;
  padding: 7px 11px;
  text-decoration: none;
  cursor: pointer;
}

.micrm-tabs .active,
.micrm-segmented .active {
  background: #0f5ea8;
  border-color: #0f5ea8;
  color: #fff;
}

.micrm-tab-panel {
  display: none;
}

.micrm-tab-panel.active {
  display: block;
}

.micrm-kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: start;
}

.micrm-kanban-column {
  min-height: 260px;
  padding: 12px;
}

.micrm-kanban-card {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-left: 4px solid #0f5ea8;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  cursor: grab;
}

.micrm-kanban-card a,
.micrm-kanban-card span,
.micrm-kanban-card small {
  display: block;
}

.micrm-kanban-card a {
  font-weight: 700;
  text-decoration: none;
}

.micrm-calendar {
  display: grid;
  gap: 10px;
}

.micrm-calendar-month {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.micrm-calendar article {
  padding: 12px;
}

.micrm-calendar time,
.micrm-calendar span {
  display: block;
  color: #64748b;
  font-size: 12px;
}

.micrm-ranking {
  margin: 0;
}

.micrm-ranking li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.micrm-history {
  margin: 0;
}

@media (max-width: 782px) {
  .micrm-global-search,
  .micrm-filters,
  .micrm-tabs {
    align-items: stretch;
    flex-direction: column;
  }
}
