html,
body {
  margin: 0;
  min-height: 100%;
  background: #f4f5f7;
}

body,
button,
input,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.site-header,
.site-footer {
  display: none;
}

.micrm-front-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
  background: #f4f5f7;
}

.micrm-front-sidebar {
  background: #2f4050;
  border-right: 1px solid #263746;
  color: #e8edf2;
  padding: 16px 12px;
}

.micrm-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.micrm-brand img {
  background: #fff;
  border-radius: 6px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  width: 42px;
}

.micrm-brand strong {
  color: #fff;
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.micrm-brand span {
  color: #c9a227;
  display: block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.micrm-front-sidebar nav {
  display: grid;
  gap: 2px;
}

.micrm-front-sidebar a {
  border-radius: 4px;
  color: #d7dee7;
  font-size: 14px;
  padding: 9px 10px;
  text-decoration: none;
}

.micrm-nav-section {
  display: grid;
  gap: 4px;
}

.micrm-nav-section summary {
  border-radius: 4px;
  color: #d7dee7;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  justify-content: space-between;
  list-style: none;
  margin-top: 10px;
  padding: 9px 10px;
  text-transform: none;
}

.micrm-nav-section summary::-webkit-details-marker {
  display: none;
}

.micrm-nav-section summary::after {
  content: "+";
  font-size: 14px;
}

.micrm-nav-section[open] > summary::after {
  content: "-";
}

.micrm-nav-section > div {
  display: grid;
  gap: 5px;
}

.micrm-nav-nested {
  margin-left: 12px;
}

.micrm-nav-nested summary {
  color: #d7dee7;
  font-size: 14px;
  padding: 9px 10px;
  text-transform: none;
}

.micrm-front-sidebar a.micrm-nav-child {
  margin-left: 12px;
}

.micrm-front-sidebar a.micrm-nav-grandchild {
  margin-left: 24px;
}

.micrm-front-sidebar a.active,
.micrm-front-sidebar a:hover,
.micrm-nav-section summary:hover {
  background: #dfe8f2;
  color: #23313f;
}

.micrm-front-sidebar a.active {
  font-weight: 700;
}

.micrm-view-eyebrow {
  color: #7a8794;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.micrm-record-list {
  display: grid;
  gap: 12px;
}

.micrm-record-form {
  box-shadow: inset 4px 0 0 #6f8fb2;
}

.micrm-wrap {
  color: #293846;
}

.micrm-wrap > h2,
.micrm-front-title h2 {
  color: #293846;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0;
}

.micrm-wrap > h2 {
  margin-bottom: 14px;
}

.micrm-front-main {
  background: #f4f5f7;
  min-width: 0;
  padding: 16px 18px 28px;
}

.micrm-front-topbar {
  align-items: center;
  background: #fff;
  border: 1px solid #d8dde5;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, .04);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.micrm-topbar-title span {
  color: #7a8794;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.micrm-topbar-title {
  align-items: center;
  color: #293846;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  font-size: 17px;
}

.micrm-topbar-title img {
  height: 32px;
  object-fit: contain;
  width: 32px;
}

.micrm-front-topbar input {
  background: #f8fafc;
  border: 1px solid #d8dde5;
  border-radius: 4px;
  flex: 1;
  min-height: 34px;
  padding: 6px 10px;
}

.micrm-front-title {
  align-items: center;
  background: #fff;
  border: 1px solid #d8dde5;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
}

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

.micrm-kpis > div,
.micrm-panel,
.micrm-campaign-calendar-panel,
.micrm-campaign-meeting-panel,
.micrm-front-form,
.micrm-login-card,
.micrm-header-preview {
  background: #fff;
  border: 1px solid #d8dde5;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, .04);
}

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

.micrm-kpis strong {
  color: #3d6f9f;
  display: block;
  font-size: 22px;
  font-weight: 500;
}

.micrm-kpis span {
  color: #6b7785;
  font-size: 13px;
}

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

.micrm-panel {
  padding: 14px;
}

.micrm-panel h2,
.micrm-kanban-column h2 {
  color: #293846;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px;
}

.micrm-front-form {
  background: #fff;
  padding: 16px;
}

.micrm-front-form input,
.micrm-front-form select,
.micrm-front-form textarea,
.micrm-field input,
.micrm-field select,
.micrm-field textarea {
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 4px;
  color: #293846;
  min-height: 32px;
  padding: 6px 9px;
}

.micrm-field span {
  color: #536271;
  font-size: 13px;
  font-weight: 600;
}

.micrm-data-table,
.micrm-wrap table.widefat {
  background: #fff;
  border: 1px solid #d8dde5;
  border-collapse: separate;
  border-radius: 4px;
  border-spacing: 0;
  box-shadow: none;
  overflow: hidden;
  width: 100%;
}

.micrm-data-table thead th,
.micrm-wrap table.widefat thead th {
  background: #f6f7f9;
  border-bottom: 1px solid #d8dde5;
  color: #536271;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 10px 12px;
  text-align: left;
  text-transform: none;
}

.micrm-data-table tbody td,
.micrm-wrap table.widefat tbody td {
  border-bottom: 1px solid #edf0f4;
  color: #293846;
  font-size: 14px;
  padding: 10px 12px;
  vertical-align: middle;
}

.micrm-data-table tbody tr:hover,
.micrm-wrap table.widefat tbody tr:hover {
  background: #f9fbfd;
}

.micrm-front-topbar button,
.micrm-front-topbar a,
.micrm-front-form .button,
.micrm-front-title .button,
.micrm-row-actions a,
.micrm-global-search .button,
.micrm-filters .button,
.micrm-segmented a,
.micrm-newsletter-form button,
.micrm-header-form button,
.micrm-login-card .button,
.micrm-register-form button,
a.button,
button.button,
input[type="button"].button,
input[type="reset"].button,
input[type="submit"].button,
.button,
.button-primary {
  align-items: center;
  background: #6f8fb2 !important;
  border: 1px solid #5e7fa4 !important;
  border-radius: 4px;
  box-shadow: none !important;
  color: #fff !important;
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  height: 32px;
  justify-content: center;
  line-height: 1;
  min-height: 32px;
  padding: 0 12px;
  text-decoration: none !important;
}

.micrm-front-topbar button:hover,
.micrm-front-topbar a:hover,
.micrm-front-form .button:hover,
.micrm-front-title .button:hover,
.micrm-row-actions a:hover,
a.button:hover,
button.button:hover,
.button:hover,
.button-primary:hover {
  background: #5e7fa4 !important;
  color: #fff;
}

.micrm-front-main {
  min-width: 0;
  padding: 18px;
}

.micrm-front-topbar {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
}

.micrm-topbar-title {
  align-items: center;
  color: #12395b;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  font-size: 18px;
}

.micrm-topbar-title img {
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.micrm-front-topbar form {
  display: flex;
  flex: 1;
  gap: 8px;
}

.micrm-front-topbar input {
  flex: 1;
  min-height: 38px;
}

.micrm-front-topbar button,
.micrm-front-form .button,
.micrm-front-title .button {
  min-height: 38px;
}

.micrm-front-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.micrm-front-title h2,
.micrm-wrap h2 {
  margin-top: 0;
}

.micrm-dashboard-grid .micrm-panel-wide {
  grid-column: 1 / -1;
}

.micrm-dashboard-report-list {
  margin-bottom: 18px;
}

.micrm-dashboard-report-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
}

.micrm-dashboard-report-form .micrm-checkbox-inline,
.micrm-dashboard-report-form p {
  grid-column: 1 / -1;
}

.micrm-campaign-calendar-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
}

.micrm-campaign-calendar-panel,
.micrm-campaign-meeting-panel {
  background: #F2F2F2;
  border-radius: 8px;
  padding: 16px;
}

.micrm-calendar-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.micrm-calendar-header strong {
  color: #12395b;
  font-size: 22px;
  text-transform: capitalize;
}

.micrm-large-calendar {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.micrm-large-calendar > span {
  color: #12395b;
  font-weight: 700;
  padding: 8px;
  text-align: center;
}

.micrm-large-calendar a,
.micrm-large-calendar .is-empty {
  background: #fff;
  border-radius: 8px;
  min-height: 92px;
  padding: 10px;
  text-decoration: none;
}

.micrm-large-calendar a {
  color: #12395b;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.micrm-large-calendar a.is-today {
  box-shadow: inset 0 0 0 2px #12395b;
}

.micrm-large-calendar a.is-selected {
  background: #C9A227;
  border-color: #C9A227;
  color: #fff;
}

.micrm-day-meetings {
  display: grid;
  gap: 4px;
}

.micrm-day-meetings em,
.micrm-day-meetings small {
  background: rgba(18, 57, 91, 0.08);
  border-radius: 6px;
  color: inherit;
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
  overflow: hidden;
  padding: 4px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.micrm-large-calendar a.is-selected .micrm-day-meetings em,
.micrm-large-calendar a.is-selected .micrm-day-meetings small {
  background: rgba(255, 255, 255, 0.2);
}

.micrm-selected-meetings {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.micrm-selected-meetings a {
  background: #fff;
  border-radius: 8px;
  color: #12395b;
  padding: 8px 10px;
  text-decoration: none;
}

.micrm-selected-meetings a.is-active {
  background: #C9A227;
  color: #fff;
  font-weight: 700;
}

.micrm-campaign-meeting-panel .micrm-front-form {
  padding: 0;
}

@media (max-width: 900px) {
  .micrm-campaign-calendar-layout {
    grid-template-columns: 1fr;
  }

  .micrm-large-calendar a,
  .micrm-large-calendar .is-empty {
    min-height: 72px;
  }
}

.micrm-front-form {
  background: #F2F2F2;
  border: 0;
  border-radius: 8px;
  padding: 16px;
}

.micrm-login-screen {
  align-items: center;
  background: #12395b;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.micrm-login-card {
  background: #F2F2F2;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
  max-width: 840px;
  padding: 28px;
  width: 100%;
}

.micrm-login-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.micrm-login-brand img {
  height: 86px;
  object-fit: contain;
  width: 86px;
}

.micrm-login-brand h1 {
  color: #12395b;
  font-size: 32px;
  margin: 0;
}

.micrm-login-card input {
  width: 100%;
}

.micrm-front-form input,
.micrm-front-form select,
.micrm-front-form textarea,
.micrm-auth-panel input,
.micrm-auth-panel select,
.micrm-auth-panel textarea,
.micrm-newsletter-form input,
.micrm-newsletter-form select,
.micrm-newsletter-form textarea {
  background: #fff;
  border: 0;
  box-sizing: border-box;
  box-shadow: none;
  min-height: 26px;
  outline: none;
  padding: 6px 10px;
  width: 100%;
}

.micrm-front-form textarea,
.micrm-newsletter-form textarea {
  min-height: 70px;
}

.micrm-contact-dropdown {
  position: relative;
  width: 100%;
}

.micrm-contact-dropdown-toggle {
  align-items: center;
  background: #fff;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  color: #111827;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  justify-content: space-between;
  line-height: 1.2;
  min-height: 26px;
  outline: none;
  padding: 6px 10px;
  text-align: left;
  width: 100%;
}

.micrm-contact-dropdown.is-open .micrm-contact-dropdown-toggle {
  box-shadow: 0 0 0 2px rgba(18, 57, 91, .12);
}

.micrm-contact-dropdown .micrm-contact-checklist {
  background: #fff;
  border: 0;
  box-sizing: border-box;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
  display: none;
  gap: 0;
  left: 0;
  max-height: 220px;
  min-height: 26px;
  overflow: auto;
  padding: 6px 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 100%;
  z-index: 20;
}

.micrm-contact-dropdown.is-open .micrm-contact-checklist {
  display: grid;
}

.micrm-contact-checklist label {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 16px minmax(0, 1fr);
  margin: 0;
  min-height: 30px;
  padding: 4px 0;
}

.micrm-contact-checklist input[type="checkbox"] {
  height: 16px;
  min-height: 16px;
  width: 16px;
}

.micrm-contact-checklist span {
  color: #111827;
  display: grid;
  font-size: 14px;
  font-weight: 400;
  gap: 2px;
  line-height: 1.25;
}

.micrm-contact-checklist strong {
  font-weight: 600;
}

.micrm-contact-checklist small {
  color: #64748b;
  font-size: 12px;
}

.micrm-login-card .login-remember label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.micrm-login-card .login-remember input[type="checkbox"] {
  flex: 0 0 auto;
  height: 16px;
  min-height: 16px;
  width: 16px;
}

.micrm-auth-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.micrm-auth-panel {
  background: #F2F2F2;
  border: 0;
  border-radius: 8px;
  padding: 16px;
}

.micrm-auth-panel h2 {
  color: #12395b;
  font-size: 18px;
  margin: 0 0 12px;
}

.micrm-register-form {
  display: grid;
  gap: 18px;
}

.micrm-register-form label span {
  color: #334155;
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.micrm-register-form button {
  background: #C9A227;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
}

.micrm-register-note {
  color: #64748b;
  font-size: 12px;
  margin: 0;
}

.micrm-auth-notice {
  border-radius: 6px;
  margin: 12px 0;
  padding: 10px 12px;
}

.micrm-auth-notice.success {
  background: #dcfce7;
  color: #166534;
}

.micrm-auth-notice.error {
  background: #fee2e2;
  color: #991b1b;
}

.micrm-newsletter-form {
  display: grid;
  gap: 18px;
}

.micrm-newsletter-editor .wp-editor-wrap {
  margin-top: 6px;
}

.micrm-editor-help {
  color: #64748b;
  font-size: 12px;
  margin: 0 0 8px;
}

.micrm-newsletter-editor .wp-editor-container {
  border: 0;
}

.micrm-campaign-editor {
  grid-column: 1 / -1;
  width: 100%;
}

.micrm-segment-contact-filter {
  grid-column: 1 / -1;
  width: 100%;
}

.micrm-newsletter-tools {
  align-items: center;
  background: #F2F2F2;
  border: 0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.micrm-newsletter-list {
  background: #fff;
  border: 0;
  border-radius: 8px;
  display: grid;
  max-height: 360px;
  overflow: auto;
}

.micrm-newsletter-list label {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(140px, 1fr) minmax(180px, 1fr);
  padding: 10px 12px;
}

.micrm-newsletter-list label:last-child {
  border-bottom: 0;
}

.micrm-newsletter-list span {
  color: #64748b;
  font-size: 13px;
}

.micrm-header-preview {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.micrm-header-preview img {
  height: 54px;
  object-fit: contain;
  width: 54px;
}

.micrm-header-preview strong,
.micrm-header-preview span {
  color: #12395b;
}

.micrm-data-table,
.micrm-wrap table.widefat {
  background: #fff;
  border: 0;
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  overflow: hidden;
  width: 100%;
}

.micrm-data-table thead th,
.micrm-wrap table.widefat thead th {
  background: #12395b;
  border: 0;
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 13px 14px;
  text-align: left;
  text-transform: uppercase;
}

.micrm-data-table tbody td,
.micrm-wrap table.widefat tbody td {
  border-bottom: 1px solid #e5e7eb;
  color: #1f2937;
  padding: 13px 14px;
  vertical-align: middle;
}

.micrm-data-table tbody tr:hover,
.micrm-wrap table.widefat tbody tr:hover {
  background: #f8fafc;
}

.micrm-data-table tbody tr:last-child td,
.micrm-wrap table.widefat tbody tr:last-child td {
  border-bottom: 0;
}

.micrm-row-actions {
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.micrm-delete-link {
  color: #b91c1c;
}

.micrm-db-note {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .micrm-front-shell {
    grid-template-columns: 1fr;
  }

  .micrm-front-sidebar nav {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .micrm-front-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .micrm-front-topbar form {
    width: 100%;
  }

  .micrm-auth-grid {
    grid-template-columns: 1fr;
  }

  .micrm-newsletter-tools,
  .micrm-newsletter-list label {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }
}

.micrm-field,
.micrm-front-form > label,
.micrm-auth-panel label,
.micrm-register-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.micrm-form-grid {
  column-gap: 22px;
  row-gap: 20px;
}

.micrm-form-grid .micrm-field {
  margin-bottom: 0;
  min-width: 0;
}

.micrm-form-section-title {
  border-bottom: 1px solid #d8dde3;
  color: #102447;
  font-size: 18px;
  font-weight: 800;
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-bottom: 8px;
}

.micrm-front-topbar button,
.micrm-front-topbar a,
.micrm-front-form .button,
.micrm-front-title .button,
.micrm-row-actions a,
.micrm-global-search .button,
.micrm-filters .button,
.micrm-segmented a,
.micrm-newsletter-form button,
.micrm-header-form button,
.micrm-login-card .button,
.micrm-register-form button,
a.button,
button.button,
input[type="button"].button,
input[type="reset"].button,
input[type="submit"].button,
.button,
.button-primary {
  align-items: center;
  background: #C9A227 !important;
  border: 0 !important;
  border-radius: 6px;
  box-shadow: none !important;
  color: #FFFFFF !important;
  display: inline-flex;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  line-height: 1;
  min-height: 36px;
  padding: 0 14px;
  text-decoration: none !important;
}

.micrm-front-topbar button:hover,
.micrm-front-topbar a:hover,
.micrm-front-form .button:hover,
.micrm-front-title .button:hover,
.micrm-row-actions a:hover,
a.button:hover,
button.button:hover,
.button:hover,
.button-primary:hover {
  background: #b89120 !important;
  color: #FFFFFF !important;
}

.micrm-opportunity-history-summary {
  margin-bottom: 18px;
}

.micrm-opportunity-history-table td {
  vertical-align: top;
}

.micrm-priority-badge {
  align-items: center;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 24px;
  min-width: 72px;
  padding: 4px 10px;
  text-align: center;
}

.micrm-priority-baja {
  background: #2e7d32;
}

.micrm-priority-media {
  background: #ef7d00;
}

.micrm-priority-alta {
  background: #c62828;
}

.micrm-priority-urgente {
  background: #7b1fa2;
}

.micrm-priority-empty {
  background: #7a8794;
}

.micrm-opportunity-history-table td:last-child {
  max-width: 420px;
  white-space: normal;
}

.micrm-segmented {
  flex-wrap: wrap;
}

.micrm-panel .micrm-data-table {
  margin-top: 8px;
}

/* Estilo CRM tipo EspoCRM aplicado como capa final global. */
body.micrm-app-body {
  background: #f4f5f7;
  color: #293846;
}

.micrm-front-shell {
  background: #f4f5f7;
  grid-template-columns: 236px minmax(0, 1fr);
}

.micrm-front-sidebar {
  background: #2f4050;
  border-right: 1px solid #263746;
  padding: 16px 12px;
}

.micrm-brand {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 16px;
  padding: 0 6px 14px;
}

.micrm-brand img {
  border-radius: 4px;
  height: 42px;
  width: 42px;
}

.micrm-brand strong {
  font-size: 18px;
  font-weight: 600;
}

.micrm-brand span {
  color: #aeb8c2;
  letter-spacing: 0;
}

.micrm-nav-section summary {
  color: #d7dee7;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.micrm-front-sidebar nav {
  gap: 2px;
}

.micrm-front-sidebar a {
  border-radius: 4px;
  color: #d7dee7;
  font-size: 14px;
  padding: 9px 10px;
}

.micrm-front-sidebar a.active,
.micrm-front-sidebar a:hover {
  background: #dfe8f2;
  color: #23313f;
}

.micrm-front-main {
  background: #f4f5f7;
  padding: 16px 18px 28px;
}

.micrm-front-topbar,
.micrm-front-title,
.micrm-kpis > div,
.micrm-panel,
.micrm-front-form,
.micrm-campaign-calendar-panel,
.micrm-campaign-meeting-panel,
.micrm-login-card,
.micrm-header-preview {
  background: #fff;
  border: 1px solid #d8dde5;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, .04);
}

.micrm-front-topbar {
  margin-bottom: 14px;
  padding: 10px 12px;
}

.micrm-front-title {
  padding: 12px 14px;
}

.micrm-front-title h2,
.micrm-wrap > h2 {
  color: #293846;
  font-size: 22px;
  font-weight: 500;
}

.micrm-view-eyebrow {
  color: #7a8794;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.micrm-kpis {
  gap: 10px;
  margin: 0 0 12px;
}

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

.micrm-kpis strong {
  color: #3d6f9f;
  font-size: 22px;
  font-weight: 500;
}

.micrm-kpis span {
  color: #6b7785;
  font-size: 13px;
}

.micrm-dashboard-grid {
  gap: 12px;
}

.micrm-panel {
  padding: 14px;
}

.micrm-panel h2,
.micrm-kanban-column h2 {
  color: #293846;
  font-size: 16px;
  font-weight: 500;
}

.micrm-front-form {
  padding: 16px;
}

.micrm-front-form input,
.micrm-front-form select,
.micrm-front-form textarea,
.micrm-field input,
.micrm-field select,
.micrm-field textarea,
.micrm-global-search input[type="search"],
.micrm-filters input[type="search"],
.micrm-front-topbar input {
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 4px;
  box-shadow: none;
  color: #293846;
  min-height: 32px;
  padding: 6px 9px;
}

.micrm-field span {
  color: #536271;
  font-size: 13px;
}

.micrm-checkbox-inline {
  align-items: center;
  color: #293846;
  display: inline-flex;
  gap: 8px;
  min-height: 32px;
}

.micrm-checkbox-inline input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.micrm-contacts-table small {
  color: #b45309;
  font-weight: 700;
}

.micrm-record-name {
  color: #3d6f9f;
  text-decoration: none;
}

.micrm-record-name:hover {
  text-decoration: underline;
}

.micrm-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.micrm-contact-detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.micrm-contact-main-panel {
  grid-column: 1 / -1;
}

.micrm-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.micrm-detail-list div {
  border-bottom: 1px solid #edf0f4;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
}

.micrm-detail-list dt {
  color: #536271;
  font-weight: 700;
}

.micrm-detail-list dd {
  margin: 0;
}

@media (max-width: 900px) {
  .micrm-contact-detail-grid,
  .micrm-detail-list {
    grid-template-columns: 1fr;
  }

  .micrm-detail-list div {
    grid-template-columns: 1fr;
  }
}

.micrm-data-table,
.micrm-wrap table.widefat {
  border: 1px solid #d8dde5;
  border-radius: 4px;
  box-shadow: none;
}

.micrm-data-table thead th,
.micrm-wrap table.widefat thead th {
  background: #f6f7f9;
  border-bottom: 1px solid #d8dde5;
  color: #536271;
  font-size: 12px;
  letter-spacing: 0;
  padding: 10px 12px;
  text-transform: none;
}

.micrm-data-table tbody td,
.micrm-wrap table.widefat tbody td {
  border-bottom: 1px solid #edf0f4;
  color: #293846;
  font-size: 14px;
  padding: 10px 12px;
}

.micrm-data-table tbody tr:hover,
.micrm-wrap table.widefat tbody tr:hover {
  background: #f9fbfd;
}

.micrm-front-topbar button,
.micrm-front-topbar a,
.micrm-front-form .button,
.micrm-front-title .button,
.micrm-row-actions a,
.micrm-global-search .button,
.micrm-filters .button,
.micrm-segmented a,
.micrm-newsletter-form button,
.micrm-header-form button,
.micrm-login-card .button,
.micrm-register-form button,
a.button,
button.button,
input[type="button"].button,
input[type="reset"].button,
input[type="submit"].button,
.button,
.button-primary {
  background: #6f8fb2 !important;
  border: 1px solid #5e7fa4 !important;
  border-radius: 4px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  height: 32px;
  min-height: 32px;
}

.micrm-front-topbar button:hover,
.micrm-front-topbar a:hover,
.micrm-front-form .button:hover,
.micrm-front-title .button:hover,
.micrm-row-actions a:hover,
a.button:hover,
button.button:hover,
.button:hover,
.button-primary:hover {
  background: #5e7fa4 !important;
}

.micrm-contact-dropdown .micrm-newsletter-list label {
  grid-template-columns: 16px minmax(0, 1fr);
  padding: 4px 0;
}

.micrm-contact-dropdown .micrm-newsletter-list span {
  color: inherit;
  display: grid;
  font-size: 14px;
  gap: 2px;
}

.micrm-contact-dropdown .micrm-newsletter-list small {
  color: #64748b;
  font-size: 12px;
}

.micrm-campaign-contact-field .micrm-contact-dropdown-toggle {
  appearance: none;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
  height: 26px;
  line-height: 1.2;
  min-height: 26px;
  padding: 6px 10px;
}

.micrm-campaign-contact-field .micrm-contact-dropdown.is-open .micrm-contact-dropdown-toggle {
  box-shadow: none;
}

.micrm-campaign-contact-field .micrm-contact-checklist {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
  padding: 6px 10px;
}
.micrm-campaign-contact-field .micrm-contact-dropdown-toggle {
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111827 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  height: 26px !important;
  line-height: 1.2 !important;
  min-height: 26px !important;
  padding: 6px 10px !important;
}

.micrm-survey-builder-field {
  grid-column: 1 / -1;
  width: 100%;
}

.micrm-survey-builder {
  display: grid;
  gap: 12px;
  width: 100%;
}

.micrm-survey-questions {
  display: grid;
  gap: 12px;
  width: 100%;
}

.micrm-survey-question {
  background: #fff;
  border: 1px solid #d8dde5;
  border-radius: 4px;
  display: grid;
  gap: 10px;
  padding: 12px;
  width: 100%;
}

.micrm-survey-question-head,
.micrm-survey-option {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.micrm-survey-options {
  display: grid;
  gap: 8px;
}

.micrm-survey-public {
  background: #eef3f7;
  min-height: 100vh;
  padding: 32px 16px;
}

.micrm-survey-card {
  background: #fff;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  margin: 0 auto;
  max-width: 780px;
  padding: 24px;
}

.micrm-survey-public-question {
  border: 1px solid #d8dde5;
  border-radius: 4px;
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px;
}

.micrm-survey-public-question legend {
  font-weight: 700;
  padding: 0 6px;
}

.micrm-survey-public-question label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.micrm-survey-result-question {
  border-top: 1px solid #edf0f4;
  display: grid;
  gap: 8px;
  padding: 14px 0 4px;
}

.micrm-survey-result-bar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 220px minmax(120px, 1fr) 90px;
}

.micrm-survey-result-bar div {
  background: #edf0f4;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
}

.micrm-survey-result-bar b {
  background: #6f8fb2;
  display: block;
  height: 100%;
}

@media (max-width: 700px) {
  .micrm-survey-question-head,
  .micrm-survey-option,
  .micrm-survey-result-bar {
    grid-template-columns: 1fr;
  }
}

.micrm-login-card {
  max-width: 50%;
  width: min(320px, calc(100% - 32px));
}

.micrm-panel-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.micrm-sales-period-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.micrm-sales-period-form label {
  display: grid;
  gap: 4px;
}

.micrm-sales-period-form span {
  color: #536271;
  font-size: 12px;
  font-weight: 700;
}

.micrm-sales-period-form input {
  background: #fff;
  border: 0;
  height: 32px;
  min-width: 150px;
  padding: 6px 8px;
}

@media (max-width: 900px) {
  .micrm-panel-title-row {
    display: grid;
  }
}

@media (max-width: 700px) {
  .micrm-login-card {
    max-width: calc(100% - 32px);
    width: calc(100% - 32px);
  }
}

.micrm-login-card {
  max-width: 50%;
  width: min(220px, calc(100% - 32px));
}
@media (max-width: 700px) {
  .micrm-login-card {
    max-width: calc(100% - 32px);
    width: calc(100% - 32px);
  }
}
