.system-work-rule-event-types-main {
  max-width: 1320px;
}

.system-work-rule-event-types-table {
  min-width: 1040px;
  table-layout: fixed;
  width: 100%;
}

.system-work-rule-event-types-table th:nth-child(1),
.system-work-rule-event-types-table td:nth-child(1) {
  width: 140px;
}

.system-work-rule-event-types-table th:nth-child(2),
.system-work-rule-event-types-table td:nth-child(2) {
  width: 180px;
}

.system-work-rule-event-types-table th:nth-child(3),
.system-work-rule-event-types-table td:nth-child(3) {
  width: 120px;
}

.system-work-rule-event-types-table th:nth-child(4),
.system-work-rule-event-types-table td:nth-child(4) {
  width: 110px;
}

.system-work-rule-event-types-table th:nth-child(5),
.system-work-rule-event-types-table td:nth-child(5) {
  width: 100px;
}

.system-work-rule-event-types-table th:nth-child(6),
.system-work-rule-event-types-table td:nth-child(6) {
  width: 88px;
}

.system-work-rule-event-types-table th:nth-child(7),
.system-work-rule-event-types-table td:nth-child(7) {
  width: 82px;
}

.system-work-rule-event-types-table th:nth-child(8),
.system-work-rule-event-types-table td:nth-child(8) {
  width: 70px;
}

.system-work-rule-event-types-table th:nth-child(9),
.system-work-rule-event-types-table td:nth-child(9) {
  width: 76px;
}

.system-work-rule-event-types-table th:nth-child(10),
.system-work-rule-event-types-table td:nth-child(10) {
  width: 64px;
}

.system-work-rule-event-types-code-cell {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.system-work-rule-event-types-usage {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.system-work-rule-event-types-badge.is-attendance {
  background: #eaf2fb;
  border-color: #b7cfe8;
  color: #275b7e;
}

.system-work-rule-event-types-badge.is-period {
  background: #fff6df;
  border-color: #e7cf8e;
  color: #7c5b11;
}

.system-work-rule-event-types-empty {
  color: #6a7882;
  height: 80px;
  text-align: center;
  vertical-align: middle;
}

.system-work-rule-event-types-row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.system-work-rule-event-types-row-button svg {
  height: 16px;
  width: 16px;
}

.system-work-rule-event-types-dialog {
  width: min(920px, calc(100vw - 40px));
}

.system-work-rule-event-types-dialog-body {
  padding: 16px;
}

.system-work-rule-event-types-dialog-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-work-rule-event-types-field,
.system-work-rule-event-types-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.system-work-rule-event-types-field.is-wide {
  grid-column: 1 / -1;
}

.system-work-rule-event-types-toggle {
  align-items: center;
  background: #f7fafb;
  border: 1px solid #d8e1e7;
  border-radius: 6px;
  flex-direction: row;
  min-height: 38px;
  padding: 8px 10px;
}

.system-work-rule-event-types-toggle input {
  height: 18px;
  margin: 0;
  width: 18px;
}

.system-work-rule-event-types-field input[readonly] {
  background: #f3f7f8;
  color: #63727d;
}

@media (max-width: 960px) {
  .system-work-rule-event-types-dialog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .system-work-rule-event-types-dialog-grid {
    grid-template-columns: 1fr;
  }
}
