.auth-page {
  min-height: 100vh;
  background: #e6edf2 url("/assets/portal-background.png") center/cover fixed;
  padding: 7vh 20px;
}
.auth-card {
  max-width: 440px;
  margin: auto;
  background: #fffffff5;
  padding: 32px;
  border: 1px solid #cddbe5;
  border-radius: 16px;
  box-shadow: 0 20px 80px #243d5520;
}
.auth-card img {
  width: 74px;
}
.auth-card h1 {
  font-size: 30px;
}
.auth-card p {
  line-height: 1.6;
}
.auth-card a {
  color: #4f667a;
}
.auth-card .field {
  margin: 18px 0;
}
.auth-card .primary {
  width: 100%;
}
.status-banner {
  padding: 12px 24px;
  background: #fff3d5;
  text-align: center;
  color: #614800;
  font-size: 14px;
}
.staff-shell {
  max-width: 1300px;
  margin: 24px auto;
  padding: 0 24px;
}
.staff-top {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 18px 24px;
  border-bottom: 1px solid #cddbe5;
}
.staff-top img {
  width: 55px;
}
.staff-top h1 {
  font-size: 26px;
  flex: 1;
}
.staff-top button,
.staff-tabs button,
.staff-shell button:not(.primary) {
  padding: 9px 14px;
  border: 1px solid #aabbc7;
  background: white;
  border-radius: 6px;
  color: #304a60;
  cursor: pointer;
}
.staff-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.staff-tabs button.selected {
  background: #4f667a;
  color: white;
}
.staff-panel {
  background: white;
  padding: 24px;
  border: 1px solid #cddbe5;
  border-radius: 10px;
}
.staff-panel h2 {
  font-size: 28px;
}
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.staff-panel .field {
  margin: 12px 0;
}
.staff-panel .field input,
.staff-panel .field select,
.staff-panel .field textarea {
  width: 100%;
  box-sizing: border-box;
}
.staff-panel label {
  font-size: 14px;
}
.staff-panel table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.staff-panel th,
.staff-panel td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #e6edf2;
  vertical-align: top;
}
.staff-panel td button {
  margin: 0 4px 6px 0;
}
.table-wrap {
  overflow-x: auto;
}
.staff-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.staff-actions input {
  padding: 12px;
  min-width: 260px;
  border: 1px solid #aabbc7;
  border-radius: 6px;
}
.staff-panel dialog {
  max-width: 650px;
}
.muted {
  color: #667b8e;
  font-size: 13px;
}
.danger {
  color: #9d3030 !important;
}
.feedback-message {
  white-space: pre-wrap;
  color: #8c2424;
  padding: 10px 0;
}
.invite-box {
  padding: 16px;
  background: #e6edf2;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
.staff-shell input[type="checkbox"] {
  width: auto;
}
.staff-panel .primary {
  padding: 12px 18px;
}
.success-note {
  background: #edf5f0;
  padding: 16px;
  border-radius: 8px;
}
.contract-summary {
  font-size: 12px !important;
}
.staff-grid .full {
  grid-column: 1/-1;
}
@media (max-width: 700px) {
  .staff-grid {
    grid-template-columns: 1fr;
  }
  .staff-top {
    flex-wrap: wrap;
  }
  .staff-top h1 {
    font-size: 22px;
  }
  .staff-shell {
    padding: 0 12px;
  }
  .staff-panel {
    padding: 16px;
  }
  .staff-panel th,
  .staff-panel td {
    padding: 8px 4px;
  }
  .staff-grid .full {
    grid-column: auto;
  }
}

.logout {
  font-size: 11px;
  border: 1px solid #cddbe5;
  color: #4f667a;
  background: white;
  padding: 9px 12px;
  border-radius: 5px;
  white-space: nowrap;
}
@media (max-width: 580px) {
  .logout {
    font-size: 10px;
    padding: 7px;
  }
  .staff-top {
    height: auto;
  }
}

.order-copies {
  padding: 16px 0;
  border-top: 1px solid #cddbe5;
  margin-top: 18px;
}
.order-copies summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  color: #4f667a;
}
.order-copies p {
  font-size: 11px;
  line-height: 1.7;
  color: #627c8d;
}
.order-copies .field {
  font-size: 12px;
  margin: 14px 0;
}
