/* components/ChildUserWindow.css */
.child-user-layer,
.child-template-layer {
  position: fixed;
  inset: 0;
  z-index: 1800;
  pointer-events: none;
}
.child-user-layer > .vertical-title-window,
.child-template-layer > .vertical-title-window {
  pointer-events: auto;
}
.child-template-layer {
  z-index: 1810;
  background: #162d4d22;
}
.child-user-window {
  width: min(760px, calc(100vw - 24px));
  height: min(710px, calc(100vh - 36px));
}
.child-template-window {
  width: min(720px, calc(100vw - 24px));
  height: min(700px, calc(100vh - 36px));
}
.child-user-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 20px;
  color: var(--skin-1c2b40,#1c2b40);
  background: var(--skin-surface-white,#fff);
  font-size: 14px;
}
.child-user-heading {
  margin-bottom: 16px;
}
.child-user-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
}
.child-user-heading p {
  margin: 5px 0 0;
  color: #63748a;
  font-size: 13px;
}
.child-user-location {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b8d9fd;
  border-radius: 7px;
  background: #eef7ff;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.child-user-location div {
  display: grid;
  gap: 4px;
  flex: 1;
}
.child-user-location > small {
  margin-left: auto;
  color: #64748b;
  white-space: nowrap;
}
.child-user-location small {
  color: #64748b;
}
.child-user-content form {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 12px;
}
.child-user-content fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.child-user-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 15px 18px;
}
.child-user-content label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 550;
}
.child-user-content input:not([type=checkbox]),
.child-user-content select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid #bfccdc;
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--skin-surface-white,#fff);
  color: inherit;
  font-weight: 400;
  font-size: 14px;
}
.child-user-content input:focus,
.child-user-content select:focus {
  outline: 2px solid #90c7ff;
  outline-offset: 1px;
}
.child-user-content button {
  border: 1px solid #bfccdc;
  border-radius: 6px;
  padding: 7px 12px;
  background: #f8fafc;
  color: inherit;
  white-space: nowrap;
  font-size: 13px;
  cursor: pointer;
}
.child-user-content button:hover:not(:disabled) {
  background: #eaf4ff;
  border-color: #80b8ed;
}
.child-user-content button:disabled {
  opacity: .55;
  cursor: default;
}
.child-user-content .primary {
  background: #0879ed;
  border-color: #0879ed;
  color: #fff;
}
.child-user-content .primary:hover:not(:disabled) {
  background: #0866cc;
}
.child-user-template-choice {
  display: flex;
  align-items: center;
  gap: 8px;
}
.child-user-template-choice select {
  flex: 1;
  width: 0;
}
.child-user-password {
  display: flex;
  position: relative;
}
.child-user-password input {
  padding-right: 52px !important;
}
.child-user-password button {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: #52677d;
}
.child-user-wide {
  grid-column: 1/-1;
}
.child-user-hint {
  margin: 0;
  color: #617389;
  font-size: 12px;
  line-height: 1.7;
}
.child-user-warning {
  border: 1px solid #efd78b;
  background: #fff9e8;
  padding: 9px 11px;
  border-radius: 6px;
  color: #725816;
  line-height: 1.6;
  font-size: 13px;
  margin: 0;
}
.child-user-error {
  color: #ad2838;
  background: #fff0f1;
  border: 1px solid #f2bdc5;
  border-radius: 6px;
  padding: 10px;
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.6;
}
.child-user-error button {
  margin-left: 8px;
}
.child-user-success {
  color: #116439;
  background: #ecf9f1;
  padding: 10px;
  border-radius: 6px;
  margin: 0;
  line-height: 1.6;
}
.child-user-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 15px;
  margin-top: auto;
  border-top: 1px solid #e0e7ef;
}
.child-user-empty {
  padding: 14px;
  text-align: center;
  color: #66788e;
}
.child-user-empty button {
  margin-left: 8px;
}
.child-user-job {
  display: grid;
  gap: 6px;
  border: 1px solid #c8d9ed;
  border-radius: 6px;
  padding: 11px;
  background: #f4f8fd;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.child-user-job code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.child-user-job button {
  justify-self: start;
}
.child-template-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.child-template-table {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #d0dbe7;
  border-radius: 6px;
  margin-bottom: 16px;
}
.child-template-table table {
  width: 100%;
  border-collapse: collapse;
}
.child-template-table th,
.child-template-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8ef;
  font-size: 13px;
}
.child-template-table th {
  background: #f1f5fa;
  position: sticky;
  top: 0;
}
.child-template-structure {
  display: grid;
  gap: 8px;
  border: 1px solid #cbd8e5;
  border-radius: 6px;
  padding: 12px;
  margin: 12px 0;
}
.child-template-structure label {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  gap: 8px;
}
.child-template-structure input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #0879ed;
}
.child-template-attribute {
  padding-left: 26px;
}
.child-template-attribute small {
  color: #73849a;
}
.child-user-content h3 {
  font-size: 16px;
  margin: 0 0 12px;
}
.child-user-content fieldset:disabled {
  opacity: .7;
}
@media (max-width: 620px) {
  .child-user-content {
    padding: 13px;
  }
  .child-user-grid {
    grid-template-columns: 1fr;
  }
  .child-user-wide {
    grid-column: auto;
  }
  .child-user-location {
    flex-wrap: wrap;
  }
  .child-user-location > small {
    width: 100%;
    margin-left: 0;
  }
  .child-template-table th,
  .child-template-table td {
    padding: 7px;
  }
  .child-template-attribute small {
    display: none;
  }
}
