.employee-generator-window {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3600;
}

.employee-generator-window.open {
  display: block;
}

.employee-generator-window__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 16, 0.58);
  backdrop-filter: blur(12px);
}

.employee-generator-window__panel {
  position: absolute;
  inset: 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(196, 214, 207, 0.92);
  border-radius: 8px;
  background: #f5f8f7;
  box-shadow: 0 34px 110px rgba(9, 24, 20, 0.32);
}

.employee-generator-window__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(211, 224, 221, 0.96);
  background: #ffffff;
}

.employee-generator-window__head span {
  color: #087a43;
  font-size: 12px;
  font-weight: 950;
}

.employee-generator-window__head h2 {
  margin: 4px 0 6px;
  color: #102a24;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.employee-generator-window__head p {
  max-width: 940px;
  margin: 0;
  color: #5d716b;
  font-size: 13px;
  line-height: 1.6;
}

.employee-generator-window__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.employee-generator-window__quick,
.employee-generator-window__close {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d4e2dd;
  border-radius: 6px;
  background: #ffffff;
  color: #18342d;
  font-weight: 900;
  cursor: pointer;
}

.employee-generator-window__quick {
  border-color: rgba(8, 122, 67, 0.28);
  background: #e9f7ef;
  color: #087a43;
}

.employee-generator-window__body {
  min-width: 0;
  overflow: auto;
  padding: 18px;
}

.employee-generator-window__body .smart-manual-generator.smart-generator-workbook {
  display: grid;
  gap: 14px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.employee-generator-window__body .smart-generator-workbook-head,
.employee-generator-window__body .smart-manual-generator.has-result .smart-generator-workbook-head {
  position: sticky;
  top: -18px;
  z-index: 3;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(8, 72, 45, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(19, 42, 34, 0.08);
}

.employee-generator-window__body .smart-generator-workbook-head h2,
.employee-generator-window__body .smart-manual-generator.has-result .smart-generator-workbook-head h2 {
  max-width: none;
  margin: 4px 0 6px;
  color: #102a24;
  font-size: 24px;
  line-height: 1.2;
}

.employee-generator-window__body .smart-generator-workbook-head p {
  max-width: 960px;
  color: #5d716b;
  font-size: 13px;
}

.employee-generator-window__body .smart-generator-workbook-status {
  min-width: 220px;
}

.employee-generator-window__body .smart-generator-workbook-grid,
.employee-generator-window__body .smart-manual-generator.has-result .smart-generator-workbook-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

.employee-generator-window__body .smart-generator-conditions,
.employee-generator-window__body .smart-manual-generator.has-result .smart-generator-conditions {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(8, 72, 45, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(20, 42, 34, 0.07);
}

.employee-generator-window__body .smart-generator-conditions .smart-manual-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.employee-generator-window__body .smart-manual-core-grid,
.employee-generator-window__body .smart-manual-grid.self-service-filters {
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
}

.employee-generator-window__body .smart-manual-core-grid .form-field.full,
.employee-generator-window__body .smart-manual-grid.self-service-filters .form-field.full {
  grid-column: span 2;
}

.employee-generator-window__body .smart-menu-advanced-box {
  margin-top: 8px;
}

.employee-generator-window__body .smart-generator-result-pane,
.employee-generator-window__body .smart-manual-generator.has-result .smart-generator-result-pane {
  position: static;
  display: grid;
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding: 16px;
  border: 1px solid rgba(8, 122, 67, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(20, 42, 34, 0.09);
}

.employee-generator-window__body .smart-generator-result-pane .smart-generated-sheet-wrap {
  max-height: none;
  overflow: auto;
}

.employee-generator-window-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .employee-generator-window__body .smart-manual-core-grid,
  .employee-generator-window__body .smart-manual-grid.self-service-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .employee-generator-window__panel {
    inset: 0;
    border-radius: 0;
  }

  .employee-generator-window__head,
  .employee-generator-window__body .smart-generator-workbook-head,
  .employee-generator-window__body .smart-manual-generator.has-result .smart-generator-workbook-head {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start;
  }

  .employee-generator-window__actions,
  .employee-generator-window__quick,
  .employee-generator-window__close {
    width: 100%;
  }

  .employee-generator-window__body .smart-manual-core-grid,
  .employee-generator-window__body .smart-manual-grid.self-service-filters,
  .employee-generator-window__body .smart-manual-core-grid .form-field.full,
  .employee-generator-window__body .smart-manual-grid.self-service-filters .form-field.full {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-column: auto;
  }
}
