/* Présentation inspirée de NewERP, propre à ce site. */
:root {
  --bs-menu-width: 16.25rem;
  --newerp-topbar-height: 4.25rem;
  --newerp-bg: #f7f7fb;
  --newerp-border: #e4e7ec;
  --newerp-text: #53657a;
  --newerp-muted: #8796a8;
  --newerp-primary: #696cff;
  --newerp-primary-soft: #e9e8ff;
  --newerp-action-gap: .5rem;
}

body { background: var(--newerp-bg); color: var(--newerp-text); }
.newerp-shell, .newerp-shell > .layout-container, .newerp-page, .newerp-page > .content-wrapper { min-height: 100vh; }
.newerp-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--newerp-border); box-shadow: none !important; }
.newerp-brand { min-height: var(--newerp-topbar-height); padding: .65rem 1rem !important; border-bottom: 1px solid var(--newerp-border); }
.newerp-brand .app-brand-link { gap: .65rem; min-width: 0; }
.newerp-brand .app-brand-link > span:last-child { display: flex; min-width: 0; flex-direction: column; }
.newerp-brand .app-brand-text { color: var(--newerp-primary); font-size: 1.25rem; line-height: 1.15; letter-spacing: -.02em; }
.newerp-brand small { color: var(--newerp-muted); font-size: .55rem; line-height: 1.2; letter-spacing: .18em; }
.aitr-brand-mark { width: 2.15rem; height: 2.15rem; min-width: 2.15rem; border-radius: .5rem; background: var(--newerp-primary); color: #fff; font-size: 1rem; font-weight: 700; box-shadow: none; }
.newerp-sidebar .menu-inner { flex: 1 1 auto; padding-inline: .65rem; }
.newerp-sidebar .menu-header { margin: .75rem .4rem .35rem; padding: 0; color: #a1adba; font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.newerp-sidebar .menu-item { margin-bottom: .15rem; }
.newerp-sidebar .menu-link { min-height: 2.65rem; border-radius: .42rem; color: #64768a; font-size: .9rem; }
.newerp-sidebar .menu-item.active > .menu-link { background: var(--newerp-primary-soft); box-shadow: none; color: var(--newerp-primary); }
.newerp-sidebar .menu-item:not(.active) > .menu-link:hover { background: #f3f4f7; color: var(--newerp-primary); }
.newerp-sidebar .menu-icon { color: #8293a6; font-size: 1.2rem; }
.newerp-sidebar .active .menu-icon { color: var(--newerp-primary); }
.newerp-menu-bottom { flex: 0 0 auto; padding: .65rem; border-top: 1px solid var(--newerp-border); background: #fff; }
.newerp-menu-bottom form { margin: .15rem 0 0; }
.newerp-menu-bottom .menu-link { display: flex; width: 100%; align-items: center; border: 0; background: transparent; text-align: left; }
.newerp-menu-bottom .menu-link.active { background: var(--newerp-primary-soft); color: var(--newerp-primary); }
.newerp-menu-bottom .newerp-logout { color: #ff5b45; }
.newerp-menu-bottom .newerp-logout .menu-icon { color: #ff5b45; }

.newerp-topbar { position: sticky; z-index: 1020; top: 0; display: flex; min-height: var(--newerp-topbar-height); width: 100%; padding: .45rem 1.25rem; border-bottom: 1px solid var(--newerp-border); background: #fff; box-shadow: none; }
.newerp-breadcrumb { display: flex; min-width: 0; align-items: center; gap: .45rem; color: #93a0af; font-size: .82rem; }
.newerp-breadcrumb .bx-home { color: var(--newerp-primary); font-size: 1.05rem; }
.newerp-breadcrumb strong { overflow: hidden; color: #526579; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.newerp-user-actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.newerp-language-button, .newerp-top-logout { display: inline-flex; width: 2.35rem; height: 2.35rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: .4rem; background: transparent; color: #64768a; }
.newerp-language-button:hover, .newerp-top-logout:hover { border-color: var(--newerp-border); background: #f7f7fb; color: var(--newerp-primary); }
.newerp-language-button img { width: 1.7rem; height: 1.12rem; border-radius: .12rem; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.newerp-top-logout { color: #ff5b45; font-size: 1.25rem; }
.newerp-login { display: flex; align-items: center; gap: .55rem; padding: .25rem .2rem; color: #526579; }
.newerp-login:hover { color: var(--newerp-primary); }
.newerp-login > span:last-child { display: flex; max-width: 13rem; flex-direction: column; }
.newerp-login strong, .newerp-login small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.newerp-login strong { font-size: .82rem; font-weight: 600; }
.newerp-login small { color: #8b99a9; font-size: .66rem; }
.aitr-user-avatar { width: 2.15rem; height: 2.15rem; flex-basis: 2.15rem; background: var(--newerp-primary); color: #fff; box-shadow: none; }

.newerp-content { width: 100%; min-height: calc(100vh - var(--newerp-topbar-height) - 2.6rem); padding: 1.25rem; background: var(--newerp-bg); }
.newerp-footer { display: flex; min-height: 2.6rem; align-items: center; justify-content: space-between; padding: .65rem 1.25rem; border-top: 1px solid var(--newerp-border); background: #fff; color: var(--newerp-muted); font-size: .7rem; }
.newerp-footer a { color: var(--newerp-primary); }

.newerp-content .page-heading { margin: 0 0 1rem; }
.newerp-content .page-heading h1 { margin: .2rem 0; color: #526579; font-size: 1.45rem; letter-spacing: -.02em; }
.newerp-content .page-heading p { margin: 0; font-size: .82rem; }
.newerp-content .panel { border: 1px solid #eceef2; border-radius: .45rem; box-shadow: 0 .15rem .45rem rgba(46,55,69,.08); }
.newerp-content .stats { gap: 1rem; margin-bottom: 1rem; }
.newerp-content .stats .panel { padding: 1.2rem; }
.newerp-content .stats article > strong { font-size: 1.7rem; }
.newerp-content .panel > h2,
.newerp-content .panel .section-heading h2,
.newerp-content .mcp-doc-content h2 { margin: 0 0 .85rem; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.01em; }
.newerp-content .button { min-height: 2.15rem; border-radius: .35rem; padding: .42rem .9rem; font-size: .82rem; }
.newerp-content .button-small { min-height: 1.95rem; padding: .3rem .65rem; }
.newerp-content .filters .button > i { font-size: 1.3rem; line-height: 1; }
.newerp-content .button-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; min-width: 2.4rem; padding: 0; font-size: 1.1rem; }
.newerp-content .page-actions,
.newerp-content .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--newerp-action-gap); }
.newerp-content .form-actions.form-actions-end { justify-content: flex-end; width: 100%; }
.newerp-content .page-actions > *,
.newerp-content .form-actions > * { margin: 0 !important; }
.newerp-content .list-actions { min-width: 8.8rem; text-align: right; vertical-align: middle; white-space: nowrap; }
.newerp-content table:has(td.list-actions) th:last-child { min-width: 8.8rem; text-align: right; }
.newerp-content .list-action-group { display: inline-flex; align-items: center; justify-content: flex-end; gap: .45rem; }
.newerp-content .list-action-form { display: inline-flex; margin: 0; }
.newerp-content .list-action-button { display: inline-flex; width: 2.4rem; height: 2.4rem; min-width: 2.4rem; box-sizing: border-box; align-items: center; justify-content: center; padding: 0; border: 1px solid #cfd3ff; border-radius: .45rem; background: #fff; color: var(--newerp-primary); cursor: pointer; font: inherit; font-size: 1.15rem; line-height: 1; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease, transform .15s ease; }
.newerp-content .list-action-button:hover { border-color: var(--newerp-primary); background: var(--newerp-primary-soft); color: #5659e6; box-shadow: 0 .2rem .45rem rgba(105,108,255,.16); transform: translateY(-1px); }
.newerp-content .list-action-button:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem rgba(105,108,255,.2); }
.newerp-content .list-action-primary { border-color: var(--newerp-primary); background: var(--newerp-primary); color: #fff; }
.newerp-content .list-action-primary:hover { background: #5f61e6; color: #fff; }
.newerp-content .list-action-danger { border-color: #ffc6bd; color: #ff3e1d; }
.newerp-content .list-action-danger:hover { border-color: #ff3e1d; background: #fff0ed; color: #dc3218; box-shadow: 0 .2rem .45rem rgba(255,62,29,.14); }
.newerp-content .list-action-warning { border-color: #ffe0ad; color: #b97817; }
.newerp-content .list-action-warning:hover { border-color: #ffab2e; background: #fff7e8; color: #9c6513; }
.newerp-content .list-action-success { border-color: #bde8a8; color: #4e9b28; }
.newerp-content .list-action-success:hover { border-color: #71dd37; background: #f0fbe9; color: #3f8520; }
.newerp-content .list-action-button:disabled { border-color: #d9dee3; background: #f5f5f9; color: #a1acb8; cursor: not-allowed; box-shadow: none; transform: none; }
.newerp-content .user-log-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .9rem 0; padding: .75rem .85rem; border: 1px solid #e1e3ff; border-radius: .45rem; background: #f8f8ff; }
.newerp-content .user-log-selection-tools, .newerp-content .user-log-bulk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--newerp-action-gap); }
.newerp-content .user-log-selection-tools > strong { margin-right: .15rem; color: #526579; font-size: .78rem; }
.newerp-content #user-log-selected-count { color: var(--newerp-muted); font-size: .72rem; }
.newerp-content .user-log-bulk-actions .button { display: inline-flex; align-items: center; gap: .35rem; }
.newerp-content .button.user-log-delete-button { border-color: #ff5b45; background: #ff5b45; color: #fff; }
.newerp-content .button.user-log-delete-button:hover { border-color: #e54831; background: #e54831; color: #fff; }
.newerp-content .button.user-log-delete-button:disabled { border-color: #efc2ba; background: #f9ded9; color: #fff; }
.newerp-content .user-log-selection-column { width: 2.8rem; min-width: 2.8rem; text-align: center; }
.newerp-content .user-log-selection-column input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--newerp-primary); cursor: pointer; }
.newerp-content .user-log-row-archived { background: #fafbfc; }
.newerp-content .user-log-row-archived > td { color: #758496; }
.user-log-confirmation-dialog { overflow: hidden; border: 0; border-radius: .7rem; box-shadow: 0 1.5rem 4rem rgba(30,42,59,.28); }
.user-log-confirmation-dialog .modal-header { padding: 1rem 1.2rem; border-bottom: 1px solid #eceef2; background: #f8f8ff; }
.user-log-confirmation-dialog .modal-title { margin: .2rem 0 0; color: #526579; font-size: 1.15rem; }
.user-log-confirmation-dialog .modal-body { padding: 1.3rem; }
.user-log-confirmation-message { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem; border: 1px solid #dfe2ff; border-radius: .5rem; background: #f8f8ff; }
.user-log-confirmation-message p { margin: .15rem 0 0; color: #526579; line-height: 1.55; }
.user-log-confirmation-icon { display: inline-flex; flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; border-radius: 50%; background: #e7e7ff; color: var(--newerp-primary); font-size: 1.35rem; }
.user-log-confirmation-footer { gap: var(--newerp-action-gap); padding: .9rem 1.2rem; border-top: 1px solid #eceef2; }
.user-log-confirmation-footer form { margin: 0; }
.user-log-confirmation-footer .button { display: inline-flex; align-items: center; gap: .35rem; }
.user-log-confirmation-danger .user-log-confirmation-message { border-color: #ffd0c8; background: #fff6f4; }
.user-log-confirmation-danger .user-log-confirmation-icon { background: #ffe3de; color: #dc3218; }
.user-log-confirmation-footer .button.user-log-delete-button { border-color: #ff5b45; background: #ff5b45; color: #fff; }
@media (max-width: 820px) { .newerp-content .user-log-toolbar { align-items: stretch; flex-direction: column; } .newerp-content .user-log-bulk-actions .button { flex: 1 1 auto; justify-content: center; } }
.connection-detail-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.9rem;margin-bottom:1rem; }
.connection-detail-grid article { display:grid;grid-template-columns:2.4rem 1fr;column-gap:.65rem;align-items:center;padding:.9rem;border:1px solid #e4e6f5;border-radius:.55rem;background:#fafaff; }
.connection-detail-grid article>i { grid-row:1/3;display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:.45rem;background:#ececff;color:var(--newerp-primary);font-size:1.25rem; }
.connection-detail-grid article>span { color:#8a98a9;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em; }
.connection-detail-grid article>strong { color:#44566c;overflow-wrap:anywhere; }
.connection-technical-card { margin-top:1rem;padding:1rem;border:1px solid #e4e6f5;border-radius:.55rem;background:#202534;color:#eef1ff; }
.connection-technical-card h3 { color:#fff;font-size:1rem; }.connection-technical-card pre { margin:0;white-space:pre-wrap;color:#d9def8; }
.newerp-content .workspace-configuration { padding: 1rem 1.2rem; }
.newerp-content .workspace-configuration h2 { margin: 0 0 .8rem; font-size: 1.05rem; }
.newerp-content .workspace-config-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem 1.2rem; margin: 0; }
.newerp-content .workspace-config-item { min-width: 0; }
.newerp-content .workspace-config-wide { grid-column: span 2; }
.newerp-content .workspace-config-item dt { margin: 0; font-size: .7rem; }
.newerp-content .workspace-config-item dd { margin: .2rem 0 0; font-size: .8rem; overflow-wrap: anywhere; }
.newerp-content .workspace-chat-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.newerp-content .workspace-chat-link h2 { margin: 0 0 .35rem; }
.newerp-content .workspace-chat-link p { margin: 0; }
.newerp-content .wizard-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.newerp-content .wizard-progress li { display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border: 1px solid #d9dee3; border-radius: .45rem; background: #fff; color: #8592a3; font-size: .78rem; }
.newerp-content .wizard-progress li span { display: inline-flex; width: 1.65rem; height: 1.65rem; align-items: center; justify-content: center; border-radius: 50%; background: #eceef1; font-weight: 700; }
.newerp-content .wizard-progress li.active { border-color: var(--newerp-primary); color: var(--newerp-primary); }
.newerp-content .wizard-progress li.active span, .newerp-content .wizard-progress li.complete span { background: var(--newerp-primary); color: #fff; }
.newerp-content .wizard-selection-panel { width: 100%; max-width: none; }
.newerp-content .mcp-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .2rem 0 1rem; }
.newerp-content .mcp-selection-heading h2 { margin: .15rem 0 0; color: #526579; font-size: 1.05rem; }
.newerp-content .mcp-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.newerp-content .mcp-choice { position: relative; display: grid; min-width: 0; grid-template-columns: 2.8rem minmax(0,1fr); gap: .85rem; margin: 0; padding: 1rem 3.4rem 1rem 1rem; border: 1px solid #d9dee3; border-radius: .6rem; background: #fff; color: var(--newerp-text); cursor: pointer; transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.newerp-content .mcp-choice:hover { border-color: #b9bbff; background: #fcfcff; box-shadow: 0 .3rem .9rem rgba(70,76,115,.09); transform: translateY(-1px); }
.newerp-content .mcp-choice:has(.mcp-choice-input:checked) { border-color: var(--newerp-primary); background: #f8f8ff; box-shadow: 0 0 0 .15rem rgba(105,108,255,.1); }
.newerp-content .mcp-choice-input { position: absolute; top: 1rem; right: 1rem; width: 1.45rem; height: 1.45rem; margin: 0; opacity: 0; }
.newerp-content .mcp-choice-check { position: absolute; top: 1rem; right: 1rem; display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border: 1px solid #c9ced6; border-radius: .38rem; background: #fff; color: transparent; font-size: 1rem; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease; }
.newerp-content .mcp-choice-input:checked + .mcp-choice-check { border-color: var(--newerp-primary); background: var(--newerp-primary); color: #fff; }
.newerp-content .mcp-choice-input:focus-visible + .mcp-choice-check { box-shadow: 0 0 0 .2rem rgba(105,108,255,.22); }
.newerp-content .mcp-choice-application-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .55rem; background: var(--newerp-primary-soft); color: var(--newerp-primary); font-size: 1.35rem; }
.newerp-content .mcp-choice-content { display: block; min-width: 0; }
.newerp-content .mcp-choice-title { display: flex; min-height: 1.45rem; align-items: center; justify-content: space-between; gap: .75rem; padding-right: .25rem; }
.newerp-content .mcp-choice-title > strong { overflow: hidden; color: #526579; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.newerp-content .mcp-choice-title > span { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .25rem; color: #27805f; font-size: .68rem; font-weight: 600; }
.newerp-content .mcp-choice-application { display: block; margin-top: .12rem; color: var(--newerp-muted); font-size: .74rem; }
.newerp-content .mcp-choice-details { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: .8rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid #eceef2; }
.newerp-content .mcp-choice-details > span { display: flex; min-width: 0; flex-direction: column; gap: .2rem; }
.newerp-content .mcp-choice-details small { color: #99a4b1; font-size: .62rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.newerp-content .mcp-choice-details strong { overflow-wrap: anywhere; color: #60758a; font-size: .7rem; font-weight: 600; line-height: 1.45; }
.newerp-content .mcp-choice-details em { color: var(--newerp-muted); font-size: .64rem; font-style: normal; line-height: 1.4; }
.newerp-content .mcp-choice-state { display: inline-flex; align-items: center; gap: .28rem; }
.newerp-content .mcp-choice-state-success { color: #27805f !important; }
.newerp-content .mcp-choice-state-error { color: #d84a33 !important; }
.newerp-content .mcp-choice-state-undefined { color: #81748f !important; }
.newerp-content .wizard-navigation { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #eceef2; }
.newerp-content .wizard-navigation-panel { margin-top: 1rem; padding: 1rem; }
.newerp-content .wizard-team-panel { margin-bottom: 1rem; }
.newerp-content .wizard-agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.newerp-content .wizard-agent-card { min-width: 0; }
.newerp-content .wizard-agent-card .section-heading { align-items: flex-start; gap: 1rem; }
.newerp-content .wizard-agent-card .section-heading h2 { margin: .2rem 0; }
.newerp-content .master-choice { display: inline-flex; flex: 0 0 auto; align-items: center; cursor: pointer; }
.newerp-content .master-choice input { position: absolute; opacity: 0; pointer-events: none; }
.newerp-content .master-choice span { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .65rem; border: 1px solid #cfd3ff; border-radius: .45rem; color: var(--newerp-primary); font-size: .75rem; font-weight: 600; }
.newerp-content .master-choice input:checked + span { border-color: var(--newerp-primary); background: var(--newerp-primary); color: #fff; box-shadow: 0 .2rem .45rem rgba(105,108,255,.2); }
@media (max-width: 780px) {
  .newerp-content .workspace-config-grid { grid-template-columns: 1fr; }
  .newerp-content .workspace-config-wide { grid-column: auto; }
  .newerp-content .workspace-chat-link { align-items: flex-start; flex-direction: column; }
  .newerp-content .mcp-choice-grid { grid-template-columns: 1fr; }
  .newerp-content .wizard-agent-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .newerp-content .mcp-selection-heading { align-items: flex-start; flex-direction: column; }
  .newerp-content .mcp-choice-details { grid-template-columns: 1fr; }
  .newerp-content .mcp-choice-title { align-items: flex-start; flex-direction: column; gap: .25rem; }
}
.description-box { position: relative; margin: .8rem 0 1.15rem; padding: .7rem .85rem .7rem 2.35rem; border: 1px solid #cfe2ff; border-left: .22rem solid #696cff; border-radius: .4rem; background: #f2f6ff; color: #60758a !important; font-size: .76rem; line-height: 1.55; }
.description-box::before { position: absolute; top: .68rem; left: .8rem; color: #696cff; content: "ⓘ"; font-size: 1rem; font-weight: 700; }
.description-box a { color: #696cff; font-weight: 600; }
.copy-button { min-width: 6.4rem; overflow: hidden; transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.copy-button.copy-button-compact { min-width: 2.2rem; }
.credential-copy { min-width: 23rem; }
.credential-copy .form-control { font-family: var(--bs-font-monospace); font-size: .74rem; }
.configuration-field > label, .configuration-field > strong { display: block; margin-bottom: .45rem; color: #526579; font-size: .82rem; }
.mcp-credential-row { margin-top: .9rem; padding: .85rem; border: 1px solid var(--newerp-border); border-radius: .45rem; background: #fbfbfd; }
.mcp-credential-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.mcp-credential-heading > span:first-child { display: flex; min-width: 0; flex-direction: column; }
.mcp-credential-heading small { color: var(--newerp-muted); font-size: .72rem; }
.mcp-client-actions { min-width: 11.75rem !important; }
.configuration-help { display: block; margin-top: .4rem; color: var(--newerp-muted); font-size: .7rem; }
.configuration-loading { display: flex; min-height: 9rem; align-items: center; justify-content: center; gap: .65rem; color: var(--newerp-muted); }
#mcp-configuration-dialog .modal-header h2 { margin: .15rem 0 0; color: #526579; font-size: 1.1rem; }
#mcp-configuration-dialog .modal-body { padding: 1.25rem; }
.mcp-test-dialog { overflow: hidden; border: 0; border-radius: .7rem; box-shadow: 0 1.25rem 3.5rem rgba(40,48,70,.28); }
.mcp-test-header { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--newerp-border); background: linear-gradient(135deg,#f7f7ff 0%,#eef5ff 100%); }
.mcp-test-header h2 { display: flex; align-items: center; gap: .55rem; margin: .15rem 0 0; color: #526579; font-size: 1.1rem; }
.mcp-test-header h2 i { color: var(--newerp-primary); font-size: 1.35rem; }
.mcp-test-body { padding: 1.25rem; }
.mcp-test-target { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; padding: .75rem .9rem; border: 1px solid #e0e3ff; border-radius: .5rem; background: #f8f8ff; }
.mcp-test-target-icon { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border-radius: .45rem; background: var(--newerp-primary); color: #fff; font-size: 1.3rem; }
.mcp-test-target > div { display: grid; min-width: 0; grid-template-columns: auto 1fr; align-items: baseline; gap: .05rem .55rem; }
.mcp-test-target small { grid-column: 1 / -1; color: var(--newerp-muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.mcp-test-target strong { color: #526579; font-size: .92rem; }
.mcp-test-target div > span { color: var(--newerp-muted); font-size: .78rem; }
.mcp-test-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.mcp-test-card { display: flex; gap: .75rem; padding: 1rem; border: 1px solid; border-radius: .55rem; }
.mcp-test-card-positive { border-color: #c9eadc; background: #f1fbf7; }
.mcp-test-card-warning { border-color: #f3d6bf; background: #fff8f2; }
.mcp-test-card-icon { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; font-size: 1.15rem; }
.mcp-test-card-positive .mcp-test-card-icon { background: #d8f3e7; color: #27805f; }
.mcp-test-card-warning .mcp-test-card-icon { background: #ffead8; color: #b86625; }
.mcp-test-card h3 { margin: .1rem 0 .45rem; color: #526579; font-size: .88rem; }
.mcp-test-card p, .mcp-test-card li { color: #60758a; font-size: .75rem; line-height: 1.55; }
.mcp-test-card p { margin: 0 0 .45rem; }
.mcp-test-card ul { margin: 0; padding-left: 1.05rem; }
.mcp-test-result { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border: 1px solid; border-radius: .5rem; }
.mcp-test-result[hidden] { display: none; }
.mcp-test-result-icon { display: inline-flex; flex: 0 0 2rem; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; font-size: 1.2rem; }
.mcp-test-result div { display: grid; gap: .1rem; }
.mcp-test-result strong { font-size: .82rem; }
.mcp-test-result span:not(.mcp-test-result-icon) { color: var(--newerp-muted); font-size: .76rem; }
.mcp-test-result-success { border-color: #b9e2d3; background: #f1fbf7; color: #24745a; }
.mcp-test-result-success .mcp-test-result-icon { background: #d9f2e8; }
.mcp-test-result-error { border-color: #efc1c8; background: #fff5f6; color: #a33246; }
.mcp-test-result-error .mcp-test-result-icon { background: #f9dfe3; }
.mcp-test-conclusion { margin-bottom: .8rem; }
.mcp-test-endpoint { display: flex; align-items: center; gap: .65rem; padding: .65rem .8rem; border-radius: .4rem; background: #f5f6f8; color: var(--newerp-muted); font-size: .72rem; }
.mcp-test-endpoint code { min-width: 0; overflow: hidden; color: #526579; text-overflow: ellipsis; white-space: nowrap; }
.mcp-test-footer { justify-content: space-between; gap: var(--newerp-action-gap); padding: .9rem 1.25rem; border-top: 1px solid var(--newerp-border); }
.mcp-test-footer form { margin: 0; }
.mcp-test-close { margin-left: auto; }
.mcp-test-footer .button { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 680px) { .mcp-test-check-grid { grid-template-columns: 1fr; } .mcp-test-footer { align-items: stretch; flex-direction: column; } .mcp-test-footer form, .mcp-test-footer .button { width: 100%; justify-content: center; } .mcp-test-close { margin-left: 0; } }
.copy-button.copy-success { border-color: #39856a !important; background: #39856a !important; box-shadow: 0 0 0 .2rem rgba(57,133,106,.18); transform: translateY(-1px) scale(1.02); }
.copy-button.copy-success i { animation: copy-check-pop .42s cubic-bezier(.2,.9,.3,1.35); }
.copy-button.copy-error { border-color: #b53f54 !important; background: #b53f54 !important; }
@keyframes copy-check-pop { 0% { opacity: 0; transform: scale(.2) rotate(-25deg); } 70% { transform: scale(1.3) rotate(5deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@media (prefers-reduced-motion: reduce) { .copy-button { transition: none; } .copy-button.copy-success i { animation: none; } }

.newerp-content .deletion-impact-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.newerp-content .deletion-target-panel, .newerp-content .deletion-danger-panel, .newerp-content .deletion-confirmation-panel { border-color: #ffd5ce; }
.newerp-content .description-box-warning { border-color: #f3d6bf; border-left-color: #ffab2e; background: #fff8f2; }
.newerp-content .description-box-warning::before { color: #b86625; }
.newerp-content .description-box-danger { border-color: #ffcfc7; border-left-color: #ff3e1d; background: #fff4f2; color: #8a4a40 !important; }
.newerp-content .description-box-danger::before { color: #ff3e1d; }
.newerp-content .deletion-heading-icon { color: #ff3e1d; font-size: 1.75rem; }
.newerp-content .deletion-heading-safe { color: #71dd37; }
.newerp-content .badge-success { border-color: #c9eadc; background: #e9f8f1; color: #27805f; }
.newerp-content .deletion-technical-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.newerp-content .deletion-technical-grid article { display: flex; min-width: 0; gap: .75rem; padding: .85rem; border: 1px solid var(--newerp-border); border-radius: .45rem; background: #fbfbfd; }
.newerp-content .deletion-technical-grid article > i { color: var(--newerp-primary); font-size: 1.35rem; }
.newerp-content .deletion-technical-grid article div { display: flex; min-width: 0; flex-direction: column; gap: .2rem; }
.newerp-content .deletion-technical-grid article strong { color: #526579; font-size: .82rem; }
.newerp-content .deletion-technical-grid article span { color: var(--newerp-muted); font-size: .74rem; line-height: 1.45; }
.newerp-content .delete-page-shell { width: min(52rem,100%); margin-inline: auto; }
.newerp-content .delete-page-shell-wide { width: min(86rem,100%); }
.newerp-content .delete-page-shell .page-heading { text-align: left; }
.newerp-content .delete-page-shell .panel { width: 100%; }
.newerp-content .delete-page-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--newerp-action-gap); margin-top: 1rem; }
@media (max-width: 900px) { .newerp-content .deletion-impact-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) { .newerp-content .deletion-impact-stats, .newerp-content .deletion-technical-grid { grid-template-columns: 1fr; } }

.language-overlay { position: fixed; z-index: 1500; inset: 0; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(69,83,103,.46); backdrop-filter: blur(2px); }
.language-overlay.open { display: flex; }
.newerp-language-dialog { display: flex; width: min(36rem, 100%); max-height: min(48rem, 90vh); flex-direction: column; overflow: hidden; border: 0; border-radius: .75rem; background: #fff; box-shadow: 0 1.5rem 4rem rgba(30,42,59,.28); padding: 0; }
.language-dialog-header { display: flex; min-height: 4rem; align-items: center; justify-content: space-between; padding: .9rem 1.35rem; border-bottom: 1px solid var(--newerp-border); }
.language-dialog-header h2 { display: flex; align-items: center; gap: .55rem; margin: 0; color: #526579; font-size: 1rem; font-weight: 700; }
.language-dialog-header h2 i { font-size: 1.2rem; }
.language-close { border: 0; background: transparent; color: #91a0b0; font-size: 1.5rem; line-height: 1; }
.language-search { position: relative; display: block; margin: .85rem 1.35rem; }
.language-search i { position: absolute; z-index: 1; top: 50%; left: .8rem; color: #91a0b0; transform: translateY(-50%); }
.language-search input { width: 100%; height: 2.55rem; padding: .55rem .8rem .55rem 2.35rem; border: 1px solid #d9dee5; border-radius: .4rem; color: #526579; font: inherit; }
.language-search input:focus { border-color: var(--newerp-primary); box-shadow: 0 0 0 .18rem rgba(105,108,255,.12); outline: 0; }
.language-list { display: block; overflow-y: auto; padding: 0 1.35rem; }
.language-form { margin: 0; }
.language-row { display: flex; width: 100%; min-height: 3.3rem; align-items: center; gap: .85rem; padding: .55rem .1rem; border: 0; border-bottom: 1px solid var(--newerp-border); background: #fff; color: #526579; text-align: left; }
.language-row:hover { background: #f8f8fc; }
.language-row.current { margin-inline: -.1rem; padding-inline: .55rem; background: var(--newerp-primary-soft); color: var(--newerp-primary); }
.language-flag, .inline-flag { width: 2rem; height: 1.35rem; flex-shrink: 0; border-radius: .12rem; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.language-name { flex: 1; font-size: .9rem; font-weight: 500; }
.language-choice { min-width: 6.75rem; padding: .28rem .55rem; border: 1px solid #d4dae2; border-radius: .35rem; color: #6d7d8f; font-size: .76rem; text-align: center; }
.language-row.current .language-choice { border-color: transparent; color: var(--newerp-primary); font-weight: 600; }
.language-empty { display: none; margin: 1rem; color: var(--newerp-muted); text-align: center; }
.language-dialog-footer { display: flex; justify-content: flex-end; padding: .85rem 1.35rem; border-top: 1px solid var(--newerp-border); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }

.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.account-heading > div:first-child { display: flex; align-items: center; gap: .65rem; }
.account-heading h1 { margin: 0; color: #526579; font-size: 1.35rem; }
.account-title-icon { color: #49a8ff; font-size: 1.35rem; }
.account-info { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid #cce6ff; border-radius: .4rem; background: #eef7ff; color: #65819c; font-size: .78rem; }
.account-card { max-width: 63rem; margin-bottom: 1rem; padding: 0 !important; overflow: hidden; }
.account-card h2 { margin: 0; padding: .9rem 1.1rem; border-bottom: 1px solid var(--newerp-border); color: #9aabba; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.account-information-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.25rem 2rem; margin: 0; padding: 1.2rem; }
.account-information-grid div { min-width: 0; }
.account-information-grid dt { margin: 0 0 .25rem; color: #8998a8; font-size: .67rem; text-transform: uppercase; }
.account-information-grid dd { display: flex; min-height: 1.4rem; align-items: center; gap: .45rem; margin: 0; overflow-wrap: anywhere; color: #526579; font-size: .82rem; }
.account-role-list { padding: 1rem; }
.account-role-list > span { display: flex; align-items: center; gap: .65rem; padding: .75rem; border: 1px solid var(--newerp-border); border-radius: .4rem; }
.account-role-list i { color: var(--newerp-primary); font-size: 1.15rem; }
.account-role-list strong { font-size: .85rem; }
.account-role-list small { margin-left: .25rem; color: var(--newerp-muted); }

@media (max-width: 1199.98px) {
  .newerp-topbar { padding-inline: 1rem; }
  .newerp-breadcrumb { margin-left: .75rem; }
}
@media (max-width: 767.98px) {
  .newerp-content { padding: 1rem; }
  .newerp-login > span:last-child, .newerp-breadcrumb span, .newerp-breadcrumb .bx-chevron-right { display: none; }
  .newerp-user-actions { gap: .25rem; }
  .account-information-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 479.98px) {
  .newerp-breadcrumb { display: none; }
  .newerp-user-actions { width: 100%; justify-content: flex-end; }
  .account-information-grid { grid-template-columns: 1fr; }
  .language-overlay { padding: .5rem; }
  .language-choice { min-width: auto; border: 0; }
}
.mcp-doc-menu a { color: var(--bs-body-color); margin-bottom: .25rem; }
.mcp-doc-menu a:hover, .mcp-doc-menu a.active { background: rgba(105, 108, 255, .12); color: #696cff; }
.mcp-doc-content pre { padding: 1rem; border-radius: .5rem; background: #f5f5f9; white-space: pre-wrap; overflow-wrap: anywhere; }
.mcp-doc-content code { overflow-wrap: anywhere; }
.badge-danger { background: #ffe7e3 !important; color: #ff3e1d !important; border-color: #ffd2ca !important; }
.connection-device { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.connection-device .bx { color: #696cff; font-size: 1.15rem; }
.connection-result-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1; }
.connection-result-icon.is-success { color: #71dd37; }
.connection-result-icon.is-failure { color: #ff3e1d; }
.connection-full-info { position: relative; }
.connection-full-info summary { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 1px solid #cfd3ff; border-radius: .45rem; background: #fff; color: #696cff; cursor: pointer; list-style: none; font-size: 1.15rem; }
.connection-full-info summary::-webkit-details-marker { display: none; }
.connection-full-info pre { min-width: 24rem; max-width: 42rem; max-height: 18rem; margin: .5rem 0 0; padding: .75rem; overflow: auto; border: 1px solid #d9dee3; border-radius: .4rem; background: #f5f5f9; color: #566a7f; white-space: pre-wrap; word-break: break-word; font-size: .72rem; }

/* En-têtes NewERP homogènes : même composition que les cartes Paramètres. */
.newerp-content {
  --newerp-card-radius: .65rem;
  --newerp-card-padding: 1.25rem;
  --newerp-header-border: #e2e5f5;
  --newerp-header-background: linear-gradient(135deg, #fbfbff 0%, #f2f4ff 100%);
}
.newerp-content .page-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5.6rem;
  margin: 0 0 1rem;
  padding: 1rem 1.2rem;
  overflow: hidden;
  border: 1px solid var(--newerp-header-border);
  border-radius: var(--newerp-card-radius);
  background: var(--newerp-header-background);
  box-shadow: 0 .25rem .9rem rgba(61, 73, 110, .08);
}
.newerp-content .page-heading::before,
.newerp-content .panel > .section-heading:first-child::before {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: .62rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23696cff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3Ccircle cx='9' cy='6' r='2' fill='white'/%3E%3Ccircle cx='15' cy='12' r='2' fill='white'/%3E%3Ccircle cx='8' cy='18' r='2' fill='white'/%3E%3C/svg%3E") center / 1.25rem no-repeat;
  color: var(--newerp-primary);
  box-shadow: 0 .15rem .45rem rgba(46, 55, 69, .12);
  content: "";
  font-size: 1.2rem;
  line-height: 1;
}
.newerp-content .page-heading > :first-child { min-width: 0; }
.newerp-content .page-heading .eyebrow,
.newerp-content .panel > .section-heading:first-child .eyebrow {
  display: block;
  color: var(--newerp-primary);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
}
.newerp-content .page-heading h1 {
  margin: .16rem 0 .12rem;
  color: #526579;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
}
.newerp-content .page-heading p {
  margin: 0;
  color: #8492a3;
  font-size: .76rem;
  line-height: 1.5;
}
.newerp-content .page-heading .heading-icon { display: none; }
.newerp-content .page-heading > .page-actions,
.newerp-content .page-heading > .badge,
.newerp-content .page-heading > .button,
.newerp-content .page-heading > .btn { justify-self: end; }

.newerp-content .panel {
  padding: var(--newerp-card-padding);
  border-color: #e2e5ed;
  border-radius: var(--newerp-card-radius);
  box-shadow: 0 .2rem .75rem rgba(61, 73, 110, .07);
}
.newerp-content .panel > .section-heading:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  margin: calc(var(--newerp-card-padding) * -1) calc(var(--newerp-card-padding) * -1) var(--newerp-card-padding);
  padding: .95rem 1.1rem;
  border-bottom: 1px solid var(--newerp-header-border);
  background: var(--newerp-header-background);
}
.newerp-content .panel > .section-heading:first-child > :first-child { min-width: 0; }
.newerp-content .panel > .section-heading:first-child h2 {
  margin: .12rem 0 0;
  color: #526579;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.newerp-content .panel > .section-heading:first-child p,
.newerp-content .panel > .section-heading:first-child small {
  display: block;
  margin: .15rem 0 0;
  color: #8492a3;
  font-size: .73rem;
  line-height: 1.45;
}
.newerp-content .panel > h2:first-child {
  display: flex;
  min-height: 4.65rem;
  align-items: center;
  gap: .8rem;
  margin: calc(var(--newerp-card-padding) * -1) calc(var(--newerp-card-padding) * -1) var(--newerp-card-padding);
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--newerp-header-border);
  background: var(--newerp-header-background);
  color: #526579;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  text-transform: none;
}
.newerp-content .panel > h2:first-child:not(:has(> i:first-child))::before,
.newerp-content .panel > h2:first-child > i:first-child {
  display: inline-grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 2.55rem;
  place-items: center;
  border-radius: .58rem;
  background: #fff;
  color: var(--newerp-primary);
  box-shadow: 0 .15rem .45rem rgba(46, 55, 69, .11);
  font-size: 1.18rem;
  line-height: 1;
}
.newerp-content .panel > h2:first-child:not(:has(> i:first-child))::before {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23696cff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3Ccircle cx='9' cy='6' r='2' fill='white'/%3E%3Ccircle cx='15' cy='12' r='2' fill='white'/%3E%3Ccircle cx='8' cy='18' r='2' fill='white'/%3E%3C/svg%3E") center / 1.18rem no-repeat;
  content: "";
}
.newerp-content h1 { font-size: clamp(1.08rem, 1.3vw, 1.22rem); }
.newerp-content h2 { font-size: clamp(.98rem, 1.15vw, 1.1rem); }
.newerp-content .stats article > strong { font-size: 1.45rem; letter-spacing: -.025em; }
.newerp-content .stats article > strong.stat-text { font-size: 1.02rem; }
.newerp-content .empty-state { padding: 2rem; }
.newerp-content .empty-state h2 { font-size: 1.12rem; letter-spacing: -.01em; }

.newerp-content .account-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5.6rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--newerp-header-border);
  border-radius: var(--newerp-card-radius);
  background: var(--newerp-header-background);
  box-shadow: 0 .25rem .9rem rgba(61, 73, 110, .08);
}
.newerp-content .account-heading h1 { font-size: 1.12rem; }
.newerp-content .account-heading .account-title-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .62rem;
  background: #fff;
  box-shadow: 0 .15rem .45rem rgba(46, 55, 69, .12);
}
.newerp-content .account-info { margin: .75rem 0 1rem; }
.newerp-content .account-card > h2 {
  min-height: 4.3rem;
  padding: .75rem 1rem;
  background: var(--newerp-header-background);
  color: #526579;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.newerp-content .account-card > .section-heading:first-child { margin: 0; }

@media (max-width: 767.98px) {
  .newerp-content .page-heading { grid-template-columns: auto minmax(0, 1fr); }
  .newerp-content .page-heading > .page-actions,
  .newerp-content .page-heading > .badge,
  .newerp-content .page-heading > .button,
  .newerp-content .page-heading > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .newerp-content .account-heading { grid-template-columns: 1fr; }
  .newerp-content .account-heading .page-actions { justify-self: start; }
  .newerp-content .panel > .section-heading:first-child { grid-template-columns: auto minmax(0, 1fr); }
  .newerp-content .panel > .section-heading:first-child > :last-child:not(:first-child) { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 479.98px) {
  .newerp-content .page-heading,
  .newerp-content .panel > .section-heading:first-child { grid-template-columns: 1fr; }
  .newerp-content .page-heading::before,
  .newerp-content .panel > .section-heading:first-child::before { display: none; }
}
