/* Au cœur – intégration backoffice */
.logo-icon { width: 44px; height: 44px; }
.sidebar-logo { padding: 24px 24px 18px; }
.sidebar-menu > li > a,
.sidebar-submenu li a,
.sidebar-menu-group-title { font-weight: 500; }
.sidebar-menu > li.active-page > a,
.sidebar-menu > li > a.active-page,
.sidebar-submenu li a.active-page,
.sidebar-menu .dropdown > a.active-page {
  background: var(--primary-600);
  color: #fff !important;
  box-shadow: none;
}
.sidebar-menu > li.active-page > a .menu-icon,
.sidebar-menu > li > a.active-page .menu-icon,
.sidebar-menu .dropdown > a.active-page .menu-icon,
.sidebar-submenu li a.active-page .circle-icon { color:#fff !important; }

.navbar-search--live {
  position: relative;
  min-width: min(420px, 56vw);
  max-width: 560px;
  width: 100%;
}
.navbar-search--live input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  padding: 0 16px 0 48px;
}
.navbar-search--live .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.58);
}
.navbar-search--live input::placeholder { color: rgba(255,255,255,.42); }

.theme-customization__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.theme-customization-sidebar .card a { color: var(--neutral-700); }
html[data-theme="dark"] .theme-customization-sidebar .card a { color: rgba(255,255,255,.86); }

.dashboard-main-body .panel,
.dashboard-main-body .card,
.dashboard-main-body .module-overview-card,
.dashboard-main-body table,
.dashboard-main-body .release-notes-box {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17,24,39,.05);
}
.dashboard-main-body .panel { padding: 24px; margin-bottom: 24px; }
.dashboard-main-body .panel-header {
  display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom: 18px; flex-wrap:wrap;
}
.dashboard-main-body .muted { color: var(--neutral-500); font-size: .92rem; }
.dashboard-main-body .actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:16px; }
.dashboard-main-body .actions.mt-0 { margin-top: 0; }
.dashboard-main-body .button,
.dashboard-main-body button,
.dashboard-main-body input[type='submit'] {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:12px; border:1px solid transparent;
  background: var(--primary-600); color:#fff; padding: 10px 18px; text-decoration:none; font-weight:600; cursor:pointer; min-height:44px;
}
.dashboard-main-body .button.secondary { background: var(--neutral-200); color: var(--neutral-700); }
.dashboard-main-body .button.small,
.dashboard-main-body .danger.small { min-height: 34px; padding: 6px 12px; border-radius: 10px; font-size: .85rem; }
.dashboard-main-body .inline-form, .dashboard-main-body .stack-form, .dashboard-main-body .compact-form { display:flex; flex-wrap:wrap; gap:12px; }
.dashboard-main-body .stack-form { flex-direction:column; }
.dashboard-main-body .compact-form { gap:8px; }
.dashboard-main-body label { display:flex; flex-direction:column; gap:6px; color: var(--neutral-700); font-weight:500; }
.dashboard-main-body input[type='text'],
.dashboard-main-body input[type='email'],
.dashboard-main-body input[type='password'],
.dashboard-main-body input[type='date'],
.dashboard-main-body input[type='file'],
.dashboard-main-body select,
.dashboard-main-body textarea {
  width:100%; border:1px solid var(--neutral-300); background:#fff; border-radius:12px; padding: 11px 14px; min-height:44px;
}
.dashboard-main-body textarea { min-height: 120px; }
.dashboard-main-body table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; background:#fff; }
.dashboard-main-body th, .dashboard-main-body td { padding: 14px 16px; border-bottom:1px solid var(--neutral-200); vertical-align:middle; }
.dashboard-main-body thead th {
  background: rgba(255,255,255,.04);
  color: var(--neutral-600);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dashboard-main-body tbody tr:last-child td { border-bottom:0; }
.dashboard-main-body .pagination { display:flex; gap:12px; align-items:center; justify-content:flex-end; margin-top:18px; }
.dashboard-main-body .pagination a,
.dashboard-main-body .pagination span { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 14px; border-radius:10px; text-decoration:none; }
.dashboard-main-body .pagination a { background: var(--neutral-200); color: var(--neutral-700); }
.dashboard-main-body .pagination span { background: transparent; color: var(--neutral-600); }
.dashboard-main-body .table-meta-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.dashboard-main-body .table-meta-toolbar .inline-form { align-items:end; }
.dashboard-main-body .table-meta-toolbar .inline-form label { min-width:96px; }
.dashboard-main-body .table-actions-cell { width: 1%; white-space: nowrap; }
.dashboard-main-body .action-group { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.dashboard-main-body .action-group form { margin: 0; }
.dashboard-main-body .action-icon,
.dashboard-main-body .action-group form button.action-icon {
  width:40px; height:40px; min-height:40px; padding:0; border-radius:50%; border:none; display:inline-flex; align-items:center; justify-content:center; text-decoration:none;
}
.dashboard-main-body .action-icon.view { background: rgba(72, 127, 255, 0.16); color:#487fff; }
.dashboard-main-body .action-icon.edit { background: rgba(69, 201, 125, 0.16); color:#45c97d; }
.dashboard-main-body .action-icon.delete { background: rgba(255, 93, 93, 0.16); color:#ff5d5d; }
.dashboard-main-body .action-icon.confirm { background: rgba(72, 127, 255, 0.16); color:#487fff; }
.dashboard-main-body .action-group--triple { min-width: 140px; }
.dashboard-main-body .action-group--double { min-width: 90px; }
.dashboard-main-body .action-group--single { min-width: 40px; }

.dashboard-section-kicker {
  display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--warning-600);
}
.dashboard-section-title { font-size: 1rem; line-height: 1.35; font-weight: 700; margin: 0; }
.dashboard-section-copy { color: var(--neutral-500); max-width: 72ch; }
.dashboard-hero-card,
.dashboard-priority-card,
.module-overview-card {
  border-radius: 16px; padding: 24px; border: 1px solid var(--neutral-200); background: var(--white);
}
.dashboard-priority-list { margin: 0; padding-left: 18px; }
.dashboard-priority-list li { margin-bottom: 10px; }
.widget-card {
  border-radius: 16px; padding: 20px; border: 1px solid var(--neutral-200); display:flex; align-items:flex-start; gap:16px; background: var(--white);
}
.widget-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display:flex; align-items:center; justify-content:center; font-size: 1.5rem; flex: 0 0 auto;
}
.widget-card__title { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.widget-card__subtitle { color: var(--neutral-500); font-size: .82rem; margin-bottom: 10px; }
.widget-card__value { font-size: 1.6rem; font-weight: 700; margin-bottom: 0; }
.widget-card--primary .widget-card__icon { background: rgba(72,127,255,.16); color:#487fff; }
.widget-card--success .widget-card__icon { background: rgba(69,201,125,.16); color:#45c97d; }
.widget-card--warning .widget-card__icon { background: rgba(255,159,67,.16); color:#ff9f43; }
.widget-card--danger .widget-card__icon { background: rgba(255,93,93,.16); color:#ff5d5d; }
.widget-card--info .widget-card__icon { background: rgba(111,97,255,.16); color:#6f61ff; }
.module-overview-card__title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom: 14px; }
.module-overview-card__title h6 { margin:0; font-size: 1rem; font-weight:700; }
.module-overview-card ul { margin:0; padding-left: 18px; }
.module-overview-card li { margin-bottom: 8px; }
.widget-picker-card { display:block; margin:0; cursor:pointer; }
.widget-picker-card input { position:absolute; opacity:0; pointer-events:none; }
.widget-picker-card__inner { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.widget-picker-card input:checked + .widget-picker-card__inner { border-color: var(--primary-600); box-shadow: 0 0 0 3px rgba(72,127,255,.18); transform: translateY(-1px); }

.dashboard-main-body h1,
.dashboard-main-body .panel > h1,
.dashboard-main-body .panel-header h1 { font-size: 1.125rem !important; line-height:1.35; font-weight:700; margin-bottom:0; }
.dashboard-main-body h2,
.dashboard-main-body h3,
.dashboard-main-body h4,
.dashboard-main-body h5,
.dashboard-main-body h6 { font-size: 1rem; font-weight:700; }
.dashboard-main-body .source-badge { border-radius:999px; padding:4px 10px; font-size:.72rem; font-weight:700; background:var(--primary-50); color:var(--primary-700); }
.dashboard-main-body details.action-disclosure summary { list-style: none; cursor: pointer; }
.dashboard-main-body details.action-disclosure summary::-webkit-details-marker { display:none; }
.dashboard-main-body details.action-disclosure[open] summary { margin-bottom: 12px; }

html[data-theme="dark"] .dashboard-main-body,
html[data-theme="dark"] .dashboard-main-body h1,
html[data-theme="dark"] .dashboard-main-body h2,
html[data-theme="dark"] .dashboard-main-body h3,
html[data-theme="dark"] .dashboard-main-body h4,
html[data-theme="dark"] .dashboard-main-body h5,
html[data-theme="dark"] .dashboard-main-body h6,
html[data-theme="dark"] .dashboard-main-body p,
html[data-theme="dark"] .dashboard-main-body strong,
html[data-theme="dark"] .dashboard-main-body td,
html[data-theme="dark"] .dashboard-main-body label,
html[data-theme="dark"] .dashboard-main-body li { color: rgba(255,255,255,.88); }
html[data-theme="dark"] .dashboard-main-body .panel,
html[data-theme="dark"] .dashboard-main-body .card,
html[data-theme="dark"] .dashboard-main-body table,
html[data-theme="dark"] .dashboard-main-body .module-overview-card,
html[data-theme="dark"] .dashboard-main-body .widget-card,
html[data-theme="dark"] .dashboard-main-body .dashboard-hero-card,
html[data-theme="dark"] .dashboard-main-body .dashboard-priority-card,
html[data-theme="dark"] .dashboard-main-body .release-notes-box {
  background: var(--dark-2);
  border-color: rgba(255,255,255,.08);
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-main-body input[type='text'],
html[data-theme="dark"] .dashboard-main-body input[type='email'],
html[data-theme="dark"] .dashboard-main-body input[type='password'],
html[data-theme="dark"] .dashboard-main-body input[type='date'],
html[data-theme="dark"] .dashboard-main-body input[type='file'],
html[data-theme="dark"] .dashboard-main-body select,
html[data-theme="dark"] .dashboard-main-body textarea {
  background: var(--dark-3);
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}
html[data-theme="dark"] .dashboard-main-body thead th {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
}
html[data-theme="dark"] .dashboard-main-body th,
html[data-theme="dark"] .dashboard-main-body td { border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .dashboard-main-body .muted,
html[data-theme="dark"] .dashboard-main-body .dashboard-section-copy,
html[data-theme="dark"] .dashboard-main-body .widget-card__subtitle,
html[data-theme="dark"] .dashboard-main-body .text-secondary-light { color: rgba(255,255,255,.62) !important; }
html[data-theme="dark"] .dashboard-main-body .button.secondary,
html[data-theme="dark"] .dashboard-main-body .pagination a {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
}
html[data-theme="dark"] .dashboard-main-body .source-badge {
  background: rgba(72,127,255,.16);
  color: rgba(173,198,255,.92);
}
html[data-theme="dark"] .widget-picker-card input:checked + .widget-picker-card__inner { box-shadow: 0 0 0 3px rgba(72,127,255,.22); }

@media (max-width: 991.98px) {
  .navbar-search--live { min-width: 280px; max-width: 100%; }
}


/* v2.7e02 dashboard/search polish */
.dashboard-main .navbar-header { padding-bottom: 10px; }
.dashboard-main-body { padding-top: 12px; }
.navbar-search--live {
  display: inline-flex !important;
  align-items: center;
  width: min(360px, 36vw);
  min-width: 300px;
  max-width: 100%;
  margin-bottom: 0;
}
.navbar-search--live input {
  width: 100% !important;
}
.search-page-form {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-page-form input {
  flex: 1 1 auto;
}
.search-icon-button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-600);
  color: #fff;
  flex: 0 0 auto;
}
.search-icon-button iconify-icon { font-size: 1.05rem; }
.dashboard-main-body .basic-table tbody td,
.dashboard-main-body .basic-table thead th {
  vertical-align: middle;
}
html[data-theme="dark"] .dashboard-main-body .basic-table thead th {
  background: rgba(255,255,255,.04) !important;
  color: rgba(255,255,255,.72) !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
}
html[data-theme="dark"] .dashboard-main-body .basic-table tbody td {
  background: var(--dark-2) !important;
  color: rgba(255,255,255,.88) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
html[data-theme="dark"] .dashboard-main-body .basic-table tbody tr:last-child td {
  padding-bottom: .8125rem;
}
html[data-theme="dark"] .dashboard-main-body .basic-table.bordered-table {
  border-color: rgba(255,255,255,.08);
}
html[data-theme="dark"] .dashboard-main-body .basic-table .text-center,
html[data-theme="dark"] .dashboard-main-body .basic-table td.text-center {
  color: rgba(255,255,255,.72) !important;
}
@media (max-width: 1199.98px) {
  .navbar-search--live { width: min(320px, 42vw); min-width: 260px; }
}
@media (max-width: 991.98px) {
  .dashboard-main .navbar-header { padding-bottom: 0; }
  .dashboard-main-body { padding-top: 20px; }
  .navbar-search--live {
    width: 100%;
    min-width: 0;
  }
}


/* v2.7e03 search results table fit */
.search-results-panel .panel-header { margin-bottom: 12px; }
.search-results-table-wrap { overflow-x: hidden; }
.search-results-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}
.search-results-table col.col-id { width: 72px; }
.search-results-table col.col-actions { width: 150px; }
.search-results-table col.col-slug { width: 240px; }
.search-results-table col.col-email { width: 280px; }
.search-results-table th,
.search-results-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-results-table td.table-actions-cell,
.search-results-table th:last-child {
  text-align: center;
}
.search-results-table .action-group {
  justify-content: center;
  min-width: 0;
  flex-wrap: nowrap;
}
.search-results-table .action-group--double { min-width: 96px; }
.search-results-table .action-group--single { min-width: 40px; }
@media (max-width: 1199.98px) {
  .search-results-table col.col-email { width: 220px; }
  .search-results-table col.col-slug { width: 180px; }
}
@media (max-width: 991.98px) {
  .search-results-table-wrap { overflow-x: auto; }
  .search-results-table { min-width: 760px !important; table-layout: auto; }
  .search-results-table th,
  .search-results-table td { white-space: nowrap; }
}

/* v2.7e05 users module */
.sidebar-submenu .active-page { background: rgba(255,255,255,.12); border-radius: 8px; }
.form-wizard-list { list-style: none; padding: 0; margin: 0; }
.form-wizard-list__item { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-secondary-light); position: relative; flex: 1 1 auto; }
.form-wizard-list__line { width: 100%; height: 2px; background: rgba(255,255,255,.12); position: relative; display: flex; justify-content: center; align-items: center; }
.form-wizard-list__item .count { width: 36px; height: 36px; border-radius: 50%; background: var(--neutral-300); color: var(--neutral-900); display:flex; align-items:center; justify-content:center; font-weight:700; border: 3px solid var(--base); }
.form-wizard-list__item.active .count { background: var(--primary-600); color: #fff; }
.form-wizard-list__item span:last-child { font-size: .85rem; font-weight: 600; }
.user-profile-cover { height: 220px; background-size: cover; background-position: center; }
.user-profile-avatar { width: 132px; height: 132px; border-radius: 50%; border: 4px solid var(--base); object-fit: cover; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.user-profile-avatar--small { width: 96px; height: 96px; }
.mt--48 { margin-top: -48px; }
.profile-details-list { display: flex; flex-direction: column; gap: 12px; }
.profile-details-list li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: start; }
.profile-details-list li span { color: var(--text-secondary-light); }
.profile-details-list li strong { font-weight: 600; }
.timeline-simple { display: flex; flex-direction: column; gap: 12px; }
.timeline-simple__item { padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; display:flex; flex-direction:column; gap:4px; }
.user-overview-stat { border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 16px 18px; background: rgba(255,255,255,.02); }
.user-overview-stat span { display:block; color: var(--text-secondary-light); font-size: .8rem; margin-bottom: 6px; }
.user-overview-stat strong { font-size: 1rem; }
.user-card-grid__cover { height: 110px; background-size: cover; background-position: center; border-radius: 12px 12px 0 0; }
.user-card-grid__avatar { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 4px solid var(--base); margin-top: -42px; }
.users-role-inline-form select { min-width: 160px; }
.card-footer .page-link, .page-link { min-width: 34px; height: 34px; display:inline-flex; align-items:center; justify-content:center; border-radius: 8px; background: rgba(255,255,255,.06); color: var(--text-secondary-light); text-decoration:none; padding:0 10px; }
.card-footer .page-link.active, .page-link.active { background: var(--primary-600); color:#fff; }
.card-footer .page-link:hover, .page-link:hover { color:#fff; background: var(--primary-500); }
html[data-theme="light"] .timeline-simple__item,
html[data-theme="light"] .user-overview-stat { border-color: rgba(0,0,0,.08); background: rgba(0,0,0,.01); }
html[data-theme="light"] .profile-details-list li span,
html[data-theme="light"] .form-wizard-list__item { color: var(--neutral-600); }


/* v2.7e06 users refinements */
.outline-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--primary-600);
  background: transparent;
  padding: 10px 16px;
  font-weight: 600;
}
.outline-tabs .nav-link.active {
  border-color: var(--primary-600);
  background: transparent;
  color: var(--primary-600);
}
html[data-theme="dark"] .outline-tabs .nav-link { color: rgba(255,255,255,.78); }
html[data-theme="dark"] .outline-tabs .nav-link.active { border-color: rgba(255,255,255,.58); color: #fff; }
.profile-details-list li { grid-template-columns: 150px 1fr; gap: 18px; }
.profile-details-list li span::after { content: ':'; margin-left: 8px; opacity: .55; }
.user-profile-avatar--profile { width: 80px; height: 80px; }
.user-profile-avatar--upload { width: 120px; height: 120px; display:block; margin: 0 auto; }
.form-wizard-list--center { max-width: 960px; margin-left:auto !important; margin-right:auto !important; }
.wizard-step { display: none; }
.wizard-step.is-active { display: block; }
.cursor-pointer { cursor: pointer; }
html[data-theme="dark"] .btn.btn-outline-primary,
html[data-theme="dark"] .btn.btn-outline-danger,
html[data-theme="dark"] .btn.btn-outline-secondary {
  background: transparent;
}


/* v2.7e07 users polish */
.dashboard-main-body .form-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  margin-bottom: 8px;
}
.dashboard-main-body .form-label .text-danger-600 {
  line-height: 1;
  margin-top: 0;
}
html[data-theme="light"] .dashboard-main-body .form-label { color: var(--neutral-700); }
.user-profile-avatar--profile-lg { width: 120px; height: 120px; }
.profile-details-list li { grid-template-columns: 170px 1fr; gap: 16px; }
.profile-details-list li span::after { content: ':'; margin-left: 8px; opacity: .55; }
.profile-details-list li strong { display: inline-block; padding-left: 6px; }
.outline-tabs .nav-link {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
}
.outline-tabs .nav-link.active {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  color: #fff;
}
html[data-theme="light"] .outline-tabs .nav-link.active { border-color: var(--primary-600); background: rgba(72,127,255,.08); color: var(--primary-600); }
.user-create-wizard-form .wizard-step .text-center.mb-24 { display:flex; flex-direction:column; align-items:center; justify-content:center; }
.user-create-wizard-form .wizard-step .text-center.mb-24 .d-flex.justify-content-center { justify-content:center !important; }
.form-wizard-list--center { justify-content: center !important; }
.sidebar-submenu-title {
  padding: 10px 16px 6px 34px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.48);
}
html[data-theme="light"] .sidebar-submenu-title { color: var(--neutral-500); }


.roles-catalog-table-wrap { width: 100%; overflow-x: visible; }
.roles-catalog-table { width: 100%; table-layout: auto; }
.roles-catalog-table th,
.roles-catalog-table td { vertical-align: top; }
.roles-catalog-table td.text-break { overflow-wrap: anywhere; word-break: break-word; }
.roles-catalog-preview-cell details { width: 100%; }
.roles-catalog-preview-cell summary { white-space: nowrap; }
.role-permission-badges { width: 100%; }
.role-permission-badges .btn { white-space: normal; line-height: 1.35; text-align: left; max-width: 100%; overflow-wrap: anywhere; }


.sidebar-submenu-title{display:none;}
.submenu-nested > a{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:10px;font-weight:600;padding:10px 34px 10px 40px;border-radius:8px;margin:4px 0;min-height:44px;}
.submenu-nested > a .menu-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);margin:0;}
.submenu-nested > a::after{content:"\ea4e";font-family:"remixicon";font-size:16px;opacity:.8;position:absolute;right:14px;top:50%;transform:translateY(-50%);}
.submenu-nested.dropdown-open > a::after{transform:translateY(-50%) rotate(90deg);}
.sidebar-submenu-nested{padding-left:14px;display:none;}
.submenu-nested.dropdown-open > .sidebar-submenu-nested{display:block;}
.sidebar-submenu-nested li a{padding-left:12px;}

.roles-catalog-table th,
.roles-catalog-table td { white-space: nowrap; }
.roles-catalog-table td:nth-child(3),
.roles-catalog-table th:nth-child(3) { min-width: 260px; }
.roles-catalog-table td:nth-child(4),
.roles-catalog-table th:nth-child(4) { min-width: 90px; }
.roles-catalog-table td:nth-child(5),
.roles-catalog-table th:nth-child(5) { min-width: 120px; }
.roles-catalog-preview-cell,
.roles-catalog-preview-cell * { white-space: normal; }
.roles-catalog-preview-cell { min-width: 280px; max-width: 420px; }


body.system-page h1,
body.system-page h2,
body.system-page h3,
body.system-page h4,
body.system-page h5,
body.system-page h6,
.auth h1,
.auth h2,
.auth h3,
.auth h4,
.auth h5,
.auth h6 {
  font-size: 1.125rem !important;
  line-height: 1.35;
  font-weight: 700;
}

body.system-page .system-hero-title {
  font-size: clamp(2rem, 4vw, 4rem) !important;
  line-height: 1.1;
}


.page-kicker { font-size: 1.125rem; font-weight: 700; line-height: 1.35; margin: 0; }
.dashboard-main-body .panel-header h6,
.dashboard-main-body .card h6,
.dashboard-main-body .table-meta-toolbar h6 { font-size: 1.125rem; font-weight:700; line-height:1.35; margin:0; }
.calendar-grid-demo { display:grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border:1px solid rgba(255,255,255,.08); border-radius:16px; overflow:hidden; }
.calendar-grid-demo__head { padding:12px 10px; background: rgba(255,255,255,.04); font-size:.85rem; font-weight:700; text-align:center; }
.calendar-grid-demo__cell { min-height:110px; padding:10px; border-top:1px solid rgba(255,255,255,.08); border-right:1px solid rgba(255,255,255,.08); display:flex; flex-direction:column; gap:8px; }
.calendar-grid-demo__cell:nth-child(7n) { border-right:0; }
.calendar-grid-demo__day { font-size:.9rem; font-weight:700; }
.calendar-grid-demo__event { display:inline-flex; padding:6px 10px; border-radius:999px; background: rgba(72,127,255,.16); color:#7ea6ff; font-size:.75rem; font-weight:700; }
.calendar-grid-demo__event.secondary { background: rgba(255,184,77,.16); color:#ffb84d; }
html[data-theme="light"] .calendar-grid-demo,
html[data-theme="light"] .calendar-grid-demo__cell,
html[data-theme="light"] .calendar-grid-demo__head { border-color: rgba(17,24,39,.08); }


.bo-page-title,
.page-kicker {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.dashboard-main-body .panel-header > h1,
.dashboard-main-body .panel-header > h2,
.dashboard-main-body .panel-header > h3,
.dashboard-main-body .panel-header > h4,
.dashboard-main-body .panel-header > h5,
.dashboard-main-body .panel-header > h6,
.dashboard-main-body .table-meta-toolbar > h1,
.dashboard-main-body .table-meta-toolbar > h2,
.dashboard-main-body .table-meta-toolbar > h3,
.dashboard-main-body .table-meta-toolbar > h4,
.dashboard-main-body .table-meta-toolbar > h5,
.dashboard-main-body .table-meta-toolbar > h6,
.dashboard-main-body .panel > h1:first-child,
.dashboard-main-body .panel > h2:first-child,
.dashboard-main-body .panel > h3:first-child,
.dashboard-main-body .panel > h4:first-child,
.dashboard-main-body .panel > h5:first-child,
.dashboard-main-body .panel > h6:first-child,
.dashboard-main-body .card > h1:first-child,
.dashboard-main-body .card > h2:first-child,
.dashboard-main-body .card > h3:first-child,
.dashboard-main-body .card > h4:first-child,
.dashboard-main-body .card > h5:first-child,
.dashboard-main-body .card > h6:first-child {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.bo-page-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bo-tab-pane {
  padding-top: 4px;
}

.bo-toolbar-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bo-toolbar-title .muted {
  margin-bottom: 0;
}

.dashboard-main-body .action-icon.download { background: rgba(255, 159, 67, 0.16); color: #ff9f43; }
.dashboard-main-body .action-icon.archive { background: rgba(111, 97, 255, 0.16); color: #6f61ff; }

.dashboard-main-body .table-meta-toolbar .inline-form.compact-inline {
  gap: 10px;
}

.dashboard-main-body .notice-card {
  padding: 14px 16px;
}

.dashboard-main-body .stats-grid .card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-main-body .stats-grid .card strong {
  font-size: 1.4rem;
}

.dashboard-main-body .stats-grid .card span {
  color: var(--neutral-500);
}

html[data-theme="dark"] .dashboard-main-body .stats-grid .card span {
  color: rgba(255,255,255,.64);
}
