.lz-long-shift-modal[hidden] {
  display: none !important;
}

html.lz-long-shift-open,
body.lz-long-shift-open {
  overflow: hidden !important;
}

.lz-long-shift-modal {
  align-items: center;
  background: rgba(15, 23, 42, .48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 12000;
}

.lz-long-shift-dialog {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  color: #172033;
  max-height: min(720px, calc(100vh - 40px));
  max-width: 620px;
  overflow: hidden;
  width: 100%;
}

.lz-long-shift-header {
  align-items: flex-start;
  border-bottom: 1px solid #e8edf4;
  display: flex;
  gap: 14px;
  padding: 20px 22px 17px;
}

.lz-long-shift-icon {
  align-items: center;
  background: #fff4d6;
  border: 1px solid #f7cf72;
  border-radius: 50%;
  color: #9a5b00;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 23px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.lz-long-shift-title {
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.25;
  margin: 1px 0 4px;
}

.lz-long-shift-subtitle {
  color: #64748b;
  font-size: .9rem;
  line-height: 1.45;
  margin: 0;
}

.lz-long-shift-body {
  max-height: min(480px, calc(100vh - 230px));
  overflow-y: auto;
  padding: 18px 22px 20px;
}

.lz-long-shift-lead {
  font-size: .98rem;
  line-height: 1.5;
  margin: 0 0 14px;
}

.lz-long-shift-list {
  display: grid;
  gap: 8px;
}

.lz-long-shift-row {
  align-items: center;
  background: #fffaf0;
  border: 1px solid #f3d69a;
  border-radius: 7px;
  display: grid;
  gap: 3px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 11px 12px;
}

.lz-long-shift-row-label {
  font-size: .9rem;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lz-long-shift-row-time {
  color: #64748b;
  font-size: .82rem;
  grid-column: 1;
}

.lz-long-shift-row-duration {
  color: #8a5200;
  font-size: .88rem;
  font-weight: 750;
  grid-column: 2;
  grid-row: 1 / span 2;
  white-space: nowrap;
}

.lz-long-shift-hint {
  color: #64748b;
  font-size: .82rem;
  line-height: 1.45;
  margin: 14px 0 0;
}

.lz-long-shift-footer {
  align-items: center;
  background: #fbfcfe;
  border-top: 1px solid #e8edf4;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  padding: 14px 22px;
}

.lz-long-shift-footer .btn {
  min-width: 118px;
}

@media (max-width: 575.98px) {
  .lz-long-shift-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .lz-long-shift-dialog {
    max-height: calc(100vh - 20px);
  }

  .lz-long-shift-header,
  .lz-long-shift-body,
  .lz-long-shift-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lz-long-shift-footer .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}
