.loginLogo {
  display: block;
  width: 92px;
  height: 94px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.userPasswordDialog {
  background: var(--panel, #242424);
  border: 1px solid var(--border, #4a4a4a);
  border-radius: 12px;
  color: inherit;
  max-width: 620px;
  padding: 24px;
  width: calc(100% - 32px);
}

.userPasswordDialog::backdrop {
  background: rgba(0, 0, 0, .72);
}

.userPasswordDialog .form {
  margin: 0;
}

.dialogActions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.dialogActions button {
  min-width: 130px;
}

.box h1,
.box p {
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
}

.brand img {
  width: 58px;
  height: 60px;
  object-fit: contain;
  border-radius: 7px;
}

.brand div {
  display: grid;
  gap: 3px;
}

.brand b {
  font-size: 21px;
}

.brand span {
  color: #a9c0d1;
  font-size: 15px;
}

@media (max-width: 900px) {
  .brand img {
    width: 48px;
    height: 49px;
  }
}

.categoryBox {
  margin: 14px 0;
  border: 1px solid #dbe4eb;
  border-radius: 10px;
  overflow: hidden;
}

.categoryHead,
.subcategoryList > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}

.categoryHead {
  background: #eef4f8;
}

.subcategoryList > div {
  border-top: 1px solid #e5ecf1;
  padding-left: 30px;
}

.subcategoryList > small {
  display: block;
  padding: 12px 30px;
}

.systemCatalog {
  margin-top: 14px;
  border: 1px solid #dbe4eb;
  border-radius: 10px;
  max-height: 560px;
  overflow: auto;
}

.systemCatalog > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #e5ecf1;
}

.systemCatalog > div:last-child {
  border-bottom: 0;
}

.dashboardFilters {
  flex-wrap: wrap;
}

.dashboardFilters select,
.dashboardFilters input {
  min-width: 170px;
  padding: 10px;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  background: #fff;
}

.dashboardFilters button {
  height: 39px;
}

.liveIndicator {
  margin-left: auto;
  color: #177047;
  font-size: 12px;
  font-weight: bold;
}

.dashboardMeta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 2px 10px;
  color: #687d8d;
  font-size: 12px;
}

.dashboardGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dashboardChart {
  min-width: 0;
}

.dashboardBar {
  display: grid;
  grid-template-columns: minmax(115px, 190px) 1fr 45px;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.dashboardBar > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.dashboardBar > div {
  height: 15px;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eff4;
}

.dashboardBar i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 8px;
  background: hsl(calc(202 + var(--bar-index) * 19), 68%, 43%);
}

.dashboardBar b {
  text-align: right;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .dashboardGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dashboardFilters {
    display: grid;
    align-items: stretch;
  }

  .liveIndicator {
    margin-left: 0;
  }

  .dashboardMeta {
    display: grid;
  }

  .dashboardBar {
    grid-template-columns: 105px 1fr 35px;
  }
}

.passwordPage {
  max-width: 760px;
  margin: 0 auto;
}

.passwordForm {
  margin-top: 24px;
}

.passwordForm h3 {
  font-size: 22px;
}

.passwordVisibility {
  margin-top: 12px !important;
}

.passwordRequirements {
  display: grid;
  gap: 5px;
  padding: 13px 15px;
  color: var(--win-text-secondary);
  background: rgba(96, 205, 255, .07);
  border: 1px solid rgba(96, 205, 255, .14);
  border-radius: 7px;
  font-size: 12px;
}

.passwordRequirements span {
  color: var(--muted);
}

.passwordSuccess {
  margin-top: 12px;
  padding: 11px 13px;
  color: #9ee6b3;
  background: rgba(16, 124, 65, .20);
  border: 1px solid rgba(158, 230, 179, .14);
  border-radius: 6px;
}

.passwordForm button:disabled {
  cursor: wait;
  opacity: .65;
}

.createdUsersHead,
.createdUsersTools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.createdUsersHead h3,
.createdUsersHead p {
  margin-bottom: 0;
}

.createdUsersHead button {
  padding: 9px 16px;
  color: var(--win-text);
  background: #353535;
  border: 1px solid #4b4b4b;
  border-radius: 5px;
  cursor: pointer;
}

.createdUsersHead button:hover {
  background: #404040;
}

.createdUsersTools {
  margin: 16px 0 10px;
}

.createdUsersTools label {
  flex: 1;
  max-width: 430px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.createdUsersTools input {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  color: var(--win-text);
  background: var(--win-input);
  border: 1px solid #484848;
  border-radius: 5px;
}

#createdUserCount {
  color: var(--muted);
  font-size: 12px;
}

.createdUsersTable td:first-child b {
  display: block;
}

.currentUserTag {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 6px;
  color: #bdeaff;
  background: rgba(96, 205, 255, .10);
  border-radius: 8px;
  font-size: 9px;
}

@media (max-width: 700px) {
  .createdUsersHead,
  .createdUsersTools {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Windows 11-inspired dark theme */
:root {
  color-scheme: dark;
  --navy: #171717;
  --blue: #60cdff;
  --bg: #202020;
  --line: #3b3b3b;
  --muted: #a7a7a7;
  --win-surface: #2b2b2b;
  --win-surface-raised: #323232;
  --win-surface-hover: #3a3a3a;
  --win-input: #242424;
  --win-text: #f5f5f5;
  --win-text-secondary: #c7c7c7;
  --win-accent: #60cdff;
  --win-accent-strong: #4cc2ff;
  --win-border: rgba(255, 255, 255, .10);
  --win-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

* {
  scrollbar-color: #686868 #242424;
}

body {
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--win-text);
  background:
    radial-gradient(circle at 88% -10%, rgba(0, 120, 212, .13), transparent 34%),
    var(--bg);
}

::selection {
  color: #fff;
  background: rgba(0, 120, 212, .72);
}

.login {
  background:
    radial-gradient(circle at 25% 18%, rgba(96, 205, 255, .16), transparent 28%),
    radial-gradient(circle at 76% 82%, rgba(0, 95, 184, .16), transparent 32%),
    #181818;
}

.box {
  color: var(--win-text);
  background: rgba(44, 44, 44, .88);
  border: 1px solid var(--win-border);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
  backdrop-filter: blur(24px);
}

.loginLogo {
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.box h1 {
  font-weight: 600;
  letter-spacing: -.02em;
}

.box p,
.muted {
  color: var(--muted);
}

#app {
  background: transparent;
}

aside {
  background: rgba(24, 24, 24, .94);
  border-right: 1px solid var(--win-border);
  box-shadow: 8px 0 28px rgba(0, 0, 0, .14);
  backdrop-filter: blur(28px) saturate(125%);
}

.brand {
  min-height: 62px;
}

.brand img {
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .26);
}

.brand span,
#profile small {
  color: #a9a9a9;
}

nav {
  gap: 3px;
}

nav button,
#logout {
  position: relative;
  color: #d6d6d6;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

nav button:hover,
#logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .045);
}

nav button.active {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .06);
}

nav button.active::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25%;
  width: 3px;
  height: 50%;
  border-radius: 3px;
  background: var(--win-accent);
}

#profile {
  border-top-color: var(--win-border);
}

main {
  background: transparent;
}

header {
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

header small {
  color: #9d9d9d;
}

header h1 {
  color: #fff;
  font-weight: 600;
  letter-spacing: -.025em;
}

.online {
  color: #9ee6b3;
  background: rgba(16, 124, 65, .23);
  border: 1px solid rgba(104, 211, 145, .16);
}

.card,
.panel,
.toolbar {
  color: var(--win-text);
  background: linear-gradient(145deg, rgba(48, 48, 48, .96), rgba(42, 42, 42, .96));
  border: 1px solid var(--win-border);
  border-radius: 8px;
  box-shadow: var(--win-shadow);
}

.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96, 205, 255, .68), transparent);
}

.card small,
.dashboardMeta,
th {
  color: var(--muted);
}

.card strong {
  color: #fff;
  font-weight: 600;
}

.panel h3,
.panel h4 {
  color: #fff;
  font-weight: 600;
}

.box input,
.form input,
.form select,
.form textarea,
.toolbar input,
.dashboardFilters select,
.dashboardFilters input {
  color: var(--win-text);
  background: var(--win-input);
  border: 1px solid #484848;
  border-bottom-color: #666;
  border-radius: 5px;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.box input:hover,
.form input:hover,
.form select:hover,
.form textarea:hover,
.toolbar input:hover,
.dashboardFilters select:hover,
.dashboardFilters input:hover {
  background: #292929;
  border-color: #575757;
}

.box input:focus,
.form input:focus,
.form select:focus,
.form textarea:focus,
.toolbar input:focus,
.dashboardFilters select:focus,
.dashboardFilters input:focus {
  background: #292929;
  border-color: #555;
  border-bottom: 2px solid var(--win-accent);
  box-shadow: 0 0 0 1px rgba(96, 205, 255, .08);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #888 !important;
  background: #202020 !important;
  border-color: #353535 !important;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

.form label small {
  display: block;
  margin-top: 6px;
  color: #999;
  font-weight: 400;
}

.box button,
.primary {
  color: #06141b;
  background: var(--win-accent);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .24);
  transition: background .15s ease, transform .1s ease;
}

.box button:hover,
.primary:hover {
  background: #76d6ff;
}

.box button:active,
.primary:active,
.actions button:active,
.toolbar button:active {
  transform: scale(.985);
}

.actions button,
.toolbar button {
  color: var(--win-text);
  background: #353535;
  border: 1px solid #4b4b4b;
  border-radius: 5px;
}

.actions button:hover,
.toolbar button:hover {
  background: #404040;
  border-color: #5c5c5c;
}

.actions .danger,
button.danger {
  color: #ffb4ab;
  background: rgba(196, 43, 28, .16);
  border-color: rgba(255, 180, 171, .18);
}

.actions .danger:hover,
button.danger:hover {
  background: rgba(196, 43, 28, .28);
}

table {
  color: var(--win-text-secondary);
}

th,
td {
  border-bottom-color: rgba(255, 255, 255, .075);
}

tbody tr {
  transition: background .12s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, .035);
}

.badge {
  color: #d8d8d8;
  background: #414141;
  border: 1px solid rgba(255, 255, 255, .08);
}

.APPROVED,
.Completed {
  color: #9ee6b3;
  background: rgba(16, 124, 65, .22);
}

.SUBMITTED,
.Pending {
  color: #f6d365;
  background: rgba(157, 93, 0, .24);
}

.RETURNED,
.Critical,
.Escalated {
  color: #ffb4ab;
  background: rgba(196, 43, 28, .22);
}

.review {
  border-top-color: var(--win-accent);
}

.categoryBox,
.systemCatalog {
  background: #272727;
  border-color: var(--win-border);
  border-radius: 7px;
}

.categoryHead {
  background: #333;
}

.subcategoryList > div,
.systemCatalog > div {
  border-color: rgba(255, 255, 255, .075);
}

.subcategoryList > div:hover,
.systemCatalog > div:hover {
  background: rgba(255, 255, 255, .035);
}

.barRow div,
.dashboardBar > div {
  background: #1d1d1d;
  border: 1px solid rgba(255, 255, 255, .06);
}

.barRow i {
  background: linear-gradient(90deg, #0078d4, var(--win-accent));
}

.dashboardBar i {
  background: linear-gradient(90deg, hsl(calc(202 + var(--bar-index) * 19), 70%, 42%), hsl(calc(202 + var(--bar-index) * 19), 85%, 65%));
}

.liveIndicator {
  color: #9ee6b3;
}

.error {
  color: #ffb4ab;
}

a {
  color: var(--win-accent);
}

@media (max-width: 900px) {
  aside {
    border-right: 0;
    border-bottom: 1px solid var(--win-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Reference-inspired Category Dashboard layout */
.referenceIntro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 20px 2px 14px;
}

.referenceIntro h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.referenceIntro p {
  margin: 6px 0 0;
  color: var(--muted);
}

.referenceIntro .dashboardMeta {
  display: grid;
  justify-items: end;
  margin: 0;
}

.referenceKpis {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: 14px;
}

.referenceKpi {
  position: relative;
  min-height: 138px;
  padding: 18px;
  overflow: hidden;
  color: var(--win-text);
  background: linear-gradient(145deg, rgba(48, 48, 48, .98), rgba(41, 41, 41, .98));
  border: 1px solid var(--win-border);
  border-radius: 11px;
  box-shadow: var(--win-shadow);
}

.referenceKpi > span {
  color: var(--win-text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.referenceKpi > b {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--win-text);
  background: #252525;
  border: 1px solid #555;
  border-radius: 50%;
  font-size: 13px;
}

.referenceKpi > strong {
  display: block;
  margin-top: 18px;
  color: #fff;
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
}

.referenceKpi > small {
  display: block;
  margin-top: 14px;
  color: #9aa0a4;
  font-size: 11px;
}

.referenceKpiPrimary {
  background:
    radial-gradient(circle at 92% 18%, rgba(96, 205, 255, .26), transparent 34%),
    linear-gradient(145deg, #006c9f, #005578);
  border-color: rgba(96, 205, 255, .28);
}

.referenceKpiPrimary > span,
.referenceKpiPrimary > small {
  color: #d9f4ff;
}

.referenceDashboardGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(250px, .72fr);
  gap: 14px;
  margin-top: 14px;
}

.referenceDashboardGrid > .panel {
  margin-top: 0;
  border-radius: 11px;
}

.referenceAnalytics,
.referenceAgents,
.referenceSubcategories {
  grid-column: span 2;
}

.referencePanelHead {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.referencePanelHead h3 {
  margin: 0;
  font-size: 15px;
}

.referencePanelHead small,
.referencePanelHead > span {
  color: var(--muted);
  font-size: 11px;
}

.referenceColumns {
  height: 245px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: max-content;
  padding: 5px 2px 0;
}

.referenceAnalytics {
  overflow-x: auto;
}

.referenceColumn {
  width: clamp(30px, 4.3vw, 62px);
  min-width: 30px;
  display: grid;
  grid-template-rows: 20px 1fr 32px;
  gap: 5px;
  text-align: center;
}

.referenceColumn > b {
  color: #bbb;
  font-size: 10px;
  font-weight: 500;
}

.referenceColumn > div {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 2px, transparent 2px 7px);
  border-radius: 22px;
}

.referenceColumn i {
  width: 100%;
  display: block;
  border-radius: 22px;
  background: linear-gradient(180deg, hsl(calc(196 + var(--column-index) * 13), 84%, 67%), hsl(calc(196 + var(--column-index) * 13), 72%, 37%));
  box-shadow: 0 0 20px rgba(96, 205, 255, .12);
}

.referenceColumn > span {
  max-width: 65px;
  overflow: hidden;
  color: #9d9d9d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referenceRankRow {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.referenceRankRow:last-child {
  border-bottom: 0;
}

.referenceRankRow em {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #bdeaff;
  background: rgba(96, 205, 255, .10);
  border-radius: 7px;
  font-size: 10px;
  font-style: normal;
}

.referenceRankRow > div {
  min-width: 0;
}

.referenceRankRow b {
  display: block;
  overflow: hidden;
  color: var(--win-text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referenceRankRow span,
.referenceAgent div > span {
  height: 4px;
  display: block;
  overflow: hidden;
  margin-top: 7px;
  background: #1b1b1b;
  border-radius: 4px;
}

.referenceRankRow i {
  height: 100%;
  display: block;
  border-radius: 4px;
  background: hsl(calc(195 + var(--rank-index) * 21), 75%, 58%);
}

.referenceRankRow > strong {
  color: #fff;
  font-size: 12px;
  text-align: right;
}

.referenceAgent {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
}

.referenceAvatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: hsl(calc(194 + var(--avatar-index) * 35), 58%, 39%);
  border: 2px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.referenceAgent div {
  min-width: 0;
}

.referenceAgent b {
  display: block;
  overflow: hidden;
  color: var(--win-text-secondary);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referenceAgent small {
  color: #929292;
  font-size: 10px;
}

.referenceAgent div > span i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #0078d4, #60cdff);
}

.referenceAgent > strong {
  text-align: right;
}

.referenceProgress {
  display: flex;
  flex-direction: column;
}

.referenceDonut {
  width: 190px;
  max-width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 8px auto 16px;
  background: conic-gradient(var(--win-accent) 0 var(--donut-progress), #1c1c1c var(--donut-progress) 360deg);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 35px rgba(0, 0, 0, .25);
}

.referenceDonut::before {
  content: "";
  grid-area: 1/1;
  width: 68%;
  aspect-ratio: 1;
  background: #2b2b2b;
  border: 1px solid var(--win-border);
  border-radius: 50%;
}

.referenceDonut > div {
  z-index: 1;
  grid-area: 1/1;
  max-width: 60%;
  text-align: center;
}

.referenceDonut strong {
  display: block;
  color: #fff;
  font-size: 32px;
}

.referenceDonut small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referenceLegend {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-size: 9px;
}

.referenceLegend i {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 4px;
  background: var(--win-accent);
  border-radius: 50%;
}

.referenceLegend span:last-child i {
  background: #1c1c1c;
  border: 1px solid #555;
}

.referenceQuickStats > div:not(.referencePanelHead) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.referenceQuickStats > div:last-child {
  border-bottom: 0;
}

.referenceQuickStats > div > span {
  color: var(--muted);
  font-size: 11px;
}

.referenceQuickStats strong {
  color: #fff;
  font-size: 20px;
}

.referenceQuickStats strong small {
  color: var(--muted);
  font-size: 10px;
}

.referenceQuickStats .referenceFilterValue {
  max-width: 150px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .referenceKpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .referenceDashboardGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referenceAnalytics,
  .referenceAgents,
  .referenceSubcategories {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .referenceIntro {
    display: grid;
  }

  .referenceIntro .dashboardMeta {
    justify-items: start;
  }

  .referenceKpis,
  .referenceDashboardGrid {
    grid-template-columns: 1fr;
  }

  .referenceAnalytics,
  .referenceAgents,
  .referenceSubcategories {
    grid-column: span 1;
  }
}
