:root {
  color-scheme: light;
  --bg-body: #f2f2f2;
  --bg-surface: #ffffff;
  --bg-surface-2: #f8fafc;
  --bg-surface-3: #f2f6fb;
  --text-color: #1f2d3d;
  --text-muted: #667789;
  --border-color: #dbe2ea;
  --border-strong: #314150;
  --brand-color: #de3e80;
  --accent-color: #0d52bf;
  --accent-color-soft: #edf4ff;
  --shadow-card: 0 2px 2px rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px rgba(0, 0, 0, 0.12);
  --shadow-card-hover: 0 3px 4px rgba(0, 0, 0, 0.14), 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 1px 8px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-body: #17212b;
  --bg-surface: #1f2b38;
  --bg-surface-2: #243241;
  --bg-surface-3: #20303f;
  --text-color: #e6edf5;
  --text-muted: #a8b4c3;
  --border-color: #314150;
  --border-strong: #465a6f;
  --accent-color: #8fc1ff;
  --accent-color-soft: rgba(143, 193, 255, 0.12);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.26);
  --shadow-card-hover: 0 18px 40px rgba(0, 0, 0, 0.34);
}

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

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  width: 100%;
  background-color: var(--bg-body);
  color: var(--text-color);
  font-family: "Comfortaa", sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

code {
  color: var(--brand-color);
  background: rgba(222, 62, 128, 0.08);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}

mark {
  font-weight: 700;
  border-radius: 5px;
  background-color: #fcf8e2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mley-hidden,
.mley-search-hidden {
  display: none !important;
}

.container-fluid {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.col-12,
.col-md-6,
.col-md-9 {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-self-center {
  align-self: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-center {
  justify-content: center !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.w-100 {
  width: 100% !important;
}

.float-right {
  float: right !important;
}

.text-right {
  text-align: right !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--accent-color) !important;
}

.font-weight-bold {
  font-weight: 700 !important;
}

.small,
small {
  font-size: 0.875em;
}

.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: inherit;
}

.h4,
h4 {
  font-size: 1.5rem;
}

.h5,
h5 {
  font-size: 1.25rem;
}

.h6,
h6 {
  font-size: 1rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mr-1 {
  margin-right: 0.25rem !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.ml-auto {
  margin-left: auto !important;
}

.pr-3 {
  padding-right: 1rem !important;
}

.page-wrapper {
  height: 100vh;
}

.slideout-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 220px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-y: hidden;
  z-index: 0;
  display: none;
}

.slideout-menu-left {
  left: 0;
}

.slideout-panel {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

.slideout-open,
.slideout-open body,
.slideout-open .slideout-panel {
  overflow-y: auto;
  overflow-x: hidden;
}

.slideout-open .slideout-menu {
  display: block;
}

.fixed-header {
  position: fixed;
  inset: 0 0 auto 0;
  min-height: 30px;
  background-color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(39, 52, 69, 0.08);
  backdrop-filter: blur(16px);
  z-index: 1001;
}

.mley-page-offset {
  padding-top: 4.75rem;
}

body[data-page-kind] .card {
  background: var(--bg-surface);
  border: 1px solid rgba(39, 52, 69, 0.04);
  border-radius: 16px;
  margin: 10px 0;
  color: inherit;
}

body[data-page-kind] .card-1 {
  box-shadow: var(--shadow-card);
}

body[data-page-kind] .card-1:hover {
  box-shadow: var(--shadow-card-hover);
}

body[data-page-kind] .card-body {
  padding: 1rem 1.1rem;
}

body[data-page-kind] .btn,
body[data-page-kind] .badge,
body[data-page-kind] .page-link,
body[data-page-kind] .form-control,
body[data-page-kind] .list-group-item {
  border-radius: 12px;
}

body[data-page-kind] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body[data-page-kind] .btn:hover,
body[data-page-kind] .btn:focus {
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(54, 137, 230, 0.12);
}

body[data-page-kind] .btn-sm {
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  font-size: 0.84rem;
}

body[data-page-kind] .btn-md {
  min-height: 2.1rem;
  padding: 0.35rem 0.82rem;
}

body[data-page-kind] .btn-light {
  border-color: var(--border-color);
  background: var(--bg-surface-2);
  color: #273445;
}

body[data-page-kind] .btn-link {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--accent-color);
}

body[data-page-kind] .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  line-height: 1.1;
  font-weight: 600;
}

body[data-page-kind] .badge-pill {
  border-radius: 999px;
}

body[data-page-kind] .badge-primary {
  background-color: #0d52bf;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

body[data-page-kind] .badge-light {
  background: var(--bg-surface-2);
  border-color: var(--border-color);
  color: #273445;
}

body[data-page-kind] .badge-warning {
  background: #f6ede0;
  color: #7a5731;
}

body[data-page-kind] .form-control {
  display: block;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: inherit;
}

body[data-page-kind] .form-control:focus {
  outline: none;
  border-color: #8fb3ea;
  box-shadow: 0 0 0 3px rgba(13, 82, 191, 0.12);
}

body[data-page-kind] .form-control-sm {
  min-height: 2.2rem;
  padding: 0.42rem 0.75rem;
  font-size: 0.9rem;
}

body[data-page-kind] .navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

body[data-page-kind] .navbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

body[data-page-kind] .navbar-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0.45rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-surface);
  color: inherit;
}

body[data-page-kind] .collapse {
  display: none;
  width: 100%;
}

body[data-page-kind] .navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
}

body[data-page-kind] .collapse.show {
  display: block;
}

body[data-page-kind] .list-group {
  display: grid;
  gap: 0.65rem;
}

body[data-page-kind] .list-group-item {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: inherit;
}

body[data-page-kind] .list-group-item-action:hover,
body[data-page-kind] .list-group-item-action:focus {
  border-color: #b9cbe2;
  background: var(--bg-surface-2);
  text-decoration: none;
}

body[data-page-kind] .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

body[data-page-kind] .page-item.disabled .page-link,
body[data-page-kind] .page-item.active .page-link {
  cursor: default;
}

body[data-page-kind] .page-item.active .page-link {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

body[data-page-kind] .page-item.disabled .page-link {
  opacity: 0.55;
}

body[data-page-kind] .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  min-width: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: inherit;
}

body[data-page-kind] .alert {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

body[data-page-kind] .alert-danger {
  border-color: #e6b6bc;
  background: #fbf0f2;
  color: #8c2f40;
}

body[data-page-kind] .spinner-border {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 0.22rem solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: mley-spinner 0.8s linear infinite;
}

@keyframes mley-spinner {
  to {
    transform: rotate(360deg);
  }
}

body[data-page-kind] .table {
  width: 100%;
  border-collapse: collapse;
}

body[data-page-kind] .table th,
body[data-page-kind] .table td {
  padding: 0.75rem;
  vertical-align: middle;
}

body[data-page-kind] .table-hover tbody tr:hover td {
  background: rgba(13, 82, 191, 0.03);
}

body[data-page-kind] .table-borderless th,
body[data-page-kind] .table-borderless td {
  border: 0;
}

.mley-navbar-shell {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
}

.mley-nav-group,
.mley-navbar__primary {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
}

.mley-navbar__theme-group {
  flex: 0 0 auto;
}

.mley-navbar__toggler {
  margin-left: auto;
}

.mley-navbar__panel {
  display: none;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  order: 10;
  align-items: center;
  gap: 0.85rem;
}

.mley-navbar__panel.is-open {
  display: block;
}

.mley-navbar__panel > * {
  min-width: 0;
}

.mley-navbar__brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-right: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  flex: 0 0 auto;
}

.mley-navbar__theme-mobile {
  width: 100%;
  margin-bottom: 0.5rem;
}

.mley-navbar__theme-mobile .mley-nav-button {
  width: 100%;
  justify-content: center;
}

.mley-desktop-only {
  display: none;
}

.mley-mobile-only {
  display: block;
}

.the-blur {
  display: none;
}

.mley-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mley-nav-button:hover,
.mley-nav-button:focus {
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(54, 137, 230, 0.12);
}

.mley-nav-button--sm {
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  font-size: 0.84rem;
}

.mley-field {
  display: block;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: inherit;
  font: inherit;
}

.mley-field:focus {
  outline: none;
  border-color: #8fb3ea;
  box-shadow: 0 0 0 3px rgba(13, 82, 191, 0.12);
}

.mley-field--sm {
  min-height: 2.2rem;
  padding: 0.42rem 0.75rem;
  font-size: 0.9rem;
}

.mley-brandmark,
.mley-brandmark b,
.mley-inline-brand,
.mley-brand-icon {
  color: var(--brand-color) !important;
}

.mley-btn-ghost,
.mley-btn-accent {
  border-radius: 999px !important;
}

.mley-btn-ghost {
  border-color: #343a40 !important;
  background: transparent !important;
  color: #343a40 !important;
}

.mley-btn-ghost:hover,
.mley-btn-ghost:focus {
  background: #343a40 !important;
  color: #fff !important;
}

.mley-btn-accent {
  border-color: var(--accent-color) !important;
  background: transparent !important;
  color: var(--accent-color) !important;
}

.mley-btn-accent:hover,
.mley-btn-accent:focus {
  background: var(--accent-color) !important;
  color: #fff !important;
}

.mley-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.1rem;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0.35rem !important;
}

.mley-theme-toggle .theme-toggle__label {
  font-size: 0.82rem;
}

.mley-header-search {
  flex: 1 1 34rem;
  min-width: 0;
  margin: 0 0.35rem;
}

.mley-header-search__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.mley-header-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  border-radius: 999px !important;
}

.mley-header-search__select {
  flex: 0 0 18rem;
  border-radius: 999px !important;
}

.mley-header-search__submit {
  white-space: nowrap;
}

.sidebar-wrapper {
  width: 219px;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  position: fixed;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.14), 0 3px 3px -2px rgba(0, 0, 0, 0.2), 0 1px 8px rgba(0, 0, 0, 0.12);
}

.sidebar-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-wrapper a {
  text-decoration: none;
}

.sidebar-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  position: relative;
}

.sidebar-wrapper .sidebar-brand {
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.sidebar-wrapper .sidebar-header,
.sidebar-wrapper .sidebar-menu {
  border-top: 1px solid rgba(39, 52, 69, 0.08);
}

.sidebar-wrapper .sidebar-brand > *:first-child {
  flex-grow: 1;
}

.sidebar-wrapper .sidebar-header {
  padding: 20px;
  overflow: hidden;
}

.sidebar-wrapper .sidebar-header .user-info > span {
  display: block;
}

.sidebar-wrapper .sidebar-header .user-role {
  font-size: 12px;
}

.sidebar-wrapper .sidebar-header .user-status {
  font-size: 11px;
  margin-top: 4px;
}

.sidebar-wrapper .sidebar-header .user-status i {
  font-size: 8px;
  margin-right: 4px;
  color: #5cb85c;
}

.mley-status-dot-pending {
  color: #f9c440 !important;
}

.sidebar-wrapper .sidebar-menu {
  padding-bottom: 10px;
}

.sidebar-wrapper .sidebar-menu .header-menu span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 15px 20px 5px;
  font-size: 14px;
  font-weight: 700;
  color: #273445;
}

.sidebar-wrapper .sidebar-menu ul li a {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 8px 30px 8px 20px;
  font-size: 13px;
  color: inherit;
}

.sidebar-wrapper .sidebar-menu ul li a i {
  margin-right: 10px;
}

.sidebar-status-block {
  padding: 6px 16px 4px;
}

.sidebar-status-card {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--bg-surface-3) 100%);
}

.sidebar-status-card--compact {
  display: grid;
  gap: 0.75rem;
}

.sidebar-status-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5f6b7a;
}

.sidebar-status-value {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: #273445;
}

.sidebar-status-inline {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  line-height: 1.45;
}

.sidebar-status-log {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.sidebar-status-logline,
.sidebar-status-entry,
.sidebar-status-muted {
  font-size: 0.78rem;
  line-height: 1.45;
}

.sidebar-status-logline {
  color: #314150;
}

.sidebar-status-muted {
  color: var(--text-muted);
}

.sidebar-status-note + .sidebar-status-note {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.sidebar-status-link {
  display: block;
  color: #223547;
  font-size: 0.82rem;
  font-weight: 600;
}

.sidebar-status-link:hover,
.sidebar-status-link:focus {
  color: var(--brand-color);
  text-decoration: none;
}

.sidebar-status-link--graph {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfe0fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf4ff 0%, #f7fbff 100%);
  color: #2253a4;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-status-link--graph:hover,
.sidebar-status-link--graph:focus {
  color: #173d80;
  border-color: #b7cff8;
  background: linear-gradient(135deg, #dfeeff 0%, #edf5ff 100%);
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown > a::after {
  content: "›";
  position: absolute;
  right: 15px;
  top: 9px;
  font-weight: 700;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown .sidebar-submenu {
  display: none;
}

.sidebar-wrapper .sidebar-menu .sidebar-dropdown.active > a::after {
  transform: rotate(90deg);
}

.sidebar-footer {
  width: 100%;
  margin-top: auto;
  display: flex;
  min-height: 44px;
  background: var(--bg-surface);
  box-shadow: -3px -3px 3px -3px rgba(0, 0, 0, 0.44);
}

.sidebar-footer > a {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: inherit;
}

.mley-sidebar-official-links {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.8rem;
}

.mley-sidebar-official-links__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mley-sidebar-official-links__item {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem !important;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-surface-2) 0%, var(--bg-surface-3) 100%);
  color: #223547;
  font-size: 0.8rem;
  font-weight: 600;
}

.mley-sidebar-official-links__item i {
  width: 0.95rem;
  color: var(--brand-color);
  text-align: center;
}

.mley-sidebar-official-links__item:hover,
.mley-sidebar-official-links__item:focus {
  color: #1b2d40;
  background: #eef4fb;
  border-color: #c8d6e5;
  text-decoration: none;
}

.mley-breadcrumbs-shell {
  display: block;
}

.mley-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f6fa 100%);
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.mley-breadcrumbs .breadcrumb-item {
  display: inline-flex;
  align-items: center;
  color: #5d6d85;
}

.mley-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding-right: 0.35rem;
  color: #93a1b2;
}

.mley-breadcrumbs .breadcrumb-item a {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
  color: #4a5c72;
}

.mley-breadcrumbs .breadcrumb-item a:hover,
.mley-breadcrumbs .breadcrumb-item a:focus {
  background: rgba(31, 44, 61, 0.08);
  color: #1f2c3d;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(54, 137, 230, 0.12);
}

.mley-breadcrumbs .breadcrumb-item.active {
  font-weight: 600;
  color: #202734;
}

.txt-popovers {
  font-style: normal;
  cursor: pointer;
  color: #268bd2 !important;
}

.mley-inline-trigger,
.mley-sidebar-close {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mley-inline-badge-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white !important;
  border: 0 !important;
  padding: 0.15rem 0.5rem !important;
  line-height: 1.1;
}

.mley-inline-icon-link {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.mley-inline-icon-link + .mley-inline-icon-link {
  margin-left: 0.2rem;
}

.mley-inline-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  font-size: 1.7rem;
  line-height: 1;
}

.mley-support-grid {
  margin-top: 0;
}

.mley-card-link,
.mley-table-link {
  display: block;
  color: inherit !important;
  text-decoration: none !important;
}

.mley-support-badge {
  font-size: 11px;
}

.mley-ad-shell {
  margin: 1rem 0 1.25rem;
}

.mley-ad-shell__label {
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f7f90;
}

.mley-ad-shell__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid rgba(39, 52, 69, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
}

.mley-ad-shell__frame::before {
  content: "Espacio reservado para anuncio";
  display: block;
  padding: 1rem;
  font-size: 0.9rem;
  color: #8a97a6;
}

.mley-ad-shell__frame[data-ad-slot-state="requested"]::before,
.mley-ad-shell__frame[data-ad-slot-state="rendered"]::before {
  display: none;
}

.mley-ad-shell--banner .mley-ad-shell__frame {
  min-height: 124px;
}

.mley-ad-shell--rectangle .mley-ad-shell__frame {
  min-height: 304px;
}

.mley-table-shell {
  margin: 1rem 0 1.25rem;
  width: 100%;
  max-width: 100%;
}

.mley-table-scroll {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #d6dde6;
  border-radius: 14px;
  background: var(--bg-surface);
}

.mley-table {
  width: max-content;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.35;
}

.mley-table td,
.mley-table th {
  border: 1px solid #d6dde6;
  padding: 0.45rem 0.6rem;
  vertical-align: top;
}

.mley-table tr:nth-child(-n+2) td,
.mley-table th {
  background: #f6f8fb;
  font-weight: 700;
  text-align: center;
}

.mley-list {
  margin: 0.85rem 0 1rem 1.4rem;
  padding-left: 1.15rem;
  line-height: 1.65;
}

.mley-list-item {
  margin: 0.28rem 0;
  padding-left: 0.2rem;
}

.mley-list .mley-list {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  margin-left: 0.35rem;
}

.mley-list-roman {
  list-style-type: upper-roman;
}

.mley-list-upper-alpha {
  list-style-type: upper-alpha;
}

.mley-list-lower-alpha {
  list-style-type: lower-alpha;
}

.mley-list-decimal {
  list-style-type: decimal;
}

.mley-list-generic,
.mley-list-apartado {
  list-style-type: disc;
}

.p-share {
  margin: -0.35rem 0 0;
  text-align: right;
}

.p-share button,
.p-share .badge-light,
.p-share .btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  line-height: 1;
}

.mley-canonical-article-share-row {
  display: flex;
  justify-content: flex-end;
  margin: -0.35rem 0 1rem;
}

.mley-canonical-article-share-row .p-share {
  margin: 0;
}

.mley-canonical-article-share-trigger,
.mley-share-trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

.mley-article-card-footer {
  margin: 0.9rem -1rem -1rem;
  padding: 0.6rem 1rem 0.35rem;
  border-top: 1px solid rgba(39, 52, 69, 0.08);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.mley-article-card-footer-col {
  display: flex;
  align-items: center;
}

.mley-article-card-footer-center {
  gap: 0.45rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  text-align: right;
}

.mley-article-card-footer-right {
  justify-content: flex-end;
}

.mley-article-backrefs-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #d3b48b;
  background: #f6ede0;
  color: #7a5731 !important;
  font-weight: 600;
  white-space: nowrap;
}

.mley-article-backrefs-indicator-muted {
  border-color: #dccab2;
  background: #f3ede5;
  color: #8d765a !important;
}

.mley-oaj-article-search-trigger {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-2);
  color: #425468 !important;
  text-align: center;
  font-weight: 600;
}

.mley-footer-label-mobile {
  display: none;
}

.mley-footer-label-desktop {
  display: inline;
}

#msg {
  display: none;
}

.js #msg.mley-loading-active {
  display: block;
  position: fixed;
  top: 4.75rem;
  left: 0;
  right: 0;
  z-index: 1002;
  pointer-events: none;
}

.js #body.mley-loading-active {
  display: block !important;
}

.mley-modal-title {
  font-size: 22px;
  display: inline;
  padding-left: 1em;
}

.mley-modal-law-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.mley-modal-paragraph-icon {
  color: #268bd2;
}

.getSticky-bc {
  position: sticky;
  top: -17px;
}

body[data-page-kind] .mley-search-hit {
  font-weight: 700;
  border-radius: 0.3rem;
  padding: 0 0.12em;
  color: #273445;
  background-color: #f6df9a;
}

:root[data-theme="dark"] body {
  background-color: var(--bg-body);
  color: var(--text-color);
}

:root[data-theme="dark"] mark {
  background-color: #4b3b24;
  color: var(--text-color);
}

:root[data-theme="dark"] .fixed-header {
  background-color: rgba(23, 33, 43, 0.92);
  border-bottom-color: var(--border-color);
}

:root[data-theme="dark"] .txt-popovers {
  color: var(--accent-color) !important;
}

:root[data-theme="dark"] .sidebar-wrapper,
:root[data-theme="dark"] .sidebar-footer {
  background: var(--bg-surface);
}

:root[data-theme="dark"] .sidebar-wrapper .sidebar-header,
:root[data-theme="dark"] .sidebar-wrapper .sidebar-menu {
  border-top-color: rgba(201, 214, 228, 0.08);
}

:root[data-theme="dark"] .sidebar-status-card,
:root[data-theme="dark"] .mley-sidebar-official-links__item,
:root[data-theme="dark"] .mley-breadcrumbs {
  border-color: var(--border-color);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
}

:root[data-theme="dark"] .sidebar-status-value,
:root[data-theme="dark"] .sidebar-status-link,
:root[data-theme="dark"] .mley-sidebar-official-links__item {
  color: var(--text-color);
}

:root[data-theme="dark"] body[data-page-kind] .card {
  background: var(--bg-surface);
  border-color: var(--border-color);
}

:root[data-theme="dark"] body[data-page-kind] .badge-light,
:root[data-theme="dark"] body[data-page-kind] .btn-light,
:root[data-theme="dark"] body[data-page-kind] .form-control,
:root[data-theme="dark"] body[data-page-kind] .list-group-item,
:root[data-theme="dark"] body[data-page-kind] .page-link,
:root[data-theme="dark"] .mley-table-scroll {
  background: var(--bg-surface-2);
  border-color: var(--border-color);
  color: var(--text-color);
}

:root[data-theme="dark"] .mley-btn-ghost {
  border-color: #3a4d5f !important;
  color: var(--text-color) !important;
}

:root[data-theme="dark"] .mley-btn-ghost:hover,
:root[data-theme="dark"] .mley-btn-ghost:focus {
  background: #263645 !important;
}

:root[data-theme="dark"] .mley-btn-accent:hover,
:root[data-theme="dark"] .mley-btn-accent:focus {
  background: rgba(143, 193, 255, 0.12) !important;
  color: #b6d5ff !important;
}

:root[data-theme="dark"] .mley-ad-shell__label,
:root[data-theme="dark"] .sidebar-status-kicker {
  color: #9fb0c1;
}

:root[data-theme="dark"] .mley-ad-shell__frame {
  border-color: rgba(159, 176, 193, 0.14);
  background: linear-gradient(180deg, rgba(29, 41, 53, 0.98), rgba(21, 31, 41, 0.98));
}

:root[data-theme="dark"] .mley-ad-shell__frame::before {
  color: #7f93a7;
}

:root[data-theme="dark"] .mley-search-hit {
  color: #f6e7c8;
  background-color: #7a5a2b;
}

:root[data-theme="dark"] .mley-article-card-footer {
  border-top-color: rgba(201, 214, 228, 0.08);
}

:root[data-theme="dark"] .mley-article-backrefs-indicator {
  border-color: #8f6a3d;
  background: #4c3920;
  color: #f0cf9d !important;
}

:root[data-theme="dark"] .mley-article-backrefs-indicator-muted {
  border-color: #5e5141;
  background: #3a3229;
  color: #bba992 !important;
}

:root[data-theme="dark"] .mley-oaj-article-search-trigger {
  border-color: #49627a;
  background: #243241;
  color: #d6e0ea !important;
}

@media (min-width: 768px) {
  .d-md-inline-flex {
    display: inline-flex !important;
  }

  .d-md-none {
    display: none !important;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
  }

  .mley-desktop-only {
    display: inline-flex;
  }

  .mley-mobile-only {
    display: none !important;
  }

  .mley-navbar-shell {
    flex-wrap: nowrap;
  }

  .mley-navbar__toggler {
    display: none !important;
  }

  .mley-navbar__panel {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    width: auto;
    order: 0;
  }
}

@media (min-width: 992px) {
  .mley-ad-shell--banner .mley-ad-shell__frame {
    min-height: 138px;
  }

  .mley-ad-shell--rectangle .mley-ad-shell__frame {
    min-height: 328px;
  }
}

@media only screen and (min-width: 1081px) {
  .slideout-panel,
  #panel {
    margin-left: 220px;
  }

  .slideout-menu {
    display: block;
  }

  #mley-nav-sidebar-toggle,
  .sidebar-wrapper .sidebar-brand #mley-sidebar-close {
    display: none;
  }
}

@media only screen and (max-width: 1080px) {
  html.mley-sidebar-open,
  body.mley-sidebar-open {
    overflow: hidden;
  }

  #panel {
    margin-left: 0 !important;
  }

  #menu.slideout-menu {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1105;
    pointer-events: none;
    background: transparent;
  }

  #menu.slideout-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(17, 24, 39, 0.38);
    backdrop-filter: blur(2px);
    transition: opacity 220ms ease;
  }

  body.mley-sidebar-open #menu.slideout-menu {
    pointer-events: auto;
  }

  body.mley-sidebar-open #menu.slideout-menu::before {
    opacity: 1;
  }

  #menu .page-wrapper {
    height: 100%;
  }

  #sidebar.sidebar-wrapper {
    width: min(86vw, 320px);
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    transform: translateX(calc(-100% - 12px));
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
    box-shadow: 0 20px 40px rgba(5, 45, 73, 0.16);
    z-index: 1;
  }

  body.mley-sidebar-open #sidebar.sidebar-wrapper {
    transform: translateX(0);
  }

  .sidebar-wrapper .sidebar-brand {
    min-height: 58px;
    padding: 12px 16px;
  }

  .sidebar-wrapper .sidebar-brand #mley-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-surface-2);
  }

  .sidebar-wrapper .sidebar-header {
    padding: 16px;
  }

  .sidebar-wrapper .sidebar-menu .header-menu span {
    padding: 14px 16px 6px;
  }

  .sidebar-wrapper .sidebar-menu ul li a {
    padding: 10px 18px 10px 16px;
    font-size: 14px;
  }

  .sidebar-status-block {
    padding: 6px 12px 4px;
  }

  .sidebar-footer {
    border-top: 1px solid var(--border-color);
  }

  :root[data-theme="dark"] #menu.slideout-menu::before {
    background: rgba(2, 6, 12, 0.54);
  }
}

@media (max-width: 767.98px) {
  .mley-navbar-shell {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
  }

  .mley-navbar__primary {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mley-navbar__toggler {
    padding: 0.35rem;
  }

  .mley-navbar__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0.7rem;
    right: 0.7rem;
    z-index: 1015;
    margin-top: 0;
    padding: 0.9rem;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    align-items: stretch;
  }

  .mley-navbar__panel.is-open {
    display: block;
  }

  :root[data-theme="dark"] .mley-navbar__panel {
    border-color: #314150;
    background: rgba(31, 43, 56, 0.98);
  }

  .mley-page-offset {
    padding-top: 4.5rem;
  }

  .mley-header-search__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .mley-header-search__select {
    flex: 1 1 100%;
  }

  .mley-footer-label-desktop {
    display: none;
  }

  .mley-footer-label-mobile {
    display: inline;
  }
}
