:root {
  --scp-bg-top: #0d1726;
  --scp-bg-bottom: #102634;
  --scp-surface: rgba(15, 26, 41, 0.78);
  --scp-text: #eaf3f8;
  --scp-muted: rgba(225, 238, 245, 0.74);
  --scp-brand: #0f766e;
  --scp-brand-deep: #114542;
  --scp-accent: #4d8dff;
  --scp-accent-soft: #d7e8ff;
  --scp-mint-soft: #d9f1eb;
  --scp-line: rgba(173, 208, 255, 0.14);
  --scp-shadow: 0 26px 60px rgba(6, 13, 19, 0.3);
  --scp-radius-xl: 30px;
  --scp-radius-lg: 22px;
  --scp-radius-md: 16px;
  --scp-radius-pill: 999px;
}

html,
body.staff-modern {
  min-height: 100%;
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at top left, rgba(77, 141, 255, 0.16), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(15, 118, 110, 0.18), transparent 22%),
    linear-gradient(180deg, var(--scp-bg-top) 0%, #0f1f2d 48%, var(--scp-bg-bottom) 100%);
}

body.staff-modern {
  color: var(--scp-text);
}

body.staff-modern::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(116, 155, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 155, 255, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 85%);
}

body.staff-modern a {
  color: var(--scp-accent);
  text-decoration: none;
}

body.staff-modern a:hover {
  color: #86b3ff;
  text-decoration: none;
}

body.staff-modern #container {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 28px));
  margin: 22px auto 36px;
}

body.staff-modern:not(.staff-login-modern) #header,
body.staff-modern:not(.staff-login-modern) #content,
body.staff-modern:not(.staff-login-modern) #footer,
body.staff-modern:not(.staff-login-modern) #nav,
body.staff-modern:not(.staff-login-modern) #sub_nav {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.staff-modern:not(.staff-login-modern) #header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid var(--scp-line);
  border-radius: var(--scp-radius-xl);
  background: var(--scp-surface);
  box-shadow: var(--scp-shadow);
}

body.staff-modern:not(.staff-login-modern) #logo {
  display: inline-flex;
  align-items: center;
  float: none;
}

body.staff-modern:not(.staff-login-modern) #logo img {
  max-height: 54px;
  width: auto;
}

body.staff-modern:not(.staff-login-modern) #info {
  float: none;
  margin: 0;
  color: var(--scp-muted);
}

body.staff-modern:not(.staff-login-modern) div#header a {
  color: #eaf3f8;
}

body.staff-modern:not(.staff-login-modern) div#header a:hover {
  color: #9bc7ff;
}

body.staff-modern:not(.staff-login-modern) #info strong,
body.staff-modern:not(.staff-login-modern) h1,
body.staff-modern:not(.staff-login-modern) h2,
body.staff-modern:not(.staff-login-modern) h3,
body.staff-modern:not(.staff-login-modern) h4 {
  color: #f5fbff;
  letter-spacing: -0.02em;
}

body.staff-modern:not(.staff-login-modern) #nav,
body.staff-modern:not(.staff-login-modern) #sub_nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 10px;
  list-style: none;
  border: 1px solid var(--scp-line);
  border-radius: var(--scp-radius-xl);
  background: rgba(15, 26, 41, 0.7);
  box-shadow: var(--scp-shadow);
}

body.staff-modern:not(.staff-login-modern) #nav li,
body.staff-modern:not(.staff-login-modern) #sub_nav li,
body.staff-modern:not(.staff-login-modern) #nav li.active,
body.staff-modern:not(.staff-login-modern) #nav li.inactive,
body.staff-modern:not(.staff-login-modern) #sub_nav > li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) #nav li a,
body.staff-modern:not(.staff-login-modern) #sub_nav > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--scp-radius-pill);
  color: #dfeef6;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

body.staff-modern:not(.staff-login-modern) #nav li.active a,
body.staff-modern:not(.staff-login-modern) #nav li a:hover,
body.staff-modern:not(.staff-login-modern) #sub_nav a.active,
body.staff-modern:not(.staff-login-modern) #sub_nav li.active > a,
body.staff-modern:not(.staff-login-modern) #sub_nav > li > a:hover {
  color: #f7fcff;
  background: linear-gradient(135deg, var(--scp-brand-deep), var(--scp-brand));
  box-shadow: 0 14px 24px rgba(17, 69, 66, 0.24);
}

body.staff-modern:not(.staff-login-modern) #content {
  padding: 26px;
  border: 1px solid var(--scp-line);
  border-radius: 34px;
  background: rgba(15, 26, 41, 0.7);
  box-shadow: var(--scp-shadow);
}

body.staff-modern:not(.staff-login-modern) #breadcrumbs {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--scp-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--scp-muted);
}

body.staff-modern:not(.staff-login-modern) #msg_notice,
body.staff-modern:not(.staff-login-modern) #msg_warning,
body.staff-modern:not(.staff-login-modern) #msg_error,
body.staff-modern:not(.staff-login-modern) .notice-banner,
body.staff-modern:not(.staff-login-modern) .warning-banner,
body.staff-modern:not(.staff-login-modern) .error-banner,
body.staff-modern:not(.staff-login-modern) #notice_bar,
body.staff-modern:not(.staff-login-modern) #warning_bar,
body.staff-modern:not(.staff-login-modern) #error_bar {
  border-radius: 18px;
}

body.staff-modern:not(.staff-login-modern) #msg_notice,
body.staff-modern:not(.staff-login-modern) .notice-banner,
body.staff-modern:not(.staff-login-modern) #notice_bar {
  color: #0d6158;
  border-color: rgba(15, 118, 110, 0.22);
  background: var(--scp-mint-soft);
}

body.staff-modern:not(.staff-login-modern) #msg_warning,
body.staff-modern:not(.staff-login-modern) .warning-banner,
body.staff-modern:not(.staff-login-modern) #warning_bar {
  color: #255c70;
  border-color: rgba(42, 116, 144, 0.22);
  background: rgba(216, 239, 246, 0.96);
}

body.staff-modern:not(.staff-login-modern) #msg_error,
body.staff-modern:not(.staff-login-modern) .error-banner,
body.staff-modern:not(.staff-login-modern) #error_bar {
  color: #2855a9;
  border-color: rgba(77, 141, 255, 0.24);
  background: var(--scp-accent-soft);
}

body.staff-modern:not(.staff-login-modern) input[type="text"],
body.staff-modern:not(.staff-login-modern) input[type="password"],
body.staff-modern:not(.staff-login-modern) input[type="email"],
body.staff-modern:not(.staff-login-modern) input[type="number"],
body.staff-modern:not(.staff-login-modern) select,
body.staff-modern:not(.staff-login-modern) textarea {
  border: 1px solid rgba(173, 208, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #eff8fd;
  box-sizing: border-box;
}

body.staff-modern:not(.staff-login-modern) input:focus,
body.staff-modern:not(.staff-login-modern) select:focus,
body.staff-modern:not(.staff-login-modern) textarea:focus {
  outline: none;
  border-color: rgba(77, 141, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(77, 141, 255, 0.12);
}

body.staff-modern:not(.staff-login-modern) .button,
body.staff-modern:not(.staff-login-modern) .action-button,
body.staff-modern:not(.staff-login-modern) button,
body.staff-modern:not(.staff-login-modern) input[type="submit"],
body.staff-modern:not(.staff-login-modern) input[type="button"],
body.staff-modern:not(.staff-login-modern) input[type="reset"] {
  border: 1px solid rgba(173, 208, 255, 0.12);
  border-radius: var(--scp-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: #eff8fd;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) .button:hover,
body.staff-modern:not(.staff-login-modern) .action-button:hover,
body.staff-modern:not(.staff-login-modern) button:hover,
body.staff-modern:not(.staff-login-modern) input[type="submit"]:hover,
body.staff-modern:not(.staff-login-modern) input[type="button"]:hover,
body.staff-modern:not(.staff-login-modern) input[type="reset"]:hover {
  background: linear-gradient(135deg, var(--scp-brand-deep), var(--scp-brand));
  border-color: transparent;
  color: #f7fcff;
  transform: translateY(-1px);
}

body.staff-modern:not(.staff-login-modern) .table,
body.staff-modern:not(.staff-login-modern) table.list,
body.staff-modern:not(.staff-login-modern) .form_table,
body.staff-modern:not(.staff-login-modern) .dashboard-stats {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 22px;
}

body.staff-modern:not(.staff-login-modern) .table tr.header td,
body.staff-modern:not(.staff-login-modern) .table tr.header th,
body.staff-modern:not(.staff-login-modern) .table > thead th,
body.staff-modern:not(.staff-login-modern) table.list thead th,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:first-child th {
  padding: 14px 16px;
  border-color: rgba(173, 208, 255, 0.12);
  background: rgba(77, 141, 255, 0.14);
  color: #f7fcff;
}

body.staff-modern:not(.staff-login-modern) table.list thead th a,
body.staff-modern:not(.staff-login-modern) .table > thead th a {
  color: #f7fcff;
  background: none;
}

body.staff-modern:not(.staff-login-modern) .table td,
body.staff-modern:not(.staff-login-modern) .table th,
body.staff-modern:not(.staff-login-modern) table.list tbody td,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:nth-child(2) td,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:nth-child(2) th,
body.staff-modern:not(.staff-login-modern) .form_table td,
body.staff-modern:not(.staff-login-modern) .form_table th {
  padding: 14px 16px;
  border-color: rgba(173, 208, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #e7f2f8;
}

body.staff-modern:not(.staff-login-modern) table.list tbody tr:hover td,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:nth-child(2) tr:hover td,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:nth-child(2) tr:hover th {
  background: rgba(15, 118, 110, 0.14);
}

body.staff-modern:not(.staff-login-modern) .sticky.bar {
  margin-bottom: 18px;
  border: 1px solid var(--scp-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .content {
  padding: 16px 18px;
}

body.staff-modern:not(.staff-login-modern) ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 8px;
  list-style: none;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 22px;
  background: rgba(244, 248, 251, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.staff-modern:not(.staff-login-modern) ul.tabs li,
body.staff-modern:not(.staff-login-modern) ul.tabs li.active,
body.staff-modern:not(.staff-login-modern) ul.tabs li:not(.active) {
  margin: 0;
  border: 0;
  background: transparent;
}

body.staff-modern:not(.staff-login-modern) ul.tabs li a {
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--scp-radius-pill);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.82);
  color: #5a717c;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(28, 47, 55, 0.04);
}

body.staff-modern:not(.staff-login-modern) ul.tabs li.active a,
body.staff-modern:not(.staff-login-modern) ul.tabs li a:hover {
  background: linear-gradient(135deg, var(--scp-brand-deep), var(--scp-brand));
  border-color: transparent;
  color: #f7fcff;
  box-shadow: 0 12px 24px rgba(17, 69, 66, 0.16);
}

body.staff-modern:not(.staff-login-modern) #footer {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--scp-line);
  border-radius: 24px;
  background: var(--scp-surface);
  box-shadow: var(--scp-shadow);
  color: var(--scp-muted);
}

body.staff-login-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

body.staff-login-modern #brickwall,
body.staff-login-modern #background,
body.staff-login-modern #blur {
  display: none !important;
}

body.staff-login-modern #loginBox {
  width: min(520px, calc(100% - 24px));
  padding: 30px;
  border: 1px solid var(--scp-line);
  border-radius: 34px;
  background: rgba(15, 26, 41, 0.78);
  box-shadow: var(--scp-shadow);
  color: #eaf3f8;
}

body.staff-login-modern #logo {
  margin: 0 0 16px;
  text-align: left;
}

body.staff-login-modern #logo img {
  max-height: 56px;
  width: auto;
}

body.staff-login-modern #login-message,
body.staff-login-modern .banner small,
body.staff-login-modern #company,
body.staff-login-modern #poweredBy {
  color: var(--scp-muted);
}

body.staff-login-modern .banner {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--scp-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

body.staff-login-modern #login fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

body.staff-login-modern #login input[type="text"],
body.staff-login-modern #login input[type="password"] {
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(173, 208, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #eef8fd;
  box-sizing: border-box;
}

body.staff-login-modern #login input[type="text"]:focus,
body.staff-login-modern #login input[type="password"]:focus {
  outline: none;
  border-color: rgba(77, 141, 255, 0.46);
  box-shadow: 0 0 0 4px rgba(77, 141, 255, 0.12);
}

body.staff-login-modern #login .password-field-group {
  position: relative;
  width: 100%;
  margin: 0 0 12px;
  isolation: isolate;
}

body.staff-login-modern #login .password-field-group input[type="password"] {
  margin-bottom: 0;
  padding-right: 60px;
}

body.staff-login-modern #login .password-field-group .password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  left: auto;
  bottom: auto;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.24);
  z-index: 10;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

body.staff-login-modern #login .password-field-group .password-toggle:hover,
body.staff-login-modern #login .password-field-group .password-toggle:focus-visible {
  background: linear-gradient(135deg, #0f3d3b, #0d6660);
  color: #ffffff;
  box-shadow:
    0 0 0 3px rgba(77, 141, 255, 0.14),
    0 10px 22px rgba(15, 118, 110, 0.24);
  outline: none;
}

body.staff-login-modern #login .password-field-group .password-toggle.is-active {
  background: linear-gradient(135deg, #0f3d3b, #155e75);
  color: #ffffff;
}

body.staff-login-modern #login .password-field-group .password-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  pointer-events: none;
}

body.staff-login-modern #login .password-field-group .password-toggle-icon i {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1;
  color: #ffffff;
}

body.staff-login-modern #login .password-field-group .password-toggle-icon-visible {
  display: none;
}

body.staff-login-modern #login .password-field-group .password-toggle.is-visible .password-toggle-icon-hidden {
  display: none;
}

body.staff-login-modern #login .password-field-group .password-toggle.is-visible .password-toggle-icon-visible {
  display: inline-flex;
}

body.staff-login-modern #login .submit.button,
body.staff-login-modern #login button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--scp-radius-pill);
  background: linear-gradient(135deg, var(--scp-brand-deep), var(--scp-brand));
  color: #f7fcff;
  box-shadow: 0 16px 30px rgba(17, 69, 66, 0.2);
}

body.staff-login-modern #reset-link {
  color: #a6c6ff;
}

body.staff-login-modern .or {
  margin: 18px 0;
}

body.staff-login-modern .external-auth {
  margin-bottom: 10px;
}

body.staff-login-modern #company {
  margin-top: 18px;
}

@media (max-width: 980px) {
  body.staff-modern:not(.staff-login-modern) #header {
    flex-wrap: wrap;
  }

  body.staff-modern:not(.staff-login-modern) #nav,
  body.staff-modern:not(.staff-login-modern) #sub_nav,
  body.staff-modern:not(.staff-login-modern) ul.tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  body.staff-modern:not(.staff-login-modern) #container {
    width: min(100% - 16px, 100%);
    margin-top: 10px;
  }

  body.staff-modern:not(.staff-login-modern) #header,
  body.staff-modern:not(.staff-login-modern) #nav,
  body.staff-modern:not(.staff-login-modern) #sub_nav,
  body.staff-modern:not(.staff-login-modern) #content,
  body.staff-modern:not(.staff-login-modern) #footer,
  body.staff-login-modern #loginBox {
    border-radius: 22px;
  }

  body.staff-modern:not(.staff-login-modern) #nav li,
  body.staff-modern:not(.staff-login-modern) #sub_nav > li,
  body.staff-modern:not(.staff-login-modern) ul.tabs li {
    width: 100%;
  }

  body.staff-modern:not(.staff-login-modern) #nav li a,
  body.staff-modern:not(.staff-login-modern) #sub_nav > li > a,
  body.staff-modern:not(.staff-login-modern) ul.tabs li a {
    width: 100%;
  }

  body.staff-modern:not(.staff-login-modern) #content {
    padding: 18px 14px;
    overflow-x: auto;
  }
}

/* Refined visual polish */
body.staff-modern {
  font-family: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.staff-modern:not(.staff-login-modern) #container {
  width: min(1420px, calc(100% - 32px));
  margin: 24px auto 40px;
}

body.staff-modern:not(.staff-login-modern) #header {
  padding: 20px 24px;
  background:
    radial-gradient(circle at top right, rgba(77, 141, 255, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(11, 24, 39, 0.9), rgba(14, 33, 49, 0.82));
  box-shadow: 0 26px 54px rgba(4, 12, 18, 0.3);
}

body.staff-modern:not(.staff-login-modern) #info,
body.staff-modern:not(.staff-login-modern) #info a {
  color: rgba(234, 243, 248, 0.86);
}

body.staff-modern:not(.staff-login-modern) #nav,
body.staff-modern:not(.staff-login-modern) #sub_nav {
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(12, 27, 43, 0.86), rgba(11, 24, 39, 0.78));
}

body.staff-modern:not(.staff-login-modern) #nav li a,
body.staff-modern:not(.staff-login-modern) #sub_nav > li > a,
body.staff-modern:not(.staff-login-modern) ul.tabs li a,
body.staff-modern:not(.staff-login-modern) .button,
body.staff-modern:not(.staff-login-modern) .action-button,
body.staff-modern:not(.staff-login-modern) button,
body.staff-modern:not(.staff-login-modern) input[type="submit"],
body.staff-modern:not(.staff-login-modern) input[type="button"],
body.staff-modern:not(.staff-login-modern) input[type="reset"] {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

body.staff-modern:not(.staff-login-modern) #nav li a,
body.staff-modern:not(.staff-login-modern) #sub_nav > li > a {
  min-height: 44px;
  padding: 0 18px;
  letter-spacing: -0.015em;
}

body.staff-modern:not(.staff-login-modern) #content {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-color: rgba(19, 38, 47, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.95));
  box-shadow: 0 30px 70px rgba(7, 17, 24, 0.22);
}

body.staff-modern:not(.staff-login-modern) #content::after {
  content: "";
  position: absolute;
  bottom: -110px;
  left: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.08), transparent 70%);
  pointer-events: none;
}

body.staff-modern:not(.staff-login-modern) #content,
body.staff-modern:not(.staff-login-modern) #content p,
body.staff-modern:not(.staff-login-modern) #content td,
body.staff-modern:not(.staff-login-modern) #content th,
body.staff-modern:not(.staff-login-modern) #content label,
body.staff-modern:not(.staff-login-modern) #content small,
body.staff-modern:not(.staff-login-modern) .faded {
  color: #57676f;
}

body.staff-modern:not(.staff-login-modern) #content h1,
body.staff-modern:not(.staff-login-modern) #content h2,
body.staff-modern:not(.staff-login-modern) #content h3,
body.staff-modern:not(.staff-login-modern) #content h4,
body.staff-modern:not(.staff-login-modern) #content strong,
body.staff-modern:not(.staff-login-modern) #content b {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  color: #10242c;
  letter-spacing: -0.035em;
}

body.staff-modern:not(.staff-login-modern) #content > h1:first-child,
body.staff-modern:not(.staff-login-modern) #content > h2:first-child {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 3.2vw, 3.25rem);
}

body.staff-modern:not(.staff-login-modern) #breadcrumbs,
body.staff-modern:not(.staff-login-modern) #basic_search,
body.staff-modern:not(.staff-login-modern) .sticky.bar,
body.staff-modern:not(.staff-login-modern) .tab_content,
body.staff-modern:not(.staff-login-modern) #line-chart-here,
body.staff-modern:not(.staff-login-modern) #line-chart-legend {
  border-color: rgba(19, 38, 47, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.9));
  box-shadow: 0 18px 40px rgba(28, 47, 55, 0.08);
}

body.staff-modern:not(.staff-login-modern) table.list,
body.staff-modern:not(.staff-login-modern) .table,
body.staff-modern:not(.staff-login-modern) .form_table,
body.staff-modern:not(.staff-login-modern) .dashboard-stats {
  border-color: rgba(19, 38, 47, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(29, 48, 57, 0.06);
}

body.staff-modern:not(.staff-login-modern) .table tr.header td,
body.staff-modern:not(.staff-login-modern) .table tr.header th,
body.staff-modern:not(.staff-login-modern) .table > thead th,
body.staff-modern:not(.staff-login-modern) table.list thead th,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:first-child th {
  background: rgba(220, 233, 255, 0.58);
  color: #15303a;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

body.staff-modern:not(.staff-login-modern) .table td,
body.staff-modern:not(.staff-login-modern) .table th,
body.staff-modern:not(.staff-login-modern) table.list tbody td,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:nth-child(2) td,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:nth-child(2) th,
body.staff-modern:not(.staff-login-modern) .form_table td,
body.staff-modern:not(.staff-login-modern) .form_table th {
  color: #273840;
}

body.staff-modern:not(.staff-login-modern) table.list tbody tr:nth-child(2n+1) td {
  background: rgba(248, 251, 255, 0.94);
}

body.staff-modern:not(.staff-login-modern) table.list tbody tr:hover td,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:nth-child(2) tr:hover td,
body.staff-modern:not(.staff-login-modern) table.dashboard-stats tbody:nth-child(2) tr:hover th {
  background: rgba(223, 243, 237, 0.66);
}

body.staff-modern:not(.staff-login-modern) input[type="text"],
body.staff-modern:not(.staff-login-modern) input[type="password"],
body.staff-modern:not(.staff-login-modern) input[type="email"],
body.staff-modern:not(.staff-login-modern) input[type="number"],
body.staff-modern:not(.staff-login-modern) select,
body.staff-modern:not(.staff-login-modern) textarea {
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid rgba(19, 38, 47, 0.12);
  border-radius: 16px;
  background: #fbfdff;
  color: #173039;
  box-sizing: border-box;
}

body.staff-modern:not(.staff-login-modern) input:focus,
body.staff-modern:not(.staff-login-modern) select:focus,
body.staff-modern:not(.staff-login-modern) textarea:focus {
  outline: none;
  border-color: rgba(77, 141, 255, 0.42);
  box-shadow:
    0 0 0 4px rgba(77, 141, 255, 0.1),
    0 14px 28px rgba(29, 48, 57, 0.08);
}

body.staff-modern:not(.staff-login-modern) .button,
body.staff-modern:not(.staff-login-modern) .action-button,
body.staff-modern:not(.staff-login-modern) button,
body.staff-modern:not(.staff-login-modern) input[type="submit"],
body.staff-modern:not(.staff-login-modern) input[type="button"],
body.staff-modern:not(.staff-login-modern) input[type="reset"] {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.staff-modern:not(.staff-login-modern) .button.green,
body.staff-modern:not(.staff-login-modern) .button.primary,
body.staff-modern:not(.staff-login-modern) .action-button.primary {
  box-shadow: 0 18px 32px rgba(17, 69, 66, 0.18);
}

body.staff-login-modern #loginBox {
  padding: 38px;
  background:
    radial-gradient(circle at top right, rgba(77, 141, 255, 0.16), transparent 30%),
    linear-gradient(160deg, rgba(10, 22, 36, 0.94), rgba(15, 74, 94, 0.82)),
    rgba(15, 26, 41, 0.86);
}

body.staff-login-modern #login-message,
body.staff-login-modern .banner strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

body.staff-login-modern #login-message {
  color: #f4fbff;
}

body.staff-login-modern #login input[type="text"],
body.staff-login-modern #login input[type="password"] {
  min-height: 54px;
  border-radius: 18px;
}

@media (max-width: 760px) {
  body.staff-modern:not(.staff-login-modern) #content {
    padding: 24px 16px;
  }
}

body.staff-login-modern #loginBox.staff-login-shell {
  width: min(1080px, calc(100% - 24px));
  max-width: none;
  padding: 26px;
}

body.staff-login-modern .staff-login-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

body.staff-login-modern .staff-login-side,
body.staff-login-modern .staff-login-panel {
  position: relative;
  border-radius: 28px;
}

body.staff-login-modern .staff-login-side {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(118, 190, 255, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(9, 24, 39, 0.78), rgba(15, 118, 110, 0.54));
}

body.staff-login-modern .staff-login-panel {
  padding: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(173, 208, 255, 0.12);
}

body.staff-login-modern .staff-login-side #logo {
  margin: 0 0 18px;
}

body.staff-login-modern .staff-login-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e6f5fa;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
}

body.staff-login-modern .staff-login-title {
  margin: 16px 0 12px;
  color: #f4fbff;
  font-size: clamp(2rem, 3vw, 2.85rem);
  letter-spacing: -0.04em;
}

body.staff-login-modern .staff-login-copy {
  margin: 0;
  color: #d9eaf0;
  line-height: 1.78;
}

body.staff-login-modern .staff-login-highlights {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

body.staff-login-modern .staff-login-highlights li {
  position: relative;
  padding-left: 22px;
  color: #ecf8fb;
}

body.staff-login-modern .staff-login-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(118, 190, 255, 0.95);
  box-shadow: 0 0 0 6px rgba(118, 190, 255, 0.12);
  transform: translateY(-50%);
}

body.staff-login-modern .staff-login-panel #login-message {
  margin: 0 0 12px;
}

body.staff-login-modern .staff-login-panel .banner {
  margin-top: 0;
  margin-bottom: 18px;
}

body.staff-login-modern .staff-login-fieldset {
  display: grid;
  gap: 10px;
}

body.staff-login-modern .staff-login-fieldset-2fa {
  padding-top: 10px;
}

body.staff-login-modern .staff-login-label {
  color: #dbeaf0;
  font-size: 0.92rem;
  font-weight: 700;
}

body.staff-login-modern .staff-login-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 6px;
}

body.staff-login-modern .staff-login-link {
  color: #b6d2ff;
  font-weight: 700;
}

body.staff-login-modern .staff-login-link.hidden {
  display: none;
}

body.staff-login-modern .staff-login-external {
  display: grid;
  gap: 10px;
}

body.staff-login-modern #company {
  margin-top: 18px;
}

@media (max-width: 900px) {
  body.staff-login-modern .staff-login-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.staff-login-modern #loginBox.staff-login-shell {
    padding: 16px;
  }

  body.staff-login-modern .staff-login-side,
  body.staff-login-modern .staff-login-panel {
    padding: 22px 18px;
    border-radius: 22px;
  }

  body.staff-login-modern .staff-login-actions {
    display: grid;
    justify-content: stretch;
  }
}

body.staff-login-modern #loginBox.staff-login-shell {
  width: min(560px, calc(100% - 28px));
  padding: 22px 22px 18px;
  border: 1px solid rgba(198, 218, 230, 0.22);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(232, 241, 246, 0.28), rgba(217, 228, 236, 0.18));
  box-shadow: 0 26px 56px rgba(7, 17, 24, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.staff-login-modern #loginBox.staff-login-shell::after {
  display: none !important;
}

body.staff-login-modern .staff-login-layout {
  grid-template-columns: 1fr;
  gap: 8px;
}

body.staff-login-modern .staff-login-side,
body.staff-login-modern .staff-login-panel {
  min-width: 0;
}

body.staff-login-modern .staff-login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 4px 6px;
  background: transparent;
  border-radius: 0;
}

body.staff-login-modern .staff-login-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: #f4fbff;
  text-decoration: none;
}

body.staff-login-modern .staff-login-brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(77, 141, 255, 0.95), rgba(15, 118, 110, 0.92));
  color: #f4fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(11, 34, 48, 0.22);
}

body.staff-login-modern .brand-mark.brand-mark-logo {
  width: 146px;
  height: 86px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.staff-login-modern .brand-mark.brand-mark-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

body.staff-login-modern .staff-login-brand-copy {
  display: grid;
  gap: 2px;
}

body.staff-login-modern .staff-login-brand-copy strong {
  color: #f4fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.staff-login-modern .staff-login-brand-copy span {
  color: rgba(233, 243, 248, 0.82);
  font-size: 0.95rem;
}

body.staff-login-modern .staff-login-side-minimal {
  min-height: 0;
}

body.staff-login-modern .staff-login-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px 8px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.staff-login-modern .staff-login-panel,
body.staff-login-modern .staff-login-panel p,
body.staff-login-modern .staff-login-panel small {
  color: #60717a;
}

body.staff-login-modern .staff-login-panel #login-message {
  margin: 0;
  color: #173039;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

body.staff-login-modern .staff-login-panel .banner {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.staff-login-modern .staff-login-panel .banner small {
  color: #65757d;
}

body.staff-login-modern .staff-login-label {
  color: #213740;
  font-size: 0.88rem;
  padding-left: 2px;
}

body.staff-login-modern #login input[type="text"],
body.staff-login-modern #login input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #173039;
  box-sizing: border-box;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.staff-login-modern #login input[type="text"]::placeholder,
body.staff-login-modern #login input[type="password"]::placeholder {
  color: #8a99a0;
}

body.staff-login-modern #login input[type="text"]:focus,
body.staff-login-modern #login input[type="password"]:focus {
  border-color: rgba(77, 141, 255, 0.42);
  box-shadow:
    0 0 0 4px rgba(77, 141, 255, 0.12),
    0 14px 28px rgba(29, 48, 57, 0.08);
}

body.staff-login-modern .staff-login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

body.staff-login-modern .staff-login-link {
  color: #2f65b1;
  font-size: 0.92rem;
}

body.staff-login-modern #login .submit.button {
  min-width: 148px;
  min-height: 44px;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(17, 69, 66, 0.16);
}

body.staff-login-modern #company,
body.staff-login-modern #company .content {
  color: #687983;
  text-align: center;
  font-size: 0.88rem;
}

body.staff-login-modern #poweredBy {
  margin-top: 10px;
  color: rgba(230, 240, 245, 0.78);
}

@media (max-width: 760px) {
  body.staff-login-modern #loginBox.staff-login-shell {
    padding: 18px 16px 14px;
  }

  body.staff-login-modern .staff-login-side,
  body.staff-login-modern .staff-login-panel {
    padding-left: 0;
    padding-right: 0;
  }

  body.staff-login-modern .staff-login-actions {
    display: grid;
    justify-content: stretch;
  }

  body.staff-login-modern #login .submit.button {
    width: 100%;
    min-width: 0;
  }
}

body.staff-login-modern.admin-body {
  display: block;
  min-height: 100vh;
}

body.staff-login-modern.admin-body .page-shell.staff-login-page {
  position: relative;
  z-index: 1;
}

body.staff-login-modern.admin-body .staff-login-header {
  margin-bottom: 24px;
}

body.staff-login-modern.admin-body .staff-login-header .header-actions {
  gap: 10px;
}

body.staff-login-modern.admin-body .admin-login-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  overflow: visible;
}

body.staff-login-modern.admin-body .admin-login-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

body.staff-login-modern.admin-body .admin-login-copy h2 {
  margin: 0;
  max-width: 12ch;
  color: #f3fbff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

body.staff-login-modern.admin-body .admin-login-copy .hero-text {
  margin: 0;
  max-width: 52ch;
  color: rgba(224, 237, 245, 0.82);
}

body.staff-login-modern.admin-body .admin-login-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card {
  position: relative;
  left: auto;
  top: auto;
  margin: 0;
  width: 100%;
  max-width: none;
  padding: 26px 24px 22px;
  border: 1px solid rgba(173, 208, 255, 0.12);
  border-radius: 28px;
  background: rgba(9, 23, 35, 0.62);
  box-shadow: 0 24px 60px rgba(4, 11, 18, 0.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card::after {
  display: none !important;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card #login-message {
  margin: 0 0 12px;
  color: #f3fbff;
  text-align: left;
  font-size: 1.5rem;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card .banner {
  margin-bottom: 18px;
  border: 1px solid rgba(173, 208, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card .banner small,
body.staff-login-modern.admin-body #loginBox.admin-login-form-card,
body.staff-login-modern.admin-body #loginBox.admin-login-form-card p {
  color: rgba(224, 237, 245, 0.78);
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card #login {
  width: 100%;
  margin: 0;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card .staff-login-label {
  color: #e8f4fa;
  font-size: 0.9rem;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card input[type="text"],
body.staff-login-modern.admin-body #loginBox.admin-login-form-card input[type="password"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(173, 208, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f2fbff;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card input[type="text"]::placeholder,
body.staff-login-modern.admin-body #loginBox.admin-login-form-card input[type="password"]::placeholder {
  color: rgba(220, 235, 243, 0.48);
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card input[type="text"]:focus,
body.staff-login-modern.admin-body #loginBox.admin-login-form-card input[type="password"]:focus {
  border-color: rgba(77, 141, 255, 0.34);
  box-shadow:
    0 0 0 4px rgba(77, 141, 255, 0.08),
    0 14px 28px rgba(4, 11, 18, 0.24);
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card .staff-login-actions {
  justify-content: space-between;
  gap: 14px;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card .staff-login-link {
  color: #c8dcff;
}

body.staff-login-modern.admin-body #loginBox.admin-login-form-card #company,
body.staff-login-modern.admin-body #loginBox.admin-login-form-card #company .content {
  color: rgba(224, 237, 245, 0.62);
  text-align: left;
}

body.staff-login-modern.admin-body #poweredBy {
  margin: 18px 0 28px;
}

@media (max-width: 980px) {
  body.staff-login-modern.admin-body .admin-login-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.staff-login-modern.admin-body .staff-login-header {
    margin-bottom: 18px;
  }

  body.staff-login-modern.admin-body .admin-login-copy h2 {
    max-width: none;
  }

  body.staff-login-modern.admin-body #loginBox.admin-login-form-card {
    padding: 22px 18px 18px;
  }
}

/* Staff index stabilization */
body.staff-modern:not(.staff-login-modern) #header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) #header #info {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: right;
}

body.staff-modern:not(.staff-login-modern) #header #info::before {
  content: none;
}

body.staff-modern:not(.staff-login-modern) #header #info strong {
  color: #f8fbff;
}

body.staff-modern:not(.staff-login-modern) #header #logo {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  height: auto;
  max-width: none;
  padding: 0;
}

body.staff-modern:not(.staff-login-modern) #header #logo .valign-helper {
  display: none;
}

body.staff-modern:not(.staff-login-modern) #header #logo::before {
  content: "";
  display: none;
}

body.staff-modern:not(.staff-login-modern) #header #logo::after {
  content: "Helpdesk ZWW\A Agenten-Bereich";
  white-space: pre;
  color: #f5fbff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

body.staff-modern:not(.staff-login-modern) #header #logo img {
  display: block;
  max-width: 162px;
  max-height: 86px;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) #nav,
body.staff-modern:not(.staff-login-modern) #sub_nav {
  height: auto;
  min-height: 0;
  line-height: normal;
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) #nav {
  gap: 12px;
}

body.staff-modern:not(.staff-login-modern) #nav > li,
body.staff-modern:not(.staff-login-modern) #nav > li.active,
body.staff-modern:not(.staff-login-modern) #nav > li.inactive {
  display: block;
  min-width: 0;
  height: auto;
  padding: 0;
  position: relative;
}

body.staff-modern:not(.staff-login-modern) #nav > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  min-width: 116px;
  padding: 0 18px;
}

body.staff-modern:not(.staff-login-modern) #nav > li.inactive > ul {
  top: calc(100% + 8px);
  left: 0;
  width: 250px;
  padding: 10px 0;
  border: 1px solid rgba(173, 208, 255, 0.14);
  border-radius: 20px;
  background: rgba(8, 20, 32, 0.96);
  box-shadow: 0 26px 56px rgba(4, 11, 18, 0.38);
}

body.staff-modern:not(.staff-login-modern) #nav > li.inactive > ul li a {
  display: block;
  float: none;
  height: auto;
  min-height: 0;
  padding: 12px 16px 12px 42px;
  color: #deedf5;
  line-height: 1.35;
  background-position: 14px 50%;
}

body.staff-modern:not(.staff-login-modern) #nav > li.inactive > ul li a:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #f8fbff;
}

body.staff-modern:not(.staff-login-modern) #sub_nav {
  display: inline-flex;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
  gap: 10px;
  position: relative;
  z-index: 4;
  margin-bottom: 32px;
  padding: 8px 10px;
}

body.staff-modern:not(.staff-login-modern) #sub_nav > li {
  display: block;
}

body.staff-modern:not(.staff-login-modern) #sub_nav > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px 0 34px;
  background-position: 14px 50%;
  background-size: 14px;
}

body.staff-modern:not(.staff-login-modern) #content {
  overflow: visible;
  padding: 28px 30px 34px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

body.staff-modern:not(.staff-login-modern) #basic_search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248, 251, 254, 0.9), rgba(240, 245, 249, 0.82));
  box-shadow: 0 12px 26px rgba(28, 47, 55, 0.06);
}

body.staff-modern:not(.staff-login-modern) #basic_search .pull-right {
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: auto !important;
  margin: 0;
  order: 1;
}

body.staff-modern:not(.staff-login-modern) #basic_search .action-button,
body.staff-modern:not(.staff-login-modern) #basic_search .button,
body.staff-modern:not(.staff-login-modern) #basic_search .action-button.muted {
  min-height: 44px;
  border: 1px solid rgba(25, 53, 66, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #35515d;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) #basic_search .action-button span,
body.staff-modern:not(.staff-login-modern) #basic_search .action-button i,
body.staff-modern:not(.staff-login-modern) #basic_search .button span,
body.staff-modern:not(.staff-login-modern) #basic_search .button i {
  color: inherit;
}

body.staff-modern:not(.staff-login-modern) #basic_search .action-button:hover,
body.staff-modern:not(.staff-login-modern) #basic_search .button:hover {
  background: rgba(232, 241, 246, 0.96);
  color: #143641;
  transform: none;
}

body.staff-modern:not(.staff-login-modern) #basic_search form {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  order: 2;
}

body.staff-modern:not(.staff-login-modern) #basic_search .attached.input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
  height: 52px;
  width: min(100%, 420px);
}

body.staff-modern:not(.staff-login-modern) #basic_search .attached.input input.basic-search {
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(19, 38, 47, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: #173039;
  box-sizing: border-box;
  line-height: 1.2;
}

body.staff-modern:not(.staff-login-modern) #basic_search .attached.input .attached.button {
  display: inline-grid;
  place-items: center;
  width: 52px !important;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.2);
}

body.staff-modern:not(.staff-login-modern) #basic_search > form > a,
body.staff-modern:not(.staff-login-modern) #basic_search > form > i.help-tip {
  align-self: center;
}

body.staff-modern:not(.staff-login-modern) #basic_search > form > a {
  color: #5274c7;
  font-weight: 600;
}

body.staff-modern:not(.staff-login-modern) #basic_search > form > a.queue-advanced-trigger {
  display: inline-grid;
  place-items: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #173641;
  box-shadow: 0 10px 20px rgba(28, 47, 55, 0.08);
}

body.staff-modern:not(.staff-login-modern) #basic_search > form > a.queue-advanced-trigger:hover {
  background: rgba(232, 241, 246, 0.96);
  color: #143641;
}

body.staff-modern:not(.staff-login-modern) #basic_search > form > a.queue-advanced-trigger i {
  font-size: 1.05rem;
}

body.staff-modern:not(.staff-login-modern) #basic_search > form > i.help-tip {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(22, 54, 65, 0.08);
  color: #4b6471;
  opacity: 1;
}

body.staff-modern:not(.staff-login-modern) #basic_search > form > i.help-tip:hover {
  background: rgba(22, 54, 65, 0.14);
  color: #173641 !important;
}

body.staff-modern:not(.staff-login-modern) .tip_box {
  z-index: 30;
}

body.staff-modern:not(.staff-login-modern) .tip_content {
  min-width: 360px;
  padding: 16px 18px;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 18px;
  background: rgba(252, 254, 255, 0.98);
  color: #36515d;
  box-shadow: 0 20px 42px rgba(24, 41, 50, 0.16);
  line-height: 1.55;
}

body.staff-modern:not(.staff-login-modern) .tip_content,
body.staff-modern:not(.staff-login-modern) .tip_content p,
body.staff-modern:not(.staff-login-modern) .tip_content div,
body.staff-modern:not(.staff-login-modern) .tip_content span {
  color: #36515d;
}

body.staff-modern:not(.staff-login-modern) .tip_content strong,
body.staff-modern:not(.staff-login-modern) .tip_content b,
body.staff-modern:not(.staff-login-modern) .tip_content h1 {
  color: #173641;
}

body.staff-modern:not(.staff-login-modern) #sort-dropdown.action-dropdown {
  border: 1px solid rgba(19, 38, 47, 0.1);
  border-radius: 18px;
  background: rgba(252, 254, 255, 0.98);
  box-shadow: 0 18px 36px rgba(24, 41, 50, 0.12);
}

body.staff-modern:not(.staff-login-modern) #sort-dropdown.action-dropdown ul li a {
  color: #30454f;
}

body.staff-modern:not(.staff-login-modern) #sort-dropdown.action-dropdown ul li.active a,
body.staff-modern:not(.staff-login-modern) #sort-dropdown.action-dropdown ul li a:hover {
  color: #143641;
  background: rgba(223, 243, 237, 0.72);
}

body.staff-modern:not(.staff-login-modern) .sticky.bar {
  margin-bottom: 22px;
  border-color: rgba(19, 38, 47, 0.06);
  background: linear-gradient(180deg, rgba(249, 252, 254, 0.88), rgba(241, 246, 249, 0.82));
  box-shadow: 0 10px 24px rgba(28, 47, 55, 0.05);
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .content {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: 18px;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar h2 {
  margin: 0;
  color: #173039;
  font-size: 1.5rem;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .configureQ,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right {
  float: none;
  margin-left: auto;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .configureQ {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #35515d;
  box-shadow: 0 10px 22px rgba(28, 47, 55, 0.08);
  cursor: pointer;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .configureQ i {
  color: inherit;
  opacity: 1;
  pointer-events: none;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 18px;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > .action-button,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > .button,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.tickets-action,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.action-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #35515d;
  box-shadow: 0 8px 16px rgba(28, 47, 55, 0.06);
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > :last-child {
  margin-right: 2px;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.button,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.action-button,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > button.button,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > button.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 0 16px;
  white-space: nowrap;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.green.button,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.button.primary,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.action-button.primary,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > button.green.button,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > button.button.primary,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > button.action-button.primary {
  border: 0;
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff !important;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.18);
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.green.button:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.button.primary:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.action-button.primary:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > button.green.button:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > button.button.primary:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > button.action-button.primary:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660);
  color: #f7fcff !important;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > .action-button i,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > .button i,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.tickets-action i,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.action-button i {
  color: inherit;
  opacity: 1;
  font-size: 1rem;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > .action-button:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > .button:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.tickets-action:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > a.action-button:hover,
body.staff-modern:not(.staff-login-modern) .sticky.bar .configureQ:hover {
  background: rgba(232, 241, 246, 0.98);
  color: #143641;
  transform: none;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > span.action-button[data-dropdown] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  padding: 0 12px;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > span.action-button[data-dropdown] a.tickets-action {
  display: inline-grid;
  place-items: center;
  width: auto;
  min-width: 0;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .pull-right.flush-right > span.action-button[data-dropdown] i.icon-caret-down {
  float: none;
  margin: 0;
  opacity: 0.86;
}

body.staff-modern:not(.staff-login-modern) form#tickets {
  display: block;
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) form#tickets table.list.queue.tickets {
  margin-bottom: 12px;
}

body.staff-modern:not(.staff-login-modern) form#tickets table.list tfoot td {
  padding: 12px 16px;
  background: rgba(245, 248, 252, 0.92) !important;
  color: #48606c;
}

body.staff-modern:not(.staff-login-modern) form#tickets > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 4px 0;
  color: #4b616d;
}

body.staff-modern:not(.staff-login-modern) form#tickets > div:last-child .pull-right {
  float: none;
  margin-left: auto;
}

body.staff-modern:not(.staff-login-modern) form#tickets > div:last-child a,
body.staff-modern:not(.staff-login-modern) form#tickets table.list tfoot td a {
  color: #4d79d8;
}

body.staff-modern:not(.staff-login-modern) .sticky.bar .configureQ > .action-dropdown,
body.staff-modern:not(.staff-login-modern) .sticky.bar .configureQ > .noclick-dropdown {
  display: none;
}

body.staff-modern:not(.staff-login-modern) table.list.queue.tickets {
  width: 100% !important;
}

body.staff-modern:not(.staff-login-modern) table.list thead th,
body.staff-modern:not(.staff-login-modern) .table > thead th {
  background: #e7eefc !important;
  color: #18303c !important;
}

body.staff-modern:not(.staff-login-modern) table.list thead th a,
body.staff-modern:not(.staff-login-modern) .table > thead th a {
  color: #18303c !important;
}

body.staff-modern:not(.staff-login-modern) table.list tbody td,
body.staff-modern:not(.staff-login-modern) .table td {
  background: rgba(255, 255, 255, 0.96) !important;
  color: #30434b !important;
}

body.staff-modern:not(.staff-login-modern) table.list tbody tr:nth-child(2n+1) td {
  background: #f8fbff !important;
}

body.staff-modern:not(.staff-login-modern) table.list tbody tr:hover td,
body.staff-modern:not(.staff-login-modern) .table tbody tr:hover td {
  background: rgba(223, 243, 237, 0.66) !important;
}

@media (max-width: 960px) {
  body.staff-modern:not(.staff-login-modern) #header {
    grid-template-columns: 1fr;
  }

  body.staff-modern:not(.staff-login-modern) #header #info {
    justify-content: flex-start;
    text-align: left;
  }

  body.staff-modern:not(.staff-login-modern) #basic_search .pull-right {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  body.staff-modern:not(.staff-login-modern) #header #logo::after {
    font-size: 0.96rem;
  }

  body.staff-modern:not(.staff-login-modern) #content {
    padding: 22px 18px 26px;
  }

  body.staff-modern:not(.staff-login-modern) #nav > li > a,
  body.staff-modern:not(.staff-login-modern) #sub_nav > li > a {
    width: 100%;
    justify-content: flex-start;
  }

  body.staff-modern:not(.staff-login-modern) #basic_search .attached.input {
    width: 100%;
  }
}

/* Advanced search dialog */
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search,
body.staff-modern:not(.staff-login-modern) .dialog.size-large,
body.staff-modern:not(.staff-login-modern) .dialog.size-xl {
  width: min(900px, calc(100vw - 40px)) !important;
  max-height: min(84vh, 920px);
  padding: 24px 24px 20px;
  border: 1px solid rgba(120, 160, 188, 0.24);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(248, 251, 254, 0.98), rgba(239, 245, 249, 0.95));
  box-shadow: 0 36px 80px rgba(6, 16, 24, 0.34);
  overflow-y: auto;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search h3,
body.staff-modern:not(.staff-login-modern) .dialog h3.drag-handle {
  margin: 0 0 14px;
  padding-right: 44px;
  color: #173542;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.staff-modern:not(.staff-login-modern) .dialog a.close {
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(18, 44, 58, 0.08);
  color: #35515d;
  font-size: 1rem;
}

body.staff-modern:not(.staff-login-modern) .dialog a.close:hover {
  background: rgba(18, 44, 58, 0.14);
  color: #153641;
}

body.staff-modern:not(.staff-login-modern) .dialog hr {
  margin: 16px 0 18px;
  background: linear-gradient(90deg, rgba(102, 132, 150, 0), rgba(102, 132, 150, 0.38), rgba(102, 132, 150, 0));
}

body.staff-modern:not(.staff-login-modern) .dialog form {
  clear: both;
}

body.staff-modern:not(.staff-login-modern) .dialog .row > [class^="span"],
body.staff-modern:not(.staff-login-modern) .dialog .row > [class~=" span"] {
  padding: 0;
}

body.staff-modern:not(.staff-login-modern) .dialog .span12 > select,
body.staff-modern:not(.staff-login-modern) .dialog .span12 > input[type="text"],
body.staff-modern:not(.staff-login-modern) .dialog .span12 > input[type="search"],
body.staff-modern:not(.staff-login-modern) .dialog .span12 > textarea,
body.staff-modern:not(.staff-login-modern) .dialog fieldset input:not([type="checkbox"]),
body.staff-modern:not(.staff-login-modern) .dialog select,
body.staff-modern:not(.staff-login-modern) .dialog textarea {
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: #173542;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) .dialog fieldset input:not([type="checkbox"]):focus,
body.staff-modern:not(.staff-login-modern) .dialog select:focus,
body.staff-modern:not(.staff-login-modern) .dialog textarea:focus {
  border-color: rgba(77, 141, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(77, 141, 255, 0.1);
}

body.staff-modern:not(.staff-login-modern) .dialog ul.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 18px;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 20px;
  background: rgba(235, 243, 248, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li:not(.active) {
  margin: 0;
  border: 0;
  background: transparent;
}

body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(35, 61, 78, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8fb 100%);
  color: #4c6678;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(16, 42, 57, 0.06);
}

body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li a,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li a:link,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li a:visited {
  color: #16222b !important;
}

body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li a i,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li a span,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li a * {
  color: inherit !important;
}

body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a {
  border-color: transparent;
  background: linear-gradient(135deg, #155f58 0%, #0f766e 100%);
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.24);
}

body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a i,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a span,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a * {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li a:hover {
  border-color: rgba(15, 118, 110, 0.14);
  background: linear-gradient(180deg, #f7fbfd 0%, #edf5f9 100%);
  color: #193744;
}

body.staff-modern:not(.staff-login-modern) .dialog #user-account-tabs {
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) .dialog #user-account-tabs li,
body.staff-modern:not(.staff-login-modern) .dialog #user-account-tabs li.active,
body.staff-modern:not(.staff-login-modern) .dialog #user-account-tabs li:not(.active) {
  min-width: 0;
  width: auto;
  height: auto;
  line-height: normal;
  bottom: auto;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #user-account-tabs li a {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(25, 53, 66, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #4b6573 !important;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) .dialog #user-account-tabs li a i {
  color: inherit !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #user-account-tabs li.active a,
body.staff-modern:not(.staff-login-modern) .dialog #user-account-tabs li a:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff !important;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) .dialog .tab_content {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

body.staff-modern:not(.staff-login-modern) .dialog .error,
body.staff-modern:not(.staff-login-modern) .dialog .faded,
body.staff-modern:not(.staff-login-modern) .dialog p,
body.staff-modern:not(.staff-login-modern) .dialog label,
body.staff-modern:not(.staff-login-modern) .dialog td,
body.staff-modern:not(.staff-login-modern) .dialog small {
  color: #4b616d;
}

body.staff-modern:not(.staff-login-modern) .dialog,
body.staff-modern:not(.staff-login-modern) .dialog div,
body.staff-modern:not(.staff-login-modern) .dialog span,
body.staff-modern:not(.staff-login-modern) .dialog li,
body.staff-modern:not(.staff-login-modern) .dialog dd,
body.staff-modern:not(.staff-login-modern) .dialog dt {
  color: #445b68;
}

body.staff-modern:not(.staff-login-modern) .dialog .faded,
body.staff-modern:not(.staff-login-modern) .dialog .subtle,
body.staff-modern:not(.staff-login-modern) .dialog .muted {
  color: #607986 !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) .dialog strong,
body.staff-modern:not(.staff-login-modern) .dialog b,
body.staff-modern:not(.staff-login-modern) .dialog .title,
body.staff-modern:not(.staff-login-modern) .dialog .heading,
body.staff-modern:not(.staff-login-modern) .dialog h4 {
  color: #203744 !important;
}

body.staff-modern:not(.staff-login-modern) .dialog a:not(.button):not(.action-button):not(.close) {
  color: #18242d !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li a,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li a:link,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li a:visited {
  color: #16222b !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li a i,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li a span,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li a * {
  color: inherit !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li.active a,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li.active a:link,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li.active a:visited,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li.active a:hover {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li.active a i,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li.active a span,
body.staff-modern:not(.staff-login-modern) .dialog #fieldtabs li.active a * {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .dialog th,
body.staff-modern:not(.staff-login-modern) .dialog th strong,
body.staff-modern:not(.staff-login-modern) .dialog th em,
body.staff-modern:not(.staff-login-modern) .dialog th div,
body.staff-modern:not(.staff-login-modern) .dialog #new-user-form th,
body.staff-modern:not(.staff-login-modern) .dialog #new-user-form th strong,
body.staff-modern:not(.staff-login-modern) .dialog #new-user-form th em,
body.staff-modern:not(.staff-login-modern) .dialog #new-user-form th div {
  color: #233746 !important;
}

body.staff-modern:not(.staff-login-modern) .dialog .error-banner,
body.staff-modern:not(.staff-login-modern) .dialog #msg_error,
body.staff-modern:not(.staff-login-modern) .dialog #msg_warning,
body.staff-modern:not(.staff-login-modern) .dialog #msg_notice {
  margin-bottom: 14px;
  border-radius: 18px;
}

body.staff-modern:not(.staff-login-modern) .dialog .advanced-search .adv-search-field-container {
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

body.staff-modern:not(.staff-login-modern) .dialog .advanced-search .adv-search-field {
  margin-top: 0 !important;
  padding-bottom: 6px;
}

body.staff-modern:not(.staff-login-modern) .dialog .advanced-search .adv-search-field-body {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(102, 132, 150, 0.14);
}

body.staff-modern:not(.staff-login-modern) .dialog .advanced-search .adv-search-method {
  margin-left: 18px;
}

body.staff-modern:not(.staff-login-modern) .dialog .advanced-search .adv-search-val {
  margin-left: 34px;
}

body.staff-modern:not(.staff-login-modern) .dialog .advanced-search .adv-search-method::before,
body.staff-modern:not(.staff-login-modern) .dialog .advanced-search .adv-search-val::before {
  left: -14px;
  border-color: rgba(70, 102, 121, 0.22);
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search {
  border-color: rgba(87, 122, 146, 0.22);
  background: linear-gradient(180deg, rgba(246, 250, 253, 0.99), rgba(235, 243, 248, 0.96));
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search h3.drag-handle {
  color: #173542;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search a.close {
  background: linear-gradient(180deg, #eef5f9 0%, #e2edf4 100%);
  color: #426474;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search a.close:hover {
  background: linear-gradient(180deg, #e6f0f5 0%, #dbe7ef 100%);
  color: #183945;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs {
  border-color: rgba(87, 122, 146, 0.16);
  background: rgba(226, 238, 245, 0.88);
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs li a {
  border-color: rgba(49, 78, 97, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
  color: #18242d !important;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs li.active a {
  background: linear-gradient(135deg, #155f58 0%, #0f766e 100%);
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs li.active a i,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs li.active a span,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs li.active a * {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs li a:hover {
  border-color: rgba(21, 95, 88, 0.12);
  background: linear-gradient(180deg, #f9fcfe 0%, #edf5f9 100%);
  color: #121d24 !important;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs li a i,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search ul.tabs li a span {
  color: inherit !important;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search .tab_content {
  border-color: rgba(87, 122, 146, 0.14);
  background: rgba(251, 253, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search p,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search label,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search td,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search small,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search div,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search span {
  color: #516877;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search strong,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search b,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search .title,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search .heading,
body.staff-modern:not(.staff-login-modern) .dialog#advanced-search h4 {
  color: #203744 !important;
}

body.staff-modern:not(.staff-login-modern) .dialog#advanced-search .advanced-search .adv-search-field-container {
  border-color: rgba(87, 122, 146, 0.14);
  background: rgba(244, 249, 252, 0.9);
}

body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs {
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li.active,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li:not(.active) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li::before,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li::after,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li a::before,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li a::after {
  display: none !important;
  content: none !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li a,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li a:link,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li a:visited {
  border-color: rgba(49, 78, 97, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
  color: #18242d !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li.active a,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li.active a:link,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li.active a:visited {
  background: linear-gradient(135deg, #155f58 0%, #0f766e 100%);
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li.active a i,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li.active a span,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li.active a * {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li:not(.active) a i,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li:not(.active) a span,
body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li:not(.active) a * {
  color: #18242d !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #advanced-search ul.tabs li a:hover {
  border-color: rgba(21, 95, 88, 0.12);
  background: linear-gradient(180deg, #f9fcfe 0%, #edf5f9 100%);
}

body.staff-modern:not(.staff-login-modern) .dialog input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: #0f766e;
}

body.staff-modern:not(.staff-login-modern) .dialog table.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 28px rgba(28, 47, 55, 0.06);
}

body.staff-modern:not(.staff-login-modern) .dialog .table tr.header td,
body.staff-modern:not(.staff-login-modern) .dialog .table tr.header th {
  background: rgba(220, 233, 255, 0.74);
  color: #173542;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
}

body.staff-modern:not(.staff-login-modern) .dialog .table td,
body.staff-modern:not(.staff-login-modern) .dialog .table th {
  padding: 14px 16px;
  border-color: rgba(19, 38, 47, 0.08);
  background: transparent !important;
  color: #35515d;
}

body.staff-modern:not(.staff-login-modern) .dialog #append-column {
  padding: 18px 16px !important;
}

body.staff-modern:not(.staff-login-modern) .dialog #save-changes {
  margin-top: 12px;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(102, 132, 150, 0.18) !important;
}

body.staff-modern:not(.staff-login-modern) .dialog .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.staff-modern:not(.staff-login-modern) .dialog .buttons.pull-left,
body.staff-modern:not(.staff-login-modern) .dialog .buttons.pull-right {
  float: none;
}

body.staff-modern:not(.staff-login-modern) .dialog p.full-width {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}

body.staff-modern:not(.staff-login-modern) .dialog p.full-width::after {
  display: none;
}

body.staff-modern:not(.staff-login-modern) .dialog .button,
body.staff-modern:not(.staff-login-modern) .dialog .action-button,
body.staff-modern:not(.staff-login-modern) .dialog input[type="button"],
body.staff-modern:not(.staff-login-modern) .dialog input[type="submit"] {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #2f4a56;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) .dialog .button:hover,
body.staff-modern:not(.staff-login-modern) .dialog .action-button:hover,
body.staff-modern:not(.staff-login-modern) .dialog input[type="button"]:hover {
  background: rgba(232, 241, 246, 0.96);
  color: #143641;
  transform: none;
}

body.staff-modern:not(.staff-login-modern) .dialog .save.button,
body.staff-modern:not(.staff-login-modern) .dialog #do_search,
body.staff-modern:not(.staff-login-modern) .dialog #do_save {
  border: 0;
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.18);
}

body.staff-modern:not(.staff-login-modern) .dialog .save.button:hover,
body.staff-modern:not(.staff-login-modern) .dialog #do_search:hover,
body.staff-modern:not(.staff-login-modern) .dialog #do_save:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660);
  color: #f7fcff;
}

@media (max-width: 760px) {
  body.staff-modern:not(.staff-login-modern) .dialog#advanced-search,
  body.staff-modern:not(.staff-login-modern) .dialog.size-large,
  body.staff-modern:not(.staff-login-modern) .dialog.size-xl {
    width: calc(100vw - 20px) !important;
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  body.staff-modern:not(.staff-login-modern) .dialog ul.tabs {
    width: 100%;
  }

  body.staff-modern:not(.staff-login-modern) .dialog p.full-width {
    justify-content: flex-start;
  }
}

/* Global staff tab readability */
body.staff-modern:not(.staff-login-modern) #content ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 22px;
  background: rgba(244, 248, 251, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

body.staff-modern:not(.staff-login-modern) #content ul.tabs li,
body.staff-modern:not(.staff-login-modern) #content ul.tabs li.active,
body.staff-modern:not(.staff-login-modern) #content ul.tabs li:not(.active) {
  margin: 0;
  min-width: 0;
  height: auto;
  line-height: normal;
  border: 0;
  background: transparent;
  position: static;
  bottom: auto;
  box-shadow: none;
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) #content ul.tabs li a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #59717d !important;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(28, 47, 55, 0.04);
}

body.staff-modern:not(.staff-login-modern) #content ul.tabs li a i {
  color: inherit;
  opacity: 1;
}

body.staff-modern:not(.staff-login-modern) #content ul.tabs li.active a,
body.staff-modern:not(.staff-login-modern) #content ul.tabs li a:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff !important;
  box-shadow: 0 12px 24px rgba(17, 69, 66, 0.16);
}

body.staff-modern:not(.staff-login-modern) #content ul.tabs.clean li.active {
  background: transparent;
}

/* Global staff form footer actions */
body.staff-modern:not(.staff-login-modern) #content > form {
  display: block;
  max-width: 100%;
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
  padding: 18px 16px 0;
  border-top: 1px solid rgba(19, 38, 47, 0.08);
  text-align: center !important;
}

body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] .button,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] .action-button,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] button,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] input[type="submit"],
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] input[type="reset"],
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] input[type="button"] {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #36505d !important;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(28, 47, 55, 0.06);
  max-width: 100%;
}

body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] .button i,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] .action-button i,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] button i {
  color: inherit;
  opacity: 1;
}

body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] .button:hover,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] .action-button:hover,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] button:hover,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] input[type="reset"]:hover,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] input[type="button"]:hover {
  background: rgba(232, 241, 246, 0.98);
  color: #143641 !important;
  transform: none;
}

body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] input[type="submit"],
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] button[type="submit"],
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] .button.action-button[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff !important;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.18);
}

body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] input[type="submit"]:hover,
body.staff-modern:not(.staff-login-modern) #content form p[style*="text-align:center"] button[type="submit"]:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660);
  color: #f7fcff !important;
}

/* Global staff frame safety */
body.staff-modern:not(.staff-login-modern) #content > *,
body.staff-modern:not(.staff-login-modern) #content form > *,
body.staff-modern:not(.staff-login-modern) #content .sticky.bar,
body.staff-modern:not(.staff-login-modern) #content table,
body.staff-modern:not(.staff-login-modern) #content .table,
body.staff-modern:not(.staff-login-modern) #content .settings_table {
  box-sizing: border-box;
  max-width: 100%;
}

body.staff-modern:not(.staff-login-modern) #content > ul.tabs,
body.staff-modern:not(.staff-login-modern) #content form > ul.tabs {
  width: 100%;
  margin: 4px 0 20px;
  padding: 10px 12px;
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) #content > ul.tabs li,
body.staff-modern:not(.staff-login-modern) #content form > ul.tabs li {
  flex: 0 0 auto;
}

body.staff-modern:not(.staff-login-modern) #content > ul.tabs li a,
body.staff-modern:not(.staff-login-modern) #content form > ul.tabs li a {
  white-space: nowrap;
}

body.staff-modern:not(.staff-login-modern) #content .system-info-title,
body.staff-modern:not(.staff-login-modern) #content .system-language-title {
  margin: 4px 0 22px;
  color: #f4fbff;
  letter-spacing: -0.03em;
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(173, 208, 255, 0.12);
  border-radius: 28px;
  background: rgba(15, 26, 41, 0.56);
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(7, 16, 23, 0.22);
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card thead th {
  padding: 16px 18px;
  border: 0;
  background: rgba(20, 48, 67, 0.92);
  color: #eef8fd;
  font-weight: 700;
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card tbody td {
  padding: 18px;
  border-color: rgba(173, 208, 255, 0.08);
  background: rgba(12, 22, 35, 0.72);
  color: #dceaf2;
  vertical-align: middle;
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card tbody td:first-child {
  color: #f3fbff;
  font-weight: 700;
  width: 34%;
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card tbody tr + tr td {
  border-top: 1px solid rgba(173, 208, 255, 0.08);
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card .ltr,
body.staff-modern:not(.staff-login-modern) #content .system-info-card code,
body.staff-modern:not(.staff-login-modern) #content .system-language-list code {
  color: #f7fcff;
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card .faded,
body.staff-modern:not(.staff-login-modern) #content .system-language-list,
body.staff-modern:not(.staff-login-modern) #content .system-language-list div {
  color: #b8ccd8;
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card .system-upgrade-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #114542, #0f766e) !important;
  color: #f7fcff !important;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.24);
  text-shadow: none;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) #content .system-info-card .system-upgrade-button:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660) !important;
  color: #f7fcff !important;
}

body.staff-modern:not(.staff-login-modern) #content .system-language-list h3,
body.staff-modern:not(.staff-login-modern) #content .system-language-list strong {
  color: #edf8fd;
}

body.staff-modern:not(.staff-login-modern) #content > .sticky.bar,
body.staff-modern:not(.staff-login-modern) #content form > .sticky.bar,
body.staff-modern:not(.staff-login-modern) #content div.sticky.bar {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) #content > .sticky.bar .content,
body.staff-modern:not(.staff-login-modern) #content form > .sticky.bar .content,
body.staff-modern:not(.staff-login-modern) #content div.sticky.bar .content {
  padding: 18px;
}

body.staff-modern:not(.staff-login-modern) #content .table,
body.staff-modern:not(.staff-login-modern) #content table.list,
body.staff-modern:not(.staff-login-modern) #content .settings_table {
  width: 100% !important;
}

/* Dashboard containment */
body.staff-modern:not(.staff-login-modern) #content {
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] > ul.clean.tabs {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] > ul.clean.tabs li,
body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] > ul.clean.tabs li.active,
body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] > ul.clean.tabs li:not(.active) {
  position: static;
  bottom: auto;
}

body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] #line-chart-here {
  min-height: 320px;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] .tab_content {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 12px;
}

body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] table.dashboard-stats {
  min-width: 980px;
  table-layout: auto;
}

body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] table.dashboard-stats th,
body.staff-modern:not(.staff-login-modern) form[action="dashboard.php"] table.dashboard-stats td {
  white-space: nowrap;
}

/* Staff refinement layer */
body.staff-modern:not(.staff-login-modern) #content > h1,
body.staff-modern:not(.staff-login-modern) #content > h2,
body.staff-modern:not(.staff-login-modern) #content > h3 {
  margin: 0 0 14px;
}

body.staff-modern:not(.staff-login-modern) #content > p,
body.staff-modern:not(.staff-login-modern) #content .tab_content > p,
body.staff-modern:not(.staff-login-modern) #content .tab_content > .faded {
  margin: 0 0 14px;
  color: #617783;
}

body.staff-modern:not(.staff-login-modern) #content > ul.tabs,
body.staff-modern:not(.staff-login-modern) #content form > ul.tabs,
body.staff-modern:not(.staff-login-modern) #content .tab_content > ul.tabs,
body.staff-modern:not(.staff-login-modern) #content .dashboard-tabs {
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
  padding: 10px 12px;
  border-radius: 26px;
}

body.staff-modern:not(.staff-login-modern) #content > ul.tabs li a,
body.staff-modern:not(.staff-login-modern) #content form > ul.tabs li a,
body.staff-modern:not(.staff-login-modern) #content .tab_content > ul.tabs li a,
body.staff-modern:not(.staff-login-modern) #content .dashboard-tabs li a {
  min-height: 42px;
  padding: 0 18px;
}

body.staff-modern:not(.staff-login-modern) #content .tab_content {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 22px;
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) #content .tab_content > .table,
body.staff-modern:not(.staff-login-modern) #content .tab_content > table.list,
body.staff-modern:not(.staff-login-modern) #content .tab_content > .settings_table,
body.staff-modern:not(.staff-login-modern) #content .tab_content > .form_table,
body.staff-modern:not(.staff-login-modern) #content > .table,
body.staff-modern:not(.staff-login-modern) #content > table.list,
body.staff-modern:not(.staff-login-modern) #content > .settings_table,
body.staff-modern:not(.staff-login-modern) #content > .form_table {
  width: 100% !important;
  max-width: 100%;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 34px rgba(29, 48, 57, 0.05);
  overflow: visible;
}

body.staff-modern:not(.staff-login-modern) #content .tab_content > .form_table,
body.staff-modern:not(.staff-login-modern) #content > .form_table,
body.staff-modern:not(.staff-login-modern) #content .tab_content > .settings_table,
body.staff-modern:not(.staff-login-modern) #content > .settings_table {
  border-collapse: separate;
  border-spacing: 0;
}

body.staff-modern:not(.staff-login-modern) #content .table td,
body.staff-modern:not(.staff-login-modern) #content .table th,
body.staff-modern:not(.staff-login-modern) #content table.list td,
body.staff-modern:not(.staff-login-modern) #content table.list th,
body.staff-modern:not(.staff-login-modern) #content .settings_table td,
body.staff-modern:not(.staff-login-modern) #content .settings_table th,
body.staff-modern:not(.staff-login-modern) #content .form_table td,
body.staff-modern:not(.staff-login-modern) #content .form_table th {
  padding-top: 15px;
  padding-bottom: 15px;
}

body.staff-modern:not(.staff-login-modern) #content .sticky.bar,
body.staff-modern:not(.staff-login-modern) #content #basic_search,
body.staff-modern:not(.staff-login-modern) #content .dashboard-section {
  margin-bottom: 20px;
}

body.staff-modern:not(.staff-login-modern) #content .sticky.bar .content,
body.staff-modern:not(.staff-login-modern) #content #basic_search,
body.staff-modern:not(.staff-login-modern) #content .dashboard-section {
  box-sizing: border-box;
}

body.staff-modern:not(.staff-login-modern) #content p[style*="text-align:center"] {
  margin-bottom: 0;
}

body.staff-modern:not(.staff-login-modern) .directory-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body.staff-modern:not(.staff-login-modern) .directory-filter-form input[type="text"],
body.staff-modern:not(.staff-login-modern) .directory-filter-form select {
  margin: 0;
}

body.staff-modern:not(.staff-login-modern) .directory-filter-form .directory-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-width: 56px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff !important;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.18);
}

body.staff-modern:not(.staff-login-modern) .directory-filter-form .directory-filter-button:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660);
}

body.staff-modern:not(.staff-login-modern) .directory-filter-form .directory-filter-button i {
  color: inherit;
  font-size: 1rem;
  opacity: 1;
}

/* Staff knowledge base */
body.staff-modern:not(.staff-login-modern) #content .kb-content-shell {
  margin-top: 14px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(29, 48, 57, 0.05);
}

body.staff-modern:not(.staff-login-modern) #content .kb-content-shell .kb-intro {
  margin: 0 0 14px;
  color: #617783;
}

body.staff-modern:not(.staff-login-modern) #content #kb {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) #content #kb li {
  margin: 0;
  padding: 18px 22px 18px 68px;
  border: 0;
  border-radius: 20px;
  background-color: rgba(247, 250, 253, 0.96);
  background-image: url(../images/kb_large_folder.png);
  background-position: 22px 18px;
  background-repeat: no-repeat;
  background-size: 28px 28px;
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) #content #kb li + li {
  margin-top: 10px;
}

body.staff-modern:not(.staff-login-modern) #content #kb li:last-child {
  border-bottom: 0;
}

body.staff-modern:not(.staff-login-modern) #content #kb li h4 {
  margin: 0 0 6px;
  padding: 0;
  color: #18303c;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

body.staff-modern:not(.staff-login-modern) #content #kb li h4 a {
  color: #3f82ff;
  font-size: 1rem;
  font-weight: 700;
}

body.staff-modern:not(.staff-login-modern) #content #kb li h4 span {
  color: #607783;
  font-weight: 600;
}

body.staff-modern:not(.staff-login-modern) #content #kb li > div,
body.staff-modern:not(.staff-login-modern) #content #kb li > p,
body.staff-modern:not(.staff-login-modern) #content #kb li {
  color: #536975;
}

body.staff-modern:not(.staff-login-modern) #content #faq {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) #content .form_table a.inline.button,
body.staff-modern:not(.staff-login-modern) #content .form_table a.inline.action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(19, 38, 47, 0.12);
  border-radius: 18px;
  background: rgba(244, 248, 251, 0.98);
  color: #22414d !important;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(28, 47, 55, 0.06);
  vertical-align: middle;
}

body.staff-modern:not(.staff-login-modern) #content .form_table a.inline.button i,
body.staff-modern:not(.staff-login-modern) #content .form_table a.inline.action-button i {
  color: inherit;
  opacity: 1;
}

body.staff-modern:not(.staff-login-modern) #content .form_table a.inline.button:hover,
body.staff-modern:not(.staff-login-modern) #content .form_table a.inline.action-button:hover {
  background: rgba(232, 241, 246, 0.98);
  color: #143641 !important;
  text-decoration: none;
  transform: none;
}

body.staff-modern:not(.staff-login-modern) form[name="canned"] > .sticky.bar .pull-right.flush-right {
  gap: 12px;
}

body.staff-modern:not(.staff-login-modern) form[name="canned"] > .sticky.bar .pull-right.flush-right > a.green.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
  line-height: 1;
}

body.staff-modern:not(.staff-login-modern) form[name="canned"] > .sticky.bar .pull-right.flush-right > span.action-button[data-dropdown] {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] > ul.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] > ul.tabs li a {
  min-height: 42px;
  padding: 0 18px;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] > .tab_content {
  margin-top: 0;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] > .tab_content > table.table.two-column,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] > #signature > table.table.two-column {
  width: 100% !important;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(19, 38, 47, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(29, 48, 57, 0.05);
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #account > table.table.two-column > tbody:first-child > tr > td > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: flex-start;
  gap: 24px;
  padding: 4px 0 0;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #account .avatar.pull-left {
  float: none;
  flex: 0 0 116px;
  width: 116px !important;
  height: 116px !important;
  margin: 6px 0 0 0 !important;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #account > table.table.two-column > tbody:first-child > tr > td > div > table.table.two-column {
  flex: 1 1 auto;
  width: 100% !important;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #account > table.table.two-column > tbody:first-child > tr > td > div > table.table.two-column td,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #account > table.table.two-column > tbody:first-child > tr > td > div > table.table.two-column th {
  padding-top: 12px;
  padding-bottom: 12px;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #account > table.table.two-column > tbody:first-child > tr > td > div > table.table.two-column td:first-child {
  width: 180px;
  padding-left: 0;
  color: #415661;
  font-weight: 700;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #account > table.table.two-column > tbody:first-child > tr > td > div > table.table.two-column td:last-child {
  padding-right: 0;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #preferences > table.table.two-column,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #signature > table.table.two-column {
  width: 100% !important;
  border-radius: 30px;
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #account > table.table.two-column > tbody:first-child > tr > td,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #preferences > table.table.two-column > tbody > tr > td,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #preferences > table.table.two-column > tbody > tr > th,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #signature > table.table.two-column > tbody > tr > td,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #signature > table.table.two-column > tbody > tr > th {
  padding-left: 24px;
  padding-right: 24px;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #change-pw-button,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #config2fa-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-left: 12px;
  padding: 0 16px;
  border: 1px solid rgba(19, 38, 47, 0.12);
  border-radius: 18px;
  background: rgba(244, 248, 251, 0.98);
  color: #22414d !important;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(28, 47, 55, 0.06);
  vertical-align: middle;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #change-pw-button:hover,
body.staff-modern:not(.staff-login-modern) form[action="profile.php"] #config2fa-button:hover {
  background: rgba(232, 241, 246, 0.98);
  color: #143641 !important;
  transform: none;
}

body.staff-modern:not(.staff-login-modern) form[action="profile.php"] > p[style*="text-align:center"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px 0 0;
}

body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > ul.clean.tabs,
body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > ul.tabs {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > ul.clean.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > ul.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > ul.clean.tabs li.active,
body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > ul.tabs li.active {
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > ul.clean.tabs li a,
body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > ul.tabs li a {
  min-height: 42px;
  padding: 0 18px;
}

body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > .tab_content {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > .tab_content.hidden {
  display: none;
}

body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > #account > table.table.two-column,
body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > #preferences > table.table.two-column,
body.staff-modern:not(.staff-login-modern) #content form[action="profile.php"] > #signature > table.table.two-column {
  width: 100% !important;
  border: 1px solid rgba(19, 38, 47, 0.08) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 34px rgba(29, 48, 57, 0.05) !important;
  overflow: hidden !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li.active,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li.active {
  margin: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  position: static !important;
  bottom: auto !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li.error,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li.error,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li.error.active,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li.error.active {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs::before,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs::after,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs::before,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs::after,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li::before,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li::after,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li::before,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li::after,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li a::before,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li a::after,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li a::before,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li a::after {
  display: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  content: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.clean.tabs li a,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > ul.tabs li a {
  min-height: 42px;
  padding: 0 18px;
  outline: 0 !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > .tab_content {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > .tab_content.hidden {
  display: none;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #settings > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #settings > table.settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #autoresp > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #autoresp > .form_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #alerts > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #alerts > .form_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #queues > .table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #queues > table.list {
  width: 100% !important;
  border: 1px solid rgba(19, 38, 47, 0.08) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 34px rgba(29, 48, 57, 0.05) !important;
  overflow: hidden !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #settings > .settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #settings > .settings_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #settings > table.settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tickets"] > #settings > table.settings_table th {
  padding-left: 24px;
  padding-right: 24px;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > ul.tabs,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > ul.tabs,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > ul.tabs {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > ul.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > ul.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > ul.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > ul.tabs li.active,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > ul.tabs li.active,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > ul.tabs li.active {
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > ul.tabs li a,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > ul.tabs li a,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > ul.tabs li a {
  min-height: 42px;
  padding: 0 18px;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"],
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"],
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"] > .tab_content,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"] > .tab_content,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] > .tab_content {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"] > .tab_content.hidden,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"] > .tab_content.hidden,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] > .tab_content.hidden {
  display: none;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"] > .tab_content > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"] > .tab_content > .form_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"] > .tab_content > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"] > .tab_content > .form_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] > .tab_content > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] > .tab_content > .form_table {
  width: 100% !important;
  border: 1px solid rgba(19, 38, 47, 0.08) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 34px rgba(29, 48, 57, 0.05) !important;
  overflow: hidden !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"] > .tab_content > .settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"] > .tab_content > .settings_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"] > .tab_content > .form_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=tasks"] > div[id$="-tabs_container"] > .tab_content > .form_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"] > .tab_content > .settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"] > .tab_content > .settings_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"] > .tab_content > .form_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=agents"] > div[id$="-tabs_container"] > .tab_content > .form_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] > .tab_content > .settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] > .tab_content > .settings_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] > .tab_content > .form_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=users"] > div[id$="-tabs_container"] > .tab_content > .form_table th {
  padding-left: 24px;
  padding-right: 24px;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > ul.clean.tabs,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > ul.tabs {
  display: inline-flex !important;
  flex-wrap: wrap;
  align-items: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > ul.clean.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > ul.tabs li,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > ul.clean.tabs li.active,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > ul.tabs li.active {
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > ul.clean.tabs li a,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > ul.tabs li a {
  min-height: 42px;
  padding: 0 18px;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > .tab_content {
  margin: 0 0 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > .tab_content.hidden {
  display: none;
}

/* User detail view */
body.staff-modern:not(.staff-login-modern) #content #user-view-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
  margin: 18px 0 0 !important;
  min-height: 66px;
  height: auto !important;
  padding: 12px 14px !important;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 999px;
  background: rgba(245, 248, 252, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs li,
body.staff-modern:not(.staff-login-modern) #content #user-view-tabs li.active {
  display: flex;
  align-items: center;
  margin: 0 !important;
  min-width: 0;
  height: auto !important;
  line-height: normal !important;
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
  bottom: auto !important;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: #5d7482 !important;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs li a i {
  color: inherit;
  opacity: 0.92;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs li.active a,
body.staff-modern:not(.staff-login-modern) #content #user-view-tabs li a:hover {
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff !important;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.18);
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container {
  margin: 0 0 24px;
  padding: 22px 24px 24px;
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.97), rgba(241, 246, 250, 0.94));
  box-shadow: 0 18px 34px rgba(29, 48, 57, 0.05);
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container > .tab_content {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container > .tab_content.hidden {
  display: none;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 14px;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets > .pull-left {
  flex: 1 1 260px;
  margin-top: 0 !important;
  color: #213844;
  font-weight: 700;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets > div[style*="margin-bottom:10px"] {
  margin: 0 20px 0 auto !important;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets > div[style*="margin-bottom:10px"] .pull-right.flush-right {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets .pull-right.flush-right > a.green.button.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #114542, #0f766e) !important;
  color: #f7fcff !important;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.18);
  text-shadow: none;
  white-space: nowrap;
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets .pull-right.flush-right > a.green.button.action-button:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660) !important;
  color: #f7fcff !important;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets .pull-right.flush-right > a.green.button.action-button i {
  color: inherit;
  opacity: 1;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets > br {
  display: none;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #tickets > div:last-child {
  width: 100%;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #quick-notes,
body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #audits,
body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container .audit-entry-list {
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(29, 48, 57, 0.04);
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #new-note-box {
  margin-top: 16px;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container .quicknote {
  border: 1px solid rgba(19, 38, 47, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(29, 48, 57, 0.04);
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container .quicknote + .quicknote {
  margin-top: 14px;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container .quicknote .header {
  padding: 14px 16px;
  background: rgba(231, 238, 252, 0.9);
  color: #213844;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container .quicknote .body {
  padding: 16px;
  color: #34515d;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #notes-tab p.submit {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0 0;
  padding: 0;
  text-align: center;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #notes-tab p.submit input[type="button"] {
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #114542, #0f766e) !important;
  background-color: #0f766e !important;
  background-image: linear-gradient(135deg, #114542, #0f766e) !important;
  color: #f7fcff !important;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px rgba(17, 69, 66, 0.24);
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #notes-tab p.submit input[type="button"]:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660) !important;
  background-color: #0d6660 !important;
  background-image: linear-gradient(135deg, #0f3d3b, #0d6660) !important;
  color: #f7fcff !important;
  transform: translateY(-1px);
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #new-note-box p.submit input[type="button"] {
  min-width: 120px;
  min-height: 48px;
  padding: 0 28px;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #114542, #0f766e) !important;
  background-color: #0f766e !important;
  background-image: linear-gradient(135deg, #114542, #0f766e) !important;
  color: #f7fcff !important;
  font-family: "Space Grotesk", "Manrope", sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 30px rgba(17, 69, 66, 0.24) !important;
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
  appearance: none;
  -webkit-appearance: none;
}

body.staff-modern:not(.staff-login-modern) #content #user-view-tabs_container #new-note-box p.submit input[type="button"]:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660) !important;
  background-color: #0d6660 !important;
  background-image: linear-gradient(135deg, #0f3d3b, #0d6660) !important;
  color: #f7fcff !important;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > a.action-button,
body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > span.action-button[data-dropdown] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #284450 !important;
  box-shadow: 0 10px 22px rgba(28, 47, 55, 0.08);
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align.has_bottom_border {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align.has_bottom_border > a.action-button,
body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align.has_bottom_border > span.action-button[data-dropdown] {
  float: none !important;
  margin: 0 !important;
  flex: 0 0 auto;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align.has_bottom_border > span.action-button[data-dropdown] .icon-caret-down.pull-right {
  float: none !important;
  margin-left: 6px;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > a.action-button i,
body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > span.action-button[data-dropdown] i,
body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > span.action-button[data-dropdown] > span {
  color: inherit !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) #content .settings_table a.action-button.field-config,
body.staff-modern:not(.staff-login-modern) #content .form_table a.action-button.field-config {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #155f58 0%, #0f766e 100%);
  color: #ffffff !important;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.18);
  text-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) #content .settings_table a.action-button.field-config i,
body.staff-modern:not(.staff-login-modern) #content .form_table a.action-button.field-config i,
body.staff-modern:not(.staff-login-modern) #content .settings_table a.action-button.field-config span,
body.staff-modern:not(.staff-login-modern) #content .form_table a.action-button.field-config span {
  color: inherit !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) #content .settings_table a.action-button.field-config:hover,
body.staff-modern:not(.staff-login-modern) #content .form_table a.action-button.field-config:hover {
  background: linear-gradient(135deg, #0f3d3b 0%, #0d6660 100%);
  color: #ffffff !important;
  text-decoration: none;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > a#user-delete {
  border-color: rgba(185, 28, 28, 0.16);
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  color: #b42318 !important;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > a#user-delete:hover {
  background: linear-gradient(135deg, #b42318, #dc2626);
  color: #fff7f7 !important;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > a#user-manage,
body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > a#user-register,
body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > span.action-button[data-dropdown] {
  background: rgba(255, 255, 255, 0.96);
  color: #2d4a57 !important;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > a#user-manage:hover,
body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > a#user-register:hover,
body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align > span.action-button[data-dropdown]:hover {
  background: linear-gradient(135deg, #114542, #0f766e);
  color: #f7fcff !important;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align #action-dropdown-more.action-dropdown {
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(28, 47, 55, 0.14);
  overflow: hidden;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align #action-dropdown-more.action-dropdown a {
  color: #284450 !important;
}

body.staff-modern:not(.staff-login-modern) #content > table:first-of-type td.right_align #action-dropdown-more.action-dropdown a:hover {
  background: rgba(231, 238, 252, 0.85);
  color: #123641 !important;
}

/* Organizations list actions */
body.staff-modern:not(.staff-login-modern) #content #basic_search + div .sticky.bar .pull-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.staff-modern:not(.staff-login-modern) #content #basic_search + div .sticky.bar .pull-right > a.green.button.action-button.add-org {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #114542, #0f766e) !important;
  color: #f7fcff !important;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.18);
  text-shadow: none;
  white-space: nowrap;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) #content #basic_search + div .sticky.bar .pull-right > a.green.button.action-button.add-org:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660) !important;
  color: #f7fcff !important;
}

body.staff-modern:not(.staff-login-modern) #content #basic_search + div .sticky.bar .pull-right > a.green.button.action-button.add-org i {
  color: inherit;
  opacity: 1;
}

body.staff-modern:not(.staff-login-modern) #content #basic_search + div .sticky.bar .pull-right > span.action-button[data-dropdown] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(25, 53, 66, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #35515d !important;
  box-shadow: 0 10px 22px rgba(28, 47, 55, 0.08);
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) #content #basic_search + div .sticky.bar .pull-right > span.action-button[data-dropdown] > span,
body.staff-modern:not(.staff-login-modern) #content #basic_search + div .sticky.bar .pull-right > span.action-button[data-dropdown] i {
  color: inherit;
  opacity: 1;
}

body.staff-modern:not(.staff-login-modern) form[name="keys"] > .sticky.bar .pull-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.staff-modern:not(.staff-login-modern) form[name="keys"] > .sticky.bar .pull-right > a.green.button.action-button,
body.staff-modern:not(.staff-login-modern) form[name="keys"] > .sticky.bar .pull-right > span.action-button[data-dropdown] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-shadow: none;
  opacity: 1 !important;
  filter: none !important;
  visibility: visible !important;
}

body.staff-modern:not(.staff-login-modern) form[name="keys"] > .sticky.bar .pull-right > a.green.button.action-button {
  border: 0;
  background: linear-gradient(135deg, #114542, #0f766e) !important;
  color: #f7fcff !important;
  box-shadow: 0 14px 28px rgba(17, 69, 66, 0.2);
}

body.staff-modern:not(.staff-login-modern) form[name="keys"] > .sticky.bar .pull-right > a.green.button.action-button:hover {
  background: linear-gradient(135deg, #0f3d3b, #0d6660) !important;
  color: #f7fcff !important;
}

body.staff-modern:not(.staff-login-modern) form[name="keys"] > .sticky.bar .pull-right > span.action-button[data-dropdown] {
  border: 1px solid rgba(25, 53, 66, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: #284450 !important;
  box-shadow: 0 10px 22px rgba(28, 47, 55, 0.08);
}

body.staff-modern:not(.staff-login-modern) form[name="keys"] > .sticky.bar .pull-right > span.action-button[data-dropdown] > span,
body.staff-modern:not(.staff-login-modern) form[name="keys"] > .sticky.bar .pull-right > span.action-button[data-dropdown] i {
  color: inherit !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #basic-information > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #basic-information > .form_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #site-pages > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #site-pages > .form_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #logos > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #logos > .form_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #backdrops > .settings_table,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #backdrops > .form_table {
  width: 100% !important;
  border: 1px solid rgba(19, 38, 47, 0.08) !important;
  border-radius: 30px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 18px 34px rgba(29, 48, 57, 0.05) !important;
  overflow: hidden !important;
}

body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #basic-information > .settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #basic-information > .settings_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #basic-information > .form_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #basic-information > .form_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #site-pages > .settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #site-pages > .settings_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #site-pages > .form_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #site-pages > .form_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #logos > .settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #logos > .settings_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #logos > .form_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #logos > .form_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #backdrops > .settings_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #backdrops > .settings_table th,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #backdrops > .form_table td,
body.staff-modern:not(.staff-login-modern) #content form[action="settings.php?t=pages"] > #backdrops > .form_table th {
  padding-left: 24px;
  padding-right: 24px;
}

body.staff-modern:not(.staff-login-modern) #header,
body.staff-modern:not(.staff-login-modern) #nav,
body.staff-modern:not(.staff-login-modern) #sub_nav {
  position: relative;
}

body.staff-modern:not(.staff-login-modern) #header {
  z-index: 120;
}

body.staff-modern:not(.staff-login-modern) #nav {
  z-index: 220;
  overflow: visible !important;
}

body.staff-modern:not(.staff-login-modern) #sub_nav {
  z-index: 180;
  overflow: visible !important;
}

body.staff-modern:not(.staff-login-modern) #nav > li,
body.staff-modern:not(.staff-login-modern) #sub_nav > li {
  position: relative;
}

body.staff-modern:not(.staff-login-modern) #nav > li:hover,
body.staff-modern:not(.staff-login-modern) #nav > li:focus-within,
body.staff-modern:not(.staff-login-modern) #sub_nav > li:hover,
body.staff-modern:not(.staff-login-modern) #sub_nav > li:focus-within {
  z-index: 160;
}

body.staff-modern:not(.staff-login-modern) #nav > li.inactive > ul,
body.staff-modern:not(.staff-login-modern) #nav > li > ul,
body.staff-modern:not(.staff-login-modern) #sub_nav > li > ul,
body.staff-modern:not(.staff-login-modern) .action-dropdown,
body.staff-modern:not(.staff-login-modern) .noclick-dropdown,
body.staff-modern:not(.staff-login-modern) .tip_box,
body.staff-modern:not(.staff-login-modern) .ui-autocomplete {
  z-index: 9999 !important;
}

body.staff-modern:not(.staff-login-modern) #nav > li:hover,
body.staff-modern:not(.staff-login-modern) #nav > li:focus-within {
  z-index: 260;
}

body.staff-modern:not(.staff-login-modern) #sub_nav > li:hover,
body.staff-modern:not(.staff-login-modern) #sub_nav > li:focus-within {
  z-index: 200;
}

body.staff-modern:not(.staff-login-modern) #sub_nav .open { --nav-icon: url(../images/icons/open.gif); }
body.staff-modern:not(.staff-login-modern) #sub_nav .answered { --nav-icon: url(../images/icons/answered.gif); }
body.staff-modern:not(.staff-login-modern) #sub_nav .mine { --nav-icon: url(../images/icons/mine.gif); }
body.staff-modern:not(.staff-login-modern) #sub_nav .closed { --nav-icon: url(../images/icons/closed.gif); }
body.staff-modern:not(.staff-login-modern) #sub_nav .search { --nav-icon: url(../images/icons/search.gif); }
body.staff-modern:not(.staff-login-modern) #sub_nav .new { --nav-icon: url(../images/icons/new.gif); }
body.staff-modern:not(.staff-login-modern) a.kb { --nav-icon: url(../images/icons/kb.gif); }
body.staff-modern:not(.staff-login-modern) a.canned { --nav-icon: url(../images/icons/canned.gif); }
body.staff-modern:not(.staff-login-modern) a.faq-categories { --nav-icon: url(../images/icons/faq-categories.gif); }
body.staff-modern:not(.staff-login-modern) a.ticket-settings { --nav-icon: url(../images/icons/ticket-settings.gif); }
body.staff-modern:not(.staff-login-modern) a.email-settings { --nav-icon: url(../images/icons/email-settings.gif); }
body.staff-modern:not(.staff-login-modern) a.kb-settings { --nav-icon: url(../images/icons/kb-settings.gif); }
body.staff-modern:not(.staff-login-modern) a.alert-settings { --nav-icon: url(../images/icons/alert-settings.gif); }
body.staff-modern:not(.staff-login-modern) a.email-autoresponders { --nav-icon: url(../images/icons/email-autoresponders.gif); }
body.staff-modern:not(.staff-login-modern) a.users { --nav-icon: url(../images/icons/user.gif); }
body.staff-modern:not(.staff-login-modern) a.user { --nav-icon: url(../images/icons/list_users.gif); }
body.staff-modern:not(.staff-login-modern) a.userPref { --nav-icon: url(../images/icons/user_preferences.gif); }
body.staff-modern:not(.staff-login-modern) a.userPasswd { --nav-icon: url(../images/icons/change_password.gif); }
body.staff-modern:not(.staff-login-modern) a.staff { --nav-icon: url(../images/icons/list_groups.gif); }
body.staff-modern:not(.staff-login-modern) a.groups { --nav-icon: url(../images/icons/list_groups.gif); }
body.staff-modern:not(.staff-login-modern) a.teams { --nav-icon: url(../images/icons/teams.gif); }
body.staff-modern:not(.staff-login-modern) a.helpTopics { --nav-icon: url(../images/icons/help_topics.png); }
body.staff-modern:not(.staff-login-modern) a.departments { --nav-icon: url(../images/icons/list_departments.gif); }
body.staff-modern:not(.staff-login-modern) a.pages { --nav-icon: url(../images/icons/pages.gif); }
body.staff-modern:not(.staff-login-modern) a.forms { --nav-icon: url(../images/icons/icon-form.png); --nav-icon-size: 16px 16px; }
body.staff-modern:not(.staff-login-modern) a.lists { --nav-icon: url(../images/icons/icon-list.png); --nav-icon-size: 16px 16px; }
body.staff-modern:not(.staff-login-modern) a.preferences { --nav-icon: url(../images/icons/settings.gif); }
body.staff-modern:not(.staff-login-modern) a.emails { --nav-icon: url(../images/icons/emails.png); }
body.staff-modern:not(.staff-login-modern) a.emailTemplates { --nav-icon: url(../images/icons/email_templates.png); }
body.staff-modern:not(.staff-login-modern) a.emailFilters { --nav-icon: url(../images/icons/email_filters.png); }
body.staff-modern:not(.staff-login-modern) a.ticketFilters { --nav-icon: url(../images/icons/ticket_filters.png); }
body.staff-modern:not(.staff-login-modern) a.api { --nav-icon: url(../images/icons/api.png); }
body.staff-modern:not(.staff-login-modern) a.logs { --nav-icon: url(../images/icons/logs.gif); }

body.staff-modern:not(.staff-login-modern) #nav li.active > a,
body.staff-modern:not(.staff-login-modern) #nav li > a:hover,
body.staff-modern:not(.staff-login-modern) #sub_nav a.active,
body.staff-modern:not(.staff-login-modern) #sub_nav li.active > a,
body.staff-modern:not(.staff-login-modern) #sub_nav > li > a:hover {
  background-image: var(--nav-icon, none), linear-gradient(135deg, var(--scp-brand-deep), var(--scp-brand));
  background-repeat: no-repeat, no-repeat;
  background-position: var(--nav-icon-position, 14px 50%), 0 0;
  background-size: var(--nav-icon-size, auto), auto;
}

body.staff-modern:not(.staff-login-modern) #basic_search .attached.input,
body.staff-modern:not(.staff-login-modern) .input.attached,
body.staff-modern:not(.staff-login-modern) .input.attached input,
body.staff-modern:not(.staff-login-modern) #basic_search .attached.input input.basic-search,
body.staff-modern:not(.staff-login-modern) #basic_search .attached.input input.basic-search:focus,
body.staff-modern:not(.staff-login-modern) .input.attached input:focus {
  outline: none !important;
  box-shadow: none !important;
}

body.staff-modern:not(.staff-login-modern) .input.attached input,
body.staff-modern:not(.staff-login-modern) #basic_search .attached.input input.basic-search {
  border-color: rgba(19, 38, 47, 0.14) !important;
}

body.staff-login-modern #overlay {
  background: rgba(4, 12, 22, 0.58) !important;
  opacity: 1 !important;
}

body.staff-login-modern #loading.dialog,
body.staff-login-modern #loading {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(420px, calc(100vw - 32px));
  min-height: 140px;
  height: auto;
  padding: 28px 26px 26px 96px;
  box-sizing: border-box;
  border: 1px solid rgba(91, 144, 255, 0.28) !important;
  border-radius: 18px;
  background: #102132 !important;
  color: #f5fbff !important;
  text-align: left;
  box-shadow: 0 18px 36px rgba(8, 20, 34, 0.32);
  z-index: 5001 !important;
}

body.staff-login-modern #loading.dialog::before,
body.staff-login-modern #loading::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 30px;
  width: 36px;
  height: 36px;
  background: url('../../images/FhHRx-Spinner.gif') center center / contain no-repeat;
}

body.staff-login-modern #loading.dialog,
body.staff-login-modern #loading.dialog p,
body.staff-login-modern #loading.dialog div,
body.staff-login-modern #loading.dialog span,
body.staff-login-modern #loading.dialog small,
body.staff-login-modern #loading.dialog strong,
body.staff-login-modern #loading,
body.staff-login-modern #loading p,
body.staff-login-modern #loading div,
body.staff-login-modern #loading span,
body.staff-login-modern #loading small,
body.staff-login-modern #loading strong {
  color: #f5fbff !important;
}

body.staff-login-modern #loading.dialog h1,
body.staff-login-modern #loading.dialog h4,
body.staff-login-modern #loading h1,
body.staff-login-modern #loading h4 {
  margin: 0 0 12px !important;
  color: #ff970f !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

body.staff-login-modern #loading.dialog h1 i,
body.staff-login-modern #loading h1 i {
  display: none !important;
}

body.staff-login-modern #loading.dialog p,
body.staff-login-modern #loading.dialog .subtext,
body.staff-login-modern #loading p {
  margin: 0 !important;
  color: #f5fbff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

/* Keep hover states readable across staff UI */
body.staff-modern:not(.staff-login-modern) .button.green,
body.staff-modern:not(.staff-login-modern) .button.green:hover,
body.staff-modern:not(.staff-login-modern) .button.green:focus,
body.staff-modern:not(.staff-login-modern) .action-button.green,
body.staff-modern:not(.staff-login-modern) .action-button.green:hover,
body.staff-modern:not(.staff-login-modern) .action-button.green:focus,
body.staff-modern:not(.staff-login-modern) .button.primary,
body.staff-modern:not(.staff-login-modern) .button.primary:hover,
body.staff-modern:not(.staff-login-modern) .button.primary:focus,
body.staff-modern:not(.staff-login-modern) .action-button.primary,
body.staff-modern:not(.staff-login-modern) .action-button.primary:hover,
body.staff-modern:not(.staff-login-modern) .action-button.primary:focus,
body.staff-modern:not(.staff-login-modern) ul.tabs li.active a,
body.staff-modern:not(.staff-login-modern) ul.tabs li.active a:hover,
body.staff-modern:not(.staff-login-modern) ul.tabs li.active a:focus,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a:hover,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a:focus {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) ul.tabs li.active a i,
body.staff-modern:not(.staff-login-modern) ul.tabs li.active a .icon,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a i,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li.active a .icon {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .button:not(.green):not(.primary),
body.staff-modern:not(.staff-login-modern) .button:not(.green):not(.primary):hover,
body.staff-modern:not(.staff-login-modern) .button:not(.green):not(.primary):focus,
body.staff-modern:not(.staff-login-modern) .action-button:not(.green):not(.primary),
body.staff-modern:not(.staff-login-modern) .action-button:not(.green):not(.primary):hover,
body.staff-modern:not(.staff-login-modern) .action-button:not(.green):not(.primary):focus,
body.staff-modern:not(.staff-login-modern) ul.tabs li:not(.active) a,
body.staff-modern:not(.staff-login-modern) ul.tabs li:not(.active) a:hover,
body.staff-modern:not(.staff-login-modern) ul.tabs li:not(.active) a:focus,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li:not(.active) a,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li:not(.active) a:hover,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li:not(.active) a:focus {
  color: #111111 !important;
}

body.staff-modern:not(.staff-login-modern) ul.tabs li:not(.active) a i,
body.staff-modern:not(.staff-login-modern) ul.tabs li:not(.active) a .icon,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li:not(.active) a i,
body.staff-modern:not(.staff-login-modern) .dialog ul.tabs li:not(.active) a .icon {
  color: #111111 !important;
}

/* Ticket queue dropdowns: keep text readable on hover */
body.staff-modern:not(.staff-login-modern) #sub_nav > li > ul,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown {
  border: 1px solid rgba(126, 168, 201, 0.18) !important;
  border-radius: 14px !important;
  background: rgba(17, 31, 46, 0.98) !important;
  box-shadow: 0 20px 40px rgba(4, 11, 18, 0.34) !important;
}

body.staff-modern:not(.staff-login-modern) #sub_nav > li > ul li,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary li.item {
  background: transparent !important;
  border-color: rgba(17, 52, 65, 0.08) !important;
}

body.staff-modern:not(.staff-login-modern) #sub_nav > li > ul li > a,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary li.item > a,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li > span,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li > a {
  color: #edf5fb !important;
}

body.staff-modern:not(.staff-login-modern) #sub_nav > li > ul li:hover,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary li.item:hover,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li:hover {
  background: rgba(15, 118, 110, 0.22) !important;
}

body.staff-modern:not(.staff-login-modern) #sub_nav > li > ul li:hover > a,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary li.item:hover > a,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li:hover > span,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li:hover > a {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) #sub_nav > li > ul li > a .count,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary li.item > a .count,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li .count {
  color: #df5b23 !important;
}

body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li > span.disabled,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li > a.disabled,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li.disabled > a,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li.disabled > span,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li.top-level,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown li h4 {
  color: rgba(231, 241, 248, 0.84) !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown .add-queue a,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown .add-queue a span {
  color: rgba(231, 241, 248, 0.88) !important;
  background: transparent !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown .add-queue a:hover {
  background: rgba(15, 118, 110, 0.18) !important;
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-secondary div.customQ-dropdown .add-queue a:hover span {
  color: #ffffff !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-primary div.customQ-dropdown,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown {
  border: 1px solid rgba(126, 168, 201, 0.18) !important;
  border-radius: 14px !important;
  background: rgba(17, 31, 46, 0.98) !important;
  box-shadow: 0 20px 40px rgba(4, 11, 18, 0.34) !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-primary .customQ-dropdown ul li {
  background: transparent !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown li.top-level,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown li h4 {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(231, 241, 248, 0.84) !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li > a,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li > span,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-primary .customQ-dropdown ul li > a,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-primary .customQ-dropdown ul li > span {
  color: #edf5fb !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li > span.disabled,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li > a.disabled,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li.disabled > a,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li.disabled > span {
  color: rgba(231, 241, 248, 0.82) !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li:not(.personalQ):hover,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-primary .customQ-dropdown ul li:hover {
  background: rgba(15, 118, 110, 0.22) !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li:hover > a,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown ul li:hover > span,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-primary .customQ-dropdown ul li:hover > a,
body.staff-modern:not(.staff-login-modern) .jb-overflowmenu-menu-primary .customQ-dropdown ul li:hover > span {
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown .add-queue a,
body.staff-modern:not(.staff-login-modern) .customQ-dropdown .add-queue a span {
  color: rgba(231, 241, 248, 0.88) !important;
  background: transparent !important;
  opacity: 1 !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown .add-queue a:hover {
  background: rgba(15, 118, 110, 0.18) !important;
  color: #ffffff !important;
}

body.staff-modern:not(.staff-login-modern) .customQ-dropdown .add-queue a:hover span {
  color: #ffffff !important;
  opacity: 1 !important;
}

@media (max-width: 1280px) {
  body.staff-modern:not(.staff-login-modern) #header,
  body.staff-modern:not(.staff-login-modern) #nav,
  body.staff-modern:not(.staff-login-modern) #sub_nav,
  body.staff-modern:not(.staff-login-modern) #content,
  body.staff-modern:not(.staff-login-modern) #footer {
    width: calc(100% - 24px);
  }

  body.staff-modern:not(.staff-login-modern) #header {
    gap: 18px;
    flex-wrap: wrap;
  }

  body.staff-modern:not(.staff-login-modern) #nav,
  body.staff-modern:not(.staff-login-modern) #sub_nav {
    flex-wrap: wrap;
  }

  body.staff-modern:not(.staff-login-modern) #nav li,
  body.staff-modern:not(.staff-login-modern) #sub_nav > li {
    flex: 1 1 auto;
  }

  body.staff-modern:not(.staff-login-modern) .sticky.bar .content {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 980px) {
  body.staff-modern:not(.staff-login-modern) #header {
    align-items: flex-start;
    padding: 22px 20px;
  }

  body.staff-modern:not(.staff-login-modern) #logo,
  body.staff-modern:not(.staff-login-modern) #info {
    width: 100%;
  }

  body.staff-modern:not(.staff-login-modern) #nav,
  body.staff-modern:not(.staff-login-modern) #sub_nav {
    gap: 10px;
    padding: 14px;
  }

  body.staff-modern:not(.staff-login-modern) #nav li,
  body.staff-modern:not(.staff-login-modern) #sub_nav > li {
    flex: 1 1 calc(50% - 10px);
    min-width: 220px;
  }

  body.staff-modern:not(.staff-login-modern) #nav li a,
  body.staff-modern:not(.staff-login-modern) #sub_nav > li > a {
    width: 100%;
    justify-content: center;
  }

  body.staff-modern:not(.staff-login-modern) #content {
    padding: 22px 18px;
    border-radius: 28px;
  }

  body.staff-modern:not(.staff-login-modern) .sticky.bar .content .pull-left,
  body.staff-modern:not(.staff-login-modern) .sticky.bar .content .pull-right,
  body.staff-modern:not(.staff-login-modern) .sticky.bar .content .flush-left,
  body.staff-modern:not(.staff-login-modern) .sticky.bar .content .flush-right {
    float: none !important;
    width: 100%;
  }

  body.staff-modern:not(.staff-login-modern) .sticky.bar .content .pull-right,
  body.staff-modern:not(.staff-login-modern) .sticky.bar .content .flush-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  body.staff-modern:not(.staff-login-modern) table.list,
  body.staff-modern:not(.staff-login-modern) .table,
  body.staff-modern:not(.staff-login-modern) .form_table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  body.staff-modern:not(.staff-login-modern) #header,
  body.staff-modern:not(.staff-login-modern) #nav,
  body.staff-modern:not(.staff-login-modern) #sub_nav,
  body.staff-modern:not(.staff-login-modern) #content,
  body.staff-modern:not(.staff-login-modern) #footer {
    width: calc(100% - 16px);
  }

  body.staff-modern:not(.staff-login-modern) #header,
  body.staff-modern:not(.staff-login-modern) #content,
  body.staff-modern:not(.staff-login-modern) #footer {
    border-radius: 24px;
  }

  body.staff-modern:not(.staff-login-modern) #nav li,
  body.staff-modern:not(.staff-login-modern) #sub_nav > li {
    flex: 1 1 100%;
    min-width: 0;
  }

  body.staff-modern:not(.staff-login-modern) #content {
    padding: 18px 14px;
  }

  body.staff-modern:not(.staff-login-modern) ul.tabs {
    gap: 8px;
  }

  body.staff-modern:not(.staff-login-modern) ul.tabs li,
  body.staff-modern:not(.staff-login-modern) ul.tabs li.active,
  body.staff-modern:not(.staff-login-modern) ul.tabs li:not(.active) {
    flex: 1 1 100%;
  }

  body.staff-modern:not(.staff-login-modern) ul.tabs li a {
    width: 100%;
    justify-content: center;
  }
}
