.employee-type-card {
  position: relative;
  min-height: 120px;
  border: 1px solid #e4dfd2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: .2s ease;
}

body.shared-employee-form {
  min-height: 100vh;
  background: #f4f2ec;
}

body.shared-employee-form #app,
body.shared-employee-form #login {
  display: none !important;
}

body.shared-employee-form dialog::backdrop {
  background: #f4f2ec;
}

body.shared-employee-form dialog {
  border-top: 4px solid #f4b400;
  box-shadow: 0 18px 60px #18231d1f;
}

body.shared-employee-form .dialogHead {
  min-height: 112px;
  padding: 22px 28px;
  background: #fff;
}

.shared-employee-brand {
  display: flex;
  align-items: center;
  gap: 17px;
}

.shared-employee-brand img,
.shared-employee-brand > span {
  width: 78px;
  height: 62px;
  object-fit: contain;
}

.shared-employee-brand > span {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #171717;
  color: #f4b400;
  font-weight: 900;
}

.shared-employee-brand small { color: #936600; font-weight: 800; letter-spacing: .16em; }
.shared-employee-brand h2 { margin: 3px 0 2px; }
.shared-employee-brand p { margin: 0; color: #716c62; font-size: 11px; }

.secure-link-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 0, #fff5d4, #f4f2ec 40%);
}

.secure-link-page section {
  width: min(520px, 95vw);
  padding: 40px;
  border: 1px solid #ded4c0;
  border-top: 4px solid #f4b400;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 25px 70px #3b33221c;
  text-align: center;
}

.secure-link-page img { width: 145px; height: 95px; object-fit: contain; }
.secure-link-page small { display: block; color: #936600; font-weight: 900; letter-spacing: .18em; }
.secure-link-page h1 { margin: 12px 0 8px; font: 29px Georgia, serif; }
.secure-link-page p { margin: 0; color: #6f6b62; line-height: 1.6; }

.employee-submission-success {
  grid-column: 1 / -1;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 25px;
  text-align: center;
}

.success-check {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #12372c;
  color: #fff;
  box-shadow: 0 0 0 9px #12372c14;
  font-size: 42px;
  line-height: 1;
}

.employee-submission-success h3 {
  margin: 28px 0 8px;
  font: 27px Georgia, serif;
}

.employee-submission-success p {
  margin: 0;
  color: #68736d;
  font-size: 14px;
}

.employee-detail-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.employee-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.employee-row-actions button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e4dfd2;
  background: #fff;
  color: #12372c;
}

.employee-row-actions button:hover {
  border-color: #f4b400;
  background: #fff8df;
}

.employee-row-actions button.danger { color: #a43f37; }
.employee-row-actions button.danger:hover { border-color: #d88982; background: #fff1ef; }
.employee-row-actions svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.employee-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #e7f2ec; color: #246344; font-size: 11px; font-weight: 700; }
.employee-status.status-inactive { background: #eeeeeb; color: #696963; }
.employee-status.status-resigned { background: #fff1cf; color: #835e00; }
.employee-status.status-terminated { background: #fde7e4; color: #a43f37; }

.employee-type-card:hover {
  border-color: #f4b400;
  background: #fffaf0;
  box-shadow: 0 8px 25px #f4b40022;
}

.employee-type-choice .employee-type-select {
  width: 100%;
  min-height: 118px;
  padding: 22px 115px 22px 22px;
  border: 0;
  background: transparent;
}

.employee-type-choice .employee-type-select:hover {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.employee-type-choice .employee-share-link {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid #e4dfd2;
  background: #fff;
  color: #806200;
  font-size: 11px;
  font-weight: 700;
}

.employee-type-choice .employee-share-link:hover {
  border-color: #f4b400;
  background: #fff3cb;
  color: #171717;
}

.employee-share-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.employee-link-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #f4b400;
  border-radius: 8px;
  background: #fffaf0;
  text-align: left;
}

.employee-link-preview .employee-link-address { min-width: 0; }
.employee-link-preview strong { display: block; font: 14px system-ui; }
.employee-link-preview span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #6f6b62;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-link-preview a,
.employee-link-preview button {
  min-height: 0;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.employee-link-preview a { background: #171717; color: #fff; }
.employee-link-preview button { background: #f4b400; color: #171717; }
.employee-link-preview label {
  grid-column: 1 / 3;
  margin: 0;
}
.employee-link-preview label input {
  width: 100%;
  padding: 9px 11px;
}
.employee-link-preview .employee-email-link {
  align-self: end;
  background: #806200;
  text-align: center;
}

/* Employee wizard footer */
#recordForm[data-kind="employee"] .wizard-actions,
#recordForm[data-kind="employee-edit"] .wizard-actions,
#recordForm[data-kind="booking"] .wizard-actions,
#recordForm[data-kind="loan"] .wizard-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e4dfd2;
}

#recordForm[data-kind="employee"] .wizard-actions button,
#recordForm[data-kind="employee-edit"] .wizard-actions button,
#recordForm[data-kind="booking"] .wizard-actions button,
#recordForm[data-kind="loan"] .wizard-actions button {
  grid-column: auto;
  width: auto;
  min-height: 43px;
  margin-top: 0;
  padding: 10px 24px;
  border-radius: 8px;
}

#recordForm[data-kind="employee"] .wizard-actions .wizard-back,
#recordForm[data-kind="employee-edit"] .wizard-actions .wizard-back,
#recordForm[data-kind="booking"] .wizard-actions .wizard-back,
#recordForm[data-kind="loan"] .wizard-actions .wizard-back {
  flex: 0 0 105px;
}

#recordForm[data-kind="employee"] .wizard-actions .wizard-next,
#recordForm[data-kind="employee"] .wizard-actions button[type="submit"],
#recordForm[data-kind="employee-edit"] .wizard-actions .wizard-next,
#recordForm[data-kind="employee-edit"] .wizard-actions button[type="submit"],
#recordForm[data-kind="booking"] .wizard-actions .wizard-next,
#recordForm[data-kind="booking"] .wizard-actions button[type="submit"],
#recordForm[data-kind="loan"] .wizard-actions .wizard-next,
#recordForm[data-kind="loan"] .wizard-actions button[type="submit"] {
  min-width: 150px;
  margin-left: auto;
  border: 1px solid #171717;
  border-bottom: 3px solid #f4b400;
  background: #171717;
  color: #fff;
  font-weight: 700;
}

#recordForm[data-kind="employee"] .wizard-actions .wizard-next:hover,
#recordForm[data-kind="employee"] .wizard-actions button[type="submit"]:hover,
#recordForm[data-kind="employee-edit"] .wizard-actions .wizard-next:hover,
#recordForm[data-kind="employee-edit"] .wizard-actions button[type="submit"]:hover,
#recordForm[data-kind="booking"] .wizard-actions .wizard-next:hover,
#recordForm[data-kind="booking"] .wizard-actions button[type="submit"]:hover,
#recordForm[data-kind="loan"] .wizard-actions .wizard-next:hover,
#recordForm[data-kind="loan"] .wizard-actions button[type="submit"]:hover {
  border-color: #f4b400;
  background: #2a2416;
  box-shadow: 0 5px 16px #f4b40033;
}

@media (max-width: 650px) {
  body.shared-employee-form { height: 100dvh; overflow: hidden; }
  body.shared-employee-form dialog[open] { display: flex; flex-direction: column; width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  body.shared-employee-form .dialogHead { flex: 0 0 auto; }
  body.shared-employee-form #recordForm { flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior: contain; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .employee-type-choice .employee-type-select { padding-right: 100px; }
  .employee-type-choice .employee-share-link { right: 10px; }
  .employee-type-choice .employee-share-link span { display: none; }
  .employee-link-preview { grid-template-columns: 1fr 1fr; }
  .employee-link-preview .employee-link-address,
  .employee-link-preview label { grid-column: 1 / -1; }
  .employee-link-preview .employee-email-link { grid-column: 1 / -1; }
  #recordForm[data-kind="employee"] .wizard-actions,
  #recordForm[data-kind="employee-edit"] .wizard-actions,
  #recordForm[data-kind="booking"] .wizard-actions,
  #recordForm[data-kind="loan"] .wizard-actions { gap: 10px; }
  #recordForm[data-kind="employee"] .wizard-actions .wizard-back,
  #recordForm[data-kind="employee-edit"] .wizard-actions .wizard-back,
  #recordForm[data-kind="booking"] .wizard-actions .wizard-back,
  #recordForm[data-kind="loan"] .wizard-actions .wizard-back { flex-basis: 96px; }
  #recordForm[data-kind="employee"] .wizard-actions .wizard-next,
  #recordForm[data-kind="employee"] .wizard-actions button[type="submit"],
  #recordForm[data-kind="employee-edit"] .wizard-actions .wizard-next,
  #recordForm[data-kind="employee-edit"] .wizard-actions button[type="submit"],
  #recordForm[data-kind="booking"] .wizard-actions .wizard-next,
  #recordForm[data-kind="booking"] .wizard-actions button[type="submit"],
  #recordForm[data-kind="loan"] .wizard-actions .wizard-next,
  #recordForm[data-kind="loan"] .wizard-actions button[type="submit"] {
    flex: 1 1 auto;
    min-width: 0;
  }
}
