:root {
  --app-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --app-text: #172033;
  --app-muted: #667085;
  --app-blue: #2563eb;
  --app-blue-soft: rgba(66, 133, 244, 0.14);
  --app-border: rgba(148, 163, 184, 0.28);
  --app-border-radius: 7px;
  --app-round-radius: 999px;
  --bs-border-radius: var(--app-border-radius);
  --bs-border-radius-sm: var(--app-border-radius);
  --bs-border-radius-lg: var(--app-border-radius);
  --bs-border-radius-xl: var(--app-border-radius);
  --bs-border-radius-xxl: var(--app-border-radius);
  --bs-border-radius-pill: var(--app-round-radius);
  --app-surface: rgba(255, 255, 255, 0.72);
  --app-shadow: 0 22px 58px rgba(28, 43, 71, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 15px;
}

body,
button,
input,
textarea,
select {
  font-family: var(--app-font);
  font-size: 1rem;
  letter-spacing: 0;
}

body {
  color: var(--app-text);
  font-weight: 400;
  line-height: 1.4;
}

label,
.form-label,
.col-form-label {
  color: #707780;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.container {
  width: min(calc(100% - 32px), 1140px);
  margin-right: auto;
  margin-left: auto;
}

.navbar,
.navbar > .container,
.navbar-collapse,
.navbar-nav {
  display: flex;
  align-items: center;
}

.navbar > .container {
  flex-wrap: wrap;
}

.navbar-brand,
.nav-link {
  text-decoration: none;
}

.navbar-brand {
  margin-right: 16px;
}

.navbar-collapse {
  flex-grow: 1;
}

.navbar-nav {
  flex-direction: row;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-nav:last-child {
  margin-left: auto;
}

.navbar-toggler {
  display: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(66, 133, 244, 0.32);
}

.app-body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    url("../Images/login-background.png") center / cover no-repeat fixed,
    #0d0d12;
}

.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

.app-orb {
  display: none;
}

.app-orb-primary {
  top: 9%;
  left: 10%;
  width: 280px;
  height: 280px;
  background: rgba(66, 133, 244, 0.24);
}

.app-orb-secondary {
  right: 7%;
  bottom: 12%;
  width: 280px;
  height: 280px;
  background: rgba(52, 199, 89, 0.16);
}

@media (max-width: 767.98px) {
  .app-body {
    background:
      url("../Images/login-background-mobile.png") center / cover no-repeat scroll,
      #0d0d12;
  }
}

/* Desktop controls follow GitHub Primer's compact control proportions. */
@media (min-width: 768px) {
  .clients-filter-bar {
    --clients-filter-control-height: 32px;
  }

  .app-body .btn,
  .app-body input.btn,
  .app-body .license-calendar-trigger,
  .app-body .config-multiselect-button,
  .app-body .language-select-trigger,
  .app-body .config-host-tags-add,
  .app-body .clients-sort-direction,
  .app-body .clients-view-toggle,
  .app-body .clients-filter-toggle,
  .app-body .clients-filter-clear,
  .app-body .clients-search-submit,
  .app-body .clients-load-more,
  .app-body .page-step,
  .app-body .client-renew-menu button,
  .app-body .license-calendar-presets button,
  .app-body .machine-count,
  .app-body .app-profile-action {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: var(--app-border-radius);
    font-size: 0.875rem;
    line-height: 30px;
  }

  .app-body .machine-add-form .btn {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 30px;
  }

  .app-body input.form-control:not([type="checkbox"]):not([type="radio"]),
  .app-body .form-select:not([multiple]),
  .login-input-wrap input,
  .login-field > input {
    box-sizing: border-box;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 1px;
    border-radius: var(--app-border-radius);
    font-size: 0.875rem;
    line-height: 30px;
  }

  .app-body input.form-control:not([type="checkbox"]):not([type="radio"]),
  .app-body .form-select:not([multiple]) {
    padding-right: 10px;
    padding-left: 10px;
  }

  .app-body .form-select:not([multiple]) {
    padding-right: 30px;
  }

  .login-input-wrap input {
    padding-right: 12px;
    padding-left: 40px;
  }

  .login-field > input {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    outline: none;
    color: #fafafa;
    background: rgba(39, 39, 42, 0.94);
  }

  .login-input-wrap::before {
    left: 14px;
    font-size: 0.875rem;
  }

  .login-submit {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0 12px;
    border: 1px solid #1f5fce;
    border-radius: var(--app-border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 30px;
  }

  .app-body textarea.form-control,
  .app-body select.form-select[multiple] {
    height: auto;
    min-height: 96px;
    max-height: none;
    padding: 8px 10px;
    border-width: 1px;
    border-radius: var(--app-border-radius);
    font-size: 0.875rem;
    line-height: 1.45;
  }

  .app-body .client-action,
  .app-body .app-profile-trigger,
  .app-body .app-nav-logout,
  .app-body .config-host-tag-action,
  .app-body .license-calendar-head button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 0;
    border-radius: var(--app-border-radius);
    line-height: 1;
  }

  .app-body .form-control:focus,
  .app-body .form-select:focus,
  .app-body .license-calendar-trigger:focus,
  .app-body .config-multiselect-button:focus,
  .login-input-wrap input:focus,
  .login-field > input:focus {
    transform: none;
    box-shadow: 0 0 0 3px rgba(202, 164, 91, 0.14);
  }
}

.app-navbar {
  position: relative;
  z-index: 2;
  margin-bottom: 8px !important;
  padding: 5px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(235, 239, 244, 0.94);
  box-shadow: 0 7px 20px rgba(28, 43, 71, 0.07);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}

.app-navbar > .container {
  width: 100%;
  max-width: none;
  padding-right: 12px;
  padding-left: 12px;
}

.app-navbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.34), rgba(20, 184, 166, 0.24), transparent);
}

.navbar-brand {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 650;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}

.app-brand-logo {
  display: block;
  width: 34px;
  height: 25px;
  object-fit: contain;
}

.navbar-light .navbar-nav .nav-link {
  color: #475467;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #344054;
}

.app-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0 2px;
  padding: 3px 9px !important;
  border: 1px solid transparent;
  border-radius: var(--app-border-radius);
  background: transparent;
  box-shadow: none;
}

.app-nav-link::after {
  content: none;
}

.app-button-spinner {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--app-round-radius);
  vertical-align: -0.12em;
  animation: app-spin 720ms linear infinite;
}

button.is-loading,
input.is-loading {
  cursor: wait;
  opacity: 0.78;
}

.app-page-transition {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(8, 8, 12, 0.76);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.app-page-transition.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transition: opacity 180ms ease;
}

.app-page-transition-content {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #d6b875;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.app-page-transition-content img {
  display: block;
  width: clamp(150px, 18vw, 220px);
  height: auto;
  object-fit: contain;
}

.app-body > header,
.app-body > .app-container,
.app-body > .app-copyright-label,
.login-body > main {
  transition: opacity 180ms ease;
}

.app-body.page-transition-active > header,
.app-body.page-transition-active > .app-container,
.app-body.page-transition-active > .app-copyright-label,
.login-body.page-transition-active > main {
  opacity: 0.2;
}

@media (prefers-reduced-motion: reduce) {
  .app-page-transition,
  .app-body > header,
  .app-body > .app-container,
  .app-body > .app-copyright-label,
  .login-body > main {
    transition: none;
  }
}

.app-toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  --toast-accent: #4285f4;
  --toast-accent-soft: rgba(66, 133, 244, 0.13);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 12px 13px 13px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--app-border-radius);
  color: #111827;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 50px rgba(28, 43, 71, 0.18),
    0 2px 8px rgba(28, 43, 71, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  pointer-events: auto;
  animation: app-toast-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-toast::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: var(--app-round-radius);
  background: var(--toast-accent);
}

.app-toast-message {
  margin: 0;
  color: #172033;
  font-size: 0.91rem;
  font-weight: 650;
  line-height: 1.35;
}

.app-toast-success {
  --toast-accent: #10b981;
  --toast-accent-soft: rgba(16, 185, 129, 0.14);
}

.app-toast-error {
  --toast-accent: #ef4444;
  --toast-accent-soft: rgba(239, 68, 68, 0.14);
}

.app-toast-warning {
  --toast-accent: #f59e0b;
  --toast-accent-soft: rgba(245, 158, 11, 0.16);
}

.app-toast-info,
.app-toast-loading {
  --toast-accent: #4285f4;
  --toast-accent-soft: rgba(66, 133, 244, 0.14);
}

.app-toast-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: var(--app-round-radius);
  color: var(--toast-accent);
  background: linear-gradient(180deg, var(--toast-accent-soft), rgba(255, 255, 255, 0.54));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.app-toast-spinner {
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--app-round-radius);
  animation: app-spin 720ms linear infinite;
}

.app-toast-close {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: var(--app-round-radius);
  color: #667085;
  background: transparent;
  transition: color 160ms ease, background-color 160ms ease;
}

.app-toast-close:hover,
.app-toast-close:focus {
  color: #172033;
  background: rgba(15, 23, 42, 0.06);
}

.app-toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--toast-accent), rgba(20, 184, 166, 0.72));
  transform-origin: left;
  animation: app-toast-progress var(--toast-duration, 4200ms) linear both;
}

.app-toast-persistent .app-toast-progress {
  display: none;
}

.app-toast.is-leaving {
  animation: app-toast-out 180ms ease both;
}

@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes app-toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes app-toast-out {
  to {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.98);
  }
}

@keyframes app-toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@media (prefers-color-scheme: dark) {
  .app-toast {
    border-color: rgba(71, 85, 105, 0.72);
    color: #f8fafc;
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88)),
      rgba(15, 23, 42, 0.9);
    box-shadow:
      0 22px 58px rgba(0, 0, 0, 0.28),
      0 2px 10px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .app-toast-message {
    color: #f8fafc;
  }

  .app-toast-close {
    color: #cbd5e1;
  }

  .app-toast-close:hover,
  .app-toast-close:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }
}

.app-nav-link i {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: var(--app-border-radius);
  color: #64748b;
  background: rgba(226, 232, 240, 0.62);
  font-size: 0.76rem;
  text-align: center;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.app-nav-link:hover,
.app-nav-link:focus {
  border-color: transparent;
  background: transparent;
  transform: translateY(-1px);
}

.app-nav-link.active i {
  color: var(--app-blue);
  background: rgba(219, 234, 254, 0.8);
}

.app-nav-link:hover i,
.app-nav-link:focus i {
  color: #475467;
  background: rgba(203, 213, 225, 0.66);
}

.app-nav-link.active:hover i,
.app-nav-link.active:focus i {
  color: var(--app-blue);
  background: rgba(219, 234, 254, 0.8);
}

.navbar-light .navbar-nav .app-nav-link.active {
  color: #1d4ed8;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.app-nav-dropdown {
  overflow: hidden;
  min-width: 170px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(28, 43, 71, 0.12);
}

.app-nav-dropdown .dropdown-item {
  border-radius: var(--app-border-radius);
  color: #475467;
  font-size: 0.92rem;
  font-weight: 650;
}

.app-nav-dropdown .dropdown-item:hover,
.app-nav-dropdown .dropdown-item:focus {
  color: #1d4ed8;
  background: rgba(66, 133, 244, 0.1);
}

.app-profile-menu {
  position: relative;
}

.app-profile-trigger {
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--app-border-radius);
  background: #ffffff;
}

.app-profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1050;
  visibility: hidden;
  overflow: visible;
  display: block;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transform-origin: top right;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.app-profile-dropdown::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 9px;
}

.app-profile-menu:hover .app-profile-dropdown,
.app-profile-menu:focus-within .app-profile-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.app-profile-action {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  text-align: left;
}

.app-profile-action i {
  width: 17px;
  color: #667085;
  text-align: center;
}

.app-profile-action:hover i,
.app-profile-action:focus i {
  color: #2563eb;
}

.app-nav-logout {
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  background: #ffffff;
  border-radius: var(--app-border-radius);
}

.app-nav-logout-label {
  display: none;
}

.app-logout-form {
  margin: 0;
}

.app-logout-form button {
  border: 0;
  background: transparent;
}

.app-container {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  min-height: 0;
}

.app-main {
  min-height: 0;
  padding-top: 8px;
}

.app-main > h4,
.app-main h4 {
  color: #111827;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0;
}

.app-main h5 {
  color: #1f2937;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.table,
.form-control,
.alert,
.list-group-item {
  color: var(--app-text);
  font-size: 0.96rem;
}

.table {
  overflow: hidden;
  border-color: var(--app-border);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 38px rgba(28, 43, 71, 0.08);
}

.table thead th {
  border-bottom-color: rgba(148, 163, 184, 0.32);
  color: #334155;
  background: rgba(248, 251, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(248, 251, 255, 0.62);
}

.list-group-item {
  border-color: var(--app-border);
  background: var(--app-surface);
  font-weight: 620;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.clients-page {
  display: flex;
  flex-direction: column;
  width: min(100%, 1120px);
  height: var(--clients-workspace-height, calc(100dvh - 150px));
  min-height: 0;
  margin: 0 auto 8px;
}

.clients-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.clients-header p {
  margin: 0 0 4px;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 660;
}

.clients-header h4 {
  margin: 0;
  color: #111827;
  font-size: 1.55rem;
  font-weight: 760;
}

.clients-header > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--app-round-radius);
  color: #475467;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.84rem;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.clients-filter-bar {
  --clients-filter-control-height: 32px;
  flex: 0 0 auto;
  display: grid;
  gap: 9px;
  padding: 11px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(202, 164, 91, 0.2);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 34px rgba(28, 43, 71, 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  backdrop-filter: blur(16px) saturate(1.12);
}

.clients-filter-bar .form-control,
.clients-filter-bar .form-select,
.clients-filter-bar button,
.clients-filter-bar .clients-filter-clear {
  height: var(--clients-filter-control-height);
  min-height: var(--clients-filter-control-height);
}

.clients-search-field {
  position: relative;
  min-width: 0;
}

.clients-filter-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.clients-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 98px;
  padding-right: 12px;
  padding-left: 12px;
}

.clients-filter-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding-top: 2px;
}

.clients-sort-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.clients-sort-field {
  position: relative;
}

.clients-sort-field .form-select {
  width: 182px;
  border-color: rgba(148, 163, 184, 0.3);
  background-color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 500;
}

.clients-sort-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--app-border-radius);
  color: #344054;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.clients-sort-direction:hover {
  border-color: rgba(59, 130, 246, 0.48);
  color: #2563eb;
  background: rgba(239, 246, 255, 0.9);
  transform: translateY(-1px);
}

.clients-filter-toggle {
  display: inline-grid;
  width: var(--clients-filter-control-height);
  min-width: var(--clients-filter-control-height);
  padding: 0;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: var(--app-border-radius);
  color: #667085;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.clients-filter-toggle:hover {
  border-color: rgba(34, 197, 94, 0.5);
  color: #15803d;
  background: rgba(240, 253, 244, 0.92);
  transform: translateY(-1px);
}

.clients-filter-toggle.is-selected {
  border-color: rgba(34, 197, 94, 0.58);
  color: #15803d;
  background: rgba(220, 252, 231, 0.92);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.12), 0 6px 18px rgba(34, 197, 94, 0.16);
}

.clients-recent-activity-field {
  position: relative;
}

.clients-recent-activity-field > i {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: #94a3b8;
  pointer-events: none;
  transform: translateY(-50%);
}

.clients-recent-activity-field .form-select {
  width: 198px;
  padding-left: 34px;
  border-color: rgba(148, 163, 184, 0.3);
  background-color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 500;
}

.clients-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border-radius: var(--app-border-radius);
  color: #667085;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.clients-filter-clear:hover {
  color: #b42318;
  background: rgba(254, 243, 242, 0.86);
}

.clients-search-field i {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: #94a3b8;
  transform: translateY(-50%);
}

.clients-search-field .form-control {
  padding-left: 42px;
}

.clients-table-card,
.client-register-card {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(28, 43, 71, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.clients-table-card {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.clients-collection-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding-bottom: 24px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
  scrollbar-width: thin;
}

.clients-collection-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.clients-collection-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.clients-collection-scroll::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: var(--app-border-radius);
  background: rgba(148, 163, 184, 0.42);
  background-clip: padding-box;
}

.clients-collection-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.52);
  background-clip: padding-box;
}

.clients-collection-scroll > .table-responsive {
  overflow: visible;
}

.clients-collection-scroll .clients-table {
  border-collapse: separate;
  border-spacing: 0;
}

.clients-table-card:not(.clients-card-mode) > .clients-collection-scroll > .table-responsive > .clients-table {
  width: 100%;
  table-layout: fixed;
}

.clients-list-columns .clients-column-name {
  width: 27%;
}

.clients-list-columns .clients-column-key {
  width: 19%;
}

.clients-list-columns .clients-column-machines {
  width: 10%;
}

.clients-list-columns .clients-column-expiration {
  width: 14%;
}

.clients-list-columns .clients-column-status {
  width: 13%;
}

.clients-list-columns .clients-column-actions {
  width: 17%;
}

.clients-table-card.clients-card-mode .clients-list-columns {
  display: none;
}

.clients-table {
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.clients-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: #344054;
  background: #f8fbff;
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.22);
  font-size: 0.76rem;
  font-weight: 700;
}

.clients-table thead th .field-label-icon {
  margin-right: 7px;
  color: #3b82f6;
  font-size: 0.82rem;
  vertical-align: -0.04em;
}

.clients-table tbody td {
  padding: 7px 16px;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.4);
}

.clients-table-card:not(.clients-card-mode) .clients-table thead th {
  padding: 12px 16px;
  font-size: 0.76rem;
  font-weight: 700;
}

.clients-table-card:not(.clients-card-mode) .clients-table tbody td {
  padding: 6px 16px;
}

.clients-table tbody tr {
  transition: background-color 160ms ease, transform 160ms ease;
}

.clients-table tbody tr:hover td {
  background: rgba(248, 251, 255, 0.86);
}

.clients-table tbody tr:last-child td {
  border-bottom: 0;
}

.client-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.client-identity-text {
  min-width: 0;
}

.client-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--app-border-radius);
  color: #1d4ed8;
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  box-shadow: inset 0 0 0 1px rgba(66, 133, 244, 0.14), 0 8px 20px rgba(66, 133, 244, 0.12);
  font-size: 0.92rem;
  font-weight: 760;
}

.client-avatar.client-avatar-recent {
  color: #15803d;
  background: linear-gradient(180deg, #ffffff, #ecfdf3);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.38), 0 0 0 3px rgba(34, 197, 94, 0.12), 0 8px 20px rgba(34, 197, 94, 0.24);
}

.client-avatar.client-avatar-stale {
  color: #a16207;
  background: linear-gradient(180deg, #ffffff, #fffbeb);
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.42), 0 0 0 3px rgba(234, 179, 8, 0.12), 0 8px 20px rgba(234, 179, 8, 0.22);
}

.client-identity strong {
  display: block;
  color: #1f2937;
  font-size: 0.9rem;
  font-weight: 600;
}

.client-identity small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 0.74rem;
  font-weight: 400;
}

.clients-table-card:not(.clients-card-mode) .client-identity {
  gap: 10px;
}

.clients-table-card:not(.clients-card-mode) .client-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.78rem;
}

.clients-table-card:not(.clients-card-mode) .client-identity small {
  color: #7a8699;
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.25;
}

.clients-table-card:not(.clients-card-mode) .license-key {
  padding: 3px 6px;
  font-size: 0.7rem;
}

.license-key {
  display: inline-flex;
  max-width: 260px;
  padding: 5px 8px;
  border-radius: var(--app-border-radius);
  color: #1d4ed8;
  background: rgba(66, 133, 244, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copyable-value {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: var(--app-border-radius);
  padding: 2px;
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.copyable-value:hover,
.copyable-value:focus {
  background: rgba(66, 133, 244, 0.07);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.08);
  outline: 0;
}

.copyable-value.copy-success {
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  animation: copy-pulse 520ms ease;
}

.copyable-value-wide {
  width: 100%;
}

.client-action.client-action-errors {
  position: relative;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.09);
}

.client-action.client-action-errors .client-action-error-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: var(--app-round-radius);
  padding: 0 4px;
  color: #ffffff;
  background: #dc2626;
  box-shadow: 0 2px 6px rgba(185, 28, 28, 0.28);
  font-size: 0.65rem;
  font-weight: 850;
  line-height: 1;
}

.client-action-info {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.client-action-info:hover,
.client-action-info:focus {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.14);
}

.client-action-shared-machine {
  position: relative;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.09);
}

.client-action-shared-machine:hover,
.client-action-shared-machine:focus {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.16);
}

.client-action-association-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  border-radius: var(--app-round-radius);
  color: #ffffff;
  background: #7c3aed;
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.3);
  font-size: 0.65rem;
  font-weight: 850;
  line-height: 1;
}

.error-log-modal[hidden] {
  display: none;
}

.error-log-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.error-log-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(15, 23, 42, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.error-log-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.error-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.error-log-header small {
  color: #64748b;
  font-weight: 760;
}

.error-log-header h5 {
  margin: 2px 0 0;
  color: #111827;
  font-weight: 800;
}

.error-log-body {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding: 20px 24px 24px;
}

.machine-list-dialog {
  width: min(980px, 100%);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.machine-list-body {
  max-height: min(620px, calc(100dvh - 170px));
  overflow: auto;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
  scrollbar-width: thin;
}

.machine-list-dialog .machine-list-panel {
  width: 100%;
  margin: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
}

.machine-list-dialog .machine-list-panel .client-machines-list-head {
  margin-bottom: 10px;
}

.machine-list-dialog .machine-list-panel .client-machines-list-head > div {
  min-width: 0;
}

.machine-list-dialog .client-machines-list .table-responsive {
  max-width: 100%;
  overflow-x: hidden;
}

.machine-list-dialog .client-machines-list .clients-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.machine-list-dialog .client-machines-list .clients-table th,
.machine-list-dialog .client-machines-list .clients-table td {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.machine-list-dialog .client-machines-list .machine-status-column,
.machine-list-dialog .client-machines-list .machine-status-cell {
  width: 36px;
}

.machine-list-dialog .client-machines-list .machine-device-cell,
.machine-list-dialog .client-machines-list .machine-last-access-cell {
  min-width: 0;
  max-width: none;
  white-space: normal;
}

.machine-list-body::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.machine-list-body::-webkit-scrollbar-track {
  background: transparent;
}

.machine-list-body::-webkit-scrollbar-thumb {
  border-radius: var(--app-border-radius);
  background: rgba(148, 163, 184, 0.42);
}

.machine-list-state {
  display: grid;
  min-height: 190px;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px;
  color: #667085;
  text-align: center;
}

.machine-list-state i {
  color: #3b82f6;
  font-size: 1.15rem;
}

.machine-preview-table {
  min-width: 760px;
}

.machine-preview-table thead th {
  padding: 10px 14px;
  font-weight: 500;
}

.machine-preview-table tbody td {
  padding: 9px 14px;
  font-size: 0.82rem;
}

.hardware-id-dialog {
  width: min(560px, 100%);
}

.shared-machine-dialog {
  width: min(680px, 100%);
}

.shared-machine-body {
  gap: 10px;
}

.machine-association-list {
  display: grid;
  gap: 10px;
}

.machine-association-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--app-border-radius);
  color: #334155;
  background: rgba(248, 251, 255, 0.9);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.machine-association-item:hover,
.machine-association-item:focus-visible {
  border-color: rgba(124, 58, 237, 0.4);
  color: #334155;
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.1);
  outline: 0;
  transform: translateY(-1px);
}

.machine-association-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--app-border-radius);
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.machine-association-content {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.machine-association-content strong,
.machine-association-content small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.machine-association-content strong {
  color: #172033;
  font-size: 0.92rem;
}

.machine-association-content small {
  color: #64748b;
  font-size: 0.78rem;
}

.machine-association-status {
  padding: 5px 8px;
  border-radius: var(--app-border-radius);
  font-size: 0.72rem;
  font-weight: 760;
}

.machine-association-status.active,
.machine-association-status.lifetime {
  color: #047857;
  background: rgba(16, 185, 129, 0.11);
}

.machine-association-status.blocked {
  color: #b45309;
  background: rgba(245, 158, 11, 0.13);
}

.machine-association-status.expired {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.1);
}

.machine-association-open {
  color: #94a3b8;
  font-size: 0.76rem;
}

.hardware-id-body {
  gap: 12px;
}

.hardware-id-value {
  display: block;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--app-border-radius);
  color: #1f2937;
  background: rgba(248, 251, 255, 0.92);
  font-size: 0.92rem;
  line-height: 1.55;
}

.error-log-item {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--app-border-radius);
  padding: 16px;
  background: rgba(248, 251, 255, 0.82);
}

.error-log-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.error-log-item-head strong {
  color: #1f2937;
}

.error-log-item-head span {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 650;
}

.error-log-item-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.client-action.error-log-copy {
  width: 30px;
  height: 30px;
  border-radius: var(--app-border-radius);
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.client-action.error-log-copy:hover,
.client-action.error-log-copy:focus {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.15);
}

.client-action.error-log-copy.copy-success {
  color: #047857;
  background: rgba(16, 185, 129, 0.14);
}

.error-log-item p {
  margin: 0 0 12px;
  color: #334155;
}

.error-log-item pre {
  max-height: 240px;
  margin: 8px 0 0;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: var(--app-border-radius);
  padding: 12px;
  color: #1f2937;
  background: rgba(226, 232, 240, 0.72);
}

.error-log-item summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 760;
}

.error-log-extra strong {
  color: #475569;
  font-size: 0.86rem;
}

/* Desktop error log viewer ------------------------------------------------ */
[data-error-log-modal] .error-log-modal-backdrop {
  background: rgba(5, 5, 10, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

[data-error-log-modal] .error-log-dialog {
  width: min(1040px, 100%);
  max-height: min(780px, calc(100dvh - 48px));
  border: 1px solid rgba(121, 121, 138, 0.44);
  color: #e4e4e7;
  background: #121219;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

[data-error-log-modal] .error-log-header {
  min-height: 76px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(121, 121, 138, 0.34);
  background: #1a1a24;
}

[data-error-log-modal] .error-log-header small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d6b875;
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

[data-error-log-modal] .error-log-header h5 {
  margin-top: 4px;
  color: #fafafa;
  font-size: 1.05rem;
}

[data-error-log-modal] .error-log-header > .client-action {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(121, 121, 138, 0.4);
  color: #d4d4d8;
  background: #22222f;
}

[data-error-log-modal] .error-log-body {
  gap: 8px;
  max-height: calc(100dvh - 124px);
  padding: 12px;
  scrollbar-color: rgba(214, 184, 117, 0.42) transparent;
  scrollbar-width: thin;
}

[data-error-log-modal] .error-log-item {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(121, 121, 138, 0.34);
  border-radius: var(--app-border-radius);
  color: #d4d4d8;
  background: #1a1a24;
  transition: border-color 160ms ease, background-color 160ms ease;
}

[data-error-log-modal] .error-log-item:hover {
  border-color: rgba(214, 184, 117, 0.46);
  background: #1d1d28;
}

[data-error-log-modal] .error-log-item-head {
  align-items: center;
  min-height: 52px;
  margin: 0;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(121, 121, 138, 0.28);
}

[data-error-log-modal] .error-log-item-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

[data-error-log-modal] .error-log-item-title strong {
  overflow: hidden;
  color: #f4f4f5;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-error-log-modal] .error-log-severity-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: var(--app-round-radius);
  color: #fb7185;
  background: rgba(251, 113, 133, 0.09);
  font-size: 0.72rem;
}

[data-error-log-modal] .error-log-item-actions {
  gap: 8px;
}

[data-error-log-modal] .error-log-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(121, 121, 138, 0.3);
  border-radius: var(--app-round-radius);
  color: #a1a1aa;
  background: rgba(11, 11, 17, 0.48);
  font-size: 0.72rem;
}

[data-error-log-modal] .client-action.error-log-copy {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(214, 184, 117, 0.32);
  color: #e4c77f;
  background: rgba(214, 184, 117, 0.08);
}

[data-error-log-modal] .error-log-message-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 14px;
  color: #c4c4cc;
}

[data-error-log-modal] .error-log-message-row > i {
  margin-top: 3px;
  color: #8b8b98;
  font-size: 0.72rem;
}

[data-error-log-modal] .error-log-message-row p {
  margin: 0;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
}

[data-error-log-modal] .error-log-detail {
  margin: 0 12px 10px;
  overflow: hidden;
  border: 1px solid rgba(121, 121, 138, 0.28);
  border-radius: var(--app-border-radius);
  background: rgba(11, 11, 17, 0.44);
}

[data-error-log-modal] .error-log-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 0 10px;
  color: #d6b875;
  font-size: 0.76rem;
  font-weight: 760;
  list-style: none;
}

[data-error-log-modal] .error-log-detail summary::-webkit-details-marker {
  display: none;
}

[data-error-log-modal] .error-log-detail summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

[data-error-log-modal] .error-log-detail summary > i:last-child {
  transition: transform 160ms ease;
}

[data-error-log-modal] .error-log-detail[open] summary > i:last-child {
  transform: rotate(180deg);
}

[data-error-log-modal] .error-log-detail pre {
  max-height: 210px;
  margin: 0;
  padding: 10px;
  border-top: 1px solid rgba(121, 121, 138, 0.24);
  border-radius: 0;
  color: #c8c8d0;
  background: #0b0b11;
  font-size: 0.74rem;
  line-height: 1.5;
}

.license-key-large {
  max-width: 100%;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 0.82rem;
}

.license-key-actions {
  display: grid;
  grid-template-columns: 96px 38px;
  gap: 6px;
  align-items: center;
}

.client-key-save {
  height: 40px;
  min-height: 40px;
  padding-right: 14px;
  padding-left: 14px;
}

.machine-count,
.license-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--app-round-radius);
  font-size: 0.8rem;
  font-weight: 720;
}

.machine-count {
  border: 0;
  border-radius: var(--app-border-radius);
  color: #475467;
  background: rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.machine-count:hover,
.machine-count:focus-visible {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  outline: 0;
}

.clients-table-card:not(.clients-card-mode) .machine-count,
.clients-table-card:not(.clients-card-mode) .license-status {
  min-height: 24px;
  padding: 0 7px;
  font-size: 0.72rem;
  font-weight: 600;
}

.clients-table-card:not(.clients-card-mode) .license-status-dot {
  width: 7px;
  height: 7px;
  flex-basis: 7px;
}

.clients-filtered-total {
  position: absolute;
  right: 7px;
  bottom: 5px;
  z-index: 12;
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--app-border-radius);
  color: #667085;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
}

.license-status-active {
  --status-color: #10b981;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
}

.license-status-blocked {
  --status-color: #f59e0b;
  color: #92400e;
  background: rgba(245, 158, 11, 0.12);
}

.license-status-expired {
  --status-color: #ef4444;
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.1);
}

.license-status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: var(--app-round-radius);
  background: var(--status-color, #94a3b8);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--status-color, #94a3b8) 40%, transparent);
}

.license-status-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid var(--status-color, #94a3b8);
  opacity: 0;
  animation: status-pulse 1.4s ease-out infinite;
}

.license-status-icon {
  display: inline-grid;
  width: 14px;
  flex: 0 0 14px;
  place-items: center;
  font-size: 0.78rem;
  text-align: center;
}

.clients-table-card:not(.clients-card-mode) .license-status {
  gap: 7px;
  padding: 0;
  background: transparent;
}

.clients-table-card:not(.clients-card-mode) .license-status-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: var(--app-border-radius);
}

.clients-table-card:not(.clients-card-mode) .license-status-active .license-status-icon {
  background: rgba(16, 185, 129, 0.12);
}

.clients-table-card:not(.clients-card-mode) .license-status-blocked .license-status-icon {
  background: rgba(245, 158, 11, 0.14);
}

.clients-table-card:not(.clients-card-mode) .license-status-expired .license-status-icon {
  background: rgba(239, 68, 68, 0.12);
}

@keyframes status-pulse {
  0% {
    transform: scale(0.65);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.clients-table-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.clients-table-title h5,
.clients-table-title p {
  margin: 0;
}

.clients-table-title p {
  margin-top: 3px;
  color: #667085;
  font-size: 0.84rem;
  font-weight: 590;
}

.license-summary-grid {
  display: grid;
  grid-template-columns: 205px 118px 74px;
  max-width: 430px;
  gap: 10px;
  align-items: end;
}

.license-summary-grid label {
  display: block;
  margin-bottom: 5px;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 660;
}

.client-license-row {
  display: grid;
  grid-template-columns: 190px 170px 108px 92px 186px;
  gap: 12px;
  align-items: end;
}

.client-license-row > * {
  min-width: 0;
}

.client-license-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin-bottom: 5px;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 660;
}

.client-license-row .form-control,
.client-license-row .license-calendar-trigger,
.client-license-row .license-key-large,
.client-license-row .client-action {
  min-height: 40px;
}

.client-license-row .form-control {
  height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}

.client-license-row .text-danger {
  display: block;
  min-height: 0;
  margin-top: 3px;
  font-size: 0.72rem;
}

.license-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 !important;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.56);
  color: #475467;
  font-size: 0.88rem !important;
  font-weight: 650 !important;
}

.license-calendar {
  position: relative;
}

.license-calendar-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: var(--app-border-radius);
  color: #1f2937;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 560;
  text-align: left;
}

.license-calendar-trigger span {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 560;
  line-height: 1.2;
}

.license-calendar-trigger i {
  color: #3b82f6;
  font-size: 0.84rem;
}

.license-calendar-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 2160;
  display: none;
  width: min(292px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--app-border-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
    #ffffff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
  transform: none;
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  overflow: hidden;
}

.client-register-row .license-calendar-popover {
  right: 0;
  left: auto;
}

.license-calendar.open .license-calendar-popover {
  display: block;
}

.license-calendar-popover.portal-open {
  position: fixed;
  z-index: 2147483000;
  display: block;
}

body.license-calendar-open {
  overflow-x: hidden;
}

.license-calendar-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 9px;
}

.license-calendar-presets button,
.license-calendar-head button,
.license-calendar-day {
  border: 0;
  background: transparent;
}

.license-calendar-presets button {
  min-height: 28px;
  padding: 0 6px;
  border-radius: var(--app-border-radius);
  color: #475467;
  background: rgba(15, 23, 42, 0.05);
  font-size: 0.72rem;
  font-weight: 740;
}

.license-calendar-presets button:hover,
.license-calendar-presets button:focus,
.license-calendar-presets button.active {
  color: #1d4ed8;
  background: rgba(66, 133, 244, 0.13);
}

.license-calendar-head {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.license-calendar-head strong {
  color: #172033;
  font-size: 0.88rem;
  font-weight: 760;
  text-align: center;
}

.license-calendar-head button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--app-border-radius);
  color: #64748b;
}

.license-calendar-head button:hover,
.license-calendar-head button:focus {
  color: #1d4ed8;
  background: rgba(66, 133, 244, 0.1);
}

.license-calendar-weekdays,
.license-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.license-calendar-weekdays {
  margin-bottom: 4px;
}

.license-calendar-weekdays span {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 760;
  text-align: center;
}

.license-calendar-day {
  position: relative;
  display: grid;
  min-width: 0;
  height: 29px;
  place-items: center;
  border-radius: var(--app-border-radius);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 690;
}

.license-calendar-day:hover,
.license-calendar-day:focus {
  color: #1d4ed8;
  background: rgba(66, 133, 244, 0.1);
}

.license-calendar-day.muted {
  color: #b8c0cc;
}

.license-calendar-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.54;
}

.license-calendar-day.today {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.44);
}

.license-calendar-day.in-range {
  color: #1d4ed8;
  background: rgba(66, 133, 244, 0.1);
}

.license-calendar-day.selected {
  color: #ffffff;
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.client-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.client-actions form {
  margin: 0;
}

.client-action {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: var(--app-border-radius);
  background: transparent;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.clients-table-card:not(.clients-card-mode) .client-actions {
  gap: 4px;
}

.clients-table-card:not(.clients-card-mode) .client-action {
  width: 30px;
  height: 30px;
}

.client-machines-guide .client-actions,
.client-machines-list .client-actions {
  justify-content: center;
  gap: 4px;
}

.client-machines-guide .client-action,
.client-machines-list .client-action {
  width: 32px;
  height: 32px;
  border-radius: var(--app-border-radius);
}

.client-machines-guide .client-action-errors,
.client-machines-list .client-action-errors {
  min-width: 32px;
  padding: 0;
}

.client-machines-guide .clients-table tbody td:first-child,
.client-machines-guide .clients-table tbody td:last-child,
.client-machines-list .clients-table tbody td:first-child,
.client-machines-list .clients-table tbody td:last-child {
  vertical-align: middle;
}

.machine-status-column,
.machine-status-cell {
  width: 34px;
  min-width: 34px;
  padding-left: 4px !important;
  padding-right: 4px !important;
  text-align: center;
}

.machine-status-cell .license-status-dot {
  display: inline-block;
  vertical-align: middle;
}

.machine-actions-column {
  min-width: 190px;
}

.machine-actions-column span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--app-round-radius);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.client-action:hover,
.client-action:focus {
  transform: translateY(-1px);
}

.client-action-edit {
  color: #d99b16;
}

.client-action-edit:hover,
.client-action-edit:focus {
  color: #b7791f;
  background: rgba(245, 158, 11, 0.1);
}

.client-action-renew {
  color: #2563eb;
}

.client-action-renew:hover,
.client-action-renew:focus {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.client-action-activate {
  color: #059669;
}

.client-action-activate:hover,
.client-action-activate:focus {
  color: #047857;
  background: rgba(16, 185, 129, 0.11);
}

.client-action-deactivate {
  color: #64748b;
}

.client-action-deactivate:hover,
.client-action-deactivate:focus {
  color: #475569;
  background: rgba(100, 116, 139, 0.12);
}

.client-renew-action {
  position: relative;
}

.client-renew-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  bottom: auto;
  z-index: 30;
  display: none;
  min-width: 136px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(28, 43, 71, 0.14);
}

.client-renew-action.open .client-renew-menu {
  display: grid;
  gap: 4px;
}

.client-renew-menu.portal-open {
  position: fixed;
  z-index: 2147483000;
  display: grid;
  gap: 4px;
}

.client-renew-menu button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--app-border-radius);
  color: #334155;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 680;
  text-align: left;
}

.client-renew-menu button:hover,
.client-renew-menu button:focus {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.client-action-delete {
  color: #dc2626;
}

.client-action-delete:hover,
.client-action-delete:focus {
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.09);
}

.clients-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 38px 20px;
  color: #667085;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.clients-empty i {
  color: #94a3b8;
  font-size: 1.5rem;
}

.clients-empty p {
  margin: 0;
  font-weight: 590;
}

.clients-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.42);
}

.clients-pagination p {
  margin: 0;
  color: #667085;
  font-size: 0.88rem;
  font-weight: 620;
}

.clients-pagination nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.page-number,
.page-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--app-border-radius);
  color: #667085;
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-step {
  min-width: auto;
}

.page-number:hover,
.page-step:hover,
.page-number:focus,
.page-step:focus {
  color: #1d4ed8;
  background: rgba(66, 133, 244, 0.08);
  transform: translateY(-1px);
}

.page-number.active {
  color: #ffffff;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.28);
}

.page-step.disabled {
  color: #a0a8b5;
  cursor: default;
}

.client-register-card {
  margin-top: 22px;
  padding: 22px;
}

.client-register-card-quick {
  flex: 0 0 auto;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 12px 14px;
}

.client-register-card-quick h5 {
  margin-bottom: 9px;
  font-size: 0.92rem;
  font-weight: 600;
}

.client-edit-page {
  width: min(100%, 1320px);
  height: auto;
  min-height: calc(100dvh - 150px);
  margin-top: 14px;
  padding-bottom: 24px;
}

.client-edit-header {
  align-items: center;
  margin-bottom: 12px;
}

.client-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.client-mobile-save-footer {
  display: none;
}

.client-edit-header h4 {
  margin: 0;
  font-size: 1.35rem;
}

.client-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.license-toggle-header {
  min-height: 24px;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #d6b875;
  background: transparent;
  font-size: 0.72rem !important;
  border-radius: 0;
  cursor: pointer;
  transition: color 160ms ease;
}

.license-toggle-header input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.license-toggle-indicator {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 999px;
  background: #d6b875;
  transition: background-color 180ms ease;
}

.license-toggle-indicator i {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  color: #76591f;
  font-size: 0.5rem;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.license-toggle-indicator::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.34);
  transition: left 180ms ease, box-shadow 180ms ease;
}

.license-toggle-icon-inactive,
.license-toggle-status-inactive {
  display: none;
}

.license-toggle-header:has(input:not(:checked)) {
  color: #a1a1aa;
  background: transparent;
}

.license-toggle-header input:not(:checked) + .license-toggle-indicator {
  background: #71717a;
}

.license-toggle-header input:not(:checked) + .license-toggle-indicator::after {
  left: 2px;
}

.license-toggle-header input:not(:checked) + .license-toggle-indicator .license-toggle-icon-active {
  display: none !important;
}

.license-toggle-header input:not(:checked) + .license-toggle-indicator .license-toggle-icon-inactive {
  display: none;
}

.license-toggle-header input:not(:checked) ~ .license-toggle-status .license-toggle-status-active {
  display: none;
}

.license-toggle-header input:not(:checked) ~ .license-toggle-status .license-toggle-status-inactive {
  display: inline;
}

.license-toggle-header:focus-within {
  outline: 2px solid rgba(214, 184, 117, 0.6);
  outline-offset: 2px;
}

.client-edit-card {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 14px;
  overflow: visible;
}

.client-edit-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.client-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.license-toggle-toolbar {
  min-height: 42px;
  padding: 0 12px;
  background: rgba(239, 246, 255, 0.72);
}

.client-edit-toolbar h5,
.client-edit-toolbar p {
  margin: 0;
}

.client-edit-toolbar h5 {
  color: #111827;
  font-size: 1.05rem;
  font-weight: 760;
}

.client-edit-toolbar p {
  margin-top: 2px;
  color: #667085;
  font-size: 0.84rem;
}

.client-register-card h5 {
  margin: 0 0 14px;
}

.client-register-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.48fr) minmax(90px, 0.25fr) minmax(140px, 0.4fr) auto;
  gap: 10px;
  align-items: start;
}

.client-register-row > *,
.license-summary-grid > * {
  min-width: 0;
}

.client-register-row-two {
  grid-template-columns: 220px 170px;
  max-width: 410px;
}

.client-phone-input {
  max-width: 170px;
}

.client-machine-limit-input {
  width: 56px;
  max-width: 56px;
  text-align: center;
}

.machine-device-cell,
.machine-last-access-cell {
  white-space: nowrap;
}

.machine-device-cell {
  min-width: 125px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.machine-last-access-cell {
  min-width: 145px;
}

.client-machines-guide .clients-table,
.client-machines-list .clients-table {
  min-width: 1040px;
}

.client-edit-page .client-machines-list .clients-table {
  width: 100%;
  min-width: 860px;
  table-layout: fixed;
}

.client-edit-page .client-machines-list .clients-table th:nth-child(2) {
  width: 18%;
}

.client-edit-page .client-machines-list .clients-table th:nth-child(3) {
  width: 16%;
}

.client-edit-page .client-machines-list .clients-table th:nth-child(4) {
  width: 12%;
}

.client-edit-page .client-machines-list .clients-table th:nth-child(5) {
  width: 10%;
}

.client-edit-page .client-machines-list .clients-table th:nth-child(6) {
  width: 135px;
}

.client-edit-page .client-machines-list .clients-table th:nth-child(7) {
  width: 190px;
}

.client-edit-page .client-machines-list .clients-table tbody td:nth-child(3),
.client-edit-page .client-machines-list .machine-device-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-edit-sections {
  display: grid;
  gap: 12px;
}

.client-edit-section {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.client-edit-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.client-section-heading {
  margin-bottom: 8px;
}

.client-section-heading h5 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 760;
}

.client-section-subtitle {
  margin: 10px 0 6px;
  color: #667085;
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.client-quick-section {
  order: 1;
}

.client-config-section {
  position: relative;
  z-index: 4;
  order: 2;
  overflow: visible;
}

.client-machines-section {
  order: 3;
}

.client-config-section .config-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.client-config-section .config-section {
  overflow: visible;
  padding: 14px;
}

.client-config-section .config-section-dropdown {
  padding: 0;
  overflow: hidden;
}

.client-config-section .config-section-primary {
  position: relative;
  z-index: 6;
  overflow: visible;
  grid-column: 1 / -1;
  border-color: rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.68));
}

.client-config-section .config-section-primary .config-section-grid {
  grid-template-columns: minmax(340px, 1fr) minmax(150px, auto);
  align-items: end;
}

.client-config-section .config-section-primary .config-field-titulojanela {
  grid-column: 1 / -1;
  grid-row: 1;
}

.client-config-section .config-section-primary .config-field-complementotitulojanela {
  grid-column: 1 / -1;
  grid-row: 2;
}

.client-config-section .config-section-primary .config-field-titulojanela .form-control,
.client-config-section .config-section-primary .config-field-complementotitulojanela .form-control {
  border-radius: var(--app-border-radius);
}

.client-config-section .config-section-primary .config-field-modelosupgrade {
  position: relative;
  z-index: 8;
  grid-column: 1;
  grid-row: 3;
  max-width: 190px;
}

.client-config-section .config-section-primary .config-field-modelosupgrade .config-multiselect-panel {
  left: 0;
  right: auto;
}

.client-config-section .config-section-primary .config-field-logsativo {
  grid-column: 2;
  grid-row: 3;
}

.client-config-section .config-section:not(.config-section-primary) .config-section-grid {
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
}

.client-config-section .config-section-primary .config-field-wide {
  grid-column: 1 / -1;
}

.client-config-section .config-section-compact {
  padding: 10px 12px;
}

.client-config-section .config-section-compact .config-section-grid {
  gap: 0;
}

.client-config-section .config-section-heading {
  margin-bottom: 10px;
}

.config-dropdown > summary {
  list-style: none;
}

.config-dropdown > summary::-webkit-details-marker {
  display: none;
}

.config-dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
}

.config-dropdown-summary strong,
.config-dropdown-summary small {
  display: block;
}

.config-dropdown-summary strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 780;
}

.config-entry-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  border: 1px solid rgba(214, 184, 117, 0.3);
  border-radius: var(--app-round-radius);
  color: #d6b875;
  background: rgba(214, 184, 117, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.config-dropdown-summary small {
  margin-top: 1px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 560;
}

.config-dropdown-summary i {
  color: #64748b;
  font-size: 0.82rem;
  transition: transform 160ms ease;
}

.config-dropdown[open] .config-dropdown-summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.config-dropdown[open] .config-dropdown-summary i {
  transform: rotate(180deg);
}

.config-dropdown-content {
  padding: 14px;
}

.client-config-section .config-section-toggleable {
  padding: 0;
}

.client-config-section .config-section-toggleable .config-preset-toggle {
  min-height: 46px;
  padding: 0 14px;
}

.client-config-section .config-section-toggleable .config-toggle-content {
  padding: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.client-machines-section:not(:has(tbody tr)) .table-responsive {
  display: none;
}

.client-machines-section:not(:has(tbody tr)) .clients-empty {
  padding: 14px 18px;
  border-top: 0;
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.48);
}

.client-bottom-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.client-machines-guide,
.client-machines-list {
  margin-top: 18px;
}

.client-machines-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.client-machines-list-head h5,
.client-machines-list-head p {
  margin: 0;
}

.client-machines-list-head h5 {
  color: #111827;
  font-size: 1rem;
  font-weight: 760;
}

.client-machines-list-head p {
  margin-top: 2px;
  color: #667085;
  font-size: 0.84rem;
  font-weight: 590;
}

.client-machines-guide > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.client-machines-guide > summary::-webkit-details-marker {
  display: none;
}

.client-machines-guide > summary strong,
.client-machines-guide > summary small {
  display: block;
}

.client-machines-guide > summary strong {
  color: #111827;
  font-size: 1rem;
  font-weight: 760;
}

.client-machines-guide > summary small {
  margin-top: 2px;
  color: #667085;
  font-size: 0.84rem;
  font-weight: 590;
}

.client-machines-guide > summary i {
  color: #64748b;
  transition: transform 160ms ease;
}

.client-machines-guide[open] > summary {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.client-machines-guide[open] > summary i {
  transform: rotate(180deg);
}

.machine-add-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(160px, 0.75fr) minmax(180px, 1fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.machine-add-form label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 660;
}

.machine-add-form .btn {
  min-height: 44px;
  white-space: nowrap;
}

.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding-left: 0;
  border-bottom-color: rgba(148, 163, 184, 0.24);
  list-style: none;
}

.client-tabs .nav-link {
  border: 0;
  border-radius: var(--app-border-radius) var(--app-border-radius) 0 0;
  color: #667085;
  font-size: 0.9rem;
  font-weight: 680;
}

.client-tabs .nav-link:hover,
.client-tabs .nav-link:focus {
  color: #1d4ed8;
  background: rgba(66, 133, 244, 0.08);
}

.client-tabs .nav-link.active {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 -2px 0 #3b82f6;
}

.client-tab-content {
  padding-top: 20px;
}

.client-tab-title {
  padding: 0 0 14px;
  border-bottom: 0;
}

@media (max-width: 1199.98px) {
  .license-summary-grid {
    grid-template-columns: 205px 118px 74px;
  }

  .client-license-row {
    grid-template-columns: 190px 170px 108px 56px 222px;
  }

  .license-toggle {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .clients-page {
    margin-top: 16px;
  }

  .client-register-card {
    padding: 18px;
  }

  .license-summary-grid {
    grid-template-columns: 205px 118px 74px;
  }

  .client-license-row {
    grid-template-columns: 190px 170px 108px;
  }

  .client-config-section .config-section-primary .config-field-titulojanela,
  .client-config-section .config-section-primary .config-field-complementotitulojanela {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .client-config-section .config-section-primary .config-field-modelosupgrade,
  .client-config-section .config-section-primary .config-field-logsativo {
    grid-column: auto;
    grid-row: auto;
  }

  .client-config-section .config-fields {
    grid-template-columns: 1fr;
  }

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

  .machine-add-form .btn {
    grid-column: 1 / -1;
  }

  .clients-table {
    min-width: 820px;
  }
}

@media (max-width: 767.98px) {
  .clients-page {
    margin-top: 16px;
  }

  .clients-header {
    align-items: start;
    flex-direction: column;
  }

  .client-edit-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .client-edit-toolbar .btn,
  .client-bottom-actions .btn {
    width: 100%;
  }

  .client-bottom-actions {
    justify-content: stretch;
  }

  .machine-add-form {
    grid-template-columns: 1fr;
  }

  .clients-filter-bar {
    padding: 12px;
  }

  .clients-filter-search-row {
    grid-template-columns: 1fr;
  }

  .clients-search-submit {
    width: 100%;
  }

  .clients-filter-options-row {
    align-items: stretch;
    flex-direction: column;
  }

  .clients-sort-controls {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .clients-sort-field {
    flex: 1 1 180px;
  }

  .clients-sort-field .form-select {
    width: 100%;
  }

  .clients-recent-activity-field {
    flex: 1 1 220px;
  }

  .clients-recent-activity-field .form-select {
    width: 100%;
  }

  .clients-filter-clear {
    align-self: flex-start;
  }

  .clients-table thead th,
  .clients-table tbody td {
    padding: 15px 16px;
  }

  .client-identity small {
    display: none;
  }

  .client-register-row {
    grid-template-columns: 1fr;
  }

  .client-license-row {
    grid-template-columns: 1fr;
  }

  .license-summary-grid {
    grid-template-columns: 1fr;
  }

  .license-summary-grid > :first-child {
    grid-column: auto;
  }

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

  .client-tabs .nav-item,
  .client-tabs .nav-link {
    width: 100%;
  }

  .client-tabs .nav-link {
    min-height: 44px;
    border-radius: var(--app-border-radius);
    text-align: center;
  }

  .client-register-row .btn {
    width: 100%;
  }

  .clients-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .clients-pagination nav {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .container {
    width: min(calc(100% - 24px), 1140px);
  }

  .app-navbar {
    padding: 6px 0;
  }

  .navbar > .container {
    justify-content: space-between;
  }

  .navbar-toggler {
    display: inline-grid;
    width: 36px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: var(--app-border-radius);
    color: #d6b875;
    background: transparent;
    font-size: 1.1rem;
  }

  .navbar-toggler-icon {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 0;
    background-image: none;
    box-shadow: none;
  }

  .navbar-collapse {
    display: none;
    flex-basis: 100%;
    padding-top: 10px;
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .navbar-nav:last-child {
    margin-left: 0;
  }

  .app-nav-link {
    display: flex;
    width: 100%;
  }

  .clients-header .btn {
    width: 100%;
  }

  .client-register-card {
    padding: 14px;
    border-radius: var(--app-border-radius);
  }

  .client-tabs {
    grid-template-columns: 1fr;
  }

  .app-toast-region {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

.form-control {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-control:focus {
  border-color: #4285f4;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.13), 0 10px 30px rgba(66, 133, 244, 0.08);
}

.form-group label {
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 650;
}

.config-editor {
  white-space: nowrap;
  overflow-x: auto;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

.config-fields {
  display: grid;
  gap: 16px;
}

.config-section {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.66);
}

.config-section-heading {
  margin-bottom: 14px;
}

.config-section-heading h5,
.config-section-heading p {
  margin: 0;
}

.config-section-heading h5,
.client-section-heading h5,
.config-dropdown-summary strong,
.config-field label,
.config-toggle-field span,
.client-machines-guide summary strong {
  display: flex;
  align-items: center;
  gap: 7px;
}

.client-machines-list-head h5,
.client-machines-list-head p,
.client-machines-list .machine-actions-column span {
  align-items: center;
  gap: 7px;
}

.client-machines-list-head h5,
.client-machines-list-head p {
  display: inline-flex;
}

.client-machines-list .clients-table thead th {
  white-space: nowrap;
}

.client-machines-list .clients-table thead th .field-label-icon {
  margin-right: 7px;
  vertical-align: -0.08em;
}

.client-machines-list .machine-actions-column span {
  display: inline-flex;
}

.field-label-icon {
  flex: 0 0 auto;
  color: #2563eb;
  font-size: 0.88em;
}

.config-section-heading p {
  margin-top: 3px;
  color: #667085;
  font-size: 0.82rem;
}

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

.config-section-toggleable {
  display: grid;
  gap: 14px;
}

.config-preset-toggle {
  display: flex;
  align-items: center;
}

.config-preset-toggle .config-toggle-field {
  flex-direction: row-reverse;
  gap: 7px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.config-toggle-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.config-toggle-content[hidden] {
  display: none;
}

.config-preset-mobile-header {
  display: none;
}

.config-preset-fields-scroll {
  display: contents;
}

.config-mobile-page-header {
  display: none;
}

.config-mobile-page-scroll {
  display: contents;
}

.mobile-machines-list-entry {
  display: none;
}

.mobile-machine-entry {
  display: none;
}

.config-field[hidden] {
  display: none !important;
}

.config-tools-mobile-entry,
.config-tools-mobile-header {
  display: none;
}

.config-tools-mobile-content {
  display: contents;
}

@media (min-width: 768px) {
  .app-body > header {
    position: fixed;
    z-index: 1100;
    top: 0;
    right: 0;
    left: 0;
  }

  .app-body > header .app-navbar {
    width: 100%;
    margin-bottom: 0 !important;
  }

  .app-body > .app-container {
    padding-top: 50px;
  }
}

.config-subsection {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--app-border-radius);
  background: rgba(248, 251, 255, 0.68);
}

.config-toggle-content .config-subsection-stacked {
  grid-column: 1 / -1;
}

.config-subsection-stacked .config-section-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.config-toggle-content .config-section-grid {
  grid-template-columns: minmax(0, 1fr);
}

.config-subsection-heading {
  margin-bottom: 12px;
}

.config-subsection-heading h6 {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 800;
}

.config-field {
  min-width: 0;
}

.config-field-wide {
  grid-column: 1 / -1;
}

.config-field-compact {
  max-width: 190px;
}

.config-field label {
  margin-bottom: 7px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 650;
}

.config-field small {
  display: block;
  margin-top: 6px;
  color: #667085;
}

.config-host-tags {
  display: grid;
  gap: 12px;
}

.config-host-tags-entry {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.config-host-tags-input {
  flex: 1 1 auto;
  min-width: 0;
}

.config-host-tags-add {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 116px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--app-border-radius);
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.9);
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.config-host-tags-add:hover,
.config-host-tags-add:focus-visible {
  border-color: rgba(37, 99, 235, 0.42);
  color: #1e40af;
  background: rgba(219, 234, 254, 0.95);
}

.config-host-tags-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: var(--app-border-radius);
  background: rgba(248, 251, 255, 0.62);
}

.config-host-tags-empty {
  color: #94a3b8;
  font-size: 0.84rem;
}

.config-host-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 32px;
  padding: 3px 5px 3px 11px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--app-round-radius);
  color: #1e3a8a;
  background: rgba(239, 246, 255, 0.96);
  font-size: 0.84rem;
  font-weight: 680;
}

.config-host-tag-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-host-tag-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--app-round-radius);
  color: #64748b;
  background: transparent;
  font-size: 0.7rem;
}

.config-host-tag-action:hover,
.config-host-tag-action:focus-visible {
  color: #1d4ed8;
  background: rgba(147, 197, 253, 0.32);
}

.config-host-tag-remove:hover,
.config-host-tag-remove:focus-visible {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.8);
}

.config-field .form-select,
.config-field .form-control {
  min-height: 44px;
  border-color: rgba(148, 163, 184, 0.42);
  border-radius: var(--app-border-radius);
  background-color: rgba(255, 255, 255, 0.9);
}

.language-select {
  position: relative;
}

.language-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: var(--app-border-radius);
  color: #334155;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  text-align: left;
}

.language-select-trigger:hover,
.language-select.open .language-select-trigger,
.language-select-trigger:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.language-select-trigger img,
.language-select-menu img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.language-select-trigger span {
  flex: 1 1 auto;
}

.language-select-trigger > i {
  color: #64748b;
  font-size: 0.76rem;
  transition: transform 160ms ease;
}

.language-select.open .language-select-trigger > i {
  transform: rotate(180deg);
}

.language-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 20;
  display: none;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.language-select.open .language-select-menu {
  display: grid;
  gap: 3px;
}

.language-select-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--app-border-radius);
  color: #334155;
  background: transparent;
  font: inherit;
  text-align: left;
}

.language-select-menu button:hover,
.language-select-menu button.active {
  color: #1d4ed8;
  background: rgba(239, 246, 255, 0.95);
}

.config-password-field {
  position: relative;
}

.config-password-field .form-control {
  padding-right: 44px;
}

.config-password-field .form-control:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.16rem rgba(220, 53, 69, 0.14);
}

.config-password-field .form-control:valid {
  border-color: #198754;
}

.config-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--app-border-radius);
  color: #64748b;
  background: transparent;
  transform: translateY(-50%);
}

.config-password-toggle:hover,
.config-password-toggle:focus {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.config-multiple {
  min-height: 142px !important;
}

.config-toggle-field {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--app-border-radius);
  color: #334155;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
}

/* Preset is always enabled internally; its legacy checkbox is not a user
   control because the section itself is opened/closed as a dropdown. */
.config-preset-dropdown > .config-toggle-field[hidden] {
  display: none !important;
}

.config-toggle-field input {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
}

.config-multiselect {
  position: relative;
  z-index: 1;
}

.config-multiselect.open {
  z-index: 2140;
}

.config-multiselect-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: var(--app-border-radius);
  color: #334155;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  font: inherit;
}

.config-multiselect-button span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.config-multiselect-button i {
  color: #64748b;
  font-size: 0.82rem;
  transition: transform 160ms ease;
}

.config-multiselect.open .config-multiselect-button {
  border-color: #4285f4;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.13), 0 10px 30px rgba(66, 133, 244, 0.08);
}

.config-multiselect.open .config-multiselect-button i {
  transform: rotate(180deg);
}

.config-multiselect-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  z-index: 2141;
  display: none;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 7px;
  width: min(520px, calc(100vw - 40px));
  max-height: 230px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--app-border-radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(28, 43, 71, 0.14);
}

.config-multiselect.open .config-multiselect-panel {
  display: grid;
}

.config-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.config-checkbox {
  display: flex !important;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  margin: 0 !important;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--app-border-radius);
  color: #334155;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-size: 0.84rem;
}

.config-checkbox:hover {
  border-color: rgba(66, 133, 244, 0.42);
  background: rgba(66, 133, 244, 0.06);
}

.config-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.config-checkbox-all {
  color: #1d4ed8;
  font-weight: 760 !important;
}

@media (min-width: 768px) {
  .app-body .client-edit-page .config-multiselect.open .config-multiselect-button {
    border-color: rgba(214, 184, 117, 0.78);
    color: #f4f4f5;
    background: #22222f;
    box-shadow: 0 0 0 3px rgba(214, 184, 117, 0.1);
  }

  .app-body .client-edit-page .config-multiselect-button i {
    color: #d6b875;
  }

  .app-body .client-edit-page .config-multiselect-panel {
    border-color: rgba(121, 121, 138, 0.52);
    background: #18181f;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  }

  .app-body .client-edit-page .config-checkbox {
    border-color: rgba(121, 121, 138, 0.4);
    color: #d4d4d8;
    background: #22222f;
    font-weight: 650;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
  }

  .app-body .client-edit-page .config-checkbox:hover,
  .app-body .client-edit-page .config-checkbox:has(input:checked) {
    border-color: rgba(214, 184, 117, 0.68);
    color: #f4e0ad;
    background: rgba(214, 184, 117, 0.1);
  }

  .app-body .client-edit-page .config-checkbox input {
    accent-color: #d6b875;
  }

  .app-body .client-edit-page .config-checkbox-all {
    color: #e4c77f;
  }
}

@media (max-width: 575.98px) {
  .config-section {
    padding: 14px;
  }

  .config-section-grid {
    grid-template-columns: 1fr;
  }

  .config-toggle-content {
    grid-template-columns: 1fr;
  }

  .config-host-tags-entry {
    flex-direction: column;
  }

  .config-host-tags-add {
    width: 100%;
  }

  .config-field-wide {
    grid-column: auto;
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--app-border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 80ms ease, border-color 80ms ease, color 80ms ease, filter 80ms ease;
}

.btn:hover {
  transform: none;
  filter: brightness(1.06);
}

.btn:active {
  transform: none;
  filter: brightness(0.96);
}

.btn:focus-visible {
  outline: 2px solid rgba(214, 184, 117, 0.82);
  outline-offset: 2px;
}

.btn:disabled,
.btn.disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  filter: none;
}

.btn-primary,
.btn-success {
  border-color: #1f5fce;
  background: linear-gradient(180deg, #3f83ee 0%, #2f6fda 100%);
  box-shadow: none;
}

.btn-secondary {
  border-color: rgba(121, 121, 138, 0.5);
  background: #475467;
}

.btn-danger {
  border-color: #b91c1c;
  background: linear-gradient(180deg, #e05252 0%, #c92f2f 100%);
}

.btn-outline-secondary {
  border-color: rgba(121, 121, 138, 0.52);
  color: #475467;
  background: rgba(255, 255, 255, 0.72);
}

.app-copyright-label {
  position: fixed;
  right: 14px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 900;
  pointer-events: none;
  color: rgba(196, 196, 204, 0.58);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.login-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #172033;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  background:
    url("../Images/login-background.png") center / cover no-repeat fixed,
    #17130e;
}

.login-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: none;
}

.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px 18px;
  isolation: isolate;
}

.login-orb {
  position: fixed;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: var(--app-round-radius);
  filter: blur(22px);
  opacity: 0.52;
}

.login-orb-primary {
  top: 9%;
  left: 10%;
  background: rgba(212, 164, 68, 0.08);
}

.login-orb-secondary {
  right: 11%;
  bottom: 12%;
  background: rgba(231, 197, 124, 0.08);
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  width: min(100%, 1040px);
  padding: 0;
  border: 1px solid rgba(202, 164, 91, 0.2);
  border-radius: var(--app-border-radius);
  background: rgba(24, 24, 27, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(1.08);
  animation: login-card-in 520ms ease both;
  transition: opacity 240ms ease, transform 240ms ease;
  overflow: hidden;
}

.login-showcase {
  display: grid;
  min-height: 570px;
  padding: 48px;
  place-items: center;
  border-right: 1px solid rgba(202, 164, 91, 0.14);
  background:
    linear-gradient(rgba(12, 12, 15, 0.18), rgba(12, 12, 15, 0.42)),
    url("../Images/login-background.png") center / cover no-repeat;
}

.login-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 52px 48px;
}

.login-body.is-login-leaving .login-panel {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  animation: none;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: #d4d4d8;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-align: center;
}

.login-brand-copy {
  display: grid;
  gap: 5px;
}

.login-brand-copy strong {
  color: #fafafa;
  font-size: 1.35rem;
  font-weight: 720;
}

.login-brand-copy span {
  color: #a1a1aa;
  font-size: 0.9rem;
  font-weight: 520;
}

.login-brand-mark {
  display: grid;
  width: 88px;
  height: 58px;
  place-items: center;
}

.login-brand-mark img {
  width: 88px;
  height: 58px;
  object-fit: contain;
}

.login-heading {
  margin-bottom: 28px;
}

.login-heading p {
  margin: 0 0 7px;
  color: #a1a1aa;
  font-size: 0.92rem;
  font-weight: 520;
}

.login-heading h1 {
  margin: 0;
  color: #fafafa;
  font-size: clamp(2rem, 7vw, 2.55rem);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-field {
  display: grid;
  gap: 6px;
}

.login-field label {
  color: #e4e4e7;
  font-size: 0.86rem;
  font-weight: 650;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap::before {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  color: #a1a1aa;
  font-size: 1rem;
  line-height: 1;
}

.login-input-user::before {
  content: "@";
  font-weight: 700;
}

.login-input-password::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: var(--app-round-radius);
  box-shadow: inset 0 -5px 0 -3px currentColor;
}

.login-input-wrap input {
  width: 100%;
  height: 32px;
  padding: 0 12px 0 40px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: var(--app-border-radius);
  outline: none;
  color: #fafafa;
  background: rgba(39, 39, 42, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.login-input-wrap input::placeholder {
  color: #71717a;
  font-weight: 460;
}

.login-input-wrap input:hover {
  border-color: rgba(202, 164, 91, 0.48);
  background: rgba(47, 47, 51, 0.98);
}

.login-input-wrap input:focus {
  border-color: #caa45b;
  background: #27272a;
  box-shadow: 0 0 0 3px rgba(202, 164, 91, 0.14);
  transform: none;
}

.login-validation {
  min-height: 18px;
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 560;
}

.login-validation-summary {
  min-height: 0;
  text-align: center;
}

.login-field .login-validation:empty {
  display: none;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 32px;
  margin-top: 3px;
  border: 1px solid #1f5fce;
  border-radius: var(--app-border-radius);
  color: #ffffff;
  background: linear-gradient(180deg, #4c8df7 0%, #2563eb 100%);
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-submit:hover {
  filter: brightness(1.03);
  box-shadow: none;
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

.login-submit:focus-visible {
  outline: 4px solid rgba(66, 133, 244, 0.18);
  outline-offset: 3px;
}

.login-footnote {
  margin: 24px 0 0;
  color: #a1a1aa;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes copy-pulse {
  50% {
    transform: translateY(-1px) scale(1.01);
  }
}

@media (max-width: 520px) {
  .login-body {
    background:
      url("../Images/login-background-mobile.png") center / cover no-repeat scroll,
      #17130e;
  }

  .login-body::before,
  .login-orb {
    display: none;
  }

  .login-shell {
    min-height: 100dvh;
    padding: 20px 16px;
  }

  .login-panel {
    display: block;
    width: 100%;
    max-width: 390px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow: visible;
  }

  .login-showcase {
    min-height: 0;
    margin-bottom: 30px;
    padding: 0;
    border: 0;
    background: none;
  }

  .login-content {
    padding: 0;
  }

  .login-input-wrap input,
  .login-submit {
    min-height: 48px;
    font-size: 0.98rem;
  }

  .login-submit {
    width: 100%;
  }

  .login-brand {
    margin: 0;
  }
}

@media (max-width: 767.98px) {
  html.mobile-preset-page-open,
  body.mobile-preset-page-open,
  html.mobile-editor-page-open,
  body.mobile-editor-page-open {
    height: 100dvh;
    overflow: hidden !important;
  }

  .app-body .client-edit-page .config-dropdown-summary > i:last-child,
  .app-body .client-edit-page .client-machines-guide > summary > i:last-child {
    transform: rotate(-90deg) !important;
  }

  body.mobile-preset-page-open > .app-container {
    z-index: 2000;
  }

  body.mobile-preset-page-open .client-edit-page > :not(.client-edit-card),
  body.mobile-preset-page-open .client-edit-card .client-edit-section:not(.client-config-section),
  body.mobile-preset-page-open .client-config-section .config-section:not(.config-section-preset) {
    visibility: hidden;
  }

  body.mobile-preset-page-open .client-edit-card {
    z-index: 2010;
  }

  html {
    font-size: 14px;
  }

  .container,
  .client-edit-page {
    width: min(calc(100% - 20px), 1140px);
  }

  .clients-page,
  .client-edit-page {
    margin-top: 10px;
  }

  .clients-page {
    margin-top: 0;
    margin-bottom: 6px;
  }

  .client-edit-page {
    padding-bottom: 78px;
  }

  .clients-header,
  .client-edit-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .client-edit-header {
    align-items: flex-start;
    flex-direction: row;
    justify-content: space-between;
  }

  .client-edit-header .btn {
    width: auto;
    min-height: 40px;
    padding: 0 12px;
  }

  .clients-header h4,
  .client-edit-header h4 {
    font-size: 1.28rem;
    line-height: 1.18;
  }

  .clients-header > span {
    min-height: 30px;
    padding: 0 10px;
  }

  .client-register-card,
  .clients-table-card {
    border-radius: var(--app-border-radius);
  }

  .client-register-card {
    padding: 14px;
  }

  .client-edit-card {
    padding: 12px;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .client-edit-toolbar {
    gap: 10px;
  }

  .client-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .client-toolbar-actions .btn {
    display: none;
  }

  .license-toggle-toolbar {
    width: 100%;
    justify-content: center;
  }

  .client-license-row,
  .client-register-row,
  .client-register-row-two,
  .machine-add-form,
  .client-config-section .config-section-primary .config-section-grid,
  .client-config-section .config-section:not(.config-section-primary) .config-section-grid,
  .client-config-section .config-section-compact .config-section-grid {
    grid-template-columns: 1fr !important;
    max-width: none;
  }

  .client-license-row {
    grid-template-columns: minmax(0, 1fr) 92px !important;
  }

  .client-license-row > :nth-child(1),
  .client-license-row > :nth-child(2),
  .client-license-row > :nth-child(5) {
    grid-column: 1 / -1;
  }

  .client-license-row > :nth-child(3) {
    grid-column: 1;
  }

  .client-license-row > :nth-child(4) {
    grid-column: 2;
  }

  .client-phone-input,
  .client-machine-limit-input,
  .license-key-actions {
    width: 100%;
    max-width: none;
  }

  .license-key-actions {
    grid-template-columns: 92px 42px;
    width: max-content;
    max-width: 100%;
  }

  .client-key-save {
    position: fixed;
    right: 10px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 1040;
    width: calc(100% - 20px);
    height: 40px;
    min-height: 40px;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.32);
  }

  .client-config-section .config-section-primary .config-field-titulojanela {
    order: 1;
  }

  .client-config-section .config-section-primary .config-field-complementotitulojanela {
    order: 2;
  }

  .client-config-section .config-section-primary .config-field-modelosupgrade {
    order: 3;
    max-width: none;
  }

  .client-config-section .config-section-primary .config-field-logsativo {
    order: 4;
  }

  .client-license-row .form-control,
  .client-license-row .license-calendar-trigger,
  .client-license-row .license-key-large,
  .client-register-row .form-control,
  .client-register-row .license-calendar-trigger,
  .machine-add-form .form-control,
  .config-section .form-control,
  .config-multiselect-button {
    min-height: 44px;
  }

  .client-config-section .config-section {
    padding: 12px;
  }

  .config-dropdown-summary {
    min-height: 44px;
    padding: 0 12px;
  }

  .config-multiselect-panel {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 12px;
    left: 10px;
    width: auto;
    max-height: min(70dvh, 430px);
    grid-template-columns: 1fr;
    z-index: 2147481500;
  }

  .license-calendar-popover {
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
  }

  .clients-table-card .table-responsive,
  .client-machines-guide .table-responsive,
  .client-machines-list .table-responsive {
    overflow: visible;
  }

  .clients-table,
  .client-machines-guide .clients-table,
  .client-machines-list .clients-table {
    display: block;
    min-width: 0 !important;
  }

  .clients-table thead {
    display: none;
  }

  .clients-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .clients-table tbody tr {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--app-border-radius);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 30px rgba(28, 43, 71, 0.08);
  }

  .clients-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .clients-table tbody td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 760;
    text-transform: uppercase;
    letter-spacing: 0.025em;
  }

  .clients-table tbody td[data-label="Cliente"],
  .clients-table tbody td[data-label="Ações"] {
    align-items: flex-start;
  }

  .clients-table tbody td[data-label="Cliente"]::before,
  .clients-table tbody td[data-label="Ações"]::before {
    padding-top: 8px;
  }

  .clients-table tbody td[data-label="Ações"] {
    flex-direction: column;
    gap: 8px;
  }

  .clients-table tbody td[data-label="Ações"]::before {
    align-self: flex-start;
  }

  .clients-table tbody td[data-label="Ações"] .client-actions {
    align-self: stretch;
    justify-content: flex-start;
  }

  .client-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .client-action {
    width: 32px;
    height: 32px;
    border-radius: var(--app-border-radius);
  }

  .client-machines-guide .clients-table tbody tr,
  .client-machines-list .clients-table tbody tr {
    padding-left: 36px;
  }

  .client-machines-guide .machine-status-cell,
  .client-machines-list .machine-status-cell {
    position: absolute;
    top: 18px;
    left: 14px;
    display: block;
    width: auto;
    min-width: 0;
    padding: 0 !important;
  }

  .client-machines-guide .machine-status-cell::before,
  .client-machines-list .machine-status-cell::before {
    content: none;
  }

  .machine-device-cell,
  .machine-last-access-cell {
    min-width: 0;
    max-width: none;
    white-space: normal;
  }

  .copyable-value,
  .license-key {
    max-width: 100%;
  }

  .license-key {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .client-identity {
    min-width: 0;
  }

  .client-identity strong,
  .client-identity small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .clients-pagination {
    padding: 14px;
  }

  .client-edit-page {
    padding-bottom: 78px;
  }

  .client-bottom-actions {
    position: fixed !important;
    right: 10px !important;
    bottom: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 10px !important;
    z-index: 2147481200;
    display: flex !important;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: var(--app-border-radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.12);
    backdrop-filter: blur(16px) saturate(1.12);
  }

  .client-bottom-actions .btn {
    width: 100%;
    min-height: 42px;
    border-radius: var(--app-border-radius);
  }

  .app-copyright-label {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    font-size: 0.6rem;
  }

  .app-body:has(.client-edit-page) .app-copyright-label {
    bottom: calc(58px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .container,
  .client-edit-page {
    width: min(calc(100% - 16px), 1140px);
  }

  .client-register-card,
  .clients-table-card {
    border-radius: var(--app-border-radius);
  }

  .clients-table tbody {
    padding: 10px;
  }

  .clients-table tbody tr {
    padding: 12px;
  }

  .client-machines-guide .clients-table tbody tr,
  .client-machines-list .clients-table tbody tr {
    padding-left: 32px;
  }

  .client-machines-guide .machine-status-cell,
  .client-machines-list .machine-status-cell {
    left: 12px;
  }

  .client-title-row {
    gap: 8px;
  }

  .license-toggle-header {
    min-height: 24px;
    padding: 0;
  }

  .client-avatar {
    width: 34px;
    height: 34px;
  }
}

/* Client collection view switcher and infinite-scroll state. */
.clients-view-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 80px;
  padding: 0 10px;
  border: 1px solid rgba(59, 130, 246, 0.34);
  border-radius: var(--app-border-radius);
  background: rgba(239, 246, 255, 0.88);
  color: #2563eb;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.clients-view-toggle:hover {
  border-color: rgba(37, 99, 235, 0.62);
  background: rgba(219, 234, 254, 0.96);
  transform: translateY(-1px);
}
.clients-infinite-sentinel {
  display: flex;
  justify-content: center;
  padding: 18px;
  color: var(--text-muted, #64748b);
  font-size: .86rem;
}
.clients-infinite-sentinel.loading { opacity: .65; }

.clients-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--app-border-radius);
  color: #475467;
  background: rgba(255, 255, 255, 0.7);
  font-size: .8rem;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.clients-load-more:hover:not(:disabled),
.clients-load-more:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  color: #2563eb;
  background: rgba(239, 246, 255, 0.9);
}

.clients-load-more:disabled {
  cursor: wait;
}

.clients-table-card.clients-card-mode .table-responsive { overflow: visible; }
.clients-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 16px;
}
.clients-card-grid[hidden] { display: none; }
.client-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  min-width: 0;
  padding: 18px 16px 16px;
  border: 1px solid var(--border-color, #dbe4ef);
  border-radius: var(--app-border-radius);
  background: var(--surface-color, #fff);
  box-shadow: 0 8px 20px rgba(30, 65, 110, .08);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.client-card:hover {
  border-color: var(--primary-color, #2563eb);
  box-shadow: 0 12px 26px rgba(30, 65, 110, .15);
  transform: translateY(-2px);
}
.client-card-field { min-width: 0; }
.client-card-field::before {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted, #64748b);
  content: attr(data-label);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.client-card-field[data-label="Ações"] .client-actions { justify-content: flex-start; }
.client-card-field[data-label="Cliente"] { grid-column: 1 / -1; }
.client-card-field[data-label="Ações"] { grid-column: 1 / -1; }
.client-card-field[data-label="Chave"],
.client-card-field[data-label="Máquinas"],
.client-card-field[data-label="Expiração"],
.client-card-field[data-label="Status"] { flex: 1 1 0; }
.client-card-actions {
  position: absolute;
  top: -13px;
  right: 12px;
  z-index: 2;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.client-card-actions::before { display: none; }
.client-card-actions .client-actions { gap: 5px; }
.client-card-actions .client-action-edit { display: none; }
.client-card-actions .client-action {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
@media (max-width: 520px) {
  .client-card { grid-template-columns: 1fr; }
  .client-card-field[data-label="Chave"],
  .client-card-field[data-label="Máquinas"],
  .client-card-field[data-label="Expiração"],
  .client-card-field[data-label="Status"] { grid-column: 1; }
}
.clients-table-card.clients-card-mode .clients-table { display: block; }
.clients-table-card.clients-card-mode .clients-table thead { display: none; }
.clients-table-card.clients-card-mode .clients-table tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 16px;
}
.clients-table-card.clients-card-mode .clients-table tbody tr {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--border-color, #dbe4ef);
  border-radius: var(--app-border-radius);
  box-shadow: 0 8px 20px rgba(30, 65, 110, .08);
  background: var(--surface-color, #fff);
}
.clients-table-card.clients-card-mode .clients-table tbody td {
  display: block;
  border: 0;
  padding: 0;
  text-align: left !important;
}
.clients-table-card.clients-card-mode .clients-table tbody td::before {
  display: block;
  margin-bottom: 3px;
  color: var(--text-muted, #64748b);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.clients-table-card.clients-card-mode .clients-table tbody td[data-label="Cliente"]::before { content: "Cliente"; }
.clients-table-card.clients-card-mode .clients-table tbody td[data-label="Chave"]::before { content: "Chave de ativação"; }
.clients-table-card.clients-card-mode .clients-table tbody td[data-label="Máquinas"]::before { content: "Máquinas"; }
.clients-table-card.clients-card-mode .clients-table tbody td[data-label="Expiração"]::before { content: "Expiração"; }
.clients-table-card.clients-card-mode .clients-table tbody td[data-label="Status"]::before { content: "Status"; }
.clients-table-card.clients-card-mode .clients-table tbody td[data-label="Ações"]::before { content: "Ações"; }

/* Compact client workspace and platform-wide field typography. */
.form-control,
.form-select,
.license-calendar-trigger,
.config-multiselect-button {
  font-weight: 400;
}

.form-group label,
.license-summary-grid label,
.client-license-row label,
.machine-add-form label,
.config-field label,
.login-field label {
  color: #707780;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.mobile-client-register-toggle {
  display: none;
}

.client-delete-label {
  display: none;
}

@media (min-width: 768px) {
  .clients-sort-controls {
    gap: 6px;
    white-space: nowrap;
  }

  .clients-view-toggle {
    min-width: 72px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .clients-sort-field .form-select {
    width: 164px;
  }

  .clients-sort-direction {
    padding-right: 8px;
    padding-left: 8px;
  }

  .clients-recent-activity-field .form-select {
    width: 176px;
  }

  .clients-filter-clear {
    padding-right: 7px;
    padding-left: 7px;
  }
}

@media (max-width: 767.98px) {
  .clients-filter-bar {
    gap: 8px;
    padding: 10px;
    margin-bottom: 8px;
  }

  .client-register-card-quick {
    margin-bottom: 8px;
    padding: 10px;
  }

  .clients-collection-scroll {
    scrollbar-gutter: auto;
  }
}

@media (max-width: 767.98px) {
  .clients-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .clients-filter-search-row {
    display: contents;
  }

  .clients-search-field {
    order: 1;
  }

  .clients-filter-options-row {
    order: 2;
  }

  .clients-search-submit {
    order: 3;
    width: 100%;
  }

  .clients-view-toggle {
    display: none !important;
  }

  .clients-sort-controls {
    display: grid;
    grid-template-columns: 32px 32px minmax(108px, 1fr) auto;
    width: 100%;
    gap: 6px;
  }

  .clients-sort-field {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .clients-sort-direction {
    grid-column: 1;
    grid-row: 2;
    gap: 0;
    width: 32px;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0;
    font-size: 0.78rem;
  }

  .clients-sort-direction span {
    display: none;
  }

  .clients-filter-toggle {
    grid-column: 2;
    grid-row: 2;
    width: 32px;
    min-width: 32px;
    height: 32px !important;
    min-height: 32px !important;
    font-size: 0.78rem;
  }

  .clients-recent-activity-field {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
  }

  .clients-recent-activity-field > i {
    left: 8px;
    font-size: 0.72rem;
  }

  .clients-recent-activity-field .form-select {
    width: 100%;
    height: 32px;
    min-height: 32px;
    padding-right: 22px;
    padding-left: 24px;
    font-size: 0.7rem;
  }

  .clients-filter-clear {
    grid-column: 4;
    grid-row: 2;
    align-self: stretch;
    justify-content: center;
    height: 32px !important;
    min-height: 32px !important;
    padding-right: 7px;
    padding-left: 7px;
    gap: 4px;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .mobile-client-register-toggle {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    width: max-content;
    margin: 0 0 8px;
    padding: 6px 1px;
    border: 0;
    color: #d6b875;
    background: transparent;
    box-shadow: none;
    font-size: 0.88rem;
    font-weight: 700;
  }

  .mobile-client-register-toggle:hover,
  .mobile-client-register-toggle:focus-visible,
  .mobile-client-register-toggle.is-active {
    color: #f0d79f;
    background: transparent;
    box-shadow: none;
  }

  .client-register-card-quick {
    display: none;
  }

  .client-register-card-quick.is-mobile-open {
    display: block;
    margin: 0 0 10px;
    padding: 4px 0 10px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
  }

  .client-register-card-quick > h5 {
    display: none;
  }

  .app-body .clients-table-card {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    border: 0;
    background: transparent;
  }

  .mobile-client-register-toggle ~ .clients-table-card {
    border-top: 1px solid rgba(161, 161, 170, 0.24);
  }

  .app-body .clients-collection-scroll {
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .app-body .clients-table tbody {
    display: block;
    padding: 0 0 28px;
  }

  .app-body .clients-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 8px;
    min-height: 112px;
    margin: 0;
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid rgba(161, 161, 170, 0.24);
    border-radius: 0;
    color: #e4e4e7;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
  }

  .app-body .clients-table tbody tr:hover {
    background: rgba(39, 39, 42, 0.5);
  }

  .app-body .clients-table tbody td,
  .app-body .clients-table tbody tr:nth-child(even) td,
  .app-body .clients-table tbody tr:hover td {
    display: inline-flex;
    flex: 0 1 auto;
    width: auto;
    min-height: 28px;
    padding: 4px 9px !important;
    border: 1px solid rgba(113, 113, 122, 0.28) !important;
    border-radius: 999px;
    color: #d4d4d8;
    background: rgba(24, 24, 27, 0.58) !important;
  }

  .app-body .clients-table tbody td[data-label]::before {
    display: none;
  }

  .app-body .clients-table tbody td[data-label="Cliente"] {
    flex: 1 0 100%;
    min-height: 42px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
  }

  .app-body .clients-table tbody td[data-label="Cliente"] .client-identity {
    width: 100%;
    padding-right: 116px;
  }

  .app-body .clients-table tbody td[data-label="Chave"] {
    flex: 1 0 100%;
    justify-content: flex-start;
    width: 100%;
    max-width: max-content;
    padding: 2px 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .app-body .clients-table tbody td[data-label="Máquinas"],
  .app-body .clients-table tbody td[data-label="Expiração"],
  .app-body .clients-table tbody td[data-label="Status"] {
    flex: 0 1 auto;
    min-height: 24px;
    padding: 2px 7px !important;
    font-size: 0.72rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .app-body .clients-table tbody td[data-label="Máquinas"] .machine-count {
    min-width: 0;
    min-height: 20px;
    padding: 0;
    font-size: 0.72rem;
  }

  .app-body .clients-table tbody td[data-label="Ações"] {
    flex: 1 0 100%;
    align-items: center;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
  }

  .app-body .clients-table tbody td[data-label="Ações"] .client-actions {
    align-self: auto;
    width: 100%;
  }

  .app-body .clients-table tbody .client-action-edit {
    display: none;
  }

  .app-body .clients-table tbody form[data-client-command="delete"] {
    position: absolute;
    top: 13px;
    right: 10px;
  }

  .app-body .clients-table tbody .client-action-delete {
    width: auto;
    height: 26px;
    padding: 0;
    border: 0;
    color: #fda4af;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: none;
  }

  .app-body .clients-table tbody .client-action-delete > i {
    display: none;
  }

  .app-body .clients-table tbody .client-delete-label {
    display: inline;
  }

  .app-body .clients-table .license-status {
    gap: 6px;
  }
}

/* Graphite workspace theme ------------------------------------------------- */
.app-body {
  --app-surface: rgba(215, 216, 219, 0.94);
  --app-border: rgba(113, 113, 122, 0.34);
}

.app-body .app-navbar {
  border-bottom-color: rgba(202, 164, 91, 0.18);
  color: #e4e4e7;
  background: #1a1a24;
  box-shadow: none;
}

.app-body .navbar-brand,
.app-body .navbar-light .navbar-nav .nav-link {
  color: #d4d4d8;
}

.app-body .navbar-light .navbar-nav .nav-link:hover,
.app-body .navbar-light .navbar-nav .nav-link:focus,
.app-body .navbar-light .navbar-nav .app-nav-link.active {
  color: #ffffff;
}

.app-body .app-nav-link i {
  color: #a1a1aa;
  background: rgba(63, 63, 70, 0.82);
}

.app-body .app-nav-link.active i {
  color: #f5d58f;
  background: rgba(202, 164, 91, 0.16);
}

.app-body .app-profile-trigger,
.app-body .app-nav-logout,
.app-body .app-nav-dropdown {
  border-color: rgba(113, 113, 122, 0.45);
  color: #e4e4e7;
  background: rgba(39, 39, 42, 0.96);
  box-shadow: none;
}

.app-body .app-nav-dropdown .dropdown-item {
  color: #d4d4d8;
}

.app-body .clients-filter-bar {
  border-color: rgba(202, 164, 91, 0.22);
  background: rgba(24, 24, 27, 0.93);
  box-shadow: none;
}

.app-body .clients-filter-bar .form-control,
.app-body .clients-filter-bar .form-select,
.app-body .clients-view-toggle,
.app-body .clients-sort-direction,
.app-body .clients-filter-toggle {
  border-color: rgba(161, 161, 170, 0.34);
  color: #f4f4f5;
  background-color: rgba(63, 63, 70, 0.88);
  box-shadow: none;
}

.app-body .clients-filter-bar .form-control::placeholder {
  color: #a1a1aa;
}

.app-body .clients-filter-bar .form-control:focus,
.app-body .clients-filter-bar .form-select:focus,
.app-body .clients-view-toggle:hover,
.app-body .clients-sort-direction:hover,
.app-body .clients-filter-toggle:hover {
  border-color: rgba(202, 164, 91, 0.68);
  color: #ffffff;
  background-color: rgba(82, 82, 91, 0.96);
  box-shadow: 0 0 0 3px rgba(202, 164, 91, 0.12);
}

.app-body .clients-search-submit {
  border-color: #b68b3d;
  color: #18181b;
  background: #caa45b;
}

.app-body .clients-search-submit:hover,
.app-body .clients-search-submit:focus {
  border-color: #d7bb7c;
  color: #09090b;
  background: #d7bb7c;
}

.app-body .clients-filter-toggle.is-selected {
  border-color: rgba(74, 222, 128, 0.58);
  color: #bbf7d0;
  background: rgba(21, 128, 61, 0.3);
  box-shadow: none;
}

.app-body .clients-filter-clear {
  color: #d4d4d8;
  background: rgba(63, 63, 70, 0.7);
}

.app-body .clients-filter-clear:hover {
  color: #fecaca;
  background: rgba(153, 27, 27, 0.3);
}

.app-body .clients-search-field i,
.app-body .clients-recent-activity-field > i {
  color: #d6b875;
}

.app-body .clients-table-card,
.app-body .client-register-card,
.app-body .client-edit-card,
.app-body .config-section,
.app-body .modal-content,
.app-body .list-group-item {
  border-color: rgba(82, 82, 91, 0.3);
  background: rgba(215, 216, 219, 0.94);
  box-shadow: none;
}

.app-body .client-config-section .config-section-primary {
  border-color: rgba(202, 164, 91, 0.3);
  background: linear-gradient(180deg, rgba(210, 210, 212, 0.97), rgba(197, 198, 202, 0.94));
}

.app-body .table,
.app-body .clients-table,
.app-body .clients-table tbody tr,
.app-body .client-card,
.app-body .clients-table-card.clients-card-mode .clients-table tbody tr {
  background: rgba(224, 225, 227, 0.96);
  box-shadow: none;
}

.app-body .table thead th,
.app-body .clients-table thead th {
  color: #27272a;
  background: rgba(190, 191, 195, 0.98);
}

.app-body .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(205, 206, 209, 0.72);
}

.app-body .form-control,
.app-body .form-select,
.app-body .license-calendar-trigger,
.app-body .license-toggle,
.app-body .config-multiselect-button {
  border-color: rgba(113, 113, 122, 0.42);
  color: #27272a;
  background-color: rgba(228, 229, 231, 0.98);
  box-shadow: none;
}

.app-body .form-control:focus,
.app-body .form-select:focus,
.app-body .license-calendar-trigger:focus,
.app-body .config-multiselect-button:focus {
  border-color: #b68b3d;
  background-color: #ececee;
  box-shadow: 0 0 0 3px rgba(182, 139, 61, 0.14);
}

.app-body button,
.app-body .btn,
.app-body input[type="submit"],
.app-body input[type="button"],
.app-body .client-action,
.app-body .page-step,
.app-body .clients-load-more {
  box-shadow: none !important;
}

.app-body .license-toggle-header {
  border: 0;
  color: #d6b875;
  background: transparent;
}

.app-body .license-toggle-header:has(input:not(:checked)) {
  color: #a1a1aa;
  background: transparent;
}

.app-body button:hover,
.app-body button:active,
.app-body .btn:hover,
.app-body .btn:active,
.app-body input[type="submit"]:hover,
.app-body input[type="submit"]:active {
  box-shadow: none !important;
}

/* Client registration and result list share the filter context. */
.app-body .client-register-card {
  border-color: rgba(202, 164, 91, 0.22);
  background: rgba(24, 24, 27, 0.93);
}

.app-body .client-register-card h5,
.app-body .client-register-card label {
  color: #f4f4f5;
}

.app-body .client-register-card .form-control,
.app-body .client-register-card .form-select,
.app-body .client-register-card .license-calendar-trigger {
  border-color: rgba(161, 161, 170, 0.34);
  color: #f4f4f5;
  background: rgba(63, 63, 70, 0.88);
}

.app-body .client-register-card .form-control::placeholder {
  color: #a1a1aa;
}

.app-body .client-register-card .form-control:focus,
.app-body .client-register-card .form-select:focus,
.app-body .client-register-card .license-calendar-trigger:focus {
  border-color: rgba(202, 164, 91, 0.68);
  color: #ffffff;
  background: rgba(82, 82, 91, 0.96);
  box-shadow: 0 0 0 3px rgba(202, 164, 91, 0.12);
}

.app-body .clients-table-card {
  border-color: rgba(202, 164, 91, 0.2);
  background: rgba(24, 24, 27, 0.93);
}

.app-body .clients-table,
.app-body .clients-table tbody tr,
.app-body .clients-table tbody td,
.app-body .client-card,
.app-body .clients-table-card.clients-card-mode .clients-table tbody tr {
  color: #e4e4e7;
  background: rgba(39, 39, 42, 0.9);
}

.app-body .clients-table tbody tr:nth-child(even) td {
  background: rgba(46, 46, 51, 0.92);
}

.app-body .clients-table tbody tr:hover td {
  background: rgba(63, 63, 70, 0.96);
}

.app-body .clients-table thead th,
.app-body .clients-list-columns {
  border-color: rgba(161, 161, 170, 0.26);
  color: #f4f4f5;
  background: rgba(24, 24, 27, 0.98);
  box-shadow: none;
}

.app-body .clients-table thead th .field-label-icon {
  color: #d6b875;
}

.app-body .clients-table .client-identity strong,
.app-body .client-card .client-identity strong {
  color: #fafafa;
}

.app-body .clients-table .client-identity small,
.app-body .client-card .client-identity small,
.app-body .client-card-field::before {
  color: #a1a1aa;
}

.app-body .clients-table .license-key,
.app-body .client-card .license-key {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.2);
}

.app-body .clients-table .machine-count,
.app-body .client-card .machine-count {
  color: #d4d4d8;
  background: rgba(82, 82, 91, 0.74);
}

.app-body .clients-filtered-total {
  border-color: rgba(161, 161, 170, 0.3);
  color: #d4d4d8;
  background: rgba(24, 24, 27, 0.94);
  box-shadow: none;
}

.app-body .client-avatar {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.24);
  box-shadow: none;
}

.app-body .client-avatar.client-avatar-recent {
  color: #bbf7d0;
  background: rgba(21, 128, 61, 0.34);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.46);
}

.app-body .client-avatar.client-avatar-stale {
  color: #fde68a;
  background: rgba(161, 98, 7, 0.34);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.42);
}

@media (min-width: 768px) {
  .app-body .clients-filter-bar,
  .app-body .client-register-card,
  .app-body .clients-table-card {
    border: 0.01px solid #79798a;
    background: #0b0b11;
  }
}

@media (max-width: 767.98px) {
  html,
  .app-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  .app-body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .app-body .clients-filter-bar {
    padding-right: 0;
    padding-left: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .app-body .clients-collection-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .app-body .clients-collection-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .app-body .clients-table tbody tr,
  .app-body .clients-table tbody tr:nth-child(even),
  .app-body .clients-table tbody tr:nth-child(odd) {
    --bs-table-accent-bg: transparent;
    display: grid !important;
    grid-template-columns: repeat(4, max-content);
    grid-template-rows: 42px 28px;
    align-items: center;
    align-content: center !important;
    justify-content: start !important;
    column-gap: 12px !important;
    row-gap: 8px !important;
    width: 100% !important;
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
    margin: 0 !important;
    padding: 13px 10px !important;
    background: rgba(39, 39, 42, 0.9) !important;
  }

  .app-body .clients-table tbody tr td,
  .app-body .clients-table tbody tr:nth-child(even) td,
  .app-body .clients-table tbody tr:nth-child(odd) td,
  .app-body .clients-table tbody tr:hover td {
    --bs-table-accent-bg: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-body .clients-table tbody td[data-label="Máquinas"],
  .app-body .clients-table tbody td[data-label="Expiração"] {
    border: 1px solid rgba(113, 113, 122, 0.28) !important;
    border-radius: 999px !important;
    background: rgba(24, 24, 27, 0.58) !important;
  }

  .app-body .clients-table tbody td[data-label="Cliente"] {
    order: 1;
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex !important;
    flex: 1 0 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
  }

  .app-body .clients-table tbody td[data-label="Cliente"] .client-identity {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 116px 0 0 !important;
  }

  .app-body .clients-table tbody td[data-label="Cliente"] .client-avatar {
    flex: 0 0 30px;
    margin: 0 !important;
  }

  .app-body .clients-table tbody td[data-label="Chave"] {
    order: 2;
    grid-column: 1;
    grid-row: 2;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    border-color: transparent !important;
    background: transparent !important;
  }

  .app-body .clients-table tbody td[data-label="Máquinas"] {
    order: 3;
    grid-column: 2;
    grid-row: 2;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .app-body .clients-table tbody td[data-label="Expiração"] {
    order: 4;
    grid-column: 3;
    grid-row: 2;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .app-body .clients-table tbody td[data-label="Máquinas"] .machine-count {
    color: inherit;
    background: transparent !important;
  }

  .app-body .clients-table tbody td[data-label="Status"] {
    order: 5;
    grid-column: 4;
    grid-row: 2;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
  }

  .app-body .clients-table tbody td[data-label="Ações"] {
    order: 6;
    display: contents !important;
    border-color: transparent !important;
    background: transparent !important;
  }

  .app-body .clients-table tbody td[data-label="Ações"] .client-actions {
    display: contents !important;
  }

  .app-body .clients-table tbody tr:nth-child(even) > td:not([data-label="Ações"]) {
    transform: translateX(-9px);
  }

  .app-body .clients-table tbody td[data-label="Status"] .license-status {
    min-height: 24px;
    padding: 2px 8px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 10%, transparent);
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .app-body .clients-table tbody .license-status-icon {
    display: none;
  }
}

/* Client editor graphite surfaces ----------------------------------------- */
.app-body .client-edit-page .client-edit-card,
.app-body .client-edit-page .client-machines-guide,
.app-body .client-edit-page .client-machines-list {
  border: 1px solid rgba(121, 121, 138, 0.42);
  color: #e4e4e7;
  background: rgba(26, 26, 36, 0.96);
  box-shadow: none;
}

.app-body .client-edit-page .config-section {
  border: 1px solid rgba(121, 121, 138, 0.34);
  color: #e4e4e7;
  background: rgba(34, 34, 47, 0.96);
  box-shadow: none;
}

.app-body .client-edit-page .client-config-section .config-section-primary {
  border-color: rgba(214, 184, 117, 0.42);
  background: linear-gradient(180deg, rgba(42, 42, 55, 0.98), rgba(30, 30, 42, 0.98));
}

.app-body .client-edit-page .client-edit-header h4,
.app-body .client-edit-page .client-section-heading h5,
.app-body .client-edit-page .config-section-heading h5,
.app-body .client-edit-page .config-dropdown-summary strong,
.app-body .client-edit-page .client-machines-guide > summary strong,
.app-body .client-edit-page .client-machines-list-head h5 {
  color: #fafafa;
}

.app-body .client-edit-page .client-edit-header p,
.app-body .client-edit-page .config-section-heading p,
.app-body .client-edit-page .config-dropdown-summary small,
.app-body .client-edit-page .client-machines-guide > summary small,
.app-body .client-edit-page .client-machines-list-head p {
  color: #a1a1aa;
}

.app-body .client-edit-page label {
  color: #d4d4d8;
}

.app-body .client-edit-page .field-label-icon,
.app-body .client-edit-page summary > i {
  color: #d6b875;
}

.app-body .client-edit-page .form-control,
.app-body .client-edit-page .form-select,
.app-body .client-edit-page .license-calendar-trigger,
.app-body .client-edit-page .config-multiselect-button {
  border-color: rgba(121, 121, 138, 0.48);
  color: #f4f4f5;
  background-color: rgba(49, 49, 63, 0.96);
}

.app-body .client-edit-page .form-control::placeholder {
  color: #8f8f9c;
}

.app-body .client-edit-page .form-control:focus,
.app-body .client-edit-page .form-select:focus,
.app-body .client-edit-page .license-calendar-trigger:focus,
.app-body .client-edit-page .config-multiselect-button:focus {
  border-color: #d6b875;
  color: #ffffff;
  background-color: #393947;
  box-shadow: 0 0 0 3px rgba(214, 184, 117, 0.12);
}

.app-body .client-edit-page .client-machines-list .clients-table,
.app-body .client-edit-page .client-machines-list .clients-table tbody tr,
.app-body .client-edit-page .client-machines-list .clients-table tbody td {
  color: #e4e4e7;
  background: rgba(34, 34, 47, 0.92);
}

.app-body .client-edit-page .client-machines-list .clients-table thead th {
  color: #f4f4f5;
  background: #1a1a24;
}

@media (min-width: 768px) {
  .app-body .client-edit-page .config-preset-dropdown .config-dropdown-content,
  .app-body .client-edit-page .config-preset-dropdown .config-toggle-content {
    background: rgba(18, 18, 25, 0.72);
  }

  .app-body .client-edit-page .config-preset-dropdown .config-subsection {
    border: 1px solid rgba(121, 121, 138, 0.38);
    color: #e4e4e7;
    background: #22222f;
    box-shadow: none;
  }

  .app-body .client-edit-page .config-preset-dropdown .config-subsection-heading h6 {
    color: #f4f4f5;
  }

  .app-body .client-edit-page .config-preset-dropdown label {
    color: #c4c4cc;
  }

  .app-body .client-edit-page .config-preset-dropdown .field-label-icon,
  .app-body .client-edit-page .config-preset-dropdown .config-password-toggle {
    color: #d6b875;
  }

  .app-body .client-edit-page .config-preset-dropdown .form-control {
    border-color: rgba(121, 121, 138, 0.56);
    color: #fafafa;
    background: #30303e;
  }

  .app-body .client-edit-page .config-preset-dropdown .form-control:focus {
    border-color: #d6b875;
    background: #353544;
  }
}

@media (max-width: 767.98px) {
  .app-body .client-edit-page {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .app-body .client-mobile-save-footer {
    position: fixed;
    z-index: 1040;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: calc(62px + env(safe-area-inset-bottom));
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(121, 121, 138, 0.38);
    background: rgba(26, 26, 36, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    contain: layout paint;
  }

  .app-body .client-mobile-save-footer .client-key-save {
    position: static;
    display: flex;
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 42px;
    box-shadow: none;
  }

  .app-body .client-edit-page .client-desktop-save {
    display: none;
  }

  .app-body .client-edit-page .client-edit-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .app-body .client-edit-page .client-edit-card,
  .app-body .client-edit-page .client-machines-guide,
  .app-body .client-edit-page .client-machines-list {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 10px;
    padding-left: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .app-body .client-edit-page .client-edit-card {
    padding-bottom: 0;
  }

  .app-body .client-edit-page .client-machines-guide {
    display: none;
  }

  .app-body .client-edit-page .client-machines-guide > summary {
    min-height: 58px;
    gap: 12px;
    padding: 0;
  }

  .app-body .client-edit-page .mobile-machine-entry,
  .app-body .client-edit-page .mobile-machines-list-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-bottom: 1px solid rgba(121, 121, 138, 0.34);
    color: #e4e4e7;
    background: transparent;
    text-align: left;
  }

  .app-body .client-edit-page .mobile-machine-entry > span,
  .app-body .client-edit-page .mobile-machine-entry strong,
  .app-body .client-edit-page .mobile-machine-entry small {
    display: block;
  }

  .app-body .client-edit-page .mobile-machine-entry strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fafafa;
    font-size: 0.95rem;
    font-weight: 780;
  }

  .app-body .client-edit-page .mobile-machine-entry small {
    margin-top: 1px;
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 560;
  }

  .app-body .client-edit-page .mobile-machine-entry > i:last-child {
    color: #d6b875;
    font-size: 0.82rem;
  }

  .app-body .client-edit-page .client-machines-guide > summary strong {
    font-size: 0.95rem;
    font-weight: 780;
  }

  .app-body .client-edit-page .client-machines-guide > summary small {
    margin-top: 1px;
    font-size: 0.78rem;
    font-weight: 560;
  }

  .app-body .client-edit-page .client-machines-list {
    margin-top: 0;
    padding-right: 0;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  .app-body .client-edit-page .client-machines-list > .client-machines-page-content,
  .app-body .client-edit-page .client-machines-list > .config-mobile-page-header {
    display: none !important;
  }

  .app-body .client-edit-page .mobile-machines-list-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 0 10px;
    border: 0;
    border-bottom: 1px solid rgba(121, 121, 138, 0.34);
    color: #e4e4e7;
    background: transparent;
    text-align: left;
  }

  .app-body .client-edit-page .mobile-machines-list-entry > span,
  .app-body .client-edit-page .mobile-machines-list-entry strong,
  .app-body .client-edit-page .mobile-machines-list-entry small {
    display: block;
  }

  .app-body .client-edit-page .mobile-machines-list-entry strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fafafa;
    font-size: 0.95rem;
    font-weight: 780;
  }

  .app-body .client-edit-page .mobile-machines-list-entry small {
    margin-top: 1px;
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 560;
  }

  .app-body .client-edit-page .mobile-machines-list-entry > i:last-child {
    color: #d6b875;
    font-size: 0.82rem;
  }

  .app-body .client-edit-page .client-edit-section,
  .app-body .client-edit-page .client-machines-guide,
  .app-body .client-edit-page .client-machines-list {
    border-bottom: 1px solid rgba(121, 121, 138, 0.34);
  }

  .app-body .client-edit-page .client-config-section .config-fields {
    gap: 0;
  }

  .app-body .client-edit-page .config-section,
  .app-body .client-edit-page .client-config-section .config-section-primary {
    margin: 0;
    padding-right: 0;
    padding-left: 0;
    border-width: 0 0 1px;
    border-color: rgba(121, 121, 138, 0.3);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-body .client-edit-page .config-section-dropdown,
  .app-body .client-edit-page .config-section-preset {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
  }

  .app-body .client-edit-page .config-dropdown-summary,
  .app-body .client-edit-page .config-dropdown-content,
  .app-body .client-edit-page .client-config-section .config-toggle-content {
    padding-right: 0;
    padding-left: 0;
  }

  .app-body .client-edit-page .config-dropdown-summary,
  .app-body .client-edit-page .config-preset-dropdown > .config-dropdown-summary {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
  }

  .app-body .client-edit-page .mobile-machine-entry,
  .app-body .client-edit-page .mobile-machines-list-entry {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
  }

  .app-body .client-edit-page .client-machines-list {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    border-bottom: 0;
    overflow: hidden;
  }

  .app-body .client-edit-page .machine-add-form {
    padding: 0;
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open {
    position: fixed;
    z-index: 2147482000;
    inset: 0;
    display: block;
    width: 100vw;
    min-width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    color: #e4e4e7;
    background: #101016;
    isolation: isolate;
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open > .config-dropdown-summary {
    display: none;
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open > .config-toggle-content {
    position: fixed;
    z-index: 2147482001;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    background: #101016;
  }

  .app-body > .config-preset-dropdown .config-preset-mobile-header {
    position: fixed;
    z-index: 2147482003;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(121, 121, 138, 0.34);
    background: rgba(26, 26, 36, 0.98);
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open .config-preset-fields-scroll {
    position: fixed;
    z-index: 2147482002;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    align-content: start;
    padding: 0 14px calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open .config-preset-fields-scroll::-webkit-scrollbar {
    display: none;
  }

  .app-body > .config-preset-dropdown .config-preset-mobile-header > span {
    display: grid;
    min-width: 0;
  }

  .app-body > .config-preset-dropdown .config-preset-mobile-header strong {
    color: #fafafa;
    font-size: 1rem;
  }

  .app-body > .config-preset-dropdown .config-preset-mobile-header small {
    overflow: hidden;
    color: #a1a1aa;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-body > .config-preset-dropdown .config-preset-mobile-back,
  .app-body > .config-preset-dropdown .config-preset-mobile-done {
    min-height: 38px;
    border: 1px solid rgba(121, 121, 138, 0.42);
    border-radius: var(--app-border-radius);
    color: #f4f4f5;
    background: #22222f;
    box-shadow: none;
  }

  .app-body > .config-preset-dropdown .config-preset-mobile-back {
    width: 40px;
    padding: 0;
  }

  .app-body > .config-preset-dropdown .config-preset-mobile-done {
    padding: 0 12px;
    border-color: rgba(214, 184, 117, 0.55);
    color: #e4c77f;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open .config-subsection {
    padding: 16px 0;
    border-width: 0 0 1px;
    border-color: rgba(121, 121, 138, 0.3);
    border-radius: 0;
    background: transparent;
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open .config-subsection-heading h6,
  .app-body > .config-preset-dropdown.is-mobile-page-open label {
    color: #e4e4e7;
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open .form-control,
  .app-body > .config-preset-dropdown.is-mobile-page-open .config-host-tags-add {
    border-color: rgba(121, 121, 138, 0.48);
    color: #f4f4f5;
    background-color: rgba(49, 49, 63, 0.98);
    box-shadow: none;
  }

  .app-body > .config-preset-dropdown.is-mobile-page-open .form-control::placeholder {
    color: #8f8f9c;
  }

  .app-body > .config-ip-dropdown.is-mobile-page-open,
  .app-body > .client-machines-guide.is-mobile-page-open {
    position: fixed;
    z-index: 2147482000;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    color: #e4e4e7;
    background: #101016;
  }

  .app-body > .client-machines-guide.is-mobile-page-open {
    display: block;
  }

  .app-body > .config-ip-dropdown.is-mobile-page-open > summary,
  .app-body > .client-machines-guide.is-mobile-page-open > summary {
    display: none;
  }

  .app-body > .config-ip-dropdown.is-mobile-page-open > .config-dropdown-content {
    position: fixed;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    background: #101016;
  }

  .app-body > .config-ip-dropdown .config-mobile-page-header,
  .app-body > .client-machines-guide .config-mobile-page-header {
    position: fixed;
    z-index: 2147482003;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(121, 121, 138, 0.34);
    background: #1a1a24;
  }

  .app-body > .config-ip-dropdown .config-mobile-page-header > span,
  .app-body > .client-machines-guide .config-mobile-page-header > span {
    display: grid;
    min-width: 0;
  }

  .app-body > .config-ip-dropdown .config-mobile-page-header strong,
  .app-body > .client-machines-guide .config-mobile-page-header strong {
    color: #fafafa;
    font-size: 1rem;
  }

  .app-body > .config-ip-dropdown .config-mobile-page-header small,
  .app-body > .client-machines-guide .config-mobile-page-header small {
    overflow: hidden;
    color: #a1a1aa;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-body > .config-ip-dropdown .config-mobile-page-back,
  .app-body > .config-ip-dropdown .config-mobile-page-done,
  .app-body > .client-machines-guide .config-mobile-page-back,
  .app-body > .client-machines-guide .config-mobile-page-done {
    min-height: 38px;
    border: 1px solid rgba(121, 121, 138, 0.42);
    border-radius: var(--app-border-radius);
    color: #f4f4f5;
    background: #22222f;
    box-shadow: none;
  }

  .app-body > .config-ip-dropdown .config-mobile-page-back,
  .app-body > .client-machines-guide .config-mobile-page-back {
    width: 40px;
    padding: 0;
  }

  .app-body > .config-ip-dropdown .config-mobile-page-done,
  .app-body > .client-machines-guide .config-mobile-page-done {
    padding: 0 12px;
    border-color: rgba(214, 184, 117, 0.55);
    color: #e4c77f;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .app-body > .config-ip-dropdown.is-mobile-page-open .config-mobile-page-scroll,
  .app-body > .client-machines-guide.is-mobile-page-open .config-mobile-page-scroll {
    position: fixed;
    z-index: 2147482002;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 16px 14px calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .app-body > .config-ip-dropdown.is-mobile-page-open .config-mobile-page-scroll::-webkit-scrollbar,
  .app-body > .client-machines-guide.is-mobile-page-open .config-mobile-page-scroll::-webkit-scrollbar {
    display: none;
  }

  .app-body > .config-ip-dropdown.is-mobile-page-open .config-section-grid,
  .app-body > .client-machines-guide.is-mobile-page-open .machine-add-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin: 0;
  }

  .app-body > .config-ip-dropdown.is-mobile-page-open label,
  .app-body > .client-machines-guide.is-mobile-page-open label {
    color: #d4d4d8;
  }

  .app-body > .config-ip-dropdown.is-mobile-page-open .form-control,
  .app-body > .client-machines-guide.is-mobile-page-open .form-control {
    border-color: rgba(121, 121, 138, 0.48);
    color: #f4f4f5;
    background: #30303e;
    box-shadow: none;
  }

  .app-body .client-edit-page .config-tools-mobile-page {
    width: calc(100% + 36px);
    max-width: none;
    margin: 0 -18px -14px;
    padding: 0;
  }

  .app-body .client-edit-page .config-tools-mobile-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 0 28px 0 26px;
    border: 0;
    border-bottom: 0;
    color: #e4e4e7;
    background: transparent;
    text-align: left;
  }

  .app-body .client-edit-page .config-tools-mobile-entry strong,
  .app-body .client-edit-page .config-tools-mobile-entry small {
    display: block;
  }

  .app-body .client-edit-page .config-tools-mobile-entry strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fafafa;
    font-size: 0.95rem;
    font-weight: 780;
  }

  .app-body .client-edit-page .config-tools-mobile-entry small {
    margin-top: 1px;
    color: #a1a1aa;
    font-size: 0.78rem;
    font-weight: 560;
  }

  .app-body .client-edit-page .config-tools-mobile-entry > i:last-child {
    color: #d6b875;
    font-size: 0.82rem;
  }

  .app-body .client-edit-page .config-tools-mobile-content {
    display: none;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open {
    position: fixed;
    z-index: 2147482500;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100dvh;
    margin: 0;
    padding: 0;
    color: #e4e4e7;
    background: #0b0b11;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open > .config-tools-mobile-entry {
    display: none;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open > .config-tools-mobile-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 66px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open > .config-tools-mobile-content::-webkit-scrollbar {
    display: none;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-tools-mobile-header {
    position: fixed;
    z-index: 2147482503;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(121, 121, 138, 0.34);
    background: #1a1a24;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-tools-mobile-header strong,
  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-tools-mobile-header small {
    display: block;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-tools-mobile-header small {
    color: #a1a1aa;
    font-size: 0.72rem;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-mobile-page-back,
  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-mobile-page-done {
    min-height: 38px;
    border: 1px solid rgba(121, 121, 138, 0.42);
    border-radius: var(--app-round-radius);
    color: #f4f4f5;
    background: #22222f;
    box-shadow: none;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-mobile-page-back {
    width: 40px;
    padding: 0;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-mobile-page-done {
    padding: 0 12px;
    border-color: rgba(214, 184, 117, 0.55);
    color: #e4c77f;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open > .config-tools-mobile-content > label,
  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-multiselect-button {
    display: none;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-multiselect {
    padding: 16px 14px calc(24px + env(safe-area-inset-bottom));
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-multiselect-panel {
    position: static;
    display: grid !important;
    gap: 8px;
    width: 100%;
    max-height: none;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-checkbox {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid rgba(121, 121, 138, 0.4);
    border-radius: var(--app-round-radius);
    color: #d4d4d8;
    background: #22222f;
    font-size: 0.84rem;
    font-weight: 680;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-checkbox:hover,
  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-checkbox:has(input:checked) {
    border-color: rgba(214, 184, 117, 0.68);
    color: #f4e0ad;
    background: rgba(214, 184, 117, 0.12);
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #d6b875;
  }

  .app-body > .config-tools-mobile-page.is-mobile-page-open .config-checkbox-all {
    color: #e4c77f;
    font-weight: 800 !important;
  }

  .app-body > .client-machines-list.is-mobile-page-open {
    position: fixed;
    z-index: 2147482000;
    inset: 0;
    display: block;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    color: #e4e4e7;
    background: #101016;
  }

  .app-body > .client-machines-list.is-mobile-page-open > .mobile-machines-list-entry {
    display: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open > .config-mobile-page-header {
    position: fixed;
    z-index: 2147482003;
    top: 0;
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(121, 121, 138, 0.34);
    background: #1a1a24;
  }

  .app-body > .client-machines-list.is-mobile-page-open > .config-mobile-page-header > span {
    display: grid;
    min-width: 0;
  }

  .app-body > .client-machines-list.is-mobile-page-open > .config-mobile-page-header strong {
    color: #fafafa;
    font-size: 0.96rem;
  }

  .app-body > .client-machines-list.is-mobile-page-open > .config-mobile-page-header small {
    overflow: hidden;
    color: #a1a1aa;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-body > .client-machines-list.is-mobile-page-open .config-mobile-page-back,
  .app-body > .client-machines-list.is-mobile-page-open .config-mobile-page-done {
    min-height: 38px;
    border: 1px solid rgba(121, 121, 138, 0.42);
    border-radius: var(--app-border-radius);
    color: #f4f4f5;
    background: #22222f;
    box-shadow: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open .config-mobile-page-back {
    width: 40px;
    padding: 0;
  }

  .app-body > .client-machines-list.is-mobile-page-open .config-mobile-page-done {
    padding: 0 12px;
    border-color: rgba(214, 184, 117, 0.55);
    color: #e4c77f;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .app-body > .client-machines-list.is-mobile-page-open > .client-machines-page-content {
    position: fixed;
    z-index: 2147482002;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block !important;
    padding: 14px 10px calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open .client-machines-list-head {
    display: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open > .client-machines-page-content::-webkit-scrollbar {
    display: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open .table-responsive {
    overflow: visible;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table,
  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent !important;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody tr {
    position: relative;
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 18px 0 18px 30px;
    border: 0;
    border-bottom: 1px solid rgba(121, 121, 138, 0.36);
    border-radius: 0;
    color: #e4e4e7;
    background: transparent !important;
    box-shadow: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody tr:last-child {
    border-bottom: 0;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody td {
    min-height: 24px;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    color: #d4d4d8;
    background: transparent !important;
    transform: none !important;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody td[data-label]::before {
    color: #71717a;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-status-cell {
    top: 22px;
    left: 6px;
  }

  .app-body > .client-machines-list.is-mobile-page-open .copyable-value {
    border: 0;
    color: #c9d8ff;
    background: rgba(37, 99, 235, 0.12);
    box-shadow: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open .client-actions {
    gap: 4px;
    padding-top: 2px;
  }

  .app-body > .client-machines-list.is-mobile-page-open .client-action {
    border-color: rgba(121, 121, 138, 0.34);
    background: rgba(34, 34, 47, 0.72);
    box-shadow: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody tr,
  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody tr:nth-child(even),
  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody tr:nth-child(odd) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: repeat(3, auto) !important;
    align-content: start !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 18px 20px !important;
    border-top: 1px solid var(--app-border) !important;
    border-bottom: 1px solid var(--app-border) !important;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody tr + tr {
    border-top: 0 !important;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody tr:last-child {
    border-bottom: 1px solid var(--app-border) !important;
  }

  .app-body > .client-machines-list.is-mobile-page-open .clients-table tbody td[data-label]::before {
    display: none;
    content: none;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-status-cell {
    display: none !important;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-device-cell {
    grid-row: 1;
    grid-column: 1;
    justify-content: flex-start;
    min-width: 0;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-user-cell {
    grid-row: 2;
    grid-column: 1;
    justify-content: flex-start;
    min-width: 0;
  }

  .app-body > .client-machines-list.is-mobile-page-open td[data-label="Serial"] {
    grid-row: 1;
    grid-column: 2 / -1;
    justify-content: flex-end;
  }

  .app-body > .client-machines-list.is-mobile-page-open td[data-label="Último acesso"] {
    grid-row: 2;
    grid-column: 2 / -1;
    justify-content: flex-end;
  }

  .app-body > .client-machines-list.is-mobile-page-open td[data-label="sct_cfgnm"] {
    grid-row: 3;
    grid-column: 1 / 3;
    min-width: 0;
  }

  .app-body > .client-machines-list.is-mobile-page-open td[data-label="Ações"] {
    grid-row: 3;
    grid-column: 3;
    display: flex !important;
    flex: none;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start !important;
    width: 100%;
    padding: 0 !important;
    background: transparent !important;
    min-height: 34px;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-device-primary,
  .app-body > .client-machines-list.is-mobile-page-open .machine-user-tag,
  .app-body > .client-machines-list.is-mobile-page-open .machine-meta-tag,
  .app-body > .client-machines-list.is-mobile-page-open .copyable-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    height: 27px;
    padding: 0 8px;
    border: 1px solid rgba(121, 121, 138, 0.28);
    border-radius: var(--app-round-radius);
    color: #c4c4cc;
    background: rgba(34, 34, 47, 0.54);
    font-size: 0.68rem;
    line-height: 1;
    white-space: nowrap;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-device-primary {
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #f4f4f5;
    background: transparent;
    font-size: 0.86rem;
    font-weight: 750;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-row-active .machine-device-primary .machine-tag-icon {
    color: #10b981;
    animation: machine-device-icon-pulse 1.4s ease-in-out infinite;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-row-blocked .machine-device-primary .machine-tag-icon {
    color: #f59e0b;
    animation: machine-device-icon-pulse 1.4s ease-in-out infinite;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-user-tag {
    color: #d6b875;
    background: rgba(214, 184, 117, 0.08);
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-tag-icon {
    flex: 0 0 auto;
    color: #8b9bb5;
    font-size: 0.72rem;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-user-tag .machine-tag-icon {
    color: #d6b875;
  }

  .app-body > .client-machines-list.is-mobile-page-open .copyable-value {
    width: fit-content;
    overflow: visible;
    color: #bcd0ff;
    background: rgba(37, 99, 235, 0.11);
  }

  .app-body > .client-machines-list.is-mobile-page-open .copyable-value .license-key {
    display: block;
    overflow: visible;
    color: inherit;
    font-size: clamp(0.58rem, 2.55vw, 0.67rem);
    text-overflow: clip;
    white-space: nowrap;
  }

  .app-body > .client-machines-list.is-mobile-page-open .machine-meta-tag > span,
  .app-body > .client-machines-list.is-mobile-page-open .machine-user-tag > span,
  .app-body > .client-machines-list.is-mobile-page-open .machine-device-primary > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-body > .client-machines-list.is-mobile-page-open .client-actions {
    display: flex !important;
    align-items: center;
    align-self: auto !important;
    justify-content: flex-start !important;
    width: auto;
    padding-top: 0;
  }

  .app-body > .client-machines-list.is-mobile-page-open .client-action,
  .app-body > .client-machines-list.is-mobile-page-open .client-action-edit,
  .app-body > .client-machines-list.is-mobile-page-open .client-action-delete {
    display: inline-flex !important;
    flex: 0 0 24px !important;
    align-items: center;
    justify-content: center;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0;
    border: 1px solid rgba(121, 121, 138, 0.34);
    border-radius: var(--app-round-radius);
    background: rgba(34, 34, 47, 0.72);
    font-size: 0.68rem;
  }

  .app-body > .client-machines-list.is-mobile-page-open .client-action-delete {
    color: #fb7185;
  }

  .app-body > .client-machines-list.is-mobile-page-open .client-action-delete > i {
    display: inline-block !important;
  }

  @keyframes machine-device-icon-pulse {
    0%, 100% {
      opacity: 0.62;
      filter: drop-shadow(0 0 0 currentColor);
    }
    50% {
      opacity: 1;
      filter: drop-shadow(0 0 5px currentColor);
    }
  }
}

/* Desktop license summary uses a compact GitHub-like horizontal strip. */
@media (min-width: 992px) {
  .app-body > header .app-navbar {
    min-height: 58px;
    padding: 9px 0;
  }

  .app-body > header .app-navbar > .container {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .app-body > header .app-brand {
    flex: 0 0 auto;
    min-width: 220px;
    margin: 0;
  }

  .app-body > header .navbar-collapse {
    display: flex !important;
    align-items: center;
    flex: 1 1 auto;
    justify-content: space-between !important;
    min-width: 0;
  }

  .app-body > header .app-primary-nav {
    align-items: center;
    flex: 0 1 auto !important;
    flex-direction: row;
    gap: 8px;
    margin: 0 auto;
  }

  .app-body > header .app-account-nav {
    align-items: center;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    margin-left: 18px;
  }

  .app-body > header .app-primary-nav .app-nav-link {
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 14px !important;
    border: 1px solid rgba(121, 121, 138, 0.36);
    border-radius: var(--app-border-radius);
    background: rgba(34, 34, 47, 0.48);
    line-height: 34px;
  }

  .app-body > header .app-primary-nav .app-nav-link:hover,
  .app-body > header .app-primary-nav .app-nav-link:focus {
    border-color: rgba(214, 184, 117, 0.46);
    background: rgba(49, 49, 63, 0.72);
    transform: none;
  }

  .app-body > header .app-primary-nav .app-nav-link.active {
    border-color: rgba(214, 184, 117, 0.62);
    background: rgba(214, 184, 117, 0.1);
  }

  .app-body > header .app-primary-nav .app-nav-link i {
    width: auto;
    height: auto;
    color: #a1a1aa;
    background: transparent;
    font-size: 0.8rem;
  }

  .app-body > header .app-primary-nav .app-nav-link.active i {
    color: #d6b875;
    background: transparent;
  }

  .app-body > header .app-profile-trigger,
  .app-body > header .app-nav-logout {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    border-color: rgba(121, 121, 138, 0.42);
    background: rgba(34, 34, 47, 0.58);
  }

  .app-body > header .app-profile-trigger {
    width: 36px;
    min-width: 36px;
  }

  .app-body > header .app-nav-logout {
    width: auto;
    min-width: 0;
    gap: 7px;
    padding: 0 12px !important;
    line-height: 34px;
  }

  .app-body > header .app-profile-trigger i,
  .app-body > header .app-nav-logout i {
    width: auto;
    height: auto;
    background: transparent;
  }

  .app-body > header .app-nav-logout-label {
    display: inline;
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .app-body > .app-container {
    padding-top: 62px;
  }

  .app-body .clients-filter-bar {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
  }

  .app-body .clients-filter-search-row,
  .app-body .clients-filter-options-row,
  .app-body .clients-sort-controls {
    display: contents;
  }

  .app-body .clients-search-field {
    flex: 1 1 auto;
    width: auto;
    min-width: 220px;
    max-width: none;
  }

  .app-body .clients-filter-bar .clients-search-field .form-control {
    padding-left: 38px;
  }

  .app-body .clients-search-submit,
  .app-body .clients-view-toggle,
  .app-body .clients-sort-direction,
  .app-body .clients-filter-toggle,
  .app-body .clients-filter-clear {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .app-body .clients-search-submit span,
  .app-body .clients-view-toggle span,
  .app-body .clients-sort-direction span,
  .app-body .clients-filter-clear span {
    display: none;
  }

  .app-body .clients-sort-field {
    flex: 0 0 32px;
    width: 32px;
  }

  .app-body .clients-sort-field > i,
  .app-body .clients-recent-activity-field > i {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: auto;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .app-body .clients-recent-activity-field {
    flex: 0 0 32px;
    width: 32px;
  }

  .app-body .clients-sort-field .form-select,
  .app-body .clients-recent-activity-field .form-select {
    width: 32px;
    min-width: 32px;
    padding: 0;
    color: transparent;
    background-image: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-text-fill-color: transparent;
  }

  .app-body .clients-sort-field .form-select option,
  .app-body .clients-recent-activity-field .form-select option {
    color: #27272a;
    background: #ececee;
    -webkit-text-fill-color: #27272a;
  }

  .app-body [data-filter-tooltip] {
    position: relative;
  }

  .app-body [data-filter-tooltip]::before,
  .app-body [data-filter-tooltip]::after {
    position: absolute;
    left: 50%;
    z-index: 2200;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease;
  }

  .app-body [data-filter-tooltip]::before {
    content: "";
    top: calc(100% + 4px);
    border-right: 5px solid transparent;
    border-bottom: 5px solid #d6b875;
    border-left: 5px solid transparent;
    transform: translate(-50%, -3px);
  }

  .app-body [data-filter-tooltip]::after {
    content: attr(data-filter-tooltip);
    top: calc(100% + 9px);
    width: max-content;
    max-width: 260px;
    padding: 5px 8px;
    border: 1px solid rgba(214, 184, 117, 0.52);
    border-radius: var(--app-border-radius);
    color: #f4f4f5;
    background: #1a1a24;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
    font-size: 0.7rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    transform: translate(-50%, -3px);
  }

  .app-body [data-filter-tooltip]:hover::before,
  .app-body [data-filter-tooltip]:hover::after,
  .app-body [data-filter-tooltip]:focus-visible::before,
  .app-body [data-filter-tooltip]:focus-visible::after,
  .app-body [data-filter-tooltip]:focus-within::before,
  .app-body [data-filter-tooltip]:focus-within::after {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .app-body .clients-filter-clear[data-filter-tooltip]::before {
    right: 11px;
    left: auto;
    transform: translateY(-3px);
  }

  .app-body .clients-filter-clear[data-filter-tooltip]::after {
    right: 0;
    left: auto;
    transform: translateY(-3px);
  }

  .app-body .clients-filter-clear[data-filter-tooltip]:hover::before,
  .app-body .clients-filter-clear[data-filter-tooltip]:hover::after,
  .app-body .clients-filter-clear[data-filter-tooltip]:focus-visible::before,
  .app-body .clients-filter-clear[data-filter-tooltip]:focus-visible::after {
    transform: translateY(0);
  }

  .app-body .clients-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }

  .app-body .client-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 176px;
    padding: 16px;
    border-color: rgba(121, 121, 138, 0.38);
    background: rgba(24, 24, 27, 0.96);
    box-shadow: none;
    transform: none;
  }

  .app-body .client-card:hover {
    border-color: rgba(214, 184, 117, 0.58);
    background: rgba(31, 31, 38, 0.98);
    box-shadow: none;
    transform: none;
  }

  .app-body .client-card-field[data-label="Cliente"] {
    padding-right: 58px;
  }

  .app-body .client-card-field[data-label="Cliente"]::before,
  .app-body .client-card-field[data-label="Chave"]::before {
    display: none;
  }

  .app-body .client-card-field[data-label="Cliente"] .client-identity {
    gap: 10px;
  }

  .app-body .client-card-field[data-label="Cliente"] .client-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .app-body .client-card-field[data-label="Chave"] {
    margin-top: 14px;
  }

  .app-body .client-card-field[data-label="Chave"] .copyable-value {
    padding: 0;
  }

  .app-body .client-card-meta {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(121, 121, 138, 0.28);
  }

  .app-body .client-card-meta .client-card-field {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
  }

  .app-body .client-card-meta .client-card-field::before {
    display: inline;
    margin: 0;
    color: #71717a;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
  }

  .app-body .client-card-meta .client-card-field[data-label="Máquinas"] .machine-count {
    display: inline-flex;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: var(--app-border-radius);
    background: transparent;
    color: #d4d4d8;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
  }

  .app-body .client-card-meta .client-card-field[data-label="Máquinas"] .machine-count:hover,
  .app-body .client-card-meta .client-card-field[data-label="Máquinas"] .machine-count:focus-visible {
    border-color: rgba(214, 184, 117, 0.58);
    background: rgba(214, 184, 117, 0.1);
    color: #e3c981;
    outline: none;
  }

  .app-body .client-card-meta .client-card-field[data-label="Expiração"] {
    overflow: hidden;
  }

  .app-body .client-card-meta .client-card-field[data-label="Expiração"] > span {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-body .client-card-meta .client-card-field[data-label="Status"] {
    max-width: 100%;
    justify-self: end;
  }

  .app-body .client-card-actions {
    top: 14px;
    right: 14px;
  }

  .app-body .client-card-actions .client-action {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .app-body .client-card .license-status {
    padding: 3px 7px;
    font-size: 0.68rem;
  }

  .app-body .client-card .license-status > span {
    display: none;
  }

  .app-body .client-card .license-status {
    justify-content: center;
    width: 28px;
    min-width: 28px;
    height: 28px;
    padding: 0;
  }

  .app-body .client-quick-section .client-license-row {
    grid-template-columns:
      minmax(160px, 1.35fr)
      minmax(135px, 1fr)
      minmax(105px, 0.75fr)
      minmax(112px, 0.7fr)
      minmax(150px, 0.9fr)
      minmax(150px, 1.15fr);
    gap: 12px;
    align-items: end;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .app-body .client-quick-section .client-license-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2px 0;
    border: 0;
  }

  .app-body .client-quick-section .client-license-field:last-child {
    border: 0;
  }

  .app-body .client-quick-section .client-license-field label {
    min-height: 0;
    margin: 0 0 3px;
    color: #c4c4cc;
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.2;
  }

  .app-body .client-quick-section .client-license-field label .field-label-icon {
    color: #d6b875;
  }

  .app-body .client-quick-section .client-license-field .form-control,
  .app-body .client-quick-section .client-license-field .license-calendar-trigger {
    width: 100%;
    max-width: none;
    border: 0;
    border-bottom: 1px solid rgba(121, 121, 138, 0.52);
    border-radius: 0 !important;
    color: #f4f4f5;
    background: transparent !important;
    box-shadow: none;
  }

  .app-body .client-quick-section .client-license-field .form-control:hover,
  .app-body .client-quick-section .client-license-field .license-calendar-trigger:hover {
    border-bottom-color: rgba(214, 184, 117, 0.72);
    background: transparent !important;
  }

  .app-body .client-quick-section .client-license-field .form-control:focus,
  .app-body .client-quick-section .client-license-field .license-calendar-trigger:focus {
    border-bottom-color: #d6b875;
    background: transparent !important;
    box-shadow: 0 2px 0 rgba(214, 184, 117, 0.2);
  }

  .app-body .client-quick-section .client-license-field .license-key-actions {
    width: 100%;
    max-width: none;
  }

  .app-body .client-quick-section .license-key-actions {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .app-body .client-quick-section .client-license-activation .license-key-actions {
    height: 32px;
    min-height: 32px;
    align-items: stretch;
  }

  .app-body .client-quick-section .license-key-large,
  .app-body .client-quick-section .copyable-value,
  .app-body .client-quick-section .client-license-activation .client-action {
    box-sizing: border-box;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
  }

  .app-body .client-quick-section .copyable-value {
    border: 0;
    border-bottom: 1px solid rgba(121, 121, 138, 0.52);
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
  }

  .app-body .client-quick-section .license-key-large {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .app-body .client-quick-section .client-license-row,
  .app-body .client-quick-section .client-license-field,
  .app-body .client-quick-section .license-key-actions {
    border-radius: 0 !important;
  }

  .app-body .client-quick-section .client-license-activation .client-action {
    border: 0;
    color: #d6b875;
    background: transparent;
  }

  .app-body .client-quick-section .client-license-legacy .form-control[readonly] {
    cursor: not-allowed;
    color: #a1a1aa;
    opacity: 0.78;
  }

  .app-body .client-quick-section .client-license-field .text-danger:empty {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .app-body .client-quick-section .client-license-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .app-body .client-quick-section .client-license-field {
    min-width: 0;
  }

  .app-body .client-quick-section .client-license-field .form-control,
  .app-body .client-quick-section .client-license-field .license-calendar-trigger,
  .app-body .client-quick-section .client-license-field .license-key-actions {
    width: 100%;
    max-width: none;
  }
}

/* Desktop machine table keeps icons in headings and values text-only. */
@media (min-width: 768px) {
  .app-body .client-edit-page .client-machines-list {
    padding: 14px;
  }

  .app-body .client-edit-page .client-machines-list-head {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .app-body .client-edit-page .client-machines-list .clients-table,
  .app-body .client-edit-page .client-machines-list .clients-table tbody,
  .app-body .client-edit-page .client-machines-list .clients-table tbody tr,
  .app-body .client-edit-page .client-machines-list .clients-table tbody td {
    background: transparent;
  }

  .app-body .client-edit-page .client-machines-list .clients-table thead th {
    height: 38px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(121, 121, 138, 0.52);
    color: #c4c4cc;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .app-body .client-edit-page .client-machines-list .clients-table tbody td {
    height: 44px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(121, 121, 138, 0.22);
    color: #d4d4d8;
    font-size: 0.82rem;
  }

  .app-body .client-edit-page .client-machines-list .clients-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.025);
  }

  .app-body .client-edit-page .client-machines-list tbody .machine-tag-icon {
    display: none;
  }

  .app-body .client-edit-page .client-machines-list .machine-meta-tag,
  .app-body .client-edit-page .client-machines-list .machine-user-tag,
  .app-body .client-edit-page .client-machines-list .machine-device-primary {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
  }

  .app-body .client-edit-page .client-machines-list .copyable-value {
    width: fit-content;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .app-body .client-edit-page .client-machines-list .copyable-value .license-key {
    padding: 0;
    color: #bcd0ff;
    background: transparent;
    font-size: 0.78rem;
  }

  .app-body .client-edit-page .client-machines-list .machine-actions-column span {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #c4c4cc;
    background: transparent;
    box-shadow: none;
  }

  .app-body .client-edit-page .client-machines-list .client-actions {
    gap: 4px;
  }
}
