/* 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 .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 .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; }
.newerp-content td.text-end { font-size: 0; }
.newerp-content td.text-end > form { display: inline-block; margin: 0; }
.newerp-content td.text-end > :not(:first-child) { margin-left: var(--newerp-action-gap); }
.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; }
.parameters-sticky-heading { position: sticky; z-index: 1010; top: var(--newerp-topbar-height); margin: -1.25rem -1.25rem 1.25rem !important; padding: .85rem 1.25rem; border-bottom: 1px solid var(--newerp-border); background: rgba(247,247,251,.96); backdrop-filter: blur(.5rem); }
.parameter-card-stack { display: grid; gap: 1.25rem; }
.parameter-card { overflow: hidden; border: 1px solid #dfe3ff; border-radius: .65rem; background: #fff; box-shadow: 0 .25rem .9rem rgba(61,73,110,.08); }
.parameter-card-stack ~ .parameter-card { margin-top: 1.25rem; }
.parameter-card-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1.25rem 1.35rem; border-bottom: 1px solid #e7e9f4; background: linear-gradient(135deg,#fbfbff,#f2f4ff); }
.parameter-card-header h2 { margin: .18rem 0 .15rem; color: #526579; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.parameter-card-header p { margin: 0; color: #8492a3; font-size: .76rem; line-height: 1.5; }
.parameter-card-kicker { display: block; color: #696cff; font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.parameter-card-icon { display: grid; width: 2.9rem; height: 2.9rem; flex: 0 0 2.9rem; place-items: center; border-radius: .65rem; background: #fff; color: #696cff; box-shadow: 0 .15rem .45rem rgba(46,55,69,.12); font-size: 1.35rem; }
.parameter-card-header-actions { display: flex; align-items: center; gap: var(--newerp-action-gap); }
.parameter-card-body { padding: 1.35rem; }
.parameter-card-body > :first-child { margin-top: 0; }
.parameter-card-body > :last-child { margin-bottom: 0; }
.danger-parameter-card { border-color: #ffc8bf; }
.danger-parameter-card .parameter-card-header { border-bottom-color: #ffd9d3; background: linear-gradient(135deg,#fffafa,#fff1ef); }
.danger-parameter-card .parameter-card-icon { background: #fff; color: #ff3e1d; }
.danger-parameter-card .parameter-card-kicker { color: #ff3e1d; }
.danger-description { border-color: #ffc8bf; border-left-color: #ff3e1d; background: #fff3f1; color: #8b4b42 !important; }
.danger-description::before { color: #ff3e1d; content: "⚠"; }
.danger-description > strong, .danger-description > span { display: block; }
.danger-description > span { margin-top: .65rem; }
.danger-description ul { margin: .55rem 0 0; padding-left: 1.15rem; }
.danger-description li + li { margin-top: .3rem; }
.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; }
.production-description strong, .production-description > span { display: block; }
.production-description > span { margin-top: .55rem; }
.production-description ul { margin: .45rem 0 0; padding-left: 1.15rem; }
.production-description li + li { margin-top: .25rem; }
.newerp-content .button-locked { border-color: #ffd9a1; background: #fff8e8; color: #a8731f; }
.newerp-content .button-locked:hover { border-color: #f0bd69; background: #fff2d6; color: #8e611c; }
.production-lock-dialog { width: min(32rem, calc(100% - 2rem)); padding: 0; overflow: hidden; border: 0; border-radius: .7rem; background: #fff; color: #53657a; box-shadow: 0 1.5rem 4rem rgba(30,42,59,.3); }
.production-lock-dialog::backdrop { background: rgba(54,65,82,.5); backdrop-filter: blur(2px); }
.production-lock-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .85rem; padding: 1rem 1.15rem; border-bottom: 1px solid #eceef2; background: linear-gradient(135deg,#fffdf8,#fff5df); }
.production-lock-header h2 { margin: .15rem 0 0; color: #526579; font-size: 1.05rem; }
.production-lock-icon { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .55rem; background: #fff0cf; color: #b47a20; font-size: 1.3rem; }
.production-lock-dialog > p { margin: 0; padding: 1.25rem 1.25rem .1rem; color: #607185; font-size: .84rem; line-height: 1.65; }
.production-lock-dialog > .description-box { margin: 1rem 1.25rem 1.25rem; }
.reset-confirm-dialog { width: min(39rem, calc(100% - 2rem)); }
.reset-confirm-header { border-bottom-color: #ffd9d3; background: linear-gradient(135deg,#fffafa,#fff0ed); }
.reset-confirm-header .eyebrow { color: #ff3e1d; }
.reset-confirm-icon { background: #ffe4df; color: #ff3e1d; }
.reset-confirm-body { padding: 1.25rem 1.25rem 0; }
.reset-confirm-body > p { margin: 0 0 1rem; color: #607185; font-size: .84rem; }
.reset-confirm-body .danger-description { margin: 0; }
.reset-confirm-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--newerp-action-gap); padding: 1rem 1.25rem 1.25rem; }
.reset-confirm-actions form { margin: 0; }
.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; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.connection-full-info summary:hover { border-color: #696cff; background: #e9e8ff; box-shadow: 0 .2rem .45rem rgba(105,108,255,.16); transform: translateY(-1px); }
.connection-full-info summary:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem rgba(105,108,255,.2); }
.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; }
.role-summary-card { color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.role-summary-card:hover { border-color: #696cff; box-shadow: 0 .25rem 1rem rgba(105, 108, 255, .14); color: inherit; transform: translateY(-1px); }
.aspnet-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.aspnet-table-card { position: relative; min-width: 0; border: 1px solid #eceef2; color: inherit; box-shadow: 0 .15rem .45rem rgba(46,55,69,.08); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.aspnet-table-card:hover { border-color: var(--newerp-primary); color: inherit; box-shadow: 0 .35rem 1rem rgba(105,108,255,.14); transform: translateY(-2px); }
.aspnet-table-card .card-body { display: grid; height: 100%; min-height: 23rem; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; gap: .9rem 1rem; padding: 1.25rem; }
.aspnet-card-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; }
.aspnet-card-title { min-width: 0; }
.aspnet-card-title h2 { margin: 0 0 .45rem; color: #526579; font-size: 1rem; }
.aspnet-card-explanation { display: grid; align-content: start; grid-column: 1 / -1; gap: .85rem; }
.aspnet-card-explanation > div { padding-left: .8rem; border-left: .16rem solid #dfe0ff; }
.aspnet-card-explanation strong { display: block; margin-bottom: .18rem; color: #526579; font-size: .7rem; letter-spacing: .035em; text-transform: uppercase; }
.aspnet-table-card p { margin: 0; color: #718296; font-size: .76rem; line-height: 1.55; }
.aspnet-table-card small { align-self: end; grid-column: 1 / -1; color: #8998a8; font-size: .7rem; }
.aspnet-card-open { position: absolute; right: 1rem; bottom: 1rem; color: var(--newerp-primary); font-size: 1.2rem; }
.identity-doc-heading { margin-bottom: 1.25rem !important; }
.identity-doc-layout { display: grid; grid-template-columns: minmax(14rem,17rem) minmax(0,1fr); gap: 1.25rem; align-items: start; }
.identity-doc-toc { position: sticky; top: calc(var(--newerp-topbar-height) + 1rem); overflow: hidden; border: 1px solid #e7e9f4; box-shadow: 0 .2rem .75rem rgba(61,73,110,.08); }
.identity-doc-toc .card-body { padding: 0; }
.identity-doc-toc-title { display: flex; align-items: center; gap: .5rem; padding: 1rem 1.1rem; border-bottom: 1px solid #e7e9f4; background: linear-gradient(135deg,#fbfbff,#f2f4ff); color: #526579; font-size: .82rem; font-weight: 700; }
.identity-doc-toc-title i { color: #696cff; font-size: 1.1rem; }
.identity-doc-toc nav { display: grid; max-height: calc(100vh - var(--newerp-topbar-height) - 6rem); overflow-y: auto; padding: .5rem; }
.identity-doc-toc nav a { padding: .48rem .6rem; border-radius: .35rem; color: #718296; font-size: .73rem; line-height: 1.35; }
.identity-doc-toc nav a:hover { background: #f0efff; color: #696cff; }
.identity-doc-content { display: grid; min-width: 0; gap: 1.25rem; }
.identity-doc-section { overflow: hidden; border: 1px solid #e4e6ef; scroll-margin-top: calc(var(--newerp-topbar-height) + 1rem); box-shadow: 0 .2rem .75rem rgba(61,73,110,.07); }
.identity-doc-section > header { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; border-bottom: 1px solid #e7e9f4; background: linear-gradient(135deg,#fbfbff,#f3f4ff); }
.identity-doc-section > header h2 { margin: .15rem 0 0; color: #526579; font-size: 1.15rem; }
.identity-doc-section > header p { margin: .18rem 0 0; color: #8492a3; font-size: .76rem; }
.identity-doc-icon { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .6rem; background: #fff; color: #696cff; box-shadow: 0 .15rem .45rem rgba(46,55,69,.11); font-size: 1.3rem; }
.identity-doc-body { padding: 1.3rem; color: #607185; font-size: .82rem; line-height: 1.7; }
.identity-doc-body > :first-child { margin-top: 0; }
.identity-doc-body > :last-child { margin-bottom: 0; }
.identity-doc-body h3 { margin: 1.4rem 0 .55rem; color: #526579; font-size: .95rem; }
.identity-doc-body p { margin: 0 0 .85rem; }
.identity-doc-body code { color: #e83e8c; }
.identity-doc-callout { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .7rem; margin: 1rem 0; padding: .8rem .9rem; border: 1px solid #d4ddff; border-left: .2rem solid #696cff; border-radius: .4rem; background: #f3f5ff; }
.identity-doc-callout i { color: #696cff; font-size: 1.15rem; }
.identity-doc-callout p { margin: 0; }
.identity-doc-warning { border-color: #ffdca6; border-left-color: #ffab00; background: #fff8e8; color: #8e6927; }
.identity-doc-warning i { color: #ffab00; }
.identity-doc-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }
.identity-doc-columns > div { padding: 1rem; border: 1px solid #e6e8ef; border-radius: .45rem; background: #fbfbfc; }
.identity-doc-columns h3 { margin: 0 0 .4rem; }
.identity-doc-columns p { margin: 0; }
.identity-definition-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; margin: 0; }
.identity-definition-list > div { padding: .9rem 1rem; border: 1px solid #e6e8ef; border-radius: .45rem; background: #fbfbfc; }
.identity-definition-list dt { margin-bottom: .3rem; color: #526579; font-weight: 700; }
.identity-definition-list dd { margin: 0; }
.identity-relation-map { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: 1rem; border: 1px solid #e2e4f4; border-radius: .55rem; background: #f8f8fd; }
.relation-node { display: grid; gap: .15rem; min-width: 10.5rem; padding: .7rem .8rem; border: 1px solid #dfe2ea; border-radius: .4rem; background: #fff; }
.relation-node strong { color: #526579; font-size: .78rem; }
.relation-node span { color: #8a98a8; font-size: .68rem; }
.relation-main { border-color: #cfd0ff; background: #f3f2ff; }
.relation-link { border-color: #cfe7ff; background: #f1f8ff; }
.relation-arrow { color: #696cff; font-size: .7rem; font-weight: 700; }
.identity-doc-table { margin: 0; font-size: .75rem; }
.identity-doc-table th { white-space: nowrap; }
.identity-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.identity-field-grid > div { display: grid; gap: .2rem; padding: .8rem .9rem; border: 1px solid #e6e8ef; border-radius: .4rem; }
.identity-field-grid strong { color: #526579; }
.identity-doc-list { margin: .6rem 0 1rem; padding-left: 1.25rem; }
.identity-doc-list li + li { margin-top: .45rem; }
.identity-example { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; padding: .8rem .9rem; border: 1px dashed #cfd1f4; border-radius: .45rem; background: #fafaff; }
.identity-example code { padding: .25rem .4rem; border-radius: .25rem; background: #fff; }
.identity-example span { flex-basis: 100%; color: #718296; }
.identity-timeline { display: grid; gap: .75rem; margin: .8rem 0 1.5rem; padding: 0; list-style: none; }
.identity-timeline li { display: grid; grid-template-columns: 2rem minmax(0,1fr); gap: .75rem; }
.identity-timeline li > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #696cff; color: #fff; font-size: .72rem; font-weight: 700; }
.identity-timeline li > div { padding: .15rem 0 .8rem; border-bottom: 1px solid #eceef3; }
.identity-timeline strong { display: block; margin-bottom: .15rem; color: #526579; }
.identity-timeline p { margin: 0; }
.identity-faq details { border-bottom: 1px solid #e9ebf1; }
.identity-faq details:last-child { border-bottom: 0; }
.identity-faq summary { padding: .8rem 0; color: #526579; cursor: pointer; font-weight: 600; }
.identity-faq details p { padding: 0 0 .9rem 1rem; }
.identity-source-list { display: grid; gap: .65rem; }
.identity-source-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid #e3e5ed; border-radius: .4rem; color: #526579; }
.identity-source-list a:hover { border-color: #696cff; background: #fafaff; color: #696cff; }
.identity-source-list span { display: grid; gap: .15rem; }
.identity-source-list strong { font-size: .8rem; }
.identity-source-list small { color: #8998a8; font-size: .7rem; }
.identity-source-list i { flex: 0 0 auto; color: #696cff; font-size: 1.1rem; }
.google-guide { width: min(68rem, 100%); }
.google-guide-summary { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.google-summary-card { min-width: 0; padding: 1.15rem 1.25rem !important; }
.google-summary-card > span { display: block; margin-bottom: .45rem; color: #8998a8; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.google-summary-card > strong { display: flex; min-height: 1.6rem; align-items: center; gap: .4rem; overflow-wrap: anywhere; color: #526579; font-size: .95rem; }
.google-status.enabled { color: #55a56f; }
.google-status.disabled { color: #ff6b6b; }
.google-guide-panel { padding: 0 !important; overflow: hidden; }
.google-guide-intro { display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--newerp-border); background: linear-gradient(135deg,#fafaff,#f2f3ff); }
.google-guide-intro h2 { margin: 0 0 .25rem; color: #526579; font-size: 1.2rem; }
.google-guide-intro p { margin: 0; color: #7f8e9e; font-size: .8rem; line-height: 1.55; }
.google-logo { display: grid; width: 2.9rem; height: 2.9rem; flex: 0 0 2.9rem; place-items: center; border-radius: .65rem; background: #fff; color: #4285f4; box-shadow: 0 .15rem .45rem rgba(46,55,69,.12); font-size: 1.45rem; font-weight: 700; }
.google-steps { display: grid; gap: 0; padding: .3rem 1.5rem 1rem; }
.google-step { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid #edf0f4; }
.google-step:last-child { border-bottom: 0; }
.google-step-number { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: 50%; background: #696cff; color: #fff; box-shadow: 0 .2rem .45rem rgba(105,108,255,.24); font-size: .82rem; font-weight: 700; }
.google-step h3 { margin: .05rem 0 .45rem; color: #526579; font-size: .95rem; }
.google-step p { max-width: 57rem; margin: 0; color: #68798a; font-size: .82rem; line-height: 1.65; }
.google-code { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; padding: .7rem .75rem .7rem 1rem; border: 1px solid #dce1ff; border-radius: .4rem; background: #f7f7ff; }
.google-code code { min-width: 0; overflow-wrap: anywhere; color: #e83e8c; font-size: .78rem; }
.google-code button { display: grid; width: 2rem; height: 2rem; flex: 0 0 2rem; place-items: center; border: 1px solid #d4d7ff; border-radius: .35rem; background: #fff; color: #696cff; }
.google-code-stack { display: grid; gap: .45rem; margin-top: .8rem; }
.google-code-stack code { width: fit-content; max-width: 100%; padding: .48rem .7rem; border: 1px solid #e2e5ec; border-radius: .35rem; background: #f8f9fb; overflow-wrap: anywhere; color: #e83e8c; font-size: .77rem; }
.google-warning { display: flex; gap: .55rem; margin-top: .85rem !important; padding: .7rem .85rem; border: 1px solid #ffe1ad; border-radius: .4rem; background: #fff8e8; color: #926b26 !important; }
.google-warning i { flex: 0 0 auto; color: #f0a93b; font-size: 1.05rem; }
.google-guide-note { margin: 1.25rem 0; }
.google-resources { display: grid; grid-template-columns: 1fr auto; gap: 0; padding: 0 !important; overflow: hidden; }
.google-resources > div { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.2rem; border-bottom: 1px solid #edf0f4; }
.google-resources > div:nth-of-type(2) { border-bottom: 0; }
.google-resources > div > i { color: #696cff; font-size: 1.25rem; }
.google-resources span { display: grid; gap: .15rem; }
.google-resources strong { color: #526579; font-size: .84rem; }
.google-resources small { color: #8998a8; font-size: .72rem; }
.google-resources > a { display: grid; min-width: 3.8rem; place-items: center; border-bottom: 1px solid #edf0f4; border-left: 1px solid #edf0f4; color: #696cff; font-size: 1.1rem; }
.google-resources > a:last-child { border-bottom: 0; }
.google-resources > a:hover { background: #f5f5ff; }

.google-settings-card { margin: 0; }
.google-settings-header { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1.25rem 1.35rem; border-bottom: 1px solid #e7e9f4; background: linear-gradient(135deg,#fbfbff,#f2f4ff); }
.google-settings-header h2 { margin: .18rem 0 .15rem; color: #526579; font-size: 1.15rem; }
.google-settings-header p { margin: 0; color: #8492a3; font-size: .76rem; }
.google-settings-kicker { display: block; color: #696cff; font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.google-settings-header-actions { display: flex; align-items: center; gap: var(--newerp-action-gap); }
.google-configuration-state { display: inline-flex; min-height: 2rem; align-items: center; gap: .4rem; padding: .35rem .65rem; border: 1px solid; border-radius: 2rem; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.google-configuration-state i { font-size: 1rem; }
.google-configuration-state.is-ready { border-color: #cdeac2; background: #f0faec; color: #4e9633; }
.google-configuration-state.is-incomplete { border-color: #ffe0ad; background: #fff8e8; color: #976d23; }
.google-settings-body { padding: 1.35rem; }
.google-activation-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: .9rem; margin: 0 0 1.35rem; padding: 1rem; border: 1px solid #e5e8ef; border-radius: .5rem; background: #fafbfc; cursor: pointer; }
.google-activation-row strong, .google-activation-row small { display: block; }
.google-activation-row strong { margin-bottom: .18rem; color: #526579; font-size: .84rem; }
.google-activation-row small { color: #8998a8; font-size: .72rem; line-height: 1.45; }
.google-activation-row > input { width: 1.2rem; height: 1.2rem; margin: 0; }
.google-activation-icon { display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border-radius: .55rem; background: #e9e8ff; color: #696cff; font-size: 1.2rem; }
.google-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.1rem; }
.google-settings-grid .field { min-width: 0; margin: 0; }
.google-field-wide { grid-column: 1 / -1; }
.google-secret-input, .google-copy-input { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--newerp-action-gap); align-items: stretch; }
.google-secret-input .button-icon, .google-copy-input .button-icon { width: 2.75rem; height: auto; min-height: 2.55rem; }
.google-secret-status { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-top: .55rem; }
.google-secret-status .badge { padding: .35rem .55rem; }
.google-secret-status small { margin: 0; }
.google-clear-secret { margin: .75rem 0 0; color: #d55a4a; }
.google-settings-note { margin: 1.25rem 0 0; }

.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; }
  .aspnet-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-doc-layout { grid-template-columns: 1fr; }
  .identity-doc-toc { position: static; }
  .identity-doc-toc nav { max-height: none; grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
  .newerp-content { padding: 1rem; }
  .parameters-sticky-heading { margin: -1rem -1rem 1rem !important; padding-inline: 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; }
  .google-guide-summary { grid-template-columns: 1fr; }
  .google-guide-intro { align-items: flex-start; }
  .parameter-card-header, .google-settings-header { grid-template-columns: auto minmax(0,1fr); }
  .parameter-card-header-actions, .google-settings-header-actions { align-items: flex-start; grid-column: 1 / -1; }
  .google-settings-grid { grid-template-columns: 1fr; }
  .google-step { grid-template-columns: 2rem 1fr; gap: .75rem; }
  .google-step-number { width: 2rem; height: 2rem; }
  .aspnet-card-grid { grid-template-columns: 1fr; }
  .identity-doc-toc nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .identity-doc-columns, .identity-definition-list, .identity-field-grid { grid-template-columns: 1fr; }
  .identity-relation-map { align-items: stretch; flex-direction: column; }
  .relation-node { width: 100%; }
  .relation-arrow { align-self: center; transform: rotate(90deg); }
}
@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; }
  .parameter-card-header, .google-settings-header { grid-template-columns: 1fr; }
  .parameter-card-header > .parameter-card-icon, .google-settings-header .google-logo { display: none; }
  .parameter-card-header-actions, .google-settings-header-actions { justify-content: space-between; }
  .google-activation-row { grid-template-columns: auto 1fr; }
  .google-activation-row > input { grid-column: 1 / -1; justify-self: end; }
  .identity-doc-toc nav { grid-template-columns: 1fr; }
  .identity-doc-section > header { grid-template-columns: 1fr; }
  .identity-doc-icon { display: 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; }
.user-log-selection-tools,.user-log-bulk-actions { display:flex;align-items:center;flex-wrap:wrap;gap:var(--newerp-action-gap); }
.audit-select { width:1rem;height:1rem;accent-color:var(--newerp-primary); }
.user-log-confirmation-message { display:flex;gap:.9rem;padding:1rem;border:1px solid #dfe2ff;border-radius:.5rem;background:#f8f8ff; }

/* 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; }
}
