
pre.highlight,
.highlight pre {
  max-height: 30rem;
  margin: 1.5rem 0;
  overflow: auto;
  border-radius: 4px;
}
pre.highlight::-webkit-scrollbar,
.highlight pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}
@media (prefers-reduced-motion: reduce) {
  pre.highlight::-webkit-scrollbar,
.highlight pre::-webkit-scrollbar {
    -webkit-transition: none;
    transition: none;
  }
}
pre.highlight::-webkit-scrollbar-thumb,
.highlight pre::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: rgba(var(--AppCommonUI-body-color-rgb), 0.16);
}
pre.highlight::-webkit-scrollbar-track,
.highlight pre::-webkit-scrollbar-track {
  background: rgba(var(--AppCommonUI-body-color-rgb), 0.06);
}
pre.highlight:hover::-webkit-scrollbar-thumb,
.highlight pre:hover::-webkit-scrollbar-thumb {
  background: rgba(var(--AppCommonUI-body-color-rgb), 0.32);
}
pre.highlight::-webkit-scrollbar-corner,
.highlight pre::-webkit-scrollbar-corner {
  background: transparent;
}

.highlight {
  margin: 0;
}
.highlight code > * {
  margin: 0 !important;
  padding: 0 !important;
}
.highlight .dl {
  color: #4070a0;
}
.highlight .c {
  color: #727272;
}
.highlight .c1 {
  color: #727272;
}
.highlight .ch {
  font-style: italic;
  color: #60a0b0;
}
.highlight .cm {
  color: #727272;
}
.highlight .cp {
  color: #008085;
}
.highlight .cpf {
  color: #007020;
}
.highlight .cs {
  color: #727272;
}
.highlight .gd {
  background-color: #fcc;
  border: 1px solid #c00;
}
.highlight .ge {
  font-style: italic;
}
.highlight .gh {
  color: #030;
}
.highlight .gi {
  background-color: #cfc;
  border: 1px solid #0c0;
}
.highlight .gl {
  text-decoration: underline;
}
.highlight .go {
  color: #aaa;
}
.highlight .gp {
  color: #009;
}
.highlight .gr {
  color: #f00;
}
.highlight .gs {
  font-weight: 700;
}
.highlight .gt {
  color: #9c6;
}
.highlight .gu {
  color: #030;
}
.highlight .il {
  color: #c24f19;
}
.highlight .k {
  color: #069;
}
.highlight .kc {
  color: #069;
}
.highlight .kd {
  color: #069;
}
.highlight .kn {
  color: #069;
}
.highlight .kp {
  color: #069;
}
.highlight .kr {
  color: #069;
}
.highlight .kt {
  color: #078;
}
.highlight .m {
  color: #c24f19;
}
.highlight .mf {
  color: #c24f19;
}
.highlight .mb {
  color: #40a070;
}
.highlight .mh {
  color: #c24f19;
}
.highlight .mi {
  color: #c24f19;
}
.highlight .mo {
  color: #c24f19;
}
.highlight .na {
  color: #006ee0;
}
.highlight .nb {
  color: #366;
}
.highlight .nc {
  color: #168174;
}
.highlight .nd {
  color: #6b62de;
}
.highlight .ne {
  color: #c00;
}
.highlight .nf {
  color: #b715f4;
}
.highlight .ni {
  color: #727272;
}
.highlight .nl {
  color: #6b62de;
}
.highlight .nn {
  color: #007ca5;
}
.highlight .no {
  color: #360;
}
.highlight .nt {
  color: #2f6f9f;
}
.highlight .nv {
  color: #033;
}
.highlight .o {
  color: #555;
}
.highlight .ow {
  color: #000;
}
.highlight .s {
  color: #d73038;
}
.highlight .s1 {
  color: #c30;
}
.highlight .s2 {
  color: #c30;
}
.highlight .sa {
  color: #4070a0;
}
.highlight .sb {
  color: #c30;
}
.highlight .sc {
  color: #c30;
}
.highlight .sd {
  font-style: italic;
  color: #c30;
}
.highlight .se {
  color: #c30;
}
.highlight .sh {
  color: #c30;
}
.highlight .si {
  color: #a00;
}
.highlight .sr {
  color: #337e7e;
}
.highlight .ss {
  color: #fc3;
}
.highlight .sx {
  color: #c30;
}
.highlight .w {
  color: #bbb;
}
.highlight .language-bash::before, .highlight .language-sh::before {
  color: #009;
  content: "$ ";
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.highlight .language-bash .m, .highlight .language-sh .m {
  color: inherit;
}
.highlight .language-powershell::before {
  color: #009;
  content: "PM> ";
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.example {
  padding: 2rem;
  margin: 1rem 0 2rem;
  border: 1px solid #e6e7e9;
  border-radius: 3px 3px 0 0;
  position: relative;
  min-height: 12rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
}

.example-centered {
  justify-content: center;
}
.example-centered .example-content {
  flex: 0 auto;
}

.example-content {
  font-size: 0.875rem;
  line-height: 1.4285714286;
  color: #1e293b;
  flex: 1;
  max-width: 100%;
}
.example-content .page-header {
  margin-bottom: 0;
}

.example-bg {
  background: #f5f7fb;
}

.example-code {
  margin: 2rem 0;
  border: 1px solid #e6e7e9;
  border-top: none;
}
.example-code pre {
  margin: 0;
  border: 0;
  border-radius: 0 0 3px 3px;
}
.example + .example-code {
  margin-top: -2rem;
}

.example-column {
  margin: 0 auto;
}
.example-column > .card:last-of-type {
  margin-bottom: 0;
}

.example-column-1 {
  max-width: 26rem;
}

.example-column-2 {
  max-width: 52rem;
}

.example-modal-backdrop {
  background: #1e293b;
  opacity: 0.24;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 2px 2px 0 0;
}

@media not print {
  .theme-dark .example {
    background-color: #1b2434;
    border-color: #2c3c56;
  }
  .theme-dark .example-content {
    color: #fafbfc;
  }
  .theme-dark .example-code {
    border-color: #2c3c56;
    border-top: none;
  }
}
@media not print {
  @media (prefers-color-scheme: dark) {
    .theme-dark-auto .example {
      background-color: #1b2434;
      border-color: #2c3c56;
    }
    .theme-dark-auto .example-content {
      color: #fafbfc;
    }
    .theme-dark-auto .example-code {
      border-color: #2c3c56;
      border-top: none;
    }
  }
}
.card-sponsor {
  background: #dbe7f6 no-repeat center/100% 100%;
  border-color: #548ed2;
  min-height: 316px;
}

body.no-transitions * {
  transition: none !important;
}

.dropdown-menu-demo {
  display: inline-block;
  width: 100%;
  position: relative;
  top: 0;
  margin-bottom: 1rem;
}

.demo-icon-preview {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}
.demo-icon-preview svg,
.demo-icon-preview i {
  width: 15rem;
  height: 15rem;
  font-size: 15rem;
  stroke-width: 1.5;
  margin: 0 auto;
  display: block;
}
@media (max-width: 575.98px) {
  .demo-icon-preview svg,
.demo-icon-preview i {
    width: 10rem;
    height: 10rem;
    font-size: 10rem;
  }
}

.demo-icon-preview-icon pre {
  margin: 0;
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
}

.demo-dividers > p {
  opacity: 0.2;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.demo-icons-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 -2px -1px 0;
  list-style: none;
}
.demo-icons-list > * {
  flex: 1 0 4rem;
}

.demo-icons-list-wrap {
  overflow: hidden;
}

.demo-icons-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid var(--AppCommonUI-border-color);
  border-bottom: 1px solid var(--AppCommonUI-border-color);
  color: inherit;
  cursor: pointer;
}
.demo-icons-list-item .icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
}
.demo-icons-list-item:hover {
  text-decoration: none;
}

.settings-btn {
  position: fixed;
  right: -1px;
  top: 10rem;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: rgba(30, 41, 59, 0.04) 0 2px 4px 0;
}

.settings-scheme {
  display: inline-block;
  border-radius: 50%;
  height: 3rem;
  width: 3rem;
  position: relative;
  border: 1px solid var(--AppCommonUI-border-color);
  box-shadow: rgba(30, 41, 59, 0.04) 0 2px 4px 0;
}
.settings-scheme-light {
  background: linear-gradient(135deg, #ffffff 50%, #fafbfc 50%);
}
.settings-scheme-mixed {
  background-image: linear-gradient(135deg, #1e293b 50%, #fff 50%);
}
.settings-scheme-transparent {
  background: #fafbfc;
}
.settings-scheme-dark {
  background: #1e293b;
}
.settings-scheme-colored {
  background-image: linear-gradient(135deg, var(--AppCommonUI-primary) 50%, #fafbfc 50%);
}

.tag.tag-sm, .btn-group-sm > .tag {
    padding: 5px 10px;
}

.tag:not(.label) {
    background-color: #fff;
    padding: 6px 12px;
    border-radius: 2px;
    border: 1px solid #cdd6e1;
    font-size: 12px;
    line-height: 1.42857;
    vertical-align: middle;
    -webkit-transition: all .15s;
    transition: all .15s;
}

.media-block .media-left {
    display: block;
    float: left
}

.media-block .media-right {
    float: right
}

.media-body {
    padding-left: 20px;
}

.media-block .media-body {
    display: block;
    overflow: hidden;
    width: auto
}

.middle .media-left,
.middle .media-right,
.middle .media-body {
    vertical-align: middle
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.cursor-pointer {
    cursor: pointer;
}
.tableFixHead {
    overflow: auto;
    min-height: 270px;
    max-height: 340px;
}

    .tableFixHead thead th {
        position: sticky;
        top: 0;
        z-index: 1;
    }

object {
    width: 98vw;
    height: 89vh;
    border: none;
}

.btn-close-red {
    background-color: red;
    filter: invert(1%) sepia(92%) saturate(6387%) hue-rotate(0deg) brightness(92%) contrast(126%);
    opacity: 1
}

/* ==========================================================================
   App.Common.UI — shared app patterns (data tables, charts, widgets, etc.)
   ========================================================================== */

.app-chart-container {
  height: 280px;
  position: relative;
}

[data-kpi-card].is-loading {
  opacity: 0.55;
  pointer-events: none;
}

[data-kpi-card].is-loading [data-kpi],
[data-kpi-card].is-loading [data-audit-kpi],
[data-kpi-card].is-loading .kpi-value {
  color: transparent !important;
  background: var(--color-surface-muted);
  border-radius: 0.375rem;
  min-width: 2.5rem;
  display: inline-block;
}

[data-kpi-card] .kpi-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.card .dataTables_wrapper .dataTables_info,
.card .dataTables_wrapper .dataTables_length,
.card .dataTables_wrapper .dataTables_filter {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.card .dataTables_wrapper .dataTables_paginate {
  padding: 0.75rem 1rem;
}

.card .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.375rem !important;
  border: 1px solid var(--color-border) !important;
  background: var(--color-surface-elevated) !important;
  color: var(--color-text) !important;
  margin-left: 0.25rem;
}

.card .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #fff !important;
}

.card table.dataTable thead th {
  background: var(--color-surface-muted);
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}

.card table.dataTable tbody td {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

.card table.dataTable tbody tr:hover td {
  background: var(--color-surface-muted);
}

.datatable-placeholder {
  padding: 0.75rem 1rem;
}

.datatable-placeholder .placeholder {
  height: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--tblr-danger, #d63939) 12%, var(--color-surface-elevated));
  color: var(--color-text);
  border: 1px solid color-mix(in srgb, var(--tblr-danger, #d63939) 35%, var(--color-border));
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.search-results-group {
  margin-bottom: 1.5rem;
}

.search-results-group__title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  background: var(--color-surface-elevated);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-result-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: var(--color-text);
}

.search-result-item__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.search-result-item__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--color-surface-elevated);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.pwa-install-banner__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 200px;
}

.pwa-install-banner__icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.pwa-install-banner__text {
  font-size: 0.875rem;
  color: var(--color-text);
}

.pwa-install-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 575.98px) {
  .pwa-install-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .pwa-install-banner__actions {
    justify-content: flex-end;
  }
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wizard-steps__item {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-surface-muted);
  font-size: 0.875rem;
}

.wizard-steps__item.active {
  background: var(--color-primary);
  color: #fff;
}

.meetings-calendar__weekdays,
.meetings-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.meetings-calendar__weekdays span {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--color-text-muted);
}

.meetings-calendar__day {
  min-height: 6rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  background: var(--color-surface);
}

.meetings-calendar__day-num {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.meetings-calendar__event {
  display: block;
  font-size: 0.7rem;
  padding: 2px 4px;
  margin-bottom: 2px;
  border-radius: 0.375rem;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  text-decoration: none;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.kanban-column {
  background: var(--color-surface-muted);
  border-radius: 0.5rem;
  min-height: 200px;
}

.kanban-column__header {
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
}

.kanban-column__body {
  padding: 0.5rem;
}

.kanban-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.kanban-card__title {
  font-weight: 600;
  font-size: 0.875rem;
}

.kanban-card__meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.minutes-editor__textarea {
  min-height: 420px;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

.member-avatar {
  font-size: 4rem;
  color: var(--color-text-muted);
}

.member-avatar__img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 50%;
}

.member-list-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

.member-list-photo--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.file-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  color: var(--color-text-muted);
}

.file-dropzone:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.file-dropzone--sm {
  padding: 0.75rem;
}

.navbar .notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(25%, -25%);
  min-width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.page-wrapper > .navbar,
.page-wrapper > .navbar .container-xl {
  overflow: visible;
}

.navbar .nav-item.dropdown .dropdown-menu {
  top: 100%;
  margin-top: 0.125rem;
  z-index: 1050;
}

.navbar .nav-item.dropdown .dropdown-menu.dropdown-menu-end {
  right: 0;
  left: auto;
}

.navbar-vertical .navbar-nav.flex-row {
  overflow: visible;
}

.navbar-vertical .navbar-nav.flex-row .nav-item.dropdown .dropdown-menu {
  top: 100%;
  right: 0;
  left: auto;
}

@media print {
  .navbar-vertical,
  .navbar:not(.d-print-none),
  .footer,
  .page-header__actions,
  .card .card-body.border-bottom {
    display: none !important;
  }
}

/* Page / section busy wait — CSS-only presentation; toggled via html.page-loading | html.is-busy */
.page-busy {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  background: color-mix(in srgb, var(--color-surface, #fff) 72%, transparent);
  backdrop-filter: blur(2px);
  cursor: wait;
}

html.page-loading,
html.is-busy {
  cursor: wait;
  pointer-events: none;
}

html.page-loading .page-busy,
html.is-busy .page-busy {
  display: grid;
}

.page-busy__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--color-surface-elevated, var(--color-surface, #fff));
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.12);
}

.page-busy__label {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted, #626976);
}

.section-busy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 6rem;
  padding: 1.5rem;
  color: var(--color-text-muted, #626976);
}

@media (prefers-reduced-motion: reduce) {
  .page-busy .spinner-border {
    animation-duration: 1.5s;
  }
}

@media print {
  .page-busy {
    display: none !important;
  }
}