/* AlloDoc administration — the house look over the Metronic theme.
 *
 * Loaded after style.bundle.css on every page of the panel. Colours are
 * tokens: the light set on :root, the dark one under [data-theme="dark"]
 * (set before the first paint by the script in partials/head.ejs, from the
 * administrator's choice or the system's), so a component is written once.
 * Metronic's selectors run five classes deep in places (the side menu); there
 * the overrides say !important rather than repeat them.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("InterVariable-latin.woff2") format("woff2-variations"), url("InterVariable-latin.woff2") format("woff2");
}

:root {
  --ad-bg: #F6F4FB;
  --ad-surface: #FFFFFF;
  --ad-surface-2: #FAF8FE;
  --ad-surface-3: #F1EDF8;
  --ad-border: #E8E3F1;
  --ad-border-strong: #D3CBE2;
  --ad-text: #1A1530;
  --ad-text-2: #57516C;
  --ad-muted: #7D7794;
  --ad-brand: #6B00D5;
  --ad-brand-fill: #6B00D5;
  --ad-brand-fill-hover: #5B00B5;
  --ad-brand-text: #5B00B5;
  --ad-brand-soft: #F3EAFD;
  --ad-accent: #FF9A00;
  --ad-accent-text: #A35A00;
  --ad-accent-soft: #FFF4E5;
  --ad-success: #14804A;
  --ad-success-soft: #E6F4EC;
  --ad-warning: #A15C07;
  --ad-warning-soft: #FEF3E2;
  --ad-danger: #B42318;
  --ad-danger-soft: #FDECEA;
  --ad-info: #175CD3;
  --ad-info-soft: #E8F0FD;
  --ad-focus: #FFB020;
  --ad-shadow: 0 1px 2px rgba(26, 21, 48, .04), 0 8px 24px -12px rgba(26, 21, 48, .10);
  --ad-shadow-lg: 0 2px 4px rgba(26, 21, 48, .04), 0 24px 48px -18px rgba(26, 21, 48, .22);
  --ad-row-hover: #FAF6FF;
  --ad-input-bg: #FFFFFF;
  /* The side menu stays in the brand's night violet in both themes. */
  --ad-side: #1C0B38;
  --ad-side-2: #250F4A;
  --ad-side-text: #CBC2E0;
  --ad-side-muted: #8E84AA;
  --ad-side-hover: rgba(255, 255, 255, .07);
  --ad-side-active: rgba(255, 255, 255, .12);
  --ad-radius: 16px;
  --ad-radius-sm: 10px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ad-bg: #110D1A;
  --ad-surface: #1A1526;
  --ad-surface-2: #201A2F;
  --ad-surface-3: #272038;
  --ad-border: #2E2742;
  --ad-border-strong: #3E3558;
  --ad-text: #F2EFF8;
  --ad-text-2: #BDB5D0;
  --ad-muted: #9189A8;
  --ad-brand: #B478EC;
  --ad-brand-fill: #7A2BE0;
  --ad-brand-fill-hover: #8E3CE0;
  --ad-brand-text: #C9A0F2;
  --ad-brand-soft: rgba(180, 120, 236, .15);
  --ad-accent: #FFA826;
  --ad-accent-text: #FFB24D;
  --ad-accent-soft: rgba(255, 168, 38, .13);
  --ad-success: #4ADE80;
  --ad-success-soft: rgba(74, 222, 128, .12);
  --ad-warning: #FBBF24;
  --ad-warning-soft: rgba(251, 191, 36, .12);
  --ad-danger: #F87171;
  --ad-danger-soft: rgba(248, 113, 113, .13);
  --ad-info: #7CB3F5;
  --ad-info-soft: rgba(124, 179, 245, .13);
  --ad-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .6);
  --ad-shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -18px rgba(0, 0, 0, .7);
  --ad-row-hover: #221B33;
  --ad-input-bg: #15111F;
  --ad-side: #0D0818;
  --ad-side-2: #140C26;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
html body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background: var(--ad-bg);
  color: var(--ad-text-2);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 { color: var(--ad-text); font-family: inherit; letter-spacing: -.01em; }
html body a { color: var(--ad-brand-text); }
html body a:hover { color: var(--ad-brand-fill-hover); }
html body .text-muted, html body .kt-font-muted, html body small.text-muted { color: var(--ad-muted) !important; }
html body .kt-font-brand { color: var(--ad-brand-text) !important; }
html body .kt-font-success { color: var(--ad-success) !important; }
html body .kt-font-danger { color: var(--ad-danger) !important; }
html body .kt-font-warning { color: var(--ad-warning) !important; }
html body .kt-font-info { color: var(--ad-info) !important; }
html body hr { border-color: var(--ad-border); }
html body :focus-visible { outline: 3px solid var(--ad-focus); outline-offset: 2px; }
html body ::selection { background: rgba(107, 0, 213, .22); }
html body .kt-wrapper, html body .kt-content, html body .kt-grid--root, html body .kt-page { background: var(--ad-bg); }
html body .kt-content { padding: 24px 28px; }
html body table, html body .kt-datatable { font-variant-numeric: tabular-nums; }

/* The French labels are hidden until the translator has run (no English flash). */
html.ad-translating .kt-wrapper, html.ad-translating .kt-aside { opacity: 0; }
html .kt-wrapper, html .kt-aside { transition: opacity .12s ease; }

/* ---------------------------------------------------------------- header */
html body .kt-header, html body.kt-header--fixed .kt-header {
  background: var(--ad-surface);
  background: color-mix(in srgb, var(--ad-surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ad-border);
  box-shadow: none;
  height: 64px;
}
html body .kt-header__topbar { background: transparent; padding-right: 20px; align-items: center; gap: 10px; }
html body .kt-header__topbar .kt-header__topbar-item--user .kt-header__topbar-user {
  padding: 6px 8px 6px 14px; border-radius: 999px; border: 1px solid var(--ad-border); background: var(--ad-surface); height: auto;
}
html body .kt-header__topbar .kt-header__topbar-item--user .kt-header__topbar-user:hover { border-color: var(--ad-border-strong); background: var(--ad-surface-2); }
html body .kt-header__topbar .kt-header__topbar-welcome { color: var(--ad-muted) !important; font-weight: 500; }
html body .kt-header__topbar .kt-header__topbar-username, html body .kt-header__topbar .kt-header__topbar-welcome + .kt-header__topbar-welcome { color: var(--ad-text) !important; font-weight: 650; }
html body .kt-header__topbar .kt-header__topbar-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; margin-left: 10px; }

.ad-tools { display: flex; align-items: center; gap: 8px; }
.ad-tool {
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--ad-border);
  background: var(--ad-surface); color: var(--ad-text); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 650 12.5px/1 "Inter", sans-serif; letter-spacing: .02em; cursor: pointer; transition: border-color .15s, color .15s, background-color .15s;
}
.ad-tool:hover { border-color: var(--ad-brand); color: var(--ad-brand-text); }
.ad-tool svg { width: 18px; height: 18px; }
.ad-tool .ad-sun { display: none; }
:root[data-theme="dark"] .ad-tool .ad-sun { display: block; }
:root[data-theme="dark"] .ad-tool .ad-moon { display: none; }
.ad-lang { display: inline-flex; border: 1px solid var(--ad-border); border-radius: 999px; padding: 3px; background: var(--ad-surface); }
.ad-lang button {
  border: 0; background: transparent; color: var(--ad-muted); font: 700 12px/1 "Inter", sans-serif; letter-spacing: .04em;
  padding: 8px 10px; border-radius: 999px; cursor: pointer;
}
.ad-lang button[aria-pressed="true"] { background: var(--ad-brand-fill); color: #fff; }
.ad-lang button:not([aria-pressed="true"]):hover { color: var(--ad-text); }

/* User menu */
html body .kt-header__topbar .dropdown-menu .kt-user-card {
  background: linear-gradient(120deg, #2A0057, #4A0093 60%, #6B00D5) !important; border-radius: 14px 14px 0 0;
}
html body .kt-notification .kt-notification__item { border-bottom: 1px solid var(--ad-border); }
html body .kt-notification .kt-notification__item:hover { background: var(--ad-surface-2); }
html body .kt-notification .kt-notification__item-title { color: var(--ad-text) !important; }
html body .kt-notification .kt-notification__item-time { color: var(--ad-muted) !important; }
html body .kt-notification .kt-notification__item-icon i { color: var(--ad-brand-text) !important; }

/* Mobile header */
html body .kt-header-mobile { background: var(--ad-side); }
html body .kt-header-mobile .kt-header-mobile__toolbar button { color: #fff; }
html body .kt-header-mobile__logo img { background: #fff; border-radius: 10px; padding: 3px 6px; }

/* ------------------------------------------------------------- subheader */
html body .kt-subheader {
  background: transparent !important; border: 0; box-shadow: none; padding: 26px 28px 0; min-height: 0; height: auto; position: static;
}
html body.kt-subheader--fixed .kt-subheader { position: static; top: auto; }
html body .kt-subheader .kt-subheader__main { flex-wrap: wrap; gap: 4px 12px; }
html body .kt-subheader .kt-subheader__title { font-size: 24px; font-weight: 750; color: var(--ad-text) !important; letter-spacing: -.02em; margin: 0; }
html body .kt-subheader .kt-subheader__separator { display: none !important; }
html body .kt-subheader .kt-subheader__breadcrumbs { gap: 6px; }
html body .kt-subheader .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-link,
html body .kt-subheader .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-home i { color: var(--ad-muted); font-size: 13px; }
html body .kt-subheader .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-link--active { color: var(--ad-brand-text); font-weight: 600; }
html body .kt-subheader .kt-subheader__breadcrumbs .kt-subheader__breadcrumbs-separator::after { background: var(--ad-border-strong); }
html body .kt-subheader .kt-subheader__desc { color: var(--ad-muted); }
/* The page title scrolls with the page now: no room kept for a fixed one. */
@media (min-width: 1025px) { html body.kt-header--fixed .kt-wrapper { padding-top: 64px !important; } }

/* ------------------------------------------------------------- side menu */
html body .kt-aside { background: linear-gradient(180deg, var(--ad-side) 0%, var(--ad-side-2) 100%) !important; box-shadow: none; }
html body .kt-aside__brand { background: transparent !important; height: 64px; padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
html body .kt-aside__brand-logo img { background: #fff; border-radius: 12px; padding: 4px 10px; max-height: 44px !important; }
html body .kt-aside-menu, html body .kt-aside-menu-wrapper { background: transparent !important; }
html body .kt-aside-menu .kt-menu__nav { padding: 14px 0 28px; }
html body .kt-aside-menu .kt-menu__nav > .kt-menu__item { margin: 1px 12px; border-radius: 10px; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__link,
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__heading {
  border-radius: 10px; padding: 9px 12px !important; min-height: 40px; background: transparent !important; transition: background-color .15s;
}
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__link .kt-menu__link-text { color: var(--ad-side-text) !important; font-weight: 500; font-size: 13.5px; line-height: 1.3; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__link .kt-menu__link-icon { color: var(--ad-side-muted) !important; font-size: 1.15rem; width: 30px; flex: 0 0 30px; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__link .kt-menu__ver-arrow { color: var(--ad-side-muted) !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__link:hover { background: var(--ad-side-hover) !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__link:hover .kt-menu__link-text,
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__link:hover .kt-menu__link-icon { color: #fff !important; }
html body .kt-aside-menu .kt-menu__nav > .kt-menu__item:hover:not(.kt-menu__item--active) { background: transparent !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item.kt-menu__item--open > .kt-menu__link { background: var(--ad-side-hover) !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item.kt-menu__item--open > .kt-menu__link .kt-menu__link-text { color: #fff !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item.kt-menu__item--active > .kt-menu__link {
  background: var(--ad-side-active) !important; box-shadow: inset 3px 0 0 var(--ad-accent);
}
html body .kt-aside-menu .kt-menu__nav .kt-menu__item.kt-menu__item--active > .kt-menu__link .kt-menu__link-text { color: #fff !important; font-weight: 650; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item.kt-menu__item--active > .kt-menu__link .kt-menu__link-icon { color: var(--ad-accent) !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__submenu { background: transparent !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__item > .kt-menu__link::after { display: none !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__submenu .kt-menu__subnav { padding: 2px 0 6px 14px; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__submenu .kt-menu__item { margin: 1px 0; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__submenu .kt-menu__item > .kt-menu__link { min-height: 36px; padding: 7px 10px !important; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__submenu .kt-menu__item > .kt-menu__link .kt-menu__link-text { font-size: 13px; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__submenu .kt-menu__item > .kt-menu__link .kt-menu__link-icon { font-size: 1rem; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__section { margin: 18px 12px 6px; padding: 0 12px; height: auto; }
html body .kt-aside-menu .kt-menu__nav .kt-menu__section .kt-menu__section-text { color: var(--ad-side-muted) !important; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
html body .kt-aside .ps > .ps__rail-y > .ps__thumb-y { background: rgba(255, 255, 255, .22); }
html body .kt-aside-close { background: var(--ad-side-2); color: #fff; }

/* ------------------------------------------------------------- portlets */
html body .kt-portlet {
  background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: var(--ad-radius);
  box-shadow: var(--ad-shadow); margin-bottom: 22px;
}
html body .kt-portlet .kt-portlet__head { border-bottom: 1px solid var(--ad-border); min-height: 60px; padding: 0 22px; background: transparent; }
html body .kt-portlet .kt-portlet__head .kt-portlet__head-title { color: var(--ad-text); font-weight: 700; font-size: 16px; }
html body .kt-portlet .kt-portlet__head .kt-portlet__head-icon i { color: var(--ad-brand-text); }
/* Many lists kept a card header whose title was commented out: no empty bar. */
html body .kt-portlet .kt-portlet__head:not(:has(.kt-portlet__head-title, .kt-portlet__head-toolbar, .kt-portlet__head-icon, button, a, input, select, h3, h4)) { display: none; }
html body .kt-portlet .kt-portlet__body { padding: 22px; color: var(--ad-text-2); }
html body .kt-portlet .kt-portlet__body.kt-portlet__body--fit { padding: 0; }
html body .kt-portlet .kt-portlet__foot { border-top: 1px solid var(--ad-border); padding: 16px 22px; background: var(--ad-surface-2); border-radius: 0 0 var(--ad-radius) var(--ad-radius); }
html body .box-border { border: 1px solid var(--ad-border) !important; }

/* ---------------------------------------------------------------- tables */
html body .table { color: var(--ad-text-2); margin-bottom: 0; }
html body .table thead th, html body .table th {
  background: var(--ad-surface-2); color: var(--ad-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px solid var(--ad-border) !important; border-top: 0; padding: 12px 14px; white-space: nowrap;
}
html body .table td { border-top: 1px solid var(--ad-border); padding: 12px 14px; vertical-align: middle; }
html body .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
html body .table tbody tr:hover, html body .table-hover tbody tr:hover { background: var(--ad-row-hover); }
html body .table-bordered, html body .table-bordered td, html body .table-bordered th { border-color: var(--ad-border); }
html body .table-responsive { border-radius: 12px; }

/* Metronic data tables (most lists of the panel) */
html body .kt-datatable > .kt-datatable__table { background: transparent !important; border-radius: 12px; }
html body .kt-datatable > .kt-datatable__table > .kt-datatable__head .kt-datatable__row > .kt-datatable__cell {
  background: var(--ad-surface-2) !important; border-bottom: 1px solid var(--ad-border);
}
html body .kt-datatable > .kt-datatable__table > .kt-datatable__head .kt-datatable__row > .kt-datatable__cell > span {
  color: var(--ad-muted) !important; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
html body .kt-datatable > .kt-datatable__table > .kt-datatable__head .kt-datatable__row > .kt-datatable__cell > span > i { color: var(--ad-brand-text) !important; }
html body .kt-datatable > .kt-datatable__table > .kt-datatable__body .kt-datatable__row { border-bottom: 1px solid var(--ad-border) !important; }
html body .kt-datatable > .kt-datatable__table > .kt-datatable__body .kt-datatable__row > .kt-datatable__cell > span { color: var(--ad-text-2) !important; }
html body .kt-datatable > .kt-datatable__table > .kt-datatable__body .kt-datatable__row:hover > .kt-datatable__cell { background: var(--ad-row-hover) !important; }
html body .kt-datatable > .kt-datatable__table > .kt-datatable__body .kt-datatable__row--even > .kt-datatable__cell { background: transparent !important; }
html body .kt-datatable > .kt-datatable__pager { padding: 14px 4px 0; }
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link {
  border-radius: 8px; color: var(--ad-text-2); background: transparent; min-width: 32px; height: 32px; font-weight: 600;
}
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link,
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link.kt-datatable__pager-link--first,
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link.kt-datatable__pager-link--prev,
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link.kt-datatable__pager-link--next,
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link.kt-datatable__pager-link--last {
  background: var(--ad-surface-2) !important; color: var(--ad-text-2) !important; border: 1px solid var(--ad-border);
}
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link.kt-datatable__pager-link--disabled { opacity: .45; }
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link:hover { background: var(--ad-brand-soft) !important; color: var(--ad-brand-text) !important; }
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-nav > li > .kt-datatable__pager-link.kt-datatable__pager-link--active { background: var(--ad-brand-fill) !important; color: #fff !important; }
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-info .kt-datatable__pager-detail { color: var(--ad-muted); }
html body .kt-datatable .kt-datatable__pager-link-number, html body .kt-datatable .kt-datatable__pager-input { color: var(--ad-text-2); }
html body .kt-datatable > .kt-datatable__pager .kt-datatable__pager-info .bootstrap-select .dropdown-toggle { background: var(--ad-input-bg) !important; border-color: var(--ad-border) !important; color: var(--ad-text) !important; }
html body .kt-datatable--error { color: var(--ad-muted); }

/* Pagination (Bootstrap) */
html body .pagination .page-link { background: transparent; border: 1px solid var(--ad-border); color: var(--ad-text-2); margin: 0 2px; border-radius: 8px !important; }
html body .pagination .page-item.active .page-link { background: var(--ad-brand-fill); border-color: var(--ad-brand-fill); color: #fff; }
html body .pagination .page-link:hover { background: var(--ad-brand-soft); color: var(--ad-brand-text); }
html body .pagination .page-item.disabled .page-link { color: var(--ad-muted); background: transparent; }

/* ----------------------------------------------------------------- forms */
html body label, html body .col-form-label, html body .kt-form__label label { color: var(--ad-text); font-weight: 600; font-size: 13px; }
html body .form-control, html body .custom-select, html body .input-group-text,
html body .select2-container--default .select2-selection--single,
html body .select2-container--default .select2-selection--multiple,
html body .bootstrap-select > .dropdown-toggle.btn-light, html body .bootstrap-select > .dropdown-toggle.btn-default {
  background-color: var(--ad-input-bg) !important; border: 1px solid var(--ad-border-strong) !important; color: var(--ad-text) !important;
  border-radius: var(--ad-radius-sm) !important; font-size: 14px; box-shadow: none;
}
html body .form-control { height: 42px; padding: 9px 13px; }
html body textarea.form-control { height: auto; }
html body .form-control::placeholder { color: var(--ad-muted); opacity: 1; }
html body .form-control:focus, html body .custom-select:focus,
html body .select2-container--default.select2-container--focus .select2-selection--multiple,
html body .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--ad-brand) !important; box-shadow: 0 0 0 3px rgba(107, 0, 213, .16) !important; outline: 0;
}
html body .form-control:disabled, html body .form-control[readonly] { background-color: var(--ad-surface-3) !important; color: var(--ad-text-2) !important; }
html body .input-group-text { color: var(--ad-muted) !important; background: var(--ad-surface-2) !important; }
html body .select2-container--default .select2-selection--single { height: 42px; display: flex; align-items: center; }
html body .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--ad-text); line-height: 40px; }
html body .select2-dropdown { background: var(--ad-surface); border-color: var(--ad-border-strong); color: var(--ad-text); border-radius: 10px; overflow: hidden; }
html body .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--ad-brand-fill); }
html body .select2-container--default .select2-results__option[aria-selected=true] { background: var(--ad-brand-soft); color: var(--ad-brand-text); }
html body .select2-container--default .select2-search--dropdown .select2-search__field { background: var(--ad-input-bg); border-color: var(--ad-border-strong); color: var(--ad-text); }
html body .select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--ad-brand-soft); border: 0; color: var(--ad-brand-text); border-radius: 6px; }
html body .bootstrap-select .dropdown-menu { background: var(--ad-surface); }
html body .bootstrap-select .dropdown-menu li a { color: var(--ad-text-2); }
html body .bootstrap-select .dropdown-menu li.selected a, html body .bootstrap-select .dropdown-menu li a:hover { background: var(--ad-brand-soft); color: var(--ad-brand-text); }
html body .kt-input-icon .kt-input-icon__icon i { color: var(--ad-muted); }
html body .form-text, html body .invalid-feedback { font-size: 12.5px; }
html body .form-text { color: var(--ad-muted); }
html body .invalid-feedback, html body .error, html body label.error { color: var(--ad-danger) !important; font-weight: 500; }
html body .is-invalid.form-control { border-color: var(--ad-danger) !important; }
html body .kt-checkbox > span, html body .kt-radio > span { background: var(--ad-input-bg); border-color: var(--ad-border-strong) !important; }
html body .kt-checkbox > input:checked ~ span, html body .kt-radio > input:checked ~ span { background: var(--ad-brand-fill) !important; border-color: var(--ad-brand-fill) !important; }
html body .kt-checkbox > input:checked ~ span::after, html body .kt-radio > input:checked ~ span::after { border-color: #fff !important; background: #fff; }
html body .kt-checkbox, html body .kt-radio { color: var(--ad-text-2); }
html body .kt-switch input:checked ~ span::before { background: var(--ad-brand-fill) !important; }
html body .kt-switch input:empty ~ span::before { background: var(--ad-surface-3); }
html body input[type="checkbox"], html body input[type="radio"] { accent-color: var(--ad-brand-fill); }
html body input[type="file"].form-control { height: auto; padding: 6px; }
html body input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 7px 14px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--ad-brand-soft); color: var(--ad-brand-text); font: 650 13px/1.2 "Inter", sans-serif;
}
html body input[type="file"]::file-selector-button:hover { background: var(--ad-brand-fill); color: #fff; }
html body .custom-file-label { background: var(--ad-input-bg); border-color: var(--ad-border-strong); color: var(--ad-text-2); border-radius: var(--ad-radius-sm); }
html body .note-editor.note-frame, html body .cke { border-color: var(--ad-border-strong) !important; border-radius: var(--ad-radius-sm); overflow: hidden; }

/* --------------------------------------------------------------- buttons */
html body .btn { border-radius: var(--ad-radius-sm); font-weight: 650; font-size: 13.5px; padding: 9px 16px; letter-spacing: .005em; box-shadow: none !important; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
html body .btn.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
html body .btn.btn-elevate:hover, html body .btn.btn-elevate-air:hover { transform: translateY(-1px); }
html body .btn-brand, html body .btn-primary {
  background: var(--ad-brand-fill) !important; border-color: var(--ad-brand-fill) !important; color: #fff !important;
}
html body .btn-brand:hover, html body .btn-primary:hover, html body .btn-brand:focus, html body .btn-primary:focus { background: var(--ad-brand-fill-hover) !important; border-color: var(--ad-brand-fill-hover) !important; }
html body .btn-success { background: #14804A !important; border-color: #14804A !important; color: #fff !important; }
html body .btn-success:hover { background: #0F6B3D !important; border-color: #0F6B3D !important; }
html body .btn-warning { background: var(--ad-accent) !important; border-color: var(--ad-accent) !important; color: #241200 !important; }
html body .btn-warning:hover { background: #FFB24D !important; border-color: #FFB24D !important; }
html body .btn-danger { background: var(--ad-danger-soft) !important; border-color: transparent !important; color: var(--ad-danger) !important; }
html body .btn-danger:hover { background: #B42318 !important; color: #fff !important; }
html body .btn-info { background: var(--ad-info-soft) !important; border-color: transparent !important; color: var(--ad-info) !important; }
html body .btn-info:hover { background: #175CD3 !important; color: #fff !important; }
html body .btn-secondary, html body .btn-default, html body .btn-light, html body .btn-outline-secondary, html body .btn-outline-brand {
  background: var(--ad-surface) !important; border: 1px solid var(--ad-border-strong) !important; color: var(--ad-text) !important;
}
html body .btn-secondary:hover, html body .btn-default:hover, html body .btn-light:hover, html body .btn-outline-secondary:hover, html body .btn-outline-brand:hover {
  border-color: var(--ad-brand) !important; color: var(--ad-brand-text) !important; background: var(--ad-brand-soft) !important;
}
html body .btn-label-brand, html body .btn-label-primary { background: var(--ad-brand-soft) !important; color: var(--ad-brand-text) !important; border: 0 !important; }
html body .btn-label-brand:hover, html body .btn-label-primary:hover { background: var(--ad-brand-fill) !important; color: #fff !important; }
html body .btn-clean { color: var(--ad-muted); background: transparent; }
html body .btn-clean:hover { background: var(--ad-brand-soft) !important; color: var(--ad-brand-text) !important; }
html body .btn.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
html body .btn i { color: inherit; }
html body .btn-link { color: var(--ad-brand-text); }

/* ------------------------------------------------- badges, status pills */
html body .kt-badge.kt-badge--inline, html body .badge {
  border-radius: 999px; font-weight: 650; font-size: 12px; padding: 4px 10px; letter-spacing: .01em;
}
html body .kt-badge.kt-badge--success, html body .kt-badge--unified-success, html body .badge-success { background: var(--ad-success-soft) !important; color: var(--ad-success) !important; }
html body .kt-badge.kt-badge--danger, html body .kt-badge--unified-danger, html body .badge-danger { background: var(--ad-danger-soft) !important; color: var(--ad-danger) !important; }
html body .kt-badge.kt-badge--warning, html body .kt-badge--unified-warning, html body .badge-warning { background: var(--ad-warning-soft) !important; color: var(--ad-warning) !important; }
html body .kt-badge.kt-badge--info, html body .kt-badge--unified-info, html body .badge-info { background: var(--ad-info-soft) !important; color: var(--ad-info) !important; }
html body .kt-badge.kt-badge--brand, html body .kt-badge.kt-badge--primary, html body .kt-badge--unified-brand, html body .badge-primary { background: var(--ad-brand-soft) !important; color: var(--ad-brand-text) !important; }
html body .kt-badge.kt-badge--dark, html body .kt-badge.kt-badge--metal, html body .badge-secondary, html body .badge-light, html body .badge-dark { background: var(--ad-surface-3) !important; color: var(--ad-text-2) !important; }
html body .kt-badge.kt-badge--dot { width: 8px; height: 8px; padding: 0; }

/* ------------------------------------------ dropdowns, modals, dialogs */
html body .dropdown-menu { background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: 12px; box-shadow: var(--ad-shadow-lg); color: var(--ad-text-2); padding: 6px; }
html body .dropdown-menu .dropdown-item, html body .dropdown-menu .kt-nav .kt-nav__item .kt-nav__link { color: var(--ad-text-2); border-radius: 8px; }
html body .dropdown-menu .dropdown-item:hover, html body .dropdown-menu .kt-nav .kt-nav__item .kt-nav__link:hover { background: var(--ad-brand-soft); color: var(--ad-brand-text); }
html body .dropdown-menu .kt-nav .kt-nav__item .kt-nav__link .kt-nav__link-text, html body .dropdown-menu .kt-nav .kt-nav__item .kt-nav__link .kt-nav__link-icon { color: inherit; }
html body .dropdown-divider { border-color: var(--ad-border); }
html body .modal-content { background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: 18px; box-shadow: var(--ad-shadow-lg); color: var(--ad-text-2); }
html body .modal-header, html body .modal-footer { border-color: var(--ad-border); }
html body .modal-title { color: var(--ad-text); font-weight: 700; }
html body .modal-header .close { color: var(--ad-muted); text-shadow: none; }
html body .modal-backdrop.show { opacity: .55; background: #0B0614; }
html body .swal2-popup { background: var(--ad-surface) !important; border-radius: 18px !important; color: var(--ad-text-2); }
html body .swal2-popup .swal2-title { color: var(--ad-text) !important; }
html body .swal2-popup .swal2-content { color: var(--ad-text-2) !important; }
html body .swal2-popup .swal2-styled.swal2-confirm { background: var(--ad-brand-fill) !important; border-radius: 10px !important; }
html body .swal2-popup .swal2-styled.swal2-cancel { background: var(--ad-surface-3) !important; color: var(--ad-text) !important; border-radius: 10px !important; }
html body #toast-container > div { border-radius: 12px; box-shadow: var(--ad-shadow-lg); opacity: .98; font-family: inherit; }
html body .toast-success { background-color: #14804A; }
html body .toast-error { background-color: #B42318; }
html body .tooltip-inner { background: #1A1530; border-radius: 8px; font-family: inherit; }

/* ------------------------------------------------------ tabs and alerts */
html body .nav-tabs { border-bottom: 1px solid var(--ad-border); gap: 4px; }
html body .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--ad-muted); font-weight: 600; padding: 10px 14px; background: transparent; }
html body .nav-tabs .nav-link:hover { color: var(--ad-text); }
html body .nav-tabs .nav-link.active, html body .nav-tabs .nav-item.show .nav-link { color: var(--ad-brand-text); border-bottom-color: var(--ad-brand); background: transparent; }
html body .nav-pills .nav-link.active { background: var(--ad-brand-fill); }
html body .alert { border-radius: 12px; border: 1px solid transparent; }
html body .alert-success, html body .alert-solid-success { background: var(--ad-success-soft) !important; color: var(--ad-success) !important; border-color: transparent; }
html body .alert-danger, html body .alert-solid-danger { background: var(--ad-danger-soft) !important; color: var(--ad-danger) !important; }
html body .alert-warning, html body .alert-solid-warning { background: var(--ad-warning-soft) !important; color: var(--ad-warning) !important; }
html body .alert-info, html body .alert-solid-info, html body .alert-light, html body .alert-secondary { background: var(--ad-info-soft) !important; color: var(--ad-info) !important; }
html body .alert .alert-text, html body .alert .alert-icon i { color: inherit !important; }
html body .card { background: var(--ad-surface); border-color: var(--ad-border); border-radius: 14px; }
html body .card-header, html body .card-footer { background: var(--ad-surface-2); border-color: var(--ad-border); }
html body .list-group-item { background: var(--ad-surface); border-color: var(--ad-border); color: var(--ad-text-2); }
html body .bg-light, html body .kt-bg-light { background: var(--ad-surface-2) !important; }
html body .bg-white { background: var(--ad-surface) !important; }
html body .text-dark { color: var(--ad-text) !important; }
html body code { color: var(--ad-brand-text); background: var(--ad-brand-soft); border-radius: 5px; padding: 1px 5px; }

/* ---------------------------------------------------------------- footer */
html body .kt-footer { background: transparent; border-top: 1px solid var(--ad-border); padding: 16px 28px; }
html body .kt-footer .kt-footer__copyright, html body .kt-footer .kt-footer__copyright a { color: var(--ad-muted); font-size: 12.5px; }

/* ------------------------------------------------------ page loader */
html body .kt-dialog.kt-dialog--loader { background: var(--ad-surface); color: var(--ad-text); border-radius: 12px; box-shadow: var(--ad-shadow-lg); }

/* ===================================================== shared admin kit
 * Pieces the redesigned pages use (dashboard, À la une, service téléphone).
 */
.ad-page { display: flex; flex-direction: column; gap: 22px; }
.ad-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ad-hello h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ad-text); }
.ad-hello p { margin: 4px 0 0; color: var(--ad-muted); }
.ad-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ad-muted); }
.ad-grid { display: grid; gap: 18px; }
.ad-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ad-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ad-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
@media (max-width: 1280px) { .ad-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-grid-main { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .ad-grid-4, .ad-grid-3, .ad-grid-2 { grid-template-columns: 1fr; } }
.ad-card { background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: var(--ad-radius); box-shadow: var(--ad-shadow); padding: 20px 22px; min-width: 0; }
.ad-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.ad-card-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ad-text); }
.ad-card-head p { margin: 3px 0 0; font-size: 13px; color: var(--ad-muted); }
.ad-link { font-weight: 650; font-size: 13px; color: var(--ad-brand-text); white-space: nowrap; }
.ad-kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; text-decoration: none !important; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.ad-kpi:hover { border-color: var(--ad-border-strong); transform: translateY(-2px); box-shadow: var(--ad-shadow-lg); }
.ad-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-kpi-label { font-size: 13px; font-weight: 600; color: var(--ad-text-2); }
.ad-kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; background: var(--ad-brand-soft); color: var(--ad-brand-text); flex: 0 0 40px; }
.ad-kpi-icon.is-accent { background: var(--ad-accent-soft); color: var(--ad-accent-text); }
.ad-kpi-icon.is-success { background: var(--ad-success-soft); color: var(--ad-success); }
.ad-kpi-icon.is-info { background: var(--ad-info-soft); color: var(--ad-info); }
.ad-kpi-value { font-size: 30px; font-weight: 800; color: var(--ad-text); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ad-kpi-sub { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ad-muted); flex-wrap: wrap; }
.ad-meter { height: 6px; border-radius: 3px; background: var(--ad-surface-3); overflow: hidden; }
.ad-meter > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--ad-brand-fill), #B478EC); }
.ad-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--ad-surface-3); color: var(--ad-text-2); }
.ad-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.ad-pill.is-plain::before { display: none; }
.ad-pill.is-success { background: var(--ad-success-soft); color: var(--ad-success); }
.ad-pill.is-warning { background: var(--ad-warning-soft); color: var(--ad-warning); }
.ad-pill.is-danger { background: var(--ad-danger-soft); color: var(--ad-danger); }
.ad-pill.is-info { background: var(--ad-info-soft); color: var(--ad-info); }
.ad-pill.is-brand { background: var(--ad-brand-soft); color: var(--ad-brand-text); }
.ad-pill.is-muted { background: var(--ad-surface-3); color: var(--ad-muted); }
.ad-up { color: var(--ad-success); font-weight: 700; }
.ad-down { color: var(--ad-danger); font-weight: 700; }
.ad-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ad-legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 10px; font-size: 13px; color: var(--ad-text-2); }
.ad-legend li b { color: var(--ad-text); font-variant-numeric: tabular-nums; }
.ad-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.ad-chart { position: relative; }
.ad-list { list-style: none; margin: 0; padding: 0; }
.ad-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--ad-border); }
.ad-list li:first-child { border-top: 0; padding-top: 0; }
.ad-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 36px; background: var(--ad-brand-soft); color: var(--ad-brand-text); }
.ad-list-main { flex: 1; min-width: 0; }
.ad-list-main strong { display: block; color: var(--ad-text); font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-list-main span { font-size: 12.5px; color: var(--ad-muted); }
.ad-empty { padding: 26px 10px; text-align: center; color: var(--ad-muted); font-size: 13.5px; }
.ad-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ad-shortcut { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--ad-border); background: var(--ad-surface-2); color: var(--ad-text) !important; font-weight: 600; font-size: 13px; text-decoration: none !important; transition: border-color .15s, background-color .15s; }
.ad-shortcut i { color: var(--ad-brand-text); font-size: 15px; width: 18px; text-align: center; }
.ad-shortcut:hover { border-color: var(--ad-brand); background: var(--ad-brand-soft); }
.ad-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 650; font-size: 13.5px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.1; }
.ad-btn-primary { background: var(--ad-brand-fill); color: #fff !important; }
.ad-btn-primary:hover { background: var(--ad-brand-fill-hover); }
.ad-btn-ghost { background: var(--ad-surface); border-color: var(--ad-border-strong); color: var(--ad-text) !important; }
.ad-btn-ghost:hover { border-color: var(--ad-brand); color: var(--ad-brand-text) !important; }
.ad-btn-danger { background: var(--ad-danger-soft); color: var(--ad-danger) !important; }
.ad-btn-danger:hover { background: #B42318; color: #fff !important; }
.ad-btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.ad-note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--ad-brand-soft); color: var(--ad-text-2); font-size: 13.5px; line-height: 1.5; }
.ad-note i { color: var(--ad-brand-text); margin-top: 2px; }
.ad-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ad-table th { text-align: left; background: var(--ad-surface-2); color: var(--ad-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--ad-border); white-space: nowrap; }
.ad-table td { padding: 12px 14px; border-bottom: 1px solid var(--ad-border); color: var(--ad-text-2); vertical-align: middle; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table tbody tr:hover td { background: var(--ad-row-hover); }
.ad-table-wrap { overflow-x: auto; border: 1px solid var(--ad-border); border-radius: 12px; }

@media (max-width: 1024px) {
  html body .kt-content { padding: 18px 14px; }
  html body .kt-subheader { padding: 18px 14px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { transition: none !important; animation-duration: .01ms !important; }
}

/* Initials instead of a stock photo when the administrator has none. */
.ad-avatar-me { width: 32px; height: 32px; flex: 0 0 32px; margin-left: 10px; font-size: 12px; background: linear-gradient(135deg, #6B00D5, #B478EC); color: #fff; }
html body .kt-user-card .ad-avatar-me { width: 52px; height: 52px; flex-basis: 52px; margin: 0; font-size: 18px; background: rgba(255, 255, 255, .18); }
html body .tooltip, html body .popover, html body .daterangepicker { font-family: inherit; }

/* ------------------------------------------------------- sign-in page
 * layouts/loginLayout.ejs (Metronic login v6): the form on the theme's
 * surface, the brand's night violet beside it. */
html body .kt-login.kt-login--v6 { background: var(--ad-bg); }
html body .kt-login.kt-login--v6 .kt-login__aside { background: var(--ad-surface) !important; border-right: 1px solid var(--ad-border); }
html body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__logo img { background: #fff; border-radius: 14px; padding: 6px 12px; }
html body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__head .kt-login__title { color: var(--ad-text) !important; font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
html body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__head .kt-login__desc { color: var(--ad-muted) !important; margin-top: 8px; }
html body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__form .form-control {
  height: 48px; padding: 12px 16px; margin-top: 0; border-radius: 12px !important; border: 1px solid var(--ad-border-strong) !important;
  background: var(--ad-input-bg) !important; color: var(--ad-text) !important;
}
html body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__form .form-control::placeholder { color: var(--ad-muted) !important; }
html body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__form .form-group { margin-bottom: 14px; }
html body .kt-login.kt-login--v6 .kt-login__aside .kt-login__wrapper .kt-login__container .kt-login__extra a { color: var(--ad-brand-text) !important; font-weight: 600; }
html body .kt-login.kt-login--v6 .btn { height: 48px; padding: 0 26px; border-radius: 12px !important; font-size: 15px; }
html body .kt-login.kt-login--v6 .btn.btn-brand { background: var(--ad-brand-fill) !important; border-color: var(--ad-brand-fill) !important; }
html body .kt-login.kt-login--v6 .btn.btn-brand:hover { background: var(--ad-brand-fill-hover) !important; }
html body .kt-login.kt-login--v6 .kt-login__content {
  background-color: #1C0B38 !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpolyline points='0,80 260,80 300,80 322,30 344,110 366,50 388,80 700,80 740,80 762,36 784,104 806,56 826,80 1200,80' fill='none' stroke='%23ffffff' stroke-opacity='.14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    radial-gradient(circle at 78% 22%, rgba(180, 120, 236, .5), transparent 46%),
    radial-gradient(circle at 18% 88%, rgba(255, 154, 0, .35), transparent 42%),
    linear-gradient(140deg, #1C0B38 0%, #4A0093 58%, #6B00D5 100%) !important;
  background-repeat: no-repeat !important; background-size: 150% auto, cover, cover, cover !important; background-position: 10% 74%, center, center, center !important;
}
html body .kt-login.kt-login--v6 .kt-login__content .kt-login__section .kt-login__block .kt-login__title { color: #fff !important; font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
html body .kt-login.kt-login--v6 .kt-login__content .kt-login__section .kt-login__desc { color: rgba(255, 255, 255, .86) !important; font-size: 17px; line-height: 1.6; max-width: 34ch; margin: 0 auto; }
html body .kt-login .alert { margin-bottom: 14px; }

/* Metronic's text blocks, with their colours written for a white page. */
html body .kt-section .kt-section__title, html body .kt-section__title, html body .kt-heading, html body .kt-font-dark { color: var(--ad-text) !important; font-weight: 700; }
html body .kt-section .kt-section__desc, html body .kt-section__desc, html body .kt-section .kt-section__info { color: var(--ad-muted) !important; }
html body .kt-section .kt-section__content.kt-section__content--border, html body .kt-section__content--solid { border-color: var(--ad-border) !important; background: transparent; }
html body .kt-separator { border-color: var(--ad-border) !important; }
html body .kt-widget14 .kt-widget14__header .kt-widget14__title, html body .kt-widget24 .kt-widget24__details .kt-widget24__info .kt-widget24__title { color: var(--ad-text) !important; }
html body .kt-widget14 .kt-widget14__header .kt-widget14__desc, html body .kt-widget24 .kt-widget24__details .kt-widget24__info .kt-widget24__desc { color: var(--ad-muted) !important; }
html body .kt-form .kt-form__label, html body .kt-form__group .kt-form__label label { color: var(--ad-text-2); }
html body .kt-portlet .kt-portlet__body p, html body .kt-portlet .kt-portlet__body li { color: inherit; }
html body .kt-portlet .kt-portlet__body strong, html body .kt-portlet .kt-portlet__body b { color: var(--ad-text); }
html body .kt-portlet .kt-portlet__head .kt-portlet__head-label .kt-portlet__head-title small { color: var(--ad-muted); }
html body .text-dark-50, html body .text-secondary { color: var(--ad-muted) !important; }
html body .bootstrap-switch { border-color: var(--ad-border-strong); }
html body .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-default, html body .bootstrap-switch .bootstrap-switch-label { background: var(--ad-surface-3); color: var(--ad-text-2); }
html body .datepicker, html body .daterangepicker { background: var(--ad-surface); border-color: var(--ad-border); color: var(--ad-text-2); }
html body .datepicker table tr td.active, html body .daterangepicker td.active { background: var(--ad-brand-fill) !important; color: #fff !important; }
html body .datepicker table tr td.day:hover, html body .daterangepicker td.available:hover { background: var(--ad-brand-soft); }
html body .kt-portlet__head-title { color: var(--ad-text) !important; }
html body .kt-portlet__head { border-color: var(--ad-border) !important; }

/* Messages after a form (saved, refused): same shape as .ad-note, coloured by outcome. */
.ad-note.is-success { background: var(--ad-success-soft); color: var(--ad-text); }
.ad-note.is-success i { color: var(--ad-success); }
.ad-note.is-danger { background: var(--ad-danger-soft); color: var(--ad-text); }
.ad-note.is-danger i { color: var(--ad-danger); }
.ad-note ul { margin: 6px 0 0; padding-left: 18px; }
.ad-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.ad-form-row label, .ad-card label { color: var(--ad-text-2); font-weight: 600; font-size: 13px; }
.ad-code { display: block; white-space: pre; overflow-x: auto; padding: 12px 14px; border-radius: 10px; background: var(--ad-surface-2); border: 1px solid var(--ad-border); color: var(--ad-text); font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
