@import url("https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&display=swap");

:root {
  --bl-shell-width: 248px;
  --bl-shell-blue: #0649ed;
  --bl-shell-blue-dark: #0838af;
  --bl-shell-ink: #152039;
  --bl-shell-muted: #65718a;
  --bl-shell-line: #dce3f0;
}

.anuphan{
  font-family: "Anuphan", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}
body.bl-has-shell :where(h1, h2, h3, h4, .bl-shell-brand strong, .bl-shell-page-title strong, .topbar .brand strong) {
  font-family: "Anuphan", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

body.bl-has-shell main p {
  text-wrap: pretty;
}

body.bl-has-shell.bl-shell-ready {
  min-height: 100dvh;
  padding-inline-start: var(--bl-shell-width);
}

.bl-shell-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--bl-shell-width);
  flex-direction: column;
  overflow: hidden;
  border-inline-end: 1px solid var(--bl-shell-line);
  background: #fff;
  color: var(--bl-shell-ink);
  box-shadow: 4px 0 18px rgb(23 49 96 / 5%);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.bl-shell-sidebar *,
.bl-shell-menu-button,
.bl-shell-menu-button *,
.bl-shell-overlay {
  box-sizing: border-box;
}

.bl-shell-brand {
  display: flex;
  min-height: 76px;
  align-items: center;
  padding: 0 1.15rem;
  border-block-end: 1px solid #edf0f6;
}

.bl-shell-brand-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.72rem;
  color: var(--bl-shell-ink);
  text-decoration: none;
}

.bl-shell-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.bl-shell-brand strong,
.bl-shell-brand small {
  display: block;
}

.bl-shell-brand strong {
  color: var(--bl-shell-blue);
  font-size: 17px;
  line-height: 1.25;
}

.bl-shell-brand small {
  margin-top: 0.08rem;
  color: var(--bl-shell-blue-dark);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.bl-shell-navigation {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.72rem;
}

.bl-shell-group + .bl-shell-group {
  margin-top: 1.15rem;
}

.bl-shell-group-label {
  margin: 0 0 0.42rem;
  padding: 0 0.72rem;
  color: var(--bl-shell-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.bl-shell-list {
  display: grid;
  gap: 0.28rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bl-shell-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.72rem;
  border-radius: 10px;
  padding: 0.65rem 0.72rem;
  color: #3f4a61;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.bl-shell-link:hover {
  background: #f3f6fc;
  color: var(--bl-shell-blue);
}

.bl-shell-link[aria-current="page"] {
  background: #eaf0ff;
  color: var(--bl-shell-blue);
}

.bl-shell-link:focus-visible,
.bl-shell-menu-button:focus-visible,
.bl-shell-close:focus-visible,
.bl-shell-stop-support:focus-visible {
  outline: 3px solid rgb(6 73 237 / 24%);
  outline-offset: 2px;
}

.bl-shell-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bl-shell-footer {
  padding: 0.85rem 0.9rem max(0.85rem, env(safe-area-inset-bottom));
  border-block-start: 1px solid #edf0f6;
  background: #fbfcff;
}

.bl-shell-user {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.bl-shell-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #eaf0ff;
  color: var(--bl-shell-blue);
  font-size: 12px;
  font-weight: 900;
}

.bl-shell-user strong,
.bl-shell-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-shell-user strong {
  font-size: 13px;
  line-height: 1.35;
}

.bl-shell-user small {
  margin-top: 0.12rem;
  color: var(--bl-shell-muted);
  font-size: 11px;
  line-height: 1.4;
}

.bl-shell-support {
  margin-top: 0.75rem;
  border: 1px solid #f2d675;
  border-radius: 10px;
  padding: 0.7rem;
  background: #fff9db;
  color: #6f4e00;
  font-size: 11px;
  line-height: 1.45;
}

.bl-shell-support strong,
.bl-shell-support span {
  display: block;
}

.bl-shell-support span {
  margin-top: 0.2rem;
}

.bl-shell-stop-support {
  width: 100%;
  margin-top: 0.55rem;
  border: 1px solid #b08900;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: #fff;
  color: #6f4e00;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bl-shell-menu-button,
.bl-shell-close {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid var(--bl-shell-line);
  border-radius: 10px;
  background: #fff;
  color: var(--bl-shell-blue);
  cursor: pointer;
}

.bl-shell-page-title {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.bl-shell-page-title strong {
  overflow: hidden;
  color: var(--bl-shell-ink);
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bl-shell-page-title small {
  color: var(--bl-shell-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

@media (min-width: 901px) {
  body.bl-has-shell.bl-shell-ready > .topbar > .brand,
  body.bl-has-shell.bl-shell-ready main > .topbar > .brand {
    display: none;
  }

  body.bl-has-shell.bl-shell-ready > .topbar .bl-shell-page-title,
  body.bl-has-shell.bl-shell-ready main > .topbar .bl-shell-page-title {
    margin-inline-end: auto;
  }
}

.bl-shell-menu-button svg,
.bl-shell-close svg {
  width: 21px;
  height: 21px;
}

.bl-shell-overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: none;
  background: rgb(9 20 43 / 42%);
  opacity: 0;
}

@media (max-width: 900px) {
  body.bl-has-shell.bl-shell-ready {
    padding-inline-start: 0;
  }

  .bl-shell-sidebar {
    width: min(86vw, 300px);
    transform: translateX(-102%);
    transition: transform 160ms ease-out;
  }

  .bl-shell-sidebar[data-open="true"] {
    transform: translateX(0);
  }

  .bl-shell-sidebar .bl-shell-brand {
    padding-inline-end: 0.75rem;
  }

  .bl-shell-close {
    display: grid;
    margin-inline-start: auto;
  }

  .bl-shell-menu-button {
    display: grid;
  }

  .bl-shell-page-title {
    display: none;
  }

  .bl-shell-overlay {
    display: block;
    pointer-events: none;
    transition: opacity 160ms ease-out;
  }

  .bl-shell-overlay[data-open="true"] {
    pointer-events: auto;
    opacity: 1;
  }

  body.bl-shell-open {
    overflow: hidden;
  }

  body.bl-has-shell > .topbar,
  body.bl-has-shell main > .topbar {
    gap: 0.75rem;
  }
}

@media (max-width: 560px) {
  body.bl-has-shell > .topbar .brand small,
  body.bl-has-shell main > .topbar .brand small {
    display: none;
  }

  body.bl-has-shell > .topbar .operator,
  body.bl-has-shell > .topbar .identity,
  body.bl-has-shell main > .topbar .operator,
  body.bl-has-shell main > .topbar .identity {
    margin-inline-start: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-shell-sidebar,
  .bl-shell-overlay {
    transition: none;
  }
}
