body {
  background: #eef2f5;
  color: #263238;
  font-family: Arial, Helvetica, sans-serif;
}

.topbar {
  background: #143c3a;
  border-bottom: 4px solid #35a873;
  color: #fff;
  min-height: 54px;
}

.topbar .container {
  position: relative;
}

.brand {
  color: #fff;
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
  line-height: 54px;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
  text-decoration: none;
}

.top-actions {
  float: right;
  margin-top: 13px;
}

.version-badge {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  display: inline-block;
  font-size: 12px;
  margin-right: 8px;
  padding: 4px 8px;
}

.app-shell {
  padding-top: 28px;
}

.app-tabs {
  margin-bottom: 18px;
}

.login-panel,
.panel-form,
.session-list {
  background: #fff;
  border: 1px solid #d7dee2;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(20, 60, 58, 0.08);
  padding: 22px;
}

.login-panel {
  margin: 42px auto 0;
  max-width: 380px;
}

h1 {
  color: #143c3a;
  font-size: 28px;
  line-height: 34px;
  margin: 0 0 18px;
}

h2 {
  color: #143c3a;
  font-size: 20px;
  line-height: 26px;
  margin: 0 0 16px;
}

.page-heading {
  margin-bottom: 18px;
}

.page-heading p {
  color: #617078;
  margin: 0;
}

.password-row {
  display: table;
  width: 100%;
}

.password-row input,
.password-row button {
  display: table-cell;
}

.password-row input {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  width: 100%;
}

.password-row button {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  min-width: 86px;
  vertical-align: top;
}

.list-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.contacts-title {
  gap: 12px;
}

.contacts-title .form-search {
  margin: 0;
}

.summary-line {
  color: #617078;
  margin: 0 0 10px;
}

.compliance-box {
  background: #f7faf9;
  border: 1px solid #d7dee2;
  border-left: 4px solid #35a873;
  color: #52626b;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.wide-modal {
  margin-left: -390px;
  width: 780px;
}

.message-list {
  max-height: 440px;
  overflow: auto;
}

.message-item {
  background: #f8fafb;
  border: 1px solid #d7dee2;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 10px 12px;
}

.message-meta {
  color: #143c3a;
  font-weight: bold;
  margin-bottom: 4px;
}

.empty-state {
  color: #617078;
  padding: 18px;
  text-align: center;
}

.upload-list-box {
  margin-top: 18px;
}

.compact-table th,
.compact-table td {
  font-size: 12px;
  line-height: 17px;
}

.pager-row {
  border-top: 1px solid #e3e8eb;
  padding-top: 12px;
  text-align: right;
}

.status-pill {
  border-radius: 3px;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  min-width: 86px;
  padding: 4px 8px;
  text-align: center;
}

.status-connected {
  background: #278557;
}

.status-disconnected {
  background: #8a3b38;
}

.session-details dt {
  color: #52626b;
  width: 150px;
}

.session-details dd {
  margin-left: 170px;
}

.qr-box {
  background: #f7faf9;
  border: 1px solid #d7dee2;
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 14px;
  text-align: center;
}

.qr-box img {
  background: #fff;
  border: 1px solid #cfd8dc;
  height: 168px;
  padding: 8px;
  width: 168px;
}

.qr-box p {
  color: #617078;
  margin: 8px 0 0;
}

@media (max-width: 767px) {
  .top-actions {
    float: none;
    margin: 0 0 12px;
  }

  .brand {
    display: block;
    line-height: 46px;
  }

  .login-panel,
  .panel-form,
  .session-list {
    padding: 16px;
  }

  .session-details dt {
    float: none;
    width: auto;
  }

  .session-details dd {
    margin-left: 0;
  }

  .wide-modal {
    left: 2%;
    margin-left: 0;
    width: 96%;
  }

  .list-title,
  .contacts-title {
    align-items: stretch;
    display: block;
  }

  .contacts-title .form-search,
  .contacts-title .form-search input,
  .contacts-title .form-search button {
    display: block;
    margin-bottom: 8px;
    width: 100%;
  }
}
