
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  color: #263445;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e3e8ef;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  background: #e8f3f1;
  color: #218477;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 23px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
}

.brand p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #788697;
}

.environment {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #218477;
  background: #e8f3f1;
  padding: 7px 11px;
  border-radius: 20px;
}

.container {
  max-width: 1200px;
  margin: 36px auto;
  padding: 0 24px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.page-heading h2 {
  margin: 0;
  font-size: 27px;
}

.page-heading p,
.panel-heading p {
  color: #7b8794;
  font-size: 14px;
  margin: 7px 0 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

.summary-card,
.panel {
  background: white;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  padding: 20px;
}

.summary-card span {
  display: block;
  font-size: 13px;
  color: #788697;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 29px;
}

.panel {
  margin-bottom: 22px;
  padding: 22px;
}

.panel h3 {
  margin: 0;
  font-size: 17px;
}

.panel-heading {
  margin-bottom: 20px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

th {
  font-size: 12px;
  color: #778596;
  font-weight: 600;
  padding: 12px;
  border-bottom: 1px solid #e8edf2;
}

td {
  font-size: 13px;
  padding: 16px 12px;
  border-bottom: 1px solid #edf0f4;
}

.person-name {
  font-weight: bold;
}

.person-email {
  display: block;
  color: #8994a1;
  font-size: 12px;
  margin-top: 5px;
}

.status {
  display: inline-block;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: bold;
}

.status-ok {
  color: #20775d;
  background: #e6f5ed;
}

.status-pending {
  color: #946d16;
  background: #fff4d9;
}

.status-alert {
  color: #a43e3e;
  background: #fce9e9;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.primary-btn {
  background: #218477;
  color: white;
}

.primary-btn:hover {
  background: #196e63;
}

.secondary-btn {
  background: #edf0f4;
  color: #344255;
}

.close-btn {
  border: none;
  background: none;
  font-size: 25px;
  cursor: pointer;
  color: #778596;
}

.activity-item {
  padding: 13px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 13px;
}

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

.activity-time {
  color: #8994a1;
  font-size: 11px;
  margin-top: 5px;
}

.empty-message {
  text-align: center;
  color: #8994a1;
  padding: 20px;
  font-size: 13px;
}

dialog {
  border: none;
  border-radius: 12px;
  padding: 25px;
  width: min(440px, calc(100% - 30px));
  box-shadow: 0 15px 50px #0002;
}

dialog::backdrop {
  background: #17253688;
}

.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dialog-heading h3 {
  margin: 0;
}

form label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin: 15px 0 7px;
}

form input,
form select {
  width: 100%;
  padding: 11px;
  border: 1px solid #dce2e9;
  border-radius: 6px;
  font-size: 14px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 23px;
}

.form-note {
  color: #8994a1;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 15px;
}

footer {
  text-align: center;
  color: #9aa4af;
  font-size: 11px;
  padding: 30px 15px;
}

@media (max-width: 750px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .environment {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  .summary-card {
    padding: 14px;
  }

  .summary-card strong {
    font-size: 24px;
  }
}
