:root {
  font-family: Arial, "Malgun Gothic", sans-serif;
  color: #303b44;
  background: #f3f5f7;
  font-size: 13px;
  --blue: #0076ad;
  --line: #d9dfe4;
  --muted: #6b7782;
  --green: #328441;
  --red: #c23f38;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #b5c0c8;
  border-radius: 3px;
  background: #fff;
  color: #36444e;
  padding: 8px 14px;
}
button:hover {
  background: #edf5fa;
  border-color: #77a6bf;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
button.primary:hover {
  background: #005f90;
}
button.link {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 4px 0;
  text-align: left;
}
button.small {
  padding: 5px 9px;
  font-size: 12px;
}
button.icon {
  padding: 4px 7px;
}
input,
select,
textarea {
  border: 1px solid #bac4cc;
  background: white;
  border-radius: 2px;
  color: #34424c;
  padding: 8px 10px;
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--blue);
}
:focus-visible {
  outline: 2px solid #009de0;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 7px;
}
h2 {
  font-size: 17px;
  font-weight: 400;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.7;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: Consolas, monospace;
}
.primary-text {
  color: var(--blue);
}
.skip {
  position: absolute;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 0;
}
.empty {
  padding: 44px;
  text-align: center;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spread {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
}
.notice {
  padding: 12px 15px;
  background: #eef6fa;
  border-left: 3px solid #138bc1;
  font-size: 12px;
  line-height: 1.7;
}
.notice.warning {
  background: #fff8e9;
  border-color: #dba335;
}
.notice.error {
  background: #fff0ee;
  border-color: var(--red);
  color: #9a332d;
  white-space: pre-line;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 3px;
  font-size: 11px;
  padding: 4px 7px;
  background: #eef2f5;
  color: #586876;
  white-space: nowrap;
}
.badge.green {
  background: #ebf6ed;
  color: #287c3b;
}
.badge.red {
  background: #fbeceb;
  color: #b33731;
}
.badge.amber {
  background: #fff3d9;
  color: #986516;
}
.badge.blue {
  background: #e8f3fa;
  color: #006eab;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
}
.toolbar input[type="search"] {
  width: 260px;
}
.panel {
  border: 1px solid var(--line);
  background: white;
  margin-bottom: 18px;
  border-radius: 3px;
}
.panel-title {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-body {
  padding: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  background: #f5f7f9;
  color: #586571;
  font-weight: 400;
  font-size: 11px;
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #e9edf0;
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f5faff;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}
.field label {
  font-size: 12px;
  color: #53616d;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.full {
  grid-column: 1/-1;
}
dialog {
  width: min(760px, calc(100vw - 30px));
  padding: 0;
  border: 1px solid #b5bfc7;
  border-radius: 4px;
  box-shadow: 0 12px 50px #152d4955;
  max-height: 90vh;
  color: #34424c;
}
dialog::backdrop {
  background: #14253770;
}
.dialog-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  margin: 0;
  font-size: 21px;
}
.dialog-body {
  padding: 24px;
  overflow: auto;
  max-height: 65vh;
}
.dialog-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafbfc;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  padding: 0 20px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 14px 0;
  white-space: nowrap;
}
.tabs button.active {
  color: var(--blue);
  box-shadow: inset 0 -3px var(--blue);
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 55px;
  background: #243c4b;
  color: white;
  padding: 13px 20px;
  border-radius: 4px;
  z-index: 50;
  max-width: min(520px, 90vw);
  box-shadow: 0 4px 18px #0002;
  display: none;
}
#toast.show {
  display: block;
}
progress {
  width: 100%;
  accent-color: var(--blue);
  height: 8px;
  border: 0;
}
.actions {
  display: flex;
  gap: 5px;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
}
.checkline input {
  width: auto;
}
.spacer {
  height: 18px;
}
