:root {
  --primary: #009ef7;
  --secondary: #f5f8fa;
  --accent: #50cd89;
  --body-bg: #f5f8fa;
  --body-fg: #181c32;
  --body-quiet-color: #7e8299;
  --body-loud-color: #181c32;
  --header-bg: #1e1e2d;
  --header-color: #ffffff;
  --breadcrumbs-bg: #ffffff;
  --breadcrumbs-fg: #7e8299;
  --link-fg: #009ef7;
  --link-hover-color: #0078bd;
  --hairline-color: #eff2f5;
  --border-color: #eff2f5;
  --darkened-bg: #eff2f5;
  --selected-bg: #eef6ff;
  --selected-row: #f1faff;
  --button-bg: #009ef7;
  --button-hover-bg: #0078bd;
  --default-button-bg: #009ef7;
  --default-button-hover-bg: #0078bd;
}

html,
body {
  background: #f5f8fa;
  color: #181c32;
  font-family: Poppins, Helvetica, sans-serif;
}

#container {
  background: #f5f8fa;
}

#header {
  min-height: 74px;
  padding: 0 30px;
  background: #1e1e2d;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(30, 30, 45, .12);
}

#branding {
  display: flex;
  align-items: center;
}

.ta-admin-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ta-admin-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #009ef7;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: .4px;
}

#branding h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

#branding h1 a:link,
#branding h1 a:visited {
  color: #ffffff;
}

.ta-admin-subtitle {
  display: block;
  margin-top: 2px;
  color: #a1a5b7;
  font-size: 12px;
  font-weight: 600;
}

#user-tools {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

#user-tools a {
  border: 0;
  color: #ffffff;
}

.ta-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
}

.ta-admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
}

.ta-admin-link:hover {
  background: #009ef7;
}

div.breadcrumbs {
  padding: 16px 30px;
  background: #ffffff;
  color: #a1a5b7;
  border-bottom: 1px solid #eff2f5;
  box-shadow: 0 2px 16px rgba(82, 63, 105, .04);
}

div.breadcrumbs a {
  color: #009ef7;
  font-weight: 700;
}

#content {
  padding: 30px;
  max-width: 1280px;
}

#content h1 {
  margin: 0 0 24px;
  color: #181c32;
  font-size: 24px;
  font-weight: 800;
}

.module,
.inline-group,
.submit-row,
#changelist,
.paginator,
.messagelist li {
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(82, 63, 105, .07);
}

.module {
  overflow: hidden;
}

.module h2,
.module caption,
.inline-group h2 {
  padding: 16px 20px;
  background: #ffffff;
  color: #181c32;
  border-bottom: 1px solid #eff2f5;
  font-size: 15px;
  font-weight: 800;
  caption-side: top;
  text-align: left;
}

.dashboard #content {
  width: auto;
}

.dashboard #content-main {
  width: min(760px, calc(100vw - 420px));
}

.dashboard #content-related {
  width: 320px;
  margin-right: 0;
}

.dashboard .module {
  margin-bottom: 24px;
}

.dashboard .module table {
  width: 100%;
}

.dashboard .module caption {
  padding: 0;
  background: #1e1e2d;
  border-bottom: 0;
}

.dashboard .module caption a.section {
  display: block;
  padding: 16px 20px;
  background: transparent;
  color: #ffffff;
  text-transform: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.dashboard .module caption a.section:hover {
  background: #2a2a3c;
  color: #ffffff;
}

.dashboard .app-trader caption {
  background: #009ef7;
}

.dashboard .app-auth caption {
  background: #1e1e2d;
}

.dashboard tr {
  background: #ffffff;
}

.dashboard tr:nth-child(even) {
  background: #f9fafb;
}

.dashboard th[scope="row"] a {
  color: #181c32;
  font-weight: 700;
  text-decoration: none;
}

.dashboard th[scope="row"] a:hover {
  color: #009ef7;
}

.dashboard td a.addlink,
.dashboard td a.changelink {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #f1faff;
  color: #009ef7;
  font-weight: 700;
  text-decoration: none;
}

.dashboard td a.addlink:hover,
.dashboard td a.changelink:hover {
  background: #009ef7;
  color: #ffffff;
}

.dashboard td a.addlink::before,
.dashboard td a.changelink::before {
  margin-right: 4px;
}

#recent-actions-module {
  padding-bottom: 10px;
}

#recent-actions-module h2 {
  margin: 0;
  background: #ffffff;
  color: #181c32;
  border-bottom: 1px solid #eff2f5;
}

#recent-actions-module h3 {
  padding: 18px 20px 4px;
  color: #7e8299;
  font-size: 13px;
  font-weight: 800;
}

#recent-actions-module p,
#recent-actions-module ul {
  padding: 0 20px 18px;
}

#recent-actions-module .actionlist {
  margin: 0;
}

#recent-actions-module .actionlist li {
  border-bottom: 1px solid #eff2f5;
  padding: 12px 0;
}

table {
  border-collapse: collapse;
}

td,
th {
  padding: 14px 16px;
  border-bottom: 1px solid #eff2f5;
  font-size: 13px;
}

thead th {
  background: #f9fafb;
  color: #7e8299;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .04em;
}

th a:link,
th a:visited {
  color: #7e8299;
}

tbody tr:hover {
  background: #f8fbff;
}

a:link,
a:visited {
  color: #009ef7;
}

.object-tools a:link,
.object-tools a:visited,
.button,
input[type=submit],
input[type=button],
.submit-row input,
a.button {
  border: 0;
  border-radius: 8px;
  background: #009ef7;
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
}

.object-tools a:hover,
.button:hover,
input[type=submit]:hover,
input[type=button]:hover,
.submit-row input:hover,
a.button:hover {
  background: #0078bd;
}

.button.default,
input[type=submit].default,
.submit-row input.default {
  background: #009ef7;
}

.deletelink,
.submit-row a.deletelink {
  border-radius: 8px;
  background: #f1416c;
  color: #ffffff !important;
}

input[type=text],
input[type=password],
input[type=email],
input[type=url],
input[type=number],
textarea,
select,
.vTextField {
  border: 1px solid #eff2f5;
  border-radius: 8px;
  background: #f5f8fa;
  color: #181c32;
  padding: 10px 12px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #009ef7;
  box-shadow: 0 0 0 3px rgba(0, 158, 247, .12);
}

.form-row {
  padding: 16px 20px;
  border-bottom: 1px solid #eff2f5;
}

.aligned label {
  color: #7e8299;
  font-weight: 700;
}

#changelist-filter {
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(82, 63, 105, .07);
}

#changelist-filter h2 {
  background: #1e1e2d;
  color: #ffffff;
  border-radius: 8px 8px 0 0;
}

#toolbar {
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(82, 63, 105, .07);
}

#nav-sidebar {
  border-right: 1px solid #eff2f5;
  background: #ffffff;
}

#nav-sidebar .current-model {
  background: #f1faff;
}

.theme-toggle {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .12);
}

.theme-toggle svg {
  color: #ffffff;
}

.login #container {
  width: 460px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 45px rgba(82, 63, 105, .14);
}

.login #header {
  border-radius: 12px 12px 0 0;
}

.login #content {
  padding: 28px;
}

@media (max-width: 767px) {
  #header {
    padding: 16px;
    min-height: auto;
    align-items: flex-start;
  }

  .ta-admin-actions {
    margin-left: 0;
    margin-top: 12px;
  }

  #content {
    padding: 18px;
  }

  .dashboard #content-main,
  .dashboard #content-related {
    width: 100%;
    margin: 0;
  }
}

.ta-page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
}

.ta-page-title strong {
  color: #181c32;
  font-size: 18px;
  font-weight: 800;
}

.ta-page-title span {
  color: #a1a5b7;
  font-weight: 700;
}

.ta-users-card {
  max-width: 1260px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(82, 63, 105, .07);
  padding: 30px;
}

.ta-users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.ta-search-form {
  width: 250px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f5f8fa;
  border-radius: 8px;
  padding: 0 16px;
}

.ta-search-icon {
  color: #a1a5b7;
  font-size: 22px;
  line-height: 1;
}

.ta-search-form input {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #5e6278;
  font-weight: 600;
}

.ta-search-form input:focus {
  box-shadow: none;
}

.ta-users-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ta-soft-btn,
.ta-primary-btn,
.ta-discard-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none !important;
}

.ta-soft-btn,
.ta-discard-btn {
  background: #f5f8fa;
  color: #7e8299 !important;
}

.ta-soft-btn:hover,
.ta-discard-btn:hover {
  background: #eef6ff;
  color: #009ef7 !important;
}

.ta-primary-btn {
  background: #009ef7 !important;
  color: #ffffff !important;
}

.ta-primary-btn:hover {
  background: #0078bd !important;
}

.ta-users-table-wrap {
  overflow-x: auto;
}

.ta-users-table {
  width: 100%;
  border-collapse: collapse;
}

.ta-users-table th {
  padding: 14px 0;
  color: #a1a5b7;
  background: #ffffff;
  border-bottom: 1px dashed #eff2f5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ta-users-table td {
  padding: 18px 0;
  color: #5e6278;
  border-bottom: 1px dashed #eff2f5;
  font-size: 14px;
  font-weight: 600;
}

.ta-check-col {
  width: 46px;
}

.ta-check-box {
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 6px;
  background: #eff2f5;
}

.ta-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ta-user-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.ta-user-name {
  color: #3f4254 !important;
  font-weight: 800;
  text-decoration: none;
}

.ta-user-name:hover {
  color: #009ef7 !important;
}

.ta-user-email {
  color: #7e8299;
  margin-top: 2px;
}

.ta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: #f5f8fa;
  color: #7e8299;
  font-size: 12px;
  font-weight: 800;
}

.ta-badge-success {
  background: #e8fff3;
  color: #50cd89;
}

.ta-action-menu {
  display: inline-flex;
  gap: 6px;
}

.ta-action-menu a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: #f5f8fa;
  color: #7e8299 !important;
  font-weight: 800;
  text-decoration: none;
}

.ta-action-menu a:hover {
  background: #eef6ff;
  color: #009ef7 !important;
}

.ta-text-end {
  text-align: right;
}

.ta-empty {
  padding: 28px !important;
  text-align: center;
  color: #a1a5b7 !important;
}

.ta-users-footer {
  padding-top: 20px;
  color: #a1a5b7;
  font-weight: 700;
}

.ta-add-user-card {
  max-width: 650px;
  margin: 30px auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eff2f5;
  box-shadow: 0 10px 35px rgba(82, 63, 105, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ta-add-user-head {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid #eff2f5;
  background: #ffffff;
}

.ta-add-user-head h1 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #181c32;
}

.ta-close-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f8fa;
  color: #a1a5b7 !important;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ta-close-link:hover {
  background: #eef6ff;
  color: #009ef7 !important;
  transform: rotate(90deg);
}

.ta-add-user-body {
  padding: 30px 40px;
}

.ta-form-row {
  margin-bottom: 24px;
}

.ta-form-row > label {
  display: block;
  margin-bottom: 8px;
  color: #181c32;
  font-size: 0.95rem;
  font-weight: 600;
}

.ta-form-row label span {
  color: #f1416c;
  margin-left: 2px;
}

.ta-form-row input[type=text],
.ta-form-row input[type=password],
.ta-form-row input[type=email] {
  width: 100%;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f5f8fa;
  padding: 0 16px;
  color: #3f4254;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.ta-form-row input[type=text]:focus,
.ta-form-row input[type=password]:focus,
.ta-form-row input[type=email]:focus {
  background: #ffffff;
  border-color: #009ef7;
  box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
  outline: none;
}

.ta-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ta-help {
  margin-top: 8px;
  color: #a1a5b7;
  font-size: 0.85rem;
  font-weight: 500;
}

.ta-avatar-edit {
  width: 100px;
  height: 100px;
  position: relative;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(82, 63, 105, 0.08);
  background: #f5f8fa;
}

.ta-avatar-edit img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ta-avatar-edit-btn,
.ta-avatar-remove-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #7e8299;
  border: 1px solid #eff2f5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  position: absolute;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.ta-avatar-edit-btn {
  top: -4px;
  right: -4px;
}

.ta-avatar-edit-btn:hover {
  color: #009ef7;
  border-color: #009ef7;
  background: #ffffff;
}

.ta-avatar-remove-btn {
  bottom: -4px;
  right: -4px;
}

.ta-avatar-remove-btn:hover {
  color: #f1416c;
  border-color: #f1416c;
  background: #ffffff;
}

.ta-role-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ta-role-item {
  display: flex !important;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #eff2f5;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ta-role-item:hover {
  background: #f9fbfd;
  border-color: #009ef7;
}

.ta-role-item:has(input:checked) {
  background: #f1f9ff;
  border-color: #009ef7;
  box-shadow: 0 0 0 1px #009ef7;
}

.ta-role-item input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #009ef7;
  flex-shrink: 0;
}

.ta-role-item strong {
  display: block;
  color: #181c32;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.ta-role-item small {
  display: block;
  color: #7e8299;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
}

.ta-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  color: #3f4254 !important;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.ta-inline-check:hover {
  background: #f5f8fa;
}

.ta-inline-check input {
  width: 18px;
  height: 18px;
  accent-color: #009ef7;
  cursor: pointer;
}

.ta-add-user-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 20px 30px;
  border-top: 1px solid #eff2f5;
  background: #f9fafb;
}

.errorlist {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: #f1416c;
  font-weight: 700;
}

@media (max-width: 767px) {
  .ta-users-card,
  .ta-add-user-card {
    max-width: none;
  }

  .ta-users-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ta-search-form {
    width: 100%;
  }

  .ta-add-user-body {
    padding: 24px;
  }

  .ta-two-cols {
    grid-template-columns: 1fr;
  }
}

/* Custom Django Admin Change Form Enhancements (Metronic style) */
form[id$="_form"] {
  max-width: 900px;
  margin: 0 auto;
}

form[id$="_form"] fieldset.module {
  background: #ffffff;
  border: 1px solid #eff2f5;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(82, 63, 105, 0.03);
  padding: 24px 30px;
  margin-bottom: 30px;
  overflow: hidden;
}

form[id$="_form"] fieldset.module h2 {
  background: #ffffff;
  color: #181c32;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0 0 16px 0;
  border-bottom: 1px solid #eff2f5;
  margin-bottom: 20px;
}

form[id$="_form"] .form-row {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  border-bottom: 1px dashed #eff2f5;
  gap: 8px;
}

@media (min-width: 768px) {
  form[id$="_form"] .form-row {
    flex-direction: row;
    align-items: flex-start;
  }
  
  form[id$="_form"] .form-row > label,
  form[id$="_form"] .form-row > .field-box > label {
    width: 200px;
    flex-shrink: 0;
    margin-top: 10px;
  }
  
  form[id$="_form"] .form-row > div:not(.field-box),
  form[id$="_form"] .form-row > input,
  form[id$="_form"] .form-row > select,
  form[id$="_form"] .form-row > textarea {
    flex-grow: 1;
  }
}

form[id$="_form"] .form-row:last-child {
  border-bottom: 0;
}

form[id$="_form"] label {
  color: #181c32 !important;
  font-weight: 600 !important;
  font-size: 0.95rem;
}

form[id$="_form"] input[type=text],
form[id$="_form"] input[type=password],
form[id$="_form"] input[type=email],
form[id$="_form"] select,
form[id$="_form"] textarea {
  width: 100%;
  max-width: 450px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f5f8fa;
  padding: 0 14px;
  color: #3f4254;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

form[id$="_form"] input[type=text]:focus,
form[id$="_form"] input[type=password]:focus,
form[id$="_form"] input[type=email]:focus,
form[id$="_form"] select:focus,
form[id$="_form"] textarea:focus {
  background: #ffffff;
  border-color: #009ef7;
  box-shadow: 0 0 0 3px rgba(0, 158, 247, 0.1);
  outline: none;
}

form[id$="_form"] input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: #009ef7;
  cursor: pointer;
}

/* Dual Select Selector Widgets (Metronic styling) */
.selector {
  display: flex !important;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.selector-available,
.selector-chosen {
  width: 280px !important;
  border: 1px solid #eff2f5 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(82, 63, 105, 0.02) !important;
}

.selector h2 {
  background: #f5f8fa !important;
  color: #5e6278 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #eff2f5 !important;
  margin: 0 !important;
}

.selector-filter {
  padding: 8px 12px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eff2f5 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selector-filter img {
  display: none !important; /* Hide default old search icon */
}

.selector-filter input {
  height: 32px !important;
  border-radius: 6px !important;
  background: #f5f8fa !important;
  border: 1px solid transparent !important;
  padding: 0 10px !important;
  width: 100% !important;
  font-size: 0.85rem !important;
}

.selector select {
  border: 0 !important;
  height: 180px !important;
  padding: 6px !important;
  outline: none !important;
  background: #ffffff !important;
}

.selector select option {
  padding: 6px 12px !important;
  border-radius: 4px !important;
  margin-bottom: 2px !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
}

.selector select option:hover {
  background: #f5f8fa !important;
  color: #009ef7 !important;
}

.selector-chooser {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.selector-chooser a {
  background: #f5f8fa !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  border: 1px solid #eff2f5 !important;
  text-indent: 0 !important;
  font-size: 0 !important;
  transition: all 0.2s ease !important;
}

.selector-add {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23009ef7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.selector-remove {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237e8299' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.selector-add:hover {
  background-color: #009ef7 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.selector-remove:hover {
  background-color: #7e8299 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* Password Alert / Help Row */
form[id$="_form"] .form-row .password {
  background: #f1f9ff !important;
  border: 1px solid #d0ebff !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  color: #1971c2 !important;
  font-size: 0.9rem !important;
  max-width: 650px !important;
  line-height: 1.5 !important;
}

form[id$="_form"] .form-row .password a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #009ef7 !important;
  color: #ffffff !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin-top: 10px !important;
  font-size: 0.85rem !important;
  transition: all 0.2s ease !important;
}

form[id$="_form"] .form-row .password a:hover {
  background: #0078bd !important;
  box-shadow: 0 4px 10px rgba(0, 158, 247, 0.2) !important;
}

/* Submit row button footer */
form[id$="_form"] .submit-row {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 20px 30px !important;
  background: #f9fafb !important;
  border-top: 1px solid #eff2f5 !important;
  border-radius: 0 0 12px 12px !important;
  margin-top: 30px !important;
}

form[id$="_form"] .submit-row a.deletelink {
  margin-right: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  border-radius: 8px !important;
  background: #f1416c !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 0 20px !important;
  transition: all 0.2s ease !important;
}

form[id$="_form"] .submit-row a.deletelink:hover {
  background: #d9214e !important;
  box-shadow: 0 4px 10px rgba(241, 65, 108, 0.2) !important;
}

form[id$="_form"] .submit-row input[type=submit] {
  height: 40px !important;
  padding: 0 20px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: all 0.2s ease !important;
  border: 0 !important;
}

form[id$="_form"] .submit-row input[name="_save"] {
  background: #009ef7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 158, 247, 0.2) !important;
}

form[id$="_form"] .submit-row input[name="_save"]:hover {
  background: #0078bd !important;
  box-shadow: 0 4px 18px rgba(0, 158, 247, 0.35) !important;
}

form[id$="_form"] .submit-row input[name="_continue"] {
  background: #f5f8fa !important;
  color: #009ef7 !important;
  border: 1px solid #eef3f7 !important;
}

form[id$="_form"] .submit-row input[name="_continue"]:hover {
  background: #eef6ff !important;
}

form[id$="_form"] .submit-row input[name="_addanother"] {
  background: #f5f8fa !important;
  color: #7e8299 !important;
  border: 1px solid #eff2f5 !important;
}

form[id$="_form"] .submit-row input[name="_addanother"]:hover {
  background: #e9edf3 !important;
  color: #3f4254 !important;
}

/* Object Tools on Top of Page (e.g. History button) */
.object-tools {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 20px 0 !important;
}

.object-tools li {
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.object-tools a {
  display: inline-flex !important;
  align-items: center !important;
  height: 38px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  color: #7e8299 !important;
  border: 1px solid #eff2f5 !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.object-tools a:hover {
  background: #f5f8fa !important;
  color: #009ef7 !important;
  border-color: #009ef7 !important;
}
