@import url('./settings-role-builder.css');
@import url('./settings-global.css');
.st-layout,
.st-dialog {
  --st-accent: #ed6e31;
  --st-ink: #26354b;
  --st-line: #dbe3ec;
  --st-bg: #f1f5f9;
  color: var(--st-ink);
  font:
    14px/1.5 Inter,
    Arial,
    sans-serif;
}
.st-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: calc(100dvh - 148px);
  background: var(--st-bg);
  align-items: start;
}
.st-nav {
  background: white;
  border-right: 1px solid var(--st-line);
  padding: 19px 14px;
  min-height: 100%;
  min-width: 0;
}
.st-nav h2,
.st-header h1,
.st-dialog h2 {
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 0;
  color: #1d2c41;
}
.st-nav h2 {
  font-size: 21px;
  padding: 0 9px 14px;
}
.st-nav section {
  margin: 17px 0;
}
.st-nav h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #636f80;
  margin: 0 8px 5px;
}
.st-nav summary,
.st-nav a {
  border-radius: 5px;
  padding: 7px 9px;
  display: block;
  line-height: 1.3;
  font-size: 13px;
  color: #344357;
  text-decoration: none;
}
.st-nav summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}
.st-nav summary::-webkit-details-marker {
  display: none;
}
.st-nav summary:after {
  content: '›';
  transition: transform 0.12s;
}
.st-nav details[open] > summary:after {
  transform: rotate(90deg);
}
.st-nav details > div {
  margin: 3px 0 6px 8px;
  padding-left: 6px;
  border-left: 1px solid var(--st-line);
}
.st-nav a[aria-current='page'] {
  color: #ab4216;
  background: #fff0e8;
  font-weight: 650;
}
.st-nav a:hover,
.st-nav summary:hover {
  background: #f5f7fa;
}
.st-mobile {
  display: none;
}
.st-main {
  padding: 22px clamp(12px, 2.1vw, 34px) 60px;
  min-width: 0;
}
.st-trail {
  font-size: 12px;
  color: #5c6c81;
  margin: 0 0 8px;
}
.st-trail span {
  padding: 0 5px;
}
.st-header h1 {
  font-size: clamp(22px, 2vw, 29px);
  margin: 0 0 20px;
}
.st-card {
  background: white;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: clamp(13px, 2vw, 25px);
  box-shadow: 0 1px 3px #1c344412;
}
.st-layout button,
.st-layout input,
.st-layout textarea,
.st-layout select,
.st-dialog button,
.st-dialog input,
.st-dialog textarea,
.st-dialog select {
  font: inherit;
  max-width: 100%;
  box-sizing: border-box;
}
.st-layout :focus-visible,
.st-dialog :focus-visible {
  outline: 3px solid #2976bc;
  outline-offset: 2px;
}
.st-btn {
  color: #334155;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 6px;
  font-weight: 550;
  min-height: 34px;
  padding: 5px 12px;
  cursor: pointer;
}
.st-btn:hover {
  background: #f4f7fa;
}
.st-btn.primary,
.st-btn[data-setting='add'] {
  background: #da622b;
  color: #fff;
  border-color: #c65524;
}
.st-btn.primary:hover,
.st-btn[data-setting='add']:hover {
  background: #bd4c1d;
}
.st-btn:disabled {
  opacity: 0.48;
  cursor: default;
}
.st-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: start;
}
.st-grid > * {
  min-width: 0;
}
.st-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st-field > label {
  font-weight: 600;
  font-size: 13px;
}
.st-field label span {
  color: #c14b21;
}
.st-field > small,
.st-note {
  color: #59677a;
  line-height: 1.4;
  font-size: 12px;
}
.st-field > input:not([type='checkbox']),
.st-field > textarea,
.st-field > select,
.st-toolbar input,
footer [name='size'] {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 9px;
  min-height: 36px;
  background: #fff;
  color: #233448;
}
.st-field textarea {
  resize: vertical;
}
.st-check {
  align-self: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}
.st-check input {
  width: 17px;
  height: 17px;
  accent-color: #d45f2f;
}
.st-wide,
.st-rows {
  grid-column: 1/-1;
}
.st-rows {
  border: 1px solid var(--st-line);
  border-radius: 8px;
  padding: 12px;
}
.st-rows legend {
  font-weight: 650;
  padding: 0 6px;
}
.st-repeat {
  padding: 10px 12px 14px;
  border: 1px solid var(--st-line);
  border-radius: 7px;
  margin-bottom: 9px;
  background: #fafbfd;
}
.st-row-actions,
.st-toolbar,
.st-actions,
.st-card footer,
.st-dialog footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-row-actions {
  justify-content: flex-end;
  margin: 0 0 8px;
}
.st-row-actions .st-btn,
.st-actions .st-btn {
  min-height: 28px;
  font-size: 12px;
  padding: 3px 8px;
}
.st-card footer,
.st-dialog footer {
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--st-line);
  flex-wrap: wrap;
}
.st-table {
  padding: 0;
}
.st-toolbar {
  padding: 15px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.st-toolbar input {
  width: min(260px, 100%);
}
.st-scroll {
  overflow: auto;
  width: 100%;
}
.st-scroll table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
.st-scroll th,
.st-scroll td {
  padding: 11px 14px;
  border-bottom: 1px solid #e6ebf2;
  vertical-align: middle;
}
.st-scroll th {
  white-space: nowrap;
  background: #f6f8fb;
  font-weight: 600;
  color: #495971;
}
.st-scroll td {
  overflow-wrap: anywhere;
}
.st-empty {
  padding: 30px;
  text-align: center;
  color: #657387;
}
.st-table footer {
  margin: 0;
  padding: 12px 15px;
  font-size: 12px;
}
.st-table footer label {
  margin-right: auto;
}
.st-table footer select {
  margin-left: 5px;
}
.st-error {
  color: #aa281e;
  line-height: 1.4;
}
.st-error:empty {
  display: none;
}
.st-dialog {
  border: none;
  border-left: 1px solid #dce3ec;
  padding: 0;
  width: min(620px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  box-shadow: -6px 0 30px #14213028;
}
.st-dialog::backdrop {
  background: #18223368;
}
.st-dialog form {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.st-dialog header,
.st-dialog footer {
  padding: 16px 20px;
  margin: 0;
  background: white;
}
.st-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--st-line);
}
.st-dialog h2 {
  font-size: 20px;
}
.st-dialog-content {
  padding: 20px;
  flex: 1;
  overflow: auto;
}
@media (max-width: 950px) {
  .st-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .st-nav {
    padding: 14px 8px;
  }
}
@media (max-width: 720px) {
  .st-layout {
    display: block;
  }
  .st-desktop,
  .st-nav > h2 {
    display: none;
  }
  .st-mobile {
    display: block;
  }
  .st-nav {
    min-height: 0;
    border: 0;
    border-bottom: 1px solid var(--st-line);
    padding: 6px 10px;
  }
  .st-mobile > summary {
    font-size: 14px;
  }
  .st-mobile > nav {
    max-height: 55vh;
    overflow: auto;
  }
  .st-main {
    padding: 14px 10px 35px;
  }
  .st-header h1 {
    margin-bottom: 12px;
  }
  .st-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-toolbar {
    padding: 10px;
  }
  .st-scroll td,
  .st-scroll th {
    padding: 8px;
  }
  .st-dialog-content {
    padding: 16px;
  }
  .st-table footer {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st-nav summary:after {
    transition: none;
  }
}

.st-layout,
.st-dialog {
  --st-accent: #113255;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.st-layout {
  grid-template-columns: 256px minmax(0, 1fr);
}
.st-nav h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding-top: 2px;
  padding-bottom: 12px;
}
.st-nav h2:before {
  content: '⚙';
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #113255;
  color: white;
  font-size: 17px;
}
.st-filter {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 7px 10px;
  color: #17283d;
}
.st-nav a[aria-current='page'] {
  color: #113255;
  background: #edf2f7;
}
.st-btn.primary,
.st-btn[data-setting='add'] {
  background: #173f68;
  color: white;
  border-color: #173f68;
}
.st-btn.primary:hover,
.st-btn[data-setting='add']:hover {
  background: #12314e;
}
.st-check input {
  accent-color: #173f68;
}
.st-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 15px;
}
.st-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  background: white;
  padding: 13px 16px;
}
.st-metrics span {
  font-size: 12px;
  color: #526274;
}
.st-metrics strong {
  font-size: 23px;
  line-height: 1.2;
  color: #173f68;
}
.st-metrics > div:nth-child(2) strong {
  color: #157554;
}
.st-metrics > div:nth-child(3) strong {
  color: #a56412;
}
.st-scroll th button {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 28px;
  white-space: nowrap;
  font-size: inherit;
  color: inherit;
}
@media (max-width: 950px) {
  .st-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .st-nav > h2 {
    display: none;
  }
  .st-mobile .st-filter {
    margin-top: 8px;
  }
  .st-metrics {
    gap: 5px;
  }
  .st-metrics > div {
    padding: 8px;
  }
  .st-metrics strong {
    font-size: 18px;
  }
  .st-metrics span {
    font-size: 11px;
  }
}
.st-direct {
  background: #f8fafc;
  color: #26354b;
  min-height: 100%;
  padding: clamp(16px, 3vw, 36px);
  font:
    14px/1.5 'Segoe UI',
    Arial,
    sans-serif;
  --st-line: #dbe3ec;
  --st-bg: #f1f5f9;
}
.st-direct > header {
  margin: 0 0 22px;
}
.st-direct h1 {
  color: #065f46;
  font-size: clamp(23px, 2.3vw, 32px);
  margin: 0 0 5px;
}
.st-direct h2 {
  font-size: 18px;
  color: #065f46;
  margin: 0 0 13px;
}
.st-direct .st-card {
  margin: 0 0 16px;
}
.st-direct .st-card p,
.st-direct > header p {
  color: #526277;
  margin: 0;
}
.st-direct .st-btn.primary {
  background: #065f46;
  color: white;
  border-color: #065f46;
}
.st-no-due h1 {
  color: #7c2d12;
}
.st-no-due .st-card {
  text-align: center;
}
.st-notice {
  background: #fffbeb;
  border: 1px solid #f1bc62;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}
.st-notice p {
  margin: 5px 0 0;
}
.st-direct output:not(:empty) {
  display: block;
  margin: 12px 0 0;
  padding: 10px;
  background: #f1f5f9;
  border-radius: 5px;
}
