@layer components {
/* Employee component styles */

.employee {
  width: 100%;
  max-width: 98%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  line-height: var(--line-height-loose);
  padding: var(--spacing-4);
  margin-block-end: var(--spacing-4);
  border: var(--border-width-thick) solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text);
}

.employee.header {
  display: none;
}

.employee form {
  width: 100%;
}

.employee .document {
  overflow: auto;
}

@media screen and (min-width: 800px) {
  .employee,
  .employee.header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-block: var(--spacing-4);
    position: relative;
  }

  .employee > *,
  .employee.header > * {
    max-width: 20%;
    flex-grow: 1;
    text-align: center;
    overflow: auto;
  }
}

#employee-form {
  padding: var(--spacing-4);
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#employee-form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

#employee-form form .field {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
}
