/**
 * XOMOL core admin — unified styles (v1)
 * Admin-only. No legacy textTitle/textData/AdminForm* families.
 * Shell layout (#wrapper, #sidebar) lives in admin_shell.css.
 */

:root {
  --fx-admin-accent: #1a5fb4;
  --fx-admin-accent-dark: #032644;
  --fx-admin-nav-bg: #797979;
  --fx-admin-text: #212529;
  --fx-admin-muted: #6c757d;
  --fx-admin-border: #dee2e6;
  --fx-admin-card-bg: #ffffff;
  --fx-admin-section-gap: 1.25rem;
  --fx-admin-link-hover: #0d47a1;
}

body.fx-admin {
  color: var(--fx-admin-text);
  font-family: "Open Sans", sans-serif;
  --fx-admin-form-actions-height: 3.75rem;
}

body.fx-admin #sidebar,
body.fx-admin #main,
body.fx-admin #wrapper,
body.fx-admin button,
body.fx-admin input,
body.fx-admin select,
body.fx-admin textarea {
  font-family: "Open Sans", sans-serif;
}

body.fx-admin #sidebar h2,
body.fx-admin #sidebar h3,
body.fx-admin #sidebar h4,
body.fx-admin #sidebar h5,
body.fx-admin #sidebar h6,
body.fx-admin #sidebar .h5,
body.fx-admin #sidebar .h6 {
  font-family: inherit;
}

/* Phase C: legacy typography reset — Open Sans everywhere in admin */
body.fx-admin h1,
body.fx-admin h2,
body.fx-admin h3,
body.fx-admin h4,
body.fx-admin h5,
body.fx-admin h6,
body.fx-admin .h1,
body.fx-admin .h2,
body.fx-admin .h3,
body.fx-admin .h4,
body.fx-admin .h5,
body.fx-admin .h6,
body.fx-admin label,
body.fx-admin legend,
body.fx-admin header p,
body.fx-admin .major h2,
body.fx-admin .major h3,
body.fx-admin .major h4 {
  font-family: "Open Sans", sans-serif;
  letter-spacing: normal;
  text-transform: none;
}

body.fx-admin a {
  border-bottom: none;
}

body.fx-admin a:hover,
body.fx-admin a:focus {
  border-bottom: none;
}

#wrapper.fx-admin-context #main .inner,
body.fx-admin #main .inner {
  padding-top: 0.5rem;
  padding-bottom: calc(var(--fx-admin-form-actions-height) + 1.25rem);
}

/* ---------------------------------------------------------------- admin topbar */
body.fx-admin .fx-admin-topbar {
  position: relative;
  z-index: 1030;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  padding: 0.5rem 0 0.65rem;
  border-bottom: 1px solid var(--fx-admin-border, #dee2e6);
  background: var(--fx-admin-card-bg, #fff);
}

body.fx-admin .fx-admin-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

body.fx-admin .fx-admin-topbar__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-bottom: 0;
}

body.fx-admin .fx-admin-topbar__logo img {
  display: block;
  max-height: 2.25rem;
  width: auto;
  max-width: min(220px, 42vw);
}

body.fx-admin .fx-admin-topbar__site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.2rem;
  color: var(--fx-admin-muted, #6c757d);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

body.fx-admin .fx-admin-topbar__site-link:hover,
body.fx-admin .fx-admin-topbar__site-link:focus {
  color: var(--fx-admin-accent, #1a5fb4);
  border-color: var(--fx-admin-accent, #1a5fb4);
  background-color: rgba(26, 95, 180, 0.06);
  text-decoration: none;
}

body.fx-admin .fx-admin-topbar__site-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fx-admin-text, #212529);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(420px, 55vw);
}

body.fx-admin .fx-admin-topbar__site-name:hover,
body.fx-admin .fx-admin-topbar__site-name:focus {
  color: var(--fx-admin-accent, #1a5fb4);
  text-decoration: none;
}

body.fx-admin .fx-admin-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.5rem;
  margin-left: auto;
}

body.fx-admin .fx-admin-topbar__modules-wrap {
  display: inline-flex;
  align-items: center;
}

body.fx-admin .fx-admin-topbar__modules-wrap .fx-admin-nav__panel-switcher-label {
  display: inline-flex;
  width: auto;
}

body.fx-admin .fx-admin-topbar__modules.custom-select {
  width: auto;
  min-width: 9rem;
  max-width: 14rem;
  height: calc(1.5em + 0.5rem + 2px);
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  box-shadow: none;
}

body.fx-admin .fx-admin-topbar__lang .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 2.5rem;
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.2rem 0.55rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  box-shadow: none;
  border-color: var(--fx-admin-border, #dee2e6);
  color: var(--fx-admin-text, #212529);
  background-color: #f8f9fa;
}

body.fx-admin .fx-admin-topbar__lang .dropdown-toggle:hover,
body.fx-admin .fx-admin-topbar__lang .dropdown-toggle:focus {
  border-color: #ced4da;
  background-color: #e9ecef;
  color: var(--fx-admin-text, #212529);
  box-shadow: none;
}

body.fx-admin .fx-admin-topbar__lang-flag {
  display: block;
}

body.fx-admin .fx-admin-topbar__lang-menu {
  min-width: 10rem;
  max-height: 16rem;
  overflow-y: auto;
  z-index: 1035;
}

body.fx-admin .fx-admin-topbar__lang-menu .dropdown-item {
  font-family: "Open Sans", sans-serif;
  font-size: 0.8125rem;
}

body.fx-admin .fx-admin-topbar__lang-menu .dropdown-item.active,
body.fx-admin .fx-admin-topbar__lang-menu .dropdown-item:active {
  color: #fff;
  background-color: var(--fx-admin-accent, #1a5fb4);
}

body.fx-admin .fx-admin-topbar__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: calc(1.5em + 0.5rem + 2px);
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.2rem;
  color: var(--fx-admin-accent, #1a5fb4);
  background: #f8f9fa;
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

body.fx-admin .fx-admin-topbar__icon-btn:hover,
body.fx-admin .fx-admin-topbar__icon-btn:focus {
  color: #fff;
  background: var(--fx-admin-accent, #1a5fb4);
  border-color: var(--fx-admin-accent, #1a5fb4);
  text-decoration: none;
}

body.fx-admin .fx-admin-topbar__icon-btn--logout:hover,
body.fx-admin .fx-admin-topbar__icon-btn--logout:focus {
  color: #fff;
  background: #dc3545;
  border-color: #dc3545;
}

@media (max-width: 575.98px) {
  body.fx-admin .fx-admin-topbar {
    padding-bottom: 0.5rem;
  }

  body.fx-admin .fx-admin-topbar__actions {
    width: 100%;
    margin-left: 0;
  }

  body.fx-admin .fx-admin-topbar__modules.custom-select {
    flex: 1 1 auto;
    max-width: none;
  }
}

.fx-admin-users-biodata .cke,
.fx-admin-users-biodata .cke_chrome {
  max-width: 100%;
  box-sizing: border-box;
}

.fx-admin-users-biodata {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

body.fx-admin .table-wrapper {
  max-width: 100%;
  overflow-x: auto;
}

/* Bootstrap alert dismiss — no legacy global button frame */
body.fx-admin .alert-dismissible button.close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: normal;
  opacity: 0.55;
  transition: opacity 0.15s ease-in-out;
}

body.fx-admin .alert-dismissible button.close:hover,
body.fx-admin .alert-dismissible button.close:focus {
  background: transparent !important;
  color: inherit !important;
  opacity: 0.85;
  outline: none;
}

body.fx-admin .alert-dismissible button.close .fa-times {
  font-size: 0.875rem;
}

body.fx-admin .alert-dismissible button.close span[aria-hidden="true"] {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

/* Bootstrap .btn on <button> */
body.fx-admin button.btn:not(.fx-admin-bool-toggle):not(.close):not(.fx-admin-password-toggle) {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  height: auto;
  min-height: 0;
  line-height: 1.5;
  box-shadow: none;
  appearance: none;
  white-space: nowrap;
}

body.fx-admin button.btn.btn-sm:not(.fx-admin-bool-toggle):not(.close):not(.fx-admin-password-toggle) {
  font-size: 0.8125rem;
  padding: 0.25rem 0.75rem;
}

body.fx-admin button.btn.btn-outline-warning {
  color: #856404;
  background-color: transparent;
  border: 1px solid #ffc107;
}

body.fx-admin button.btn.btn-outline-warning:hover,
body.fx-admin button.btn.btn-outline-warning:focus {
  color: #212529;
  background-color: #ffc107;
  border-color: #ffc107;
}

/* Scroll-to-top FAB (admin-wide) */
body.fx-admin .fx-admin-back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(var(--fx-admin-form-actions-height, 0px) + 1rem);
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 50%;
  background: var(--fx-admin-card-bg, #fff);
  color: var(--fx-admin-accent, #1a5fb4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1;
  appearance: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.fx-admin .fx-admin-back-to-top i {
  color: var(--fx-admin-accent, #1a5fb4);
}

body.fx-admin .fx-admin-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

body.fx-admin .fx-admin-back-to-top:hover,
body.fx-admin .fx-admin-back-to-top:focus {
  background: var(--fx-admin-accent, #1a5fb4);
  color: #fff !important;
  border-color: var(--fx-admin-accent, #1a5fb4);
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
}

body.fx-admin .fx-admin-back-to-top:hover i,
body.fx-admin .fx-admin-back-to-top:focus i {
  color: #fff !important;
}

@media (max-width: 767.98px) {
  body.fx-admin .fx-admin-back-to-top {
    right: 0.75rem;
    bottom: calc(var(--fx-admin-form-actions-height, 0px) + 0.75rem);
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* ------------------------------------------------------------------ sidebar */
body.fx-admin #sidebar {
  background-color: var(--fx-admin-card-bg);
  border-right: 1px solid var(--fx-admin-border);
  font-size: 0.9rem;
}

body.fx-admin #sidebar > .inner {
  padding: 1rem 1.1rem 1.25rem;
}

body.fx-admin #sidebar > .inner > * {
  border-bottom: 0;
  margin: 0;
  padding: 0;
}

body.fx-admin #sidebar #menu.fx-admin-nav,
#wrapper #sidebar #menu.fx-admin-nav {
  margin: 0;
  padding: 0;
}

.fx-admin-nav__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding: 0.35rem 0.5rem;
  border-bottom: 0;
  border-radius: 0.2rem;
}

.fx-admin-nav__title a {
  color: inherit;
  text-decoration: none;
}

.fx-admin-nav__title a:hover,
.fx-admin-nav__title a:focus {
  color: var(--fx-admin-accent);
  text-decoration: none;
}

.fx-admin-nav__title--active {
  background: rgba(26, 95, 180, 0.1);
  border-left: 3px solid var(--fx-admin-accent);
  padding-left: calc(0.5rem - 3px);
}

.fx-admin-nav__panel-switcher-wrap {
  margin: 0 0 1rem;
}

.fx-admin-nav__panel-switcher-label {
  display: block;
  width: 100%;
}

body.fx-admin .fx-admin-nav__panel-switcher.custom-select {
  width: 100%;
  max-width: 100%;
  height: calc(1.5em + 0.5rem + 2px);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-family: "Open Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  box-shadow: none;
  border-color: var(--fx-admin-border);
  color: var(--fx-admin-text);
  background-color: #f8f9fa;
}

body.fx-admin .fx-admin-nav__panel-switcher.custom-select:focus {
  border-color: var(--fx-admin-accent);
  box-shadow: 0 0 0 0.15rem rgba(26, 95, 180, 0.15);
}

.fx-admin-nav__module {
  margin-bottom: 0.75rem;
}

.fx-admin-nav__module-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 0.2rem;
  color: inherit;
  text-decoration: none;
}

.fx-admin-nav__module-title:hover,
.fx-admin-nav__module-title:focus {
  color: var(--fx-admin-accent);
  text-decoration: none;
  background: rgba(26, 95, 180, 0.06);
}

.fx-admin-nav__module-title--active {
  background: rgba(26, 95, 180, 0.1);
  border-left: 3px solid var(--fx-admin-accent);
  padding-left: calc(0.5rem - 3px);
  color: var(--fx-admin-accent-dark);
}

.fx-admin-nav__section {
  margin-bottom: var(--fx-admin-section-gap);
}

.fx-admin-nav__heading {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fx-admin-accent-dark);
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.2rem;
  background: #f1f3f5;
  border-left: 3px solid var(--fx-admin-accent);
}

.fx-admin-nav__list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.fx-admin-nav__link {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 0.2rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.35;
}

.fx-admin-nav__link:hover,
.fx-admin-nav__link:focus {
  background: rgba(26, 95, 180, 0.08);
  color: var(--fx-admin-link-hover);
  text-decoration: none;
}

.fx-admin-nav__link--active {
  background: rgba(26, 95, 180, 0.1);
  border-left: 3px solid var(--fx-admin-accent);
  padding-left: calc(0.5rem - 3px);
  color: var(--fx-admin-accent-dark);
  font-weight: 600;
}

.fx-admin-nav__meta {
  display: block;
  padding: 0 0.5rem 0.25rem calc(0.5rem + 0.1rem);
  font-size: 0.75rem;
  color: var(--fx-admin-muted);
  line-height: 1.3;
}

.fx-admin-nav__item:has(.fx-admin-nav__link--active) .fx-admin-nav__meta {
  padding-left: calc(0.5rem - 3px + 0.1rem);
}

.fx-admin-nav__empty {
  padding: 0.35rem 0.5rem;
}

.fx-admin-nav__divider {
  border: 0;
  border-top: 1px solid var(--fx-admin-border);
  margin: 0.75rem 0;
}

/* ---------------------------------------------------------------- dashboard */
.fx-admin-page-header {
  margin-bottom: 1.5rem;
}

.fx-admin-card {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  background: var(--fx-admin-card-bg);
  border: 1px solid var(--fx-admin-border);
  border-radius: 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fx-admin-card:hover,
.fx-admin-card:focus {
  border-color: var(--fx-admin-accent);
  box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
}

.fx-admin-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.fx-admin-card__meta {
  font-size: 0.8rem;
  color: var(--fx-admin-muted);
  margin: 0.25rem 0 0;
}

.fx-admin-module-links .badge {
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0 0.35rem 0.35rem 0;
}

.fx-admin-scripts-copy.text-success,
.fx-admin-scripts-run.text-success {
  color: #28a745 !important;
}

.fx-admin-scripts-table code {
  word-break: break-all;
}

.fx-admin-scripts-output {
  white-space: pre-wrap;
  word-break: break-word;
}

.fx-admin-dashboard-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.fx-admin-dashboard-overview .badge {
  font-weight: 500;
}

.fx-admin-dashboard-section {
  margin-top: 1.5rem;
}

.fx-admin-dashboard-section__heading {
  font-size: 1.1rem;
  font-weight: 600;
}

/* -------------------------------------------------------- layout (legacy) */
body.fx-admin div.admin_container,
#wrapper div.admin_container {
  width: 100%;
  min-width: 100%;
  min-height: 600px;
  margin: 0;
  border: 1px solid var(--fx-admin-border);
  line-height: 150%;
}

body.fx-admin div.form_container,
#wrapper div.form_container {
  width: 100%;
  border: 1px solid var(--fx-admin-border);
  line-height: 150%;
}

body.fx-admin div.form_container500,
#wrapper div.form_container500 { width: 500px; border: 1px solid var(--fx-admin-border); line-height: 150%; }
body.fx-admin div.form_container600,
#wrapper div.form_container600 { width: 600px; border: 1px solid var(--fx-admin-border); line-height: 150%; }
body.fx-admin div.form_container700,
#wrapper div.form_container700 { width: 700px; border: 1px solid var(--fx-admin-border); line-height: 150%; }
body.fx-admin div.form_container800,
#wrapper div.form_container800 { width: 800px; border: 1px solid var(--fx-admin-border); line-height: 150%; }
body.fx-admin div.form_container900,
#wrapper div.form_container900 { width: 900px; border: 1px solid var(--fx-admin-border); line-height: 150%; }
body.fx-admin div.form_container1000,
#wrapper div.form_container1000 { width: 1000px; border: 1px solid var(--fx-admin-border); line-height: 150%; }

body.fx-admin div.form_left400_500a,
#wrapper div.form_left400_500a { float: left; width: 400px; margin: 0; padding: 5px; vertical-align: top; }
body.fx-admin div.form_left400_500b,
#wrapper div.form_left400_500b { width: 500px; margin-left: 410px; padding: 5px; vertical-align: top; }
body.fx-admin div.form_left400_700a,
#wrapper div.form_left400_700a { float: left; width: 400px; margin: 0; padding: 5px; vertical-align: top; }
body.fx-admin div.form_left400_700b,
#wrapper div.form_left400_700b { width: 700px; margin-left: 410px; padding: 5px; vertical-align: top; }
body.fx-admin div.form_left400_900a,
#wrapper div.form_left400_900a { float: left; width: 400px; margin: 0; padding: 5px; vertical-align: top; }
body.fx-admin div.form_left400_900b,
#wrapper div.form_left400_900b { width: 900px; margin-left: 410px; padding: 5px; vertical-align: top; }

body.fx-admin div.celscroll,
#wrapper div.celscroll {
  width: auto;
  height: 400px;
  overflow: auto;
}

body.fx-admin div.users_found,
#wrapper div.users_found {
  float: right;
  max-width: 100%;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}

body.fx-admin div.cel_title,
#wrapper div.cel_title {
  float: left;
  width: 150px;
  margin: 0;
  padding: 5px;
  min-height: 20px;
  font-weight: 700;
  vertical-align: top;
}

body.fx-admin div.cel_data,
#wrapper div.cel_data {
  margin-left: 160px;
  padding: 5px;
  min-height: 18px;
  vertical-align: top;
}

body.fx-admin table.tableadmin,
#wrapper table.tableadmin {
  width: auto;
  max-width: 1200px;
  margin: 0;
  border: 0;
}

/* ------------------------------------------ stylesnew admin nav (extract) */
.nav_admin {
  margin: 0;
  padding: 0;
  height: 40px;
  background: var(--fx-admin-nav-bg);
  color: #fff;
  z-index: 1000;
}

.nav_admin_module {
  margin: 0;
  padding: 0;
  height: 30px;
  background: var(--fx-admin-accent-dark);
  color: #fff;
  z-index: 1000;
}

li.admin_modules_field,
li.admin_modules_field_active,
li.admin_modules_field_big,
li.admin_modules_field_big_active {
  float: left;
  height: 22px;
  padding: 8px 5px 0;
}

li.admin_modules_field:hover,
li.admin_modules_field_big:hover {
  color: #fff;
  background: #000;
}

a.admin_modules_field,
a.admin_modules_field_active,
a.admin_modules_field_big,
a.admin_modules_field_big_active {
  display: block;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  min-width: 100px;
  max-width: 200px;
  height: 20px;
  padding: 0;
  color: #fff;
}

li.admin_modules_field_active,
li.admin_modules_field_big_active {
  background: #000;
}

ul.admin_form_header,
ul.admin_form_header2 {
  background: var(--fx-admin-accent);
  width: 100%;
  color: #fff;
  border-bottom: 2px solid var(--fx-admin-accent);
  font-weight: 700;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

li.admin_form_header {
  padding: 3px 0 0 10px;
  background: var(--fx-admin-accent);
  color: #fff;
  font-size: 1.25rem;
  height: 30px;
}

.admin_form_header,
a.admin_form_header:link,
a.admin_form_header:visited {
  display: block;
  font-size: 1.25rem;
  color: #fff;
}

a.admin_form_header:hover,
a.admin_form_header:active {
  color: #e5e5e5;
}

.admin_form_header2,
a.admin_form_header2:link,
a.admin_form_header2:visited {
  display: block;
  text-decoration: none;
  font-size: 0.875rem;
  color: #fff;
}

a.admin_form_header2:hover,
a.admin_form_header2:active {
  color: #e5e5e5;
}

.admin_form_header2r,
a.admin_form_header2r:link,
a.admin_form_header2r:visited {
  display: block;
  text-align: right;
  font-size: 0.875rem;
  color: #fff;
}

/* --------------------------------------------------------- table row hover */
body.fx-admin .table-wrapper table.alt tbody tr:hover,
#wrapper .table-wrapper table.alt tbody tr:hover {
  background-color: #fffde7;
}

body.fx-admin .rowBright:hover,
#wrapper .rowBright:hover {
  background-color: #fffde7;
}

/* --------------------------------------------------------- language sort */
.fx-admin-languages-section-title,
.fx-admin-currencies-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.fx-admin-currencies-update {
  color: var(--fx-admin-muted, #6c757d);
}

a.fx-admin-currencies-update:hover {
  color: #007bff;
}

.fx-admin-currencies-table code {
  font-size: 0.9em;
}

.fx-admin-crypto-icon-wrap,
.fx-crypto-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.fx-admin-crypto-icon,
.fx-crypto-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.fx-admin-crypto-icon-fallback,
.fx-crypto-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #eef1f4;
  color: #495057;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.fx-admin-crypto-icon-fallback--hidden,
.fx-crypto-icon-fallback--hidden {
  display: none;
}

.fx-admin-crypto-icon-fallback--btc,
.fx-crypto-icon-fallback--btc { background: #f7931a22; color: #c26a08; }
.fx-admin-crypto-icon-fallback--eth,
.fx-crypto-icon-fallback--eth { background: #627eea22; color: #4a62c4; }
.fx-admin-crypto-icon-fallback--bnb,
.fx-crypto-icon-fallback--bnb { background: #f0b90b22; color: #b88908; }
.fx-admin-crypto-icon-fallback--xrp,
.fx-crypto-icon-fallback--xrp { background: #23292f14; color: #23292f; }
.fx-admin-crypto-icon-fallback--ada,
.fx-crypto-icon-fallback--ada { background: #0033ad18; color: #0033ad; }
.fx-admin-crypto-icon-fallback--doge,
.fx-crypto-icon-fallback--doge { background: #c2a63322; color: #9a7f12; }
.fx-admin-crypto-icon-fallback--dot,
.fx-crypto-icon-fallback--dot { background: #e6007a18; color: #b80061; }
.fx-admin-crypto-icon-fallback--sol,
.fx-crypto-icon-fallback--sol { background: #9945ff18; color: #7a34d4; }
.fx-admin-crypto-icon-fallback--matic,
.fx-crypto-icon-fallback--matic { background: #8247e518; color: #6a35c4; }
.fx-admin-crypto-icon-fallback--ltc,
.fx-crypto-icon-fallback--ltc { background: #345d9d18; color: #2a4d84; }
.fx-admin-crypto-icon-fallback--link,
.fx-crypto-icon-fallback--link { background: #2a5ada18; color: #2148b0; }
.fx-admin-crypto-icon-fallback--trx,
.fx-crypto-icon-fallback--trx { background: #ef002718; color: #c40020; }
.fx-admin-crypto-icon-fallback--uni,
.fx-crypto-icon-fallback--uni { background: #ff007a18; color: #d40066; }
.fx-admin-crypto-icon-fallback--xlm,
.fx-crypto-icon-fallback--xlm { background: #14b6e618; color: #0f8eb5; }
.fx-admin-crypto-icon-fallback--avax,
.fx-crypto-icon-fallback--avax { background: #e8414218; color: #c73430; }

.fx-admin-modules-table .badge {
  font-weight: 500;
}

.fx-admin-modules-actions {
  white-space: nowrap;
}

.fx-admin-modules-action {
  color: var(--fx-admin-muted, #6c757d);
}

.fx-admin-modules-action:hover {
  color: #007bff;
  text-decoration: none;
}

.fx-admin-themes-preview {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.fx-admin-themes-filters .custom-select-sm {
  width: 100%;
}

/* --------------------------------------------------------- bool toggles */
.fx-admin-bool-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--fx-admin-muted, #6c757d);
  text-decoration: none;
}

a.fx-admin-bool-toggle:hover {
  text-decoration: none;
  opacity: 0.85;
}

.fx-admin-bool-toggle--toggle.fx-admin-bool-toggle--on {
  color: #28a745;
}

.fx-admin-bool-toggle--toggle.fx-admin-bool-toggle--off {
  color: #adb5bd;
}

.fx-admin-bool-toggle--star.fx-admin-bool-toggle--on {
  color: #f0ad4e;
}

.fx-admin-bool-toggle--star.fx-admin-bool-toggle--off {
  color: #ced4da;
}

/* AJAX bool toggle buttons */
button.fx-admin-bool-toggle.fx-admin-bool-toggle--toggle,
.fx-admin-rights2groups-matrix .fx-admin-rights2groups-toggle,
.fx-admin-rights2users-table .fx-admin-rights2users-toggle {
  margin: 0;
  padding: 0.05rem 0.1rem;
  border: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}

button.fx-admin-bool-toggle.fx-admin-bool-toggle--toggle:focus,
.fx-admin-rights2groups-matrix .fx-admin-rights2groups-toggle:focus,
.fx-admin-rights2users-table .fx-admin-rights2users-toggle:focus {
  outline: none;
  box-shadow: none;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-toggle i,
.fx-admin-rights2users-table .fx-admin-rights2users-toggle i {
  font-size: 1.1rem;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-toggle.fx-admin-bool-toggle--on i,
.fx-admin-rights2users-table .fx-admin-rights2users-toggle.fx-admin-bool-toggle--on i {
  color: #28a745;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-toggle.fx-admin-bool-toggle--off i,
.fx-admin-rights2users-table .fx-admin-rights2users-toggle.fx-admin-bool-toggle--off i {
  color: #adb5bd;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-toggle:disabled,
.fx-admin-rights2users-table .fx-admin-rights2users-toggle:disabled {
  cursor: wait;
  opacity: 0.65;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-cell span.fx-admin-rights2groups-toggle,
.fx-admin-rights2users-table span.fx-admin-rights2users-toggle {
  cursor: default;
}

.fx-admin-rights2users-table .fx-admin-rights2users-cell {
  padding: 0.35rem 0.5rem;
}

/* Currency table: POST icon buttons */
.fx-admin-currencies-table button.fx-admin-bool-toggle,
.fx-admin-currencies-table button.fx-admin-currencies-update,
.fx-admin-currencies-table button.fx-admin-icon-delete {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0 !important;
  box-shadow: none !important;
  outline: none;
  background: transparent !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  font-weight: normal !important;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  vertical-align: middle;
}

.fx-admin-currencies-table button.fx-admin-bool-toggle--toggle.fx-admin-bool-toggle--on { color: #28a745; }
.fx-admin-currencies-table button.fx-admin-bool-toggle--toggle.fx-admin-bool-toggle--off { color: #adb5bd; }
.fx-admin-currencies-table button.fx-admin-bool-toggle--star.fx-admin-bool-toggle--on { color: #f0ad4e; }
.fx-admin-currencies-table button.fx-admin-bool-toggle--star.fx-admin-bool-toggle--off { color: #ced4da; }

.fx-admin-currencies-table button.fx-admin-currencies-update {
  color: var(--fx-admin-muted, #6c757d);
  font-size: 1rem;
}

.fx-admin-currencies-table button.fx-admin-currencies-update:hover,
.fx-admin-currencies-table button.fx-admin-currencies-update:focus {
  color: #007bff;
  opacity: 0.85;
  background: transparent !important;
}

.fx-admin-currencies-table button.fx-admin-bool-toggle:hover,
.fx-admin-currencies-table button.fx-admin-bool-toggle:focus {
  opacity: 0.85;
  background: transparent !important;
}

/* ------------------------------------------------ icon action buttons */
.fx-admin-icon-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  vertical-align: baseline;
}

.fx-admin-icon-delete:hover,
.fx-admin-icon-delete:focus,
.fx-admin-icon-delete:active {
  border: 0;
  box-shadow: none;
  outline: none;
  background: transparent;
  opacity: 0.85;
}

.fx-admin-languages-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  color: var(--fx-admin-muted, #6c757d);
  cursor: grab;
  touch-action: none;
}

.fx-admin-languages-handle:active {
  cursor: grabbing;
}

.fx-admin-languages-ghost {
  opacity: 0.45;
  background: #f8f9fa;
}

.fx-admin-languages-chosen {
  background: #fffde7;
}

.fx-admin-languages-save-status:empty {
  display: none;
}

/* --------------------------------------------------------- misc overrides */
.fx-admin-seopaths-pagination .pagination {
  gap: 0.2rem;
}

.fx-admin-users-pagination .pagination {
  gap: 0.2rem;
}

.fx-admin-users-table .fx-admin-users-sort-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.fx-admin-users-table .fx-admin-users-sort-th:hover,
.fx-admin-users-table .fx-admin-users-sort-th--active {
  color: #fff;
}

.fx-admin-users-table .fx-sort-indicator {
  display: inline-block;
  margin-left: 0.2rem;
  font-size: 0.75em;
  opacity: 0.9;
}

.fx-admin-users-sort-dropdown .fx-admin-users-sort-dropdown-toggle {
  color: #fff;
  font-weight: inherit;
  text-decoration: none;
  box-shadow: none;
}

.fx-admin-users-sort-dropdown .fx-admin-users-sort-dropdown-toggle:hover,
.fx-admin-users-sort-dropdown .fx-admin-users-sort-dropdown-toggle:focus {
  color: #fff;
  text-decoration: none;
}

.fx-admin-users-sort-sub {
  font-weight: normal;
  opacity: 0.92;
}

.fx-admin-users-sort-dropdown .dropdown-item.active {
  font-weight: 600;
}

.fx-admin-users-table tbody tr.fx-admin-users-row {
  cursor: pointer;
}

.fx-admin-users-table tbody tr.fx-admin-users-row:focus {
  outline: 2px solid var(--fx-admin-accent, #007bff);
  outline-offset: -2px;
}

.fx-admin-users-actions {
  min-width: 6.5rem;
  gap: 0.35rem;
}

.fx-admin-users-actions a {
  flex: 1 1 0;
  text-align: center;
  line-height: 1;
}

.fx-admin-users-actions__spacer {
  flex: 1 1 0;
}

.fx-admin-users-details-summary {
  margin-bottom: 0.75rem;
}

.fx-admin-page-chrome {
  position: sticky;
  top: 0;
  z-index: 1025;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--fx-admin-border, #dee2e6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin: 0 0 1rem;
  padding: 0.5rem 0 0.35rem;
}

.fx-admin-page-chrome .breadcrumb {
  margin-bottom: 0.35rem;
}

.fx-admin-page-chrome__nav {
  margin-bottom: 0;
  padding-bottom: 0.25rem;
}

.fx-admin-page-chrome__nav .nav-pills .nav-link,
.fx-admin-page-chrome__nav > nav .nav-link {
  font-size: 0.8125rem;
}

.fx-admin-page-chrome__nav .fx-admin-users-subnav,
.fx-admin-page-chrome__nav > nav {
  margin-bottom: 0;
}

.fx-admin-page-chrome__nav .fx-admin-company-nav-mobile {
  margin-bottom: 0.5rem;
}

.fx-admin-page-chrome__nav .fx-admin-company-nav {
  margin-bottom: 0;
}

.fx-admin-page-chrome__nav .custom-select,
.fx-admin-page-chrome__nav select.custom-select {
  margin-bottom: 0;
}

.fx-admin-users-account-card.fx-admin-card {
  margin-bottom: 0;
}

.fx-admin-users-account-card.fx-admin-card:hover,
.fx-admin-users-account-card.fx-admin-card:focus {
  border-color: var(--fx-admin-border, #dee2e6);
  box-shadow: none;
}

.fx-admin-users-account-card__header {
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--fx-admin-border, #dee2e6);
}

.fx-admin-users-account-card__body {
  margin-left: 0;
  margin-right: 0;
}

.fx-admin-users-account-card__body > [class*="col-"] {
  margin-bottom: 0.75rem;
}

.fx-admin-users-account-card__section {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fx-admin-muted, #6c757d);
  margin-bottom: 0.5rem;
}

.fx-admin-users-account-card__thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.fx-admin-users-account-card__thumb--placeholder {
  display: inline-block;
  background: var(--fx-admin-border, #dee2e6);
}

.fx-admin-users-account-card__field .col-form-label-sm {
  font-size: 0.8rem;
}

.fx-admin-users-account-card__field .col-sm-8 {
  font-size: 0.875rem;
  word-break: break-word;
}

.fx-admin-users-account-card__address {
  font-size: 0.875rem;
  line-height: 1.45;
}

.fx-admin-users-public-preview {
  margin-bottom: 0;
}

.fx-user-biodata-table {
  width: 100%;
  margin: 0 0 0.12em 0;
  border-collapse: collapse;
}

.fx-user-biodata-table tbody tr {
  border-top: solid 1px rgba(210, 215, 217, 0.75);
  border-bottom: solid 1px rgba(210, 215, 217, 0.75);
  border-left: 0;
  border-right: 0;
}

.fx-user-biodata-table tbody tr:nth-child(odd) {
  background-color: rgba(230, 235, 237, 0.25);
}

.fx-user-biodata-table td {
  padding: 0.25em 0.5em;
  vertical-align: top;
}

.fx-admin-users-public-preview.fx-admin-card:hover,
.fx-admin-users-public-preview.fx-admin-card:focus {
  border-color: var(--fx-admin-border, #dee2e6);
  box-shadow: none;
}

.fx-admin-users-public-preview__header {
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--fx-admin-border, #dee2e6);
}

.fx-admin-users-public-preview__body .col-lg-8,
.fx-admin-users-public-preview__body .col-lg-4 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.fx-admin-users-public-preview .box {
  border: 0;
  padding: 0;
  background: transparent;
}

.fx-user-public-profile-sidebar.fx-admin-card:hover,
.fx-user-public-profile-sidebar.fx-admin-card:focus {
  border-color: var(--fx-admin-border, #dee2e6);
  box-shadow: none;
}

.fx-user-public-profile-sidebar img {
  max-width: 100%;
  height: auto;
}

.fx-user-public-profile-sidebar__image-fallback img {
  max-width: 100%;
  height: auto;
}

.fx-user-public-profile-sidebar__icon img {
  width: 30px;
  height: auto;
}

.fx-user-public-profile-sidebar__meta dd {
  font-size: 0.875rem;
  line-height: 1.45;
}

.fx-user-public-profile-sidebar__social-value {
  font-size: 0.875rem;
  line-height: 1.4;
  word-break: break-word;
}

.fx-user-public-profile-main .carousel {
  margin-bottom: 0.75rem;
}

.fx-user-public-profile-gallery--empty {
  min-height: 160px;
  background: var(--fx-admin-bg-muted, #f8f9fa);
  border: 1px dashed var(--fx-admin-border, #dee2e6);
  border-radius: 0.25rem;
}

.fx-admin-users-public-preview .row {
  margin-left: 0;
  margin-right: 0;
}

.fx-admin-users-socialmedia .custom-control-label::before,
.fx-admin-users-socialmedia .custom-control-label::after {
  top: 0.1rem;
}

.fx-admin-users-socialmedia.fx-admin-company-info-edit .table td,
.fx-admin-users-socialmedia .fx-admin-company-section .table td {
  vertical-align: middle;
}

.fx-admin-users-biodata .fx-admin-company-section .card-body > .row {
  margin-bottom: 0.75rem;
}

.fx-admin-users-biodata .fx-admin-company-section .card-body > .form-group.row {
  margin-bottom: 0.75rem;
}

.fx-admin-users-biodata .fx-admin-company-section .card-body > .form-group.row:last-child {
  margin-bottom: 0;
}

.fx-admin-biodata-languages-scroll {
  max-height: min(60vh, 28rem);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.2rem;
}

.fx-admin-biodata-languages-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--fx-admin-card-bg, #fff);
  border-bottom-width: 2px;
  white-space: nowrap;
}

.fx-admin-biodata-languages-table .fx-admin-biodata-languages-lang {
  min-width: 8rem;
}

.fx-admin-biodata-languages-table .fx-admin-biodata-languages-level {
  width: 2.75rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.fx-admin-biodata-languages-table tbody tr.fx-biodata-language-row--active {
  background-color: rgba(52, 144, 220, 0.08);
}

.fx-admin-biodata-languages-table tbody tr.fx-biodata-language-row--active:nth-child(odd) {
  background-color: rgba(52, 144, 220, 0.12);
}

.fx-admin-biodata-language-radio {
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
}

.fx-admin-users-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 0.2rem;
}

.fx-admin-users-thumb--placeholder {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--fx-admin-border, #dee2e6);
  border-radius: 0.2rem;
  flex-shrink: 0;
}

body.fx-admin .textwarn,
#wrapper .textwarn {
  color: #c0392b;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ------------------------------------------- rights2groups matrix */
.fx-admin-rights2groups-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  max-height: min(70vh, calc(100vh - 12rem));
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.2rem;
  background: var(--fx-admin-card-bg, #fff);
}

.fx-admin-rights2groups-scroll.table-wrapper {
  overflow: auto;
}

.fx-admin-rights2groups-matrix.table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

.fx-admin-rights2groups-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  vertical-align: middle;
  padding: 0.35rem 0.45rem;
  background-color: #343a40;
  color: #fff;
  border-color: #454d55;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.fx-admin-rights2groups-matrix thead .fx-admin-rights2groups-sticky-col {
  left: 0;
  z-index: 5;
  width: 14rem;
  min-width: 14rem;
  max-width: 14rem;
  background-color: #343a40;
  border-right: 1px solid #454d55;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.12);
}

.fx-admin-rights2groups-matrix tbody .fx-admin-rights2groups-sticky-col {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 14rem;
  min-width: 14rem;
  max-width: 14rem;
  padding: 0.35rem 0.5rem;
  background-color: #ffffff;
  border-right: 1px solid var(--fx-admin-border, #dee2e6);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
  background-clip: padding-box;
}

.fx-admin-rights2groups-matrix tbody tr:nth-child(odd) .fx-admin-rights2groups-sticky-col {
  background-color: #f5f6f7;
}

.fx-admin-rights2groups-matrix tbody tr:hover .fx-admin-rights2groups-sticky-col {
  background-color: #fffde7;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-head-col,
.fx-admin-rights2groups-matrix .fx-admin-rights2groups-cell {
  min-width: 3.25rem;
  white-space: nowrap;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-sticky-col code {
  font-size: 0.8rem;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-task-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  line-height: 1.25;
}

.fx-admin-rights2groups-matrix .fx-admin-rights2groups-cell {
  padding: 0.2rem 0.3rem;
}

@media (max-width: 767.98px) {
  .fx-admin-rights2groups-matrix thead .fx-admin-rights2groups-sticky-col,
  .fx-admin-rights2groups-matrix tbody .fx-admin-rights2groups-sticky-col {
    width: 10rem;
    min-width: 10rem;
    max-width: 10rem;
  }

  .fx-admin-rights2groups-matrix .fx-admin-rights2groups-task-desc {
    -webkit-line-clamp: 1;
  }
}

/* Company info admin */
.fx-admin-copy-key,
.fx-admin-toggle-qr {
  cursor: pointer;
}

.fx-admin-payment-summary {
  word-break: break-word;
}

.fx-admin-area-tags {
  margin-top: 10px;
}

.fx-admin-area-tag {
  display: inline-block;
  padding: 5px 10px;
  margin: 3px;
  background: #ddd;
  border-radius: 15px;
}

.fx-admin-area-remove {
  cursor: pointer;
  margin-left: 8px;
}

.fx-admin-users-biodata .fx-admin-area-tag {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1.3;
}

.fx-admin-users-biodata .fx-admin-area-tag .fx-admin-nationality-remove {
  appearance: none;
  border: 0;
  box-shadow: none;
  background: transparent;
  height: auto;
  min-height: 0;
  line-height: 1;
  padding: 0;
  margin: 0 0 0 0.35rem;
  font-size: inherit;
  font-weight: bold;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
  vertical-align: middle;
  display: inline;
  cursor: pointer;
}

.fx-admin-users-biodata .fx-admin-area-tag .fx-admin-nationality-remove:hover,
.fx-admin-users-biodata .fx-admin-area-tag .fx-admin-nationality-remove:focus {
  background: transparent;
  box-shadow: none;
  outline: none;
}

#fx-user-documents {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

#fx-user-documents .fx-user-doc-list ul li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#fx-user-documents .fx-user-doc-list ul li:last-child {
  border-bottom: 0;
}

#fx-user-documents .fx-doc-thumb {
  display: block;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  text-decoration: none;
}

#fx-user-documents .fx-doc-thumb__img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
  background: #f8f9fa;
}

#fx-user-documents .fx-doc-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.25rem;
  background: #f8f9fa;
  font-size: 1.35rem;
  line-height: 1;
}

#fx-user-documents .fx-doc-thumb--icon .fa-file-pdf.text-danger {
  color: #dc3545 !important;
}

#fx-user-documents .fx-doc-thumb--icon .fa-file-word.text-primary {
  color: #1a5fb4 !important;
}

#fx-user-documents .fx-doc-thumb--icon .fa-file-excel.text-success {
  color: #28a745 !important;
}

/* Auxiliary btn-sm chips */
.fx-admin-company-info-edit button.btn.btn-sm,
#fx-user-documents button.btn.btn-sm {
  font-family: "Open Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  height: auto;
  min-height: 0;
  padding: 0.25rem 0.65rem;
  box-shadow: none;
}

.fx-admin-company-info-edit button.btn.btn-sm.btn-light,
#fx-user-documents button.btn.btn-sm.btn-light {
  color: var(--fx-admin-text, #212529);
  background-color: #f8f9fa;
  border: 1px solid var(--fx-admin-border, #dee2e6);
}

.fx-admin-company-info-edit button.btn.btn-sm.btn-light:hover,
.fx-admin-company-info-edit button.btn.btn-sm.btn-light:focus,
#fx-user-documents button.btn.btn-sm.btn-light:hover,
#fx-user-documents button.btn.btn-sm.btn-light:focus {
  background-color: #e9ecef;
  border-color: #dae0e5;
  box-shadow: none;
  color: var(--fx-admin-text, #212529);
}

#fx-user-documents button.btn.btn-sm.fx-doc-delete:hover,
#fx-user-documents button.btn.btn-sm.fx-doc-delete:focus {
  color: #dc3545;
  border-color: #dc3545;
  background-color: #fff5f5;
}

#fx-admin-users-password .input-group.fx-admin-password-field {
  flex-wrap: nowrap;
  align-items: stretch;
}

#fx-admin-users-password .input-group.fx-admin-password-field .form-control[type="password"] {
  height: calc(1.5em + 0.75rem + 2px) !important;
  min-height: calc(1.5em + 0.75rem + 2px) !important;
  flex: 1 1 auto;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#fx-admin-users-password .input-group.fx-admin-password-field .input-group-append {
  display: flex;
}

#fx-admin-users-password .input-group.fx-admin-password-field .btn.fx-admin-password-toggle {
  height: calc(1.5em + 0.75rem + 2px) !important;
  min-height: calc(1.5em + 0.75rem + 2px) !important;
  padding: 0 0.75rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  border: 1px solid var(--fx-admin-accent, #1a5fb4) !important;
  border-left: 0 !important;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1 !important;
  color: #fff !important;
  background-color: var(--fx-admin-accent, #1a5fb4) !important;
}

#fx-admin-users-password .input-group.fx-admin-password-field .btn.fx-admin-password-toggle:hover,
#fx-admin-users-password .input-group.fx-admin-password-field .btn.fx-admin-password-toggle:focus {
  color: #fff !important;
  background-color: var(--fx-admin-accent-dark, #032644) !important;
  border-color: var(--fx-admin-accent-dark, #032644) !important;
}

#fx-admin-users-password .input-group.fx-admin-password-field:focus-within .form-control[type="password"] {
  border-color: #80bdff;
}

#fx-admin-users-password .input-group.fx-admin-password-field:focus-within .btn.fx-admin-password-toggle {
  border-color: #80bdff !important;
}

.fx-admin-company-info-edit .input-group .btn {
  height: calc(2.25rem + 2px);
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.fx-admin-company-info-edit .input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.schema-wrapper {
  position: relative;
  max-width: 400px;
}

.schema-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #ccc;
  background: #fff;
  max-height: 300px;
  overflow-y: auto;
  z-index: 9999;
}

.schema-category {
  padding: 6px;
  background: #f2f2f2;
  font-weight: bold;
}

.schema-item {
  padding: 6px 6px 6px 15px;
  cursor: pointer;
}

.schema-item:hover {
  background: #f0f0f0;
}

.fx-admin-price-range-box {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  z-index: 9999;
  width: 200px;
}

.fx-admin-price-range-item {
  padding: 8px;
  cursor: pointer;
}

.fx-admin-price-range-item:hover {
  background: #f0f0f0;
}

/* Company info — shared IA layout */
.fx-admin-company-section .card-header {
  background: #f8f9fa;
  border-bottom: 1px solid var(--fx-admin-border);
}

.fx-admin-company-section .card-title {
  font-size: 1rem;
  font-weight: 600;
}

.fx-admin-company-nav .nav-link {
  font-size: 0.8125rem;
  color: var(--fx-admin-muted);
}

.fx-admin-company-nav .nav-link:hover {
  color: var(--fx-admin-accent);
}

.fx-admin-dl dt {
  font-weight: 600;
  color: var(--fx-admin-muted);
  font-size: 0.8125rem;
  margin-bottom: 0.15rem;
}

.fx-admin-dl dd {
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
}

@media (min-width: 576px) {
  .fx-admin-dl dd {
    margin-bottom: 0;
  }

  .fx-admin-dl > dt,
  .fx-admin-dl > dd {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f1f3f5;
  }

  .fx-admin-dl > dt:last-of-type,
  .fx-admin-dl > dd:last-of-type {
    border-bottom: 0;
  }
}

.fx-admin-section-jump {
  font-weight: 500;
}

.fx-admin-company-info-edit {
  padding-bottom: 0;
}

.fx-admin-users-biodata {
  padding-bottom: 0;
}

.fx-admin-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0;
}

body.fx-admin .fx-admin-form-actions {
  position: fixed;
  bottom: 0;
  left: var(--fx-admin-sidebar-width);
  right: 0;
  z-index: 1020;
  padding: 0.75rem 6em;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--fx-admin-border);
  border-top: 1px solid var(--fx-admin-border);
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}

body.fx-my-account-page .fx-admin-form-actions {
  position: static;
  z-index: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.fx-my-account-page.fx-my-account--user-data .fx-admin-form-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--fx-admin-border, #dee2e6);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  justify-content: flex-end;
}

body.fx-my-account-page.fx-my-account--user-data .fx-my-account-main {
  padding-bottom: calc(var(--fx-admin-form-actions-height, 3.75rem) + 1.25rem);
}

@media screen and (max-width: 1680px) {
  body.fx-admin .fx-admin-form-actions {
    padding-left: 5em;
    padding-right: 5em;
  }
}

@media screen and (max-width: 1280px) {
  body.fx-admin .fx-admin-form-actions {
    padding-left: 4em;
    padding-right: 4em;
  }
}

@media screen and (max-width: 736px) {
  body.fx-admin .fx-admin-form-actions {
    padding-left: 2em;
    padding-right: 2em;
  }
}

.fx-admin-form-actions button.btn.btn-sm {
  font-family: "Open Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  height: auto;
  min-height: 0;
  padding: 0.25rem 0.75rem;
  box-shadow: none;
}

.fx-admin-form-actions button.btn.btn-primary.btn-sm {
  color: #fff !important;
  background-color: var(--fx-admin-accent, #1a5fb4);
  border-color: var(--fx-admin-accent, #1a5fb4);
}

.fx-admin-form-actions button.btn.btn-primary.btn-sm:hover,
.fx-admin-form-actions button.btn.btn-primary.btn-sm:focus {
  color: #fff !important;
  background-color: var(--fx-admin-link-hover, #0d47a1);
  border-color: var(--fx-admin-link-hover, #0d47a1);
}

.fx-site-brand-upload .custom-file,
.fx-site-brand-upload .form-control-file {
  max-width: 28rem;
}

.fx-admin-hours-row:last-child {
  margin-bottom: 0 !important;
}

.fx-admin-qr-row td {
  background: #f8f9fa;
}

/* Company info — view page */
.fx-admin-company-view {
  scroll-behavior: smooth;
}

.fx-admin-company-view .fx-admin-company-summary .fx-admin-summary-badge {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45em 0.65em;
  border: 1px solid var(--fx-admin-border);
  color: var(--fx-admin-text);
  text-decoration: none;
}

.fx-admin-company-view .fx-admin-company-summary a.fx-admin-summary-badge:hover {
  background: #e9ecef;
  text-decoration: none;
  color: var(--fx-admin-accent);
}

.fx-admin-company-view .fx-admin-company-warning {
  border-color: #ffeeba;
}

.fx-admin-company-view .fx-admin-hours-table th {
  width: 4.5rem;
  font-weight: 600;
  color: var(--fx-admin-muted);
  border-top: 0;
  padding-left: 0;
}

.fx-admin-company-view .fx-admin-hours-table td {
  border-top: 0;
  padding-left: 0;
}

.fx-admin-company-view .fx-admin-area-badges .fx-admin-area-badge {
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.4em 0.6em;
  border: 1px solid var(--fx-admin-border);
}

.fx-admin-company-view .fx-admin-company-nav .nav-link.active {
  background: var(--fx-admin-accent);
  color: #fff;
}

.fx-admin-company-view .fx-admin-company-nav-mobile {
  max-width: 100%;
}

/* Metatags — view & edit */
.fx-admin-metatags-edit {
  padding-bottom: 4.5rem;
}

.fx-admin-topic-badges .fx-admin-topic-badge {
  margin: 0 0.25rem 0.25rem 0;
  font-weight: 500;
}

.fx-admin-topics-editor,
.fx-admin-schema-topics-editor {
  margin-top: 0.25rem;
}

.fx-admin-topics-section {
  padding: 0.5rem 0.75rem;
  background: #fafbfc;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.25rem;
}

.fx-admin-topics-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.75rem;
  padding: 0.35rem;
  background: #f8f9fa;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.25rem;
}

.fx-admin-topics-chips:empty::before {
  content: 'No topics yet — add one below.';
  color: #6c757d;
  font-size: 0.875rem;
}

.fx-admin-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.4rem 0.35rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #ced4da;
}

.fx-admin-topic-chip__label {
  line-height: 1.2;
}

.fx-admin-topic-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6c757d;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.fx-admin-topic-chip__remove:hover,
.fx-admin-topic-chip__remove:focus {
  background: rgba(0, 0, 0, 0.08);
  color: #343a40;
  outline: none;
}

.fx-admin-topics-raw summary {
  cursor: pointer;
}

.fx-admin-topics-raw summary:hover {
  color: #495057;
}

.fx-admin-google-snippet__box {
  background: #fff;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.25rem;
}

.fx-admin-google-snippet__title {
  color: #1a0dab;
  font-size: 1.05rem;
  line-height: 1.3;
}

.fx-admin-google-snippet__url {
  line-height: 1.2;
}

.fx-admin-google-snippet__desc {
  line-height: 1.4;
}

.fx-admin-schema-preview__code {
  background: #f8f9fa;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  white-space: pre-wrap;
  word-break: break-word;
}

.fx-admin-schema-preview__code + .fx-admin-schema-preview__code,
.fx-admin-schema-preview .font-weight-bold + .fx-admin-schema-preview__code {
  margin-top: 0.25rem;
}

/* Site brand assets admin — crop overlay */
.fx-site-brand-upload {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--fx-admin-border, #dee2e6);
}

.fx-site-brand-crop-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  user-select: none;
}

.fx-site-brand-crop-stage img {
  max-width: 100%;
  height: auto;
  display: block;
}

.fx-site-brand-crop-box {
  position: absolute;
  border: 2px solid #0d6efd;
  background: rgba(13, 110, 253, 0.12);
  cursor: move;
  touch-action: none;
}

.fx-site-brand-crop-handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #0d6efd;
  border: 1px solid #fff;
  cursor: nwse-resize;
}

/* Logged-in my_account on public site (navbar + footer preserved) */
body.fx-my-account-page .body-inner {
  overflow: visible;
}

body.fx-my-account-page .fx-my-account-main {
  padding-bottom: 4rem;
}

body.fx-my-account-page #footer {
  position: relative;
  z-index: 1030;
}

body.fx-my-account-page .fx-my-account-page__breadcrumb {
  background: #f4f6f8;
  border: 1px solid var(--fx-admin-border, #dee2e6);
  border-radius: 0.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
}

body.fx-my-account-page .fx-my-account-page__breadcrumb .breadcrumb {
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 400;
}

body.fx-my-account-page .fx-my-account-page__breadcrumb .breadcrumb-item,
body.fx-my-account-page .fx-my-account-page__breadcrumb .breadcrumb-item a {
  color: var(--fx-admin-muted, #6c757d) !important;
}

body.fx-my-account-page .fx-my-account-page__breadcrumb .breadcrumb-item.active {
  color: var(--fx-admin-text, #212529) !important;
  font-weight: 600;
}

body.fx-my-account-page .fx-my-account-page__chrome.fx-admin-page-chrome {
  position: sticky;
  top: calc(var(--fx-public-nav-offset, 56px) + 4px);
  z-index: 1020;
  margin-bottom: 1.25rem;
}

body.fx-my-account-page .fx-my-account-page__chrome .fx-admin-page-chrome__nav {
  margin-bottom: 0;
}

body.fx-my-account-page .fx-my-account-page__chrome .fx-admin-users-subnav .nav-link {
  color: var(--fx-admin-muted, #6c757d);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
}

body.fx-my-account-page .fx-my-account-page__chrome .fx-admin-users-subnav .nav-link:hover,
body.fx-my-account-page .fx-my-account-page__chrome .fx-admin-users-subnav .nav-link:focus {
  color: var(--fx-admin-accent, #1a5fb4);
  background: rgba(26, 95, 180, 0.08);
}

body.fx-my-account-page .fx-my-account-page__chrome .fx-admin-users-subnav .nav-link.active {
  color: #fff;
  background: var(--fx-admin-accent, #1a5fb4);
}

body.fx-my-account-page .fx-admin-card {
  background: #fff;
}

/* Photo manager — natural card height; scroll when lists/previews grow */
.fx-users-photo-manager .fx-admin-card,
.fx-users-photo-manager .fx-users-photo-section {
  height: auto;
}

.fx-users-photo-table-scroll {
  max-height: min(50vh, 22rem);
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fx-users-photo-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #343a40;
}

.fx-users-photo-preview {
  max-height: min(50vh, 22rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fx-users-photo-preview__img {
  display: block;
  max-width: 200px;
  max-height: min(40vh, 280px);
  width: auto;
  height: auto;
  object-fit: contain;
}
