.notepad-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.notepad-container > .win-menubar {
  border-bottom: none;
  box-shadow: none;
}

.notepad-textarea {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  resize: none;
  padding: 2px 2px 2px 4px;
  font-family: var(--win-font-mono);
  font-size: 13px;
  line-height: 16px;
  background-color: #ffffff;
  color: #000000;
  box-shadow:
    inset 1px 1px 0 var(--win-border-dark),
    inset -1px -1px 0 var(--win-border-light),
    inset 2px 2px 0 var(--win-border-darkest),
    inset -2px -2px 0 var(--win-border-midlight);
  white-space: pre;
  overflow-x: scroll;
  overflow-y: scroll;
}

.notepad-textarea.wrap {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: hidden;
}

.np-find {
  display: flex;
  gap: 10px;
  padding: 10px 8px 8px 10px;
  font-size: 11px;
}

.np-find-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.np-find-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.np-find-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

.np-find-options {
  align-items: flex-end;
  justify-content: space-between;
}

.np-find-check {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.np-find-dir {
  display: flex;
  gap: 10px;
  padding: 2px 8px 5px;
  border: 1px solid var(--win-border-dark);
  box-shadow: inset 1px 1px 0 var(--win-border-light), 1px 1px 0 var(--win-border-light);
}

.np-find-dir legend {
  padding: 0 2px;
}

.np-find-dir label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.np-find-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.np-find-buttons .win-btn {
  min-width: 82px;
}
