* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f6f8;
  color: #17202a;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: #0f6b5f;
  text-decoration: none;
}

.topbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dde3ea;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
}

.brand {
  color: #17202a;
  font-size: 20px;
  font-weight: 700;
}

.topbar nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.container {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px;
}

.login-panel,
.panel {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 24px;
}

.login-panel {
  margin: 56px auto;
  max-width: 420px;
}

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

h1,
h2 {
  margin: 0 0 8px;
}

p {
  color: #5b6673;
  margin: 0;
}

.form {
  display: grid;
  gap: 16px;
}

.two-col {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  color: #39424e;
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
select {
  border: 1px solid #c7d0da;
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

button,
.button {
  background: #0f6b5f;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  padding: 11px 16px;
}

button.danger {
  background: #b42318;
}

button.small {
  min-height: 34px;
  padding: 7px 12px;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.punch {
  min-width: 160px;
}

.alert {
  background: #e7f6ef;
  border: 1px solid #b7e2cf;
  border-radius: 6px;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.alert.error {
  background: #fff0f0;
  border-color: #f1bbbb;
}

.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.stat {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 20px;
}

.stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.stat span,
.muted {
  color: #687483;
}

.grid-actions {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-actions a {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  color: #17202a;
  font-weight: 700;
  padding: 24px;
}

.table-wrap {
  background: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #edf1f5;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f9fafb;
  color: #39424e;
  font-size: 13px;
}

.filters,
.inline-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin-bottom: 18px;
}

.check {
  align-items: center;
  display: flex;
  gap: 10px;
}

.check input {
  width: auto;
}

@media (max-width: 760px) {
  .topbar,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .container {
    padding: 18px;
  }

  .two-col,
  .stats,
  .grid-actions,
  .filters,
  .inline-form {
    grid-template-columns: 1fr;
  }
}
