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

body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.micrm-front-sidebar {
  background: #12395b;
  color: #fff;
  padding: 22px 16px;
}

.micrm-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 0 22px;
}

.micrm-brand img {
  background: #fff;
  border-radius: 8px;
  height: 54px;
  object-fit: contain;
  padding: 5px;
  width: 54px;
}

.micrm-brand strong {
  color: #fff;
  display: block;
  font-size: 24px;
  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: 5px;
}

.micrm-front-sidebar a {
  border-radius: 8px;
  color: #dbeafe;
  padding: 10px 12px;
  text-decoration: none;
}

.micrm-front-sidebar a.active,
.micrm-front-sidebar a:hover {
  background: #0f5ea8;
  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-front-form {
  background: #fff;
  border: 1px solid #d8e1ec;
  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: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .22);
  max-width: 420px;
  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-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%;
  }
}
