:root {
  --navy: #121a29;
  --navy-soft: #1d2b42;
  --gold: #fbbf1b;
  --gold-hover: #e9ab08;
  --ink: #182233;
  --muted: #738198;
  --bg: #f3f5f8;
  --line: #e5e9ef;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Noto Sans Thai", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 248px;
  flex: 0 0 248px;
  background: #12171f;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  position: sticky;
  top: 0;
  overflow-y: auto;
  border-right: 1px solid #242d39;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 18px;
  border-bottom: 1px solid #252c37;
  color: #fff;
  text-decoration: none;
}
.brand:hover {
  color: #fff;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--gold);
  color: #18212f;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
.brand-copy small {
  margin-top: 5px;
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
}
.sidebar nav {
  padding: 13px 10px;
}
.sidebar-caption {
  margin: 13px 9px 10px;
  color: #8290a5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.sidebar-caption-group {
  margin-top: 23px;
}
.sidebar .nav-item,
.offcanvas .nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 42px;
  margin: 3px 0;
  padding: 10px 13px;
  border-radius: 8px;
  color: #aeb9c8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.sidebar .nav-item i,
.offcanvas .nav-item i {
  width: 17px;
  font-size: 16px;
  text-align: center;
}
.sidebar .nav-item:hover,
.offcanvas .nav-item:hover {
  background: #273344;
  color: #fff;
}
.sidebar .nav-item.active,
.offcanvas .nav-item.active {
  background: var(--gold);
  color: #1a2330;
}
.sidebar .nav-item.active:hover,
.offcanvas .nav-item.active:hover {
  background: var(--gold-hover);
  color: #1a2330;
}
.nav-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto 0 0;
  padding: 18px;
  border-top: 1px solid #29313c;
  background: #1b222c;
  font-size: 11px;
}
.sidebar-foot strong,
.sidebar-foot small {
  display: block;
}
.sidebar-foot small {
  margin-top: 2px;
  color: #a8b5c5;
}
.online-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #4dd593;
  box-shadow: 0 0 0 4px rgba(77, 213, 147, 0.12);
}
.main-area {
  min-width: 0;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 30px;
  gap: 15px;
}
.topbar-heading {
  min-width: 0;
}
.topbar-eyebrow {
  display: block;
  color: #d69400;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.top-title {
  margin-top: 3px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-title-divider {
  color: #aab3c1;
  margin: 0 3px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-left: auto;
}
.icon-button,
.topbar-menu {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #69788d;
  background: #fff;
  text-decoration: none;
  font-size: 16px;
}
.topbar .icon-button {
  position: relative;
}
.topbar .icon-button > .badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}
.topbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.topbar-menu .bi-list {
  display: block;
  flex: none;
  width: 20px;
  height: 16px;
  font-size: 0;
  background:
    linear-gradient(currentColor, currentColor) center top/20px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/20px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center bottom/20px 2px no-repeat;
}
.topbar-menu .bi-list::before {
  content: none;
}
.icon-button:hover,
.topbar-menu:hover {
  color: #182233;
  background: #f7f8fa;
  border-color: #d6dde7;
}
.user-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a2330;
  font-size: 13px;
  font-weight: 700;
}
.profile-avatar-link {
  overflow: hidden;
  text-decoration: none;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.profile-avatar-link:hover {
  color: #1a2330;
  box-shadow: 0 0 0 3px rgba(251, 191, 27, 0.3);
  transform: translateY(-1px);
}
.profile-avatar-link:focus-visible {
  outline: 2px solid #c78900;
  outline-offset: 3px;
}
.profile-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-name {
  font-size: 12px;
  line-height: 1.35;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-name strong,
.user-name small {
  display: block;
}
.user-name small {
  color: var(--muted);
}
.logout-button {
  padding: 7px 11px;
  border-color: var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.content {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  flex: 1;
}
.app-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  background: linear-gradient(#fff, #fafbfc);
}
.app-footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 23px 32px;
  color: #748197;
  font-size: 12px;
  font-weight: 600;
}
.app-footer-inner span {
  margin: 0 4px;
  color: #a4afbd;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(17, 28, 47, 0.035);
}
.section-heading {
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 7px;
  color: var(--ink);
}
.section-subtitle {
  color: var(--muted);
  font-size: 13px;
}
.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.btn {
  font-weight: 600;
  border-radius: 8px;
}
.btn-primary,
.btn-primary:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: #1d2633;
}
.btn-primary:hover,
.btn-primary:active {
  background: var(--gold-hover) !important;
  border-color: var(--gold-hover) !important;
  color: #1d2633 !important;
}
.btn-outline-primary {
  border-color: #e5b739;
  color: #9b6b00;
}
.btn-outline-primary:hover,
.btn-outline-primary:active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1d2633;
}
.btn-outline-secondary {
  border-color: #dce2eb;
  color: #42526a;
}
.btn-outline-secondary:hover {
  background: #f1f3f6;
  border-color: #cbd4df;
  color: #202c3d;
}
.text-primary {
  color: #d39400 !important;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #40516b;
}
.form-control,
.form-select {
  padding: 10px 12px;
  border-color: #dfe5ed;
  border-radius: 8px;
  font-size: 13px;
}
.form-control:focus,
.form-select:focus {
  border-color: #e7ac10;
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 27, 0.17);
}
.form-check-input:checked {
  background-color: #e6a900;
  border-color: #e6a900;
}
.form-check-input:focus {
  border-color: #e6a900;
  box-shadow: 0 0 0 0.2rem rgba(251, 191, 27, 0.17);
}
.table {
  --bs-table-color: var(--ink);
  --bs-table-border-color: #ecf0f4;
  font-size: 13px;
}
.table thead th {
  color: #68788f;
  font-size: 11px;
  font-weight: 700;
  border-bottom-width: 1px;
}
.table tbody tr:hover {
  --bs-table-bg: #fffdf6;
}
.scanner-status-card {
  overflow: hidden;
  padding: 0;
  background: #fff;
}
.scanner-status-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.scanner-status-heading-icon,
.scanner-device-icon {
  display: grid;
  place-items: center;
  flex: none;
  color: #946600;
  background: #fff5d6;
}
.scanner-status-heading-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 21px;
}
.scanner-status-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.scanner-status-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.scanner-status-count {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #59677c;
  background: #f3f5f8;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.scanner-status-list {
  padding: 0 24px;
}
.scanner-status-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 15px 0;
}
.scanner-status-item + .scanner-status-item {
  border-top: 1px solid #eef1f5;
}
.scanner-device-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #526783;
  background: #f2f5f9;
  font-size: 18px;
}
.scanner-device-details,
.scanner-device-connection {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.scanner-device-details strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.scanner-device-details > span,
.scanner-device-connection time {
  color: var(--muted);
  font-size: 11px;
}
.scanner-device-connection {
  align-items: flex-end;
  margin-left: auto;
  text-align: right;
}
.scanner-health {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.scanner-health > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.scanner-health.is-online {
  color: #14794f;
  background: #eaf7f0;
}
.scanner-health.is-offline {
  color: #697586;
  background: #f0f2f5;
}
.scanner-health.is-warning {
  color: #996900;
  background: #fff5db;
}
.scanner-status-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 22px 24px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 575.98px) {
  .scanner-status-heading {
    gap: 10px;
    padding: 16px;
  }
  .scanner-status-heading-icon {
    width: 40px;
    height: 40px;
  }
  .scanner-status-heading p {
    max-width: 190px;
    line-height: 1.5;
  }
  .scanner-status-count {
    padding: 4px 8px;
    font-size: 10px;
  }
  .scanner-status-list {
    padding: 0 16px;
  }
  .scanner-status-item {
    gap: 10px;
  }
  .scanner-device-icon {
    width: 36px;
    height: 36px;
  }
  .scanner-device-details strong {
    overflow-wrap: anywhere;
  }
  .scanner-device-connection time {
    font-size: 10px;
  }
  .scanner-health {
    padding: 4px 8px;
    font-size: 10px;
  }
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(
    circle at top right,
    #263853 0,
    #172237 30%,
    #f3f5f8 30%
  );
}
.auth-wrap:has(.login-layout) {
  padding: 36px;
  background: #edf1f6;
}
.auth-card {
  width: min(100%, 460px);
  padding: 36px;
}
.auth-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold);
  color: #18212f;
  font-size: 23px;
  margin-bottom: 22px;
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  width: min(100%, 1120px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid #e3e8ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(23, 36, 56, 0.14);
}
.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  padding: 42px 48px;
  color: #fff;
  background: linear-gradient(145deg, #101a2a 0%, #192b43 58%, #233b58 100%);
}
.login-story::before,
.login-story::after {
  position: absolute;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}
.login-story::before {
  width: 440px;
  height: 440px;
  right: -220px;
  top: -180px;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.025),
    0 0 0 70px rgba(255, 255, 255, 0.02);
}
.login-story::after {
  width: 310px;
  height: 310px;
  left: -205px;
  bottom: -190px;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.025),
    0 0 0 64px rgba(255, 255, 255, 0.02);
}
.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--gold);
  color: #182233;
  font-size: 25px;
}
.login-brand strong,
.login-brand small {
  display: block;
}
.login-brand strong {
  font-size: 16px;
  letter-spacing: 0.1px;
}
.login-brand small {
  margin-top: 2px;
  color: #a9b7c9;
  font-size: 11px;
}
.login-story-main {
  position: relative;
  z-index: 1;
  margin: 30px 0 24px;
}
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f9c647;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.login-eyebrow i {
  font-size: 14px;
}
.login-fingerprint-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 204px;
  height: 204px;
  margin: 21px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(251, 191, 27, 0.16),
    rgba(251, 191, 27, 0.015) 67%,
    transparent 68%
  );
  color: var(--gold);
}
.login-fingerprint-art::before,
.login-fingerprint-art::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(251, 191, 27, 0.18);
  border-radius: 50%;
}
.login-fingerprint-art::before {
  inset: 13px;
}
.login-fingerprint-art::after {
  inset: 27px;
  border-color: rgba(255, 255, 255, 0.08);
}
.login-fingerprint-art > img {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 0 22px rgba(251, 191, 27, 0.32));
}
.login-scan-line {
  position: absolute;
  z-index: 2;
  left: 25%;
  right: 25%;
  top: 50%;
  height: 2px;
  background: #ffe28a;
  box-shadow: 0 0 13px rgba(251, 191, 27, 0.9);
  opacity: 0.8;
}
.login-story-main h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.4px;
}
.login-story-main p {
  margin: 10px 0 0;
  color: #b8c4d3;
  font-size: 13px;
  line-height: 1.9;
}
.login-story-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b8c4d3;
  font-size: 11px;
}
.login-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #61d59a;
  box-shadow: 0 0 0 4px rgba(97, 213, 154, 0.12);
}
.login-story-divider {
  color: #62748b;
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 62px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.login-card-mark {
  display: none;
}
.login-card-eyebrow {
  color: #a87400;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.login-card h1 {
  margin: 4px 0 0;
  color: #172235;
  font-size: 28px;
  font-weight: 700;
}
.login-card-subtitle {
  margin: 5px 0 30px;
  color: #78869a;
  font-size: 13px;
}
.login-card .form-label {
  margin-bottom: 7px;
}
.login-card .form-control {
  min-height: 47px;
  background: #fbfcfe;
}
.login-card .form-control:focus {
  background: #fff;
}
.login-submit {
  min-height: 47px;
  font-size: 14px;
}
.login-submit i {
  margin-right: 7px;
}
.login-secure-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 25px;
  color: #8995a7;
  font-size: 10px;
}
.login-secure-note i {
  color: #a87400;
}
.password-field {
  position: relative;
}
.password-field .form-control {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  inset: 0 4px 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  border: 0;
  background: transparent;
  color: #748198;
  font-size: 18px;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  color: #9c6b00;
}
.password-toggle:focus-visible {
  outline: 2px solid #ffc21a;
  outline-offset: -4px;
  border-radius: 8px;
}
.offcanvas {
  background: #12171f;
  color: #fff;
}
.offcanvas .offcanvas-header {
  border-bottom: 1px solid #29313c;
}
.offcanvas .nav-item {
  color: #c2ccda;
}
.offcanvas .btn-close {
  filter: invert(1);
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
@media (max-width: 991px) {
  .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }
  .content {
    padding: 24px;
  }
  .app-footer-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 760px) {
  .auth-wrap:has(.login-layout) {
    padding: 18px;
  }
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 480px);
    min-height: 0;
    border-radius: 20px;
  }
  .login-story {
    padding: 22px 24px 18px;
  }
  .login-story-main,
  .login-story-foot {
    display: none;
  }
  .login-story::before {
    width: 260px;
    height: 260px;
    right: -150px;
    top: -175px;
    box-shadow: 0 0 0 25px rgba(255, 255, 255, 0.025);
  }
  .login-story::after {
    display: none;
  }
  .login-brand-icon {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
  .login-card {
    padding: 30px 26px 26px;
  }
  .login-card-mark {
    display: none;
  }
  .login-card h1 {
    font-size: 24px;
  }
  .login-card-subtitle {
    margin-bottom: 23px;
  }
  .login-secure-note {
    margin-top: 20px;
  }
}
@media (max-width: 767px) {
  .topbar {
    min-height: 64px;
  }
  .content {
    padding: 18px;
  }
  .app-footer-inner {
    padding: 20px 18px;
    font-size: 11px;
  }
  .top-title {
    font-size: 12px;
  }
  .topbar-eyebrow {
    font-size: 9px;
  }
  .user-name {
    display: none;
  }
  .top-actions {
    gap: 7px;
  }
  .logout-button {
    padding: 7px 8px;
  }
}
@media (max-width: 430px) {
  .topbar {
    gap: 8px;
  }
  .top-title {
    max-width: 150px;
  }
  .top-title-divider {
    display: none;
  }
  .top-title {
    font-size: 11px;
  }
  .user-avatar {
    display: none;
  }
  .icon-button,
  .topbar-menu {
    width: 34px;
    height: 34px;
  }
  .logout-button {
    font-size: 10px;
  }
}
.topbar .profile-avatar-link {
  display: grid;
}
.mobile-account-menu {
  position: relative;
}
.mobile-account-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 4px 11px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.mobile-account-toggle:hover,
.mobile-account-toggle[aria-expanded="true"] {
  background: #fffaf0;
  border-color: #e7be50;
}
.mobile-account-toggle:focus-visible {
  outline: 2px solid #c78900;
  outline-offset: 2px;
}
.mobile-account-toggle .user-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  overflow: hidden;
  font-size: 12px;
}
.mobile-account-toggle .user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-account-name {
  min-width: 0;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-account-toggle > i {
  color: #8491a5;
  font-size: 10px;
}
.mobile-account-dropdown {
  min-width: 225px;
  margin-top: 9px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(17, 28, 47, 0.15);
}
.mobile-account-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}
.mobile-account-heading strong {
  font-size: 12px;
}
.mobile-account-heading small {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 10px;
}
.mobile-account-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
}
.mobile-account-dropdown .dropdown-item i {
  width: 16px;
  color: #8290a4;
  font-size: 15px;
}
.mobile-account-dropdown .dropdown-item:hover {
  background: #fff4d6;
}
.mobile-account-dropdown .dropdown-divider {
  margin: 5px 0;
}
@media (max-width: 767px) {
  .mobile-account-toggle {
    max-width: 150px;
    padding-right: 7px;
  }
  .mobile-account-toggle .user-avatar {
    width: 29px;
    height: 29px;
    font-size: 11px;
  }
  .mobile-account-name {
    max-width: 78px;
  }
}
@media (max-width: 430px) {
  .mobile-account-toggle {
    max-width: 123px;
  }
  .mobile-account-name {
    max-width: 54px;
  }
  .topbar .mobile-account-menu .user-avatar {
    display: grid;
  }
}
.profile-page {
  max-width: 1160px;
  margin: 0 auto;
}
.profile-page-heading h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 5px;
}
.profile-page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.profile-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 24px 28px;
  border-radius: 17px;
  background: linear-gradient(110deg, #131d31, #243750);
  color: #fff;
}
.profile-banner-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  border: 3px solid rgba(255, 255, 255, 0.35);
}
.profile-banner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-banner span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.profile-banner h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0;
}
.profile-banner p {
  color: #bdc9da;
  font-size: 12px;
  margin: 0;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.profile-card {
  padding: 25px;
}
.profile-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
}
.profile-card-heading h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 3px;
}
.profile-card-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.profile-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff1ca;
  color: #b47b00;
  font-size: 18px;
}
.profile-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 145px;
  padding: 16px;
  border: 1px dashed #c5d0df;
  border-radius: 11px;
  background: #f9fbfd;
  text-align: center;
  cursor: pointer;
}
.profile-upload i {
  font-size: 26px;
  color: #b78306;
}
.profile-upload strong {
  font-size: 13px;
}
.profile-upload small {
  color: var(--muted);
  font-size: 11px;
}
.profile-locked-input:disabled {
  background: #edf0f4;
  border-color: #d7dfe9;
  color: #748196;
  opacity: 1;
}
@media (max-width: 767px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    padding: 20px;
  }
  .profile-banner {
    padding: 20px;
    gap: 14px;
  }
  .profile-banner-avatar {
    width: 58px;
    height: 58px;
  }
  .profile-banner h2 {
    font-size: 18px;
  }
}
.dashboard-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 320px;
  padding: 34px 38px;
  overflow: hidden;
  border: 1px solid #25374f;
  border-radius: 18px;
  background: linear-gradient(115deg, #131e31 0%, #17253a 65%, #213650 100%);
  color: #fff;
}
.dashboard-hero::before,
.dashboard-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(251, 191, 27, 0.25);
  border-radius: 50%;
  pointer-events: none;
}
.dashboard-hero::before {
  width: 390px;
  height: 390px;
  right: -80px;
  top: -80px;
}
.dashboard-hero::after {
  width: 520px;
  height: 520px;
  right: -145px;
  top: -145px;
  border-width: 36px;
  border-color: rgba(255, 255, 255, 0.035);
}
.dashboard-hero-copy {
  max-width: 600px;
}
.hero-eyebrow,
.panel-eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.dashboard-hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -1px;
}
.dashboard-hero h1 em {
  color: var(--gold);
  font-style: normal;
}
.dashboard-hero p {
  color: #bac8db;
  font-size: 13px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.hero-actions .btn {
  padding: 10px 15px;
  font-size: 12px;
  border-radius: 6px;
}
.hero-secondary {
  color: #fff;
  border: 1px solid #75839a;
  background: rgba(255, 255, 255, 0.06);
}
.hero-secondary:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}
.hero-system-card {
  display: flex;
  flex-direction: column;
  flex: none;
  width: min(260px, 30%);
  min-height: 174px;
  padding: 19px 20px;
  border: 1px solid #30425d;
  background: #142036;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
}
.system-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #81dcb4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.system-eyebrow .online-dot {
  width: 7px;
  height: 7px;
}
.hero-system-card strong {
  margin-top: 18px;
  font-size: 16px;
}
.hero-system-card p {
  margin: 6px 0 14px;
  font-size: 11px;
}
.system-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #30425d;
  color: #97a9c0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.system-card-foot span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.system-card-foot .online-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}
.dashboard-stat {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
}
.dashboard-stat .stat-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
}
.stat-icon-gold {
  background: #fff3d5;
  color: #b88100;
}
.stat-icon-blue {
  background: #eaf0ff;
  color: #5579ca;
}
.stat-icon-mint {
  background: #e8f7ef;
  color: #278a60;
}
.stat-icon-violet {
  background: #f0ecff;
  color: #8264c5;
}
.dashboard-stat .stat-label,
.dashboard-stat .stat-number,
.dashboard-stat small {
  display: block;
}
.dashboard-stat .stat-number {
  font-size: 23px;
  line-height: 1.2;
}
.dashboard-stat small {
  color: var(--muted);
  font-size: 10px;
}
.dashboard-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.dashboard-overview-item {
  min-width: 0;
  min-height: 105px;
  padding: 17px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 5px 18px rgba(17, 28, 47, 0.035);
}
.dashboard-overview-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.dashboard-overview-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 14px;
  flex: none;
}
.dashboard-overview-icon.tone-gold {
  background: #fff3d5;
  color: #a77800;
}
.dashboard-overview-icon.tone-blue {
  background: #eaf0ff;
  color: #5579ca;
}
.dashboard-overview-icon.tone-rose {
  background: #fff0ed;
  color: #c76659;
}
.dashboard-overview-icon.tone-violet {
  background: #f0ecff;
  color: #8264c5;
}
.dashboard-overview-icon.tone-mint {
  background: #e8f7ef;
  color: #278a60;
}
.dashboard-overview-value {
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}
.today-attendance-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.today-attendance-table td {
  font-size: 13px;
  vertical-align: middle;
}
.today-attendance-assessment {
  font-weight: 700;
  color: #a26800;
}
.today-attendance-status-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.today-attendance-status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.today-attendance-status.is-late {
  background: #fff2df;
  color: #a96500;
}
.today-attendance-status.is-on-time {
  background: #e8f7ef;
  color: #278a60;
}
.today-attendance-status.is-unknown {
  background: #f0f2f6;
  color: #67758b;
}
.today-attendance-status.is-absent {
  background: #ffeded;
  color: #b44d4d;
}
.today-attendance-status.is-waiting {
  background: #eaf0ff;
  color: #496aa5;
}
.today-attendance-status.is-complete {
  background: #e8f7ef;
  color: #278a60;
}
.today-attendance-note {
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1200px) {
  .dashboard-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .dashboard-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .dashboard-overview-item {
    min-height: 92px;
    padding: 13px;
  }
  .dashboard-overview-label {
    font-size: 11px;
  }
  .dashboard-overview-value {
    font-size: 24px;
  }
}
@media (max-width: 767px) {
  .today-attendance .table-responsive {
    overflow: visible;
  }
  .today-attendance-table,
  .today-attendance-table tbody {
    display: block;
  }
  .today-attendance-table thead {
    display: none;
  }
  .today-attendance-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .today-attendance-table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .today-attendance-table td:first-child {
    grid-column: 1/-1;
  }
  .today-attendance-table td:before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }
  .attendance-history-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .attendance-history-table {
    width: max-content;
    min-width: 920px;
    white-space: nowrap;
  }
  .attendance-history-table th,
  .attendance-history-table td {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}
.dashboard-latest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.dashboard-latest > i {
  font-size: 30px;
  color: #d2dae5;
}
@media (max-width: 767px) {
  .dashboard-hero {
    padding: 27px 24px;
    min-height: auto;
  }
  .hero-system-card {
    display: none;
  }
  .dashboard-hero h1 {
    font-size: 38px;
  }
  .dashboard-stat {
    padding: 17px;
  }
}
@media (max-width: 430px) {
  .dashboard-hero h1 {
    font-size: 32px;
  }
  .dashboard-hero p {
    font-size: 12px;
  }
}

/* Shared back-link pattern used across all application pages. */
.app-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid #d8e0ea;
  border-radius: 9px;
  background: #fff;
  color: #405878;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  text-decoration: none;
  vertical-align: middle;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.app-back-link:hover,
.app-back-link:focus-visible {
  border-color: #b9c9df;
  background: #f6f8fb;
  color: #244a83;
  text-decoration: none;
}
.app-back-link:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.18);
  outline-offset: 2px;
}
.app-back-link .bi {
  font-size: 16px;
  line-height: 1;
}
