/*
 * Gestilib V1 — styles consolidés
 * Modules : Clients, Documents, Fournisseurs, Achats, Articles et hubs
 * Version : 20260625V1
 *
 * Les styles de génération PDF et d'e-mails restent autonomes afin de garantir
 * leur rendu dans les moteurs PDF et les clients de messagerie.
 */


/* ==========================================================
   Composants partagés — hubs, en-têtes et périodes
   ========================================================== */
.hub-modules-hero,
.modules-header-hero {
    position: relative;
    overflow: hidden;
    border: 0 !important;
    border-radius: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #0f3f78 0%, #08689a 48%, #0b8d7b 100%);
    box-shadow: 0 24px 60px rgba(15, 63, 120, .2);
}

.modules-header-hero {
    z-index: 20;
    overflow: visible !important;
    background:
        radial-gradient(circle at 92% -30%, rgba(255, 255, 255, .12) 0, rgba(255, 255, 255, .12) 12rem, transparent 12.1rem),
        linear-gradient(135deg, #0f3f78 0%, #08689a 48%, #0b8d7b 100%);
}

.modules-header-hero::after {
    display: none;
}

.hub-modules-hero::after,
.modules-header-hero::after {
    content: "";
    position: absolute;
    top: -15rem;
    right: -10rem;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}

.hub-modules-hero .card-body,
.modules-header-hero .card-body {
    position: relative;
    z-index: 1;
    overflow: visible;
    padding: 1.6rem;
}

.hub-modules-hero h1,
.modules-header-hero h1 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -.03em;
}

.hub-modules-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .85rem;
}

.hub-modules-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .75rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .82rem;
    font-weight: 750;
}

.hub-modules-hero .btn-outline-light,
.modules-header-hero .btn-outline-light {
    border-color: rgba(255, 255, 255, .38);
    color: #fff;
}

.hub-modules-hero .btn-outline-light:hover,
.hub-modules-hero .btn-outline-light:focus,
.modules-header-hero .btn-outline-light:hover,
.modules-header-hero .btn-outline-light:focus {
    border-color: #fff;
    background: #fff;
    color: #0f3f78;
}

#hubModulesHeroPeriodModal .modal-content {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

@media (max-width: 767.98px) {
    .hub-modules-hero .card-body,

    .hub-modules-hero [data-hub-modules-hero-period-toggle] {
        width: 100%;
    }
}

/* ==========================================================
   Clients — cockpit et création
   ========================================================== */
.clients-cockpit-chart { min-height: 310px; position: relative; }
.clients-cockpit-chart canvas { width: 100% !important; height: 280px !important; }
.clients-cockpit-card { border: 1px solid rgba(148,163,184,.22); border-radius: 1rem; box-shadow: 0 12px 30px rgba(15,23,42,.055); }
.clients-cockpit-action { border: 1px solid rgba(148,163,184,.22); border-radius: .9rem; padding: .85rem; }
.clients-cockpit-empty { min-height: 170px; display: grid; place-items: center; text-align: center; color: #64748b; }
@media (max-width: 767.98px) { .clients-cockpit-chart { min-height: 260px; } .clients-cockpit-chart canvas { height: 230px !important; } }

.clients-create-form { --client-required:#dc2626; --client-locked:#0f6f8f; }
.clients-create-form .client-section-card { border:1px solid #e4ebf3; border-radius:1.25rem; box-shadow:0 12px 32px rgba(15,23,42,.055); overflow:visible; }
.clients-create-form .client-section-card .card-body { padding:1.35rem; }
.clients-create-form .client-section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; margin-bottom:1.25rem; }
.clients-create-form .client-section-icon { width:2.75rem; height:2.75rem; display:grid; place-items:center; flex:0 0 auto; border-radius:.9rem; background:#eef6ff; color:#1769aa; }
.clients-create-form .client-section-title { margin:0; font-size:1.02rem; font-weight:800; color:#172033; }
.clients-create-form .client-section-description { margin:.2rem 0 0; color:#6b778c; font-size:.84rem; }
.clients-create-form .form-label { margin-bottom:.42rem; font-weight:700; color:#28364d; }
.clients-create-form .form-label.is-required::after { content:" Obligatoire"; display:inline-flex; margin-left:.38rem; padding:.12rem .42rem; border-radius:999px; background:#fff1f2; color:var(--client-required); font-size:.63rem; font-weight:800; letter-spacing:.025em; text-transform:uppercase; vertical-align:middle; }
.clients-create-form.is-information-edit .form-label.is-required::after { content:none; display:none; }
.clients-create-form.is-information-edit .form-control[data-required="1"], .clients-create-form.is-information-edit .form-select[data-required="1"] { border-left-width:1px; }
.clients-create-form .form-control[data-required="1"], .clients-create-form .form-select[data-required="1"] { border-left:3px solid #ef9a9a; }
.clients-create-form .form-control:focus, .clients-create-form .form-select:focus { border-color:#5aa6df; box-shadow:0 0 0 .22rem rgba(37,132,196,.13); }
.clients-create-form .is-api-locked, .clients-create-form .is-protected-field { border-color:#8bc8d8 !important; background:#edf8fb !important; color:#22485a !important; box-shadow:inset 3px 0 0 var(--client-locked); cursor:not-allowed; }
.clients-create-form .protected-field-note { display:inline-flex; align-items:center; gap:.35rem; color:#0f6f8f; font-size:.72rem; font-weight:800; }
.clients-create-form .api-lock-indicator { display:none; align-items:center; gap:.3rem; margin-left:.4rem; color:var(--client-locked); font-size:.7rem; font-weight:800; }
.clients-create-form .api-lock-indicator.is-visible { display:inline-flex; }
.clients-create-form .api-lock-indicator.is-verified { padding:.12rem .42rem; border:1px solid #a7d9c6; border-radius:999px; background:#ecfdf5; color:#047857; font-size:.64rem; text-transform:uppercase; letter-spacing:.02em; }
.clients-create-form .company-api-status { display:none; align-items:center; justify-content:space-between; gap:.75rem; margin-top:.65rem; padding:.65rem .8rem; border:1px solid #b9dde6; border-radius:.8rem; background:#f0fafc; color:#215266; font-size:.8rem; }
.clients-create-form .company-api-status.is-visible { display:flex; }
.clients-create-form .company-suggestions { z-index:1085; max-height:19rem; overflow:auto; border-radius:.8rem; }
.clients-create-form .company-suggestions .list-group-item { padding:.75rem .9rem; border-left:0; border-right:0; }
.clients-create-form .client-form-error-summary { display:flex; align-items:flex-start; gap:.85rem; padding:1rem 1.1rem; border:1px solid #fecaca; border-radius:1rem; background:#fff7f7; color:#842029; }
.clients-create-form .client-form-error-summary .error-icon { width:2.25rem; height:2.25rem; display:grid; place-items:center; flex:0 0 auto; border-radius:.7rem; background:#fee2e2; color:#b91c1c; }
.clients-create-form .client-form-error-summary ul { columns:2; column-gap:2rem; }
.clients-create-form .delivery-toolbar { display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }
.clients-create-form .delivery-same-card { display:flex; align-items:center; gap:.65rem; padding:.55rem .75rem; border:1px solid #dbe5ef; border-radius:.8rem; background:#f8fafc; }
.clients-create-form .address-row { border:1px solid #e6edf5; border-radius:1rem; background:#fbfdff; box-shadow:none; }
.clients-create-form .address-row + .address-row { margin-top:.9rem; }
.clients-create-form .address-row-title { font-size:.78rem; font-weight:800; color:#607086; text-transform:uppercase; letter-spacing:.035em; }
.clients-create-form .form-sticky-actions { bottom:1rem; z-index:25; border:1px solid #dfe8f1; border-radius:1.1rem; box-shadow:0 18px 46px rgba(15,23,42,.13); }
@media (max-width:767.98px){
  .clients-create-form .client-section-card .card-body { padding:1rem; }
  .clients-create-form .client-form-error-summary ul { columns:1; }
  .clients-create-form .delivery-toolbar, .clients-create-form .delivery-same-card { width:100%; }
  .clients-create-form .form-sticky-actions { position:static !important; }
}

/* ==========================================================
   Clients — liste et navigation
   ========================================================== */
.clients-module-nav,
.clients-quick-segments,
.clients-active-filters {
    position: relative;
    z-index: 2;
}
.modules-header-hero .dropdown-menu {
    border: 1px solid #dbe4ee;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.clients-tools-dropdown {
    position: relative;
    z-index: 30;
}
.clients-tools-dropdown .dropdown-menu {
    top: calc(100% + .45rem);
    right: 0;
    left: auto;
    z-index: 1090;
    min-width: 13rem;
    margin: 0;
}
.clients-tools-dropdown.is-open .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
}
.modules-header-hero-filter {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .68rem;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
}
.clients-list-card {
    overflow: hidden;
    border: 1px solid #e3ebf4;
    border-radius: 1.25rem;
    box-shadow: 0 14px 36px rgba(15,23,42,.06);
}
.clients-list-card .card-header {
    padding: 1.15rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #edf2f7;
}
.clients-list-card .card-body {
    padding: 0;
}
.clients-table {
    margin: 0;
}
.clients-table thead th {
    padding: .9rem 1rem;
    border-bottom: 1px solid #dfe8f1;
    background: #f8fafc;
    color: #475569;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}
.clients-table tbody td {
    padding: .9rem 1rem;
    border-color: #edf2f7;
    vertical-align: middle;
}
.clients-table tbody tr[data-open-url] {
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}
.clients-table tbody tr[data-open-url]:hover {
    background: #f8fbff;
}
.clients-table tbody tr[data-open-url]:focus {
    outline: 2px solid rgba(37,99,235,.35);
    outline-offset: -2px;
    background: #f8fbff;
}
.clients-sort-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: inherit;
    text-decoration: none;
}
.clients-sort-link:hover,
.clients-sort-link:focus {
    color: #0b6fa4;
}
.clients-type-badge,
.clients-segment-badge,
.clients-health-badge {
    white-space: nowrap;
}
.clients-table-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: .45rem;
    white-space: nowrap;
}
.clients-table-actions .btn {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
}
.clients-pagination-wrap {
    padding: 1rem 1.25rem;
    border-top: 1px solid #edf2f7;
    background: #fff;
}
.clients-filter-summary {
    color: #64748b;
    font-size: .84rem;
}
@media (max-width: 991.98px) {
    .clients-table {
        min-width: 960px;
    }
}
@media (max-width: 767.98px) {
    .modules-header-hero .card-body {
        padding: 1.2rem;
    }
    .modules-header-hero .btn,
    .modules-header-hero .dropdown {
        width: 100%;
    }
    .modules-header-hero .dropdown .btn {
        width: 100%;
    }
    .clients-tools-dropdown .dropdown-menu {
        position: static !important;
        width: 100%;
        min-width: 0;
        margin-top: .5rem;
        transform: none !important;
    }
    .clients-list-card .card-header {
        padding: 1rem;
    }
}

/* ==========================================================
   Commerce — hub
   ========================================================== */
.commerce360-eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;opacity:.82}.commerce360-local-nav{display:flex;gap:.65rem;overflow-x:auto;padding:.35rem .1rem .6rem;scrollbar-width:thin}.commerce360-local-nav a{display:flex;align-items:center;gap:.55rem;white-space:nowrap;padding:.7rem .95rem;border-radius:14px;border:1px solid #dce6f1;background:#fff;color:#334155;font-weight:750;text-decoration:none}.commerce360-local-nav a.active{border-color:#0b7a75;background:#e9fbf7;color:#08675f;box-shadow:0 8px 24px rgba(11,122,117,.12)}.commerce360-panel{border:1px solid #e3ebf4;border-radius:22px;box-shadow:0 14px 36px rgba(15,23,42,.06);overflow:hidden}.commerce360-panel .card-header{padding:1.15rem 1.25rem;background:#fff;border-bottom:1px solid #edf2f7}.commerce360-panel .card-body{padding:1.25rem}.commerce360-kpi{height:100%;border:1px solid #e5edf5;border-radius:20px;background:#fff;box-shadow:0 10px 25px rgba(15,23,42,.045)}.commerce360-kpi .card-body{padding:1.05rem}.commerce360-kpi-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;background:#eef5ff;color:#2563eb}.commerce360-kpi-icon.is-success{background:#ecfdf5;color:#059669}.commerce360-kpi-icon.is-info{background:#ecfeff;color:#0891b2}.commerce360-kpi-icon.is-warning{background:#fffbeb;color:#d97706}.commerce360-kpi-icon.is-danger{background:#fef2f2;color:#dc2626}.commerce360-kpi strong{display:block;font-size:1.45rem;line-height:1.15;color:#0f172a;margin-top:.85rem}.commerce360-kpi-label{font-size:.78rem;font-weight:750;color:#64748b}.commerce360-delta{display:inline-flex;align-items:center;gap:.25rem;margin-top:.5rem;font-size:.72rem;font-weight:750}.commerce360-delta.is-good{color:#059669}.commerce360-delta.is-bad{color:#dc2626}.commerce360-delta.is-stable{color:#64748b}.commerce360-chart{height:330px;min-height:330px;position:relative}.commerce360-chart.is-large{height:370px;min-height:370px}.commerce360-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin:2rem 0 1rem}.commerce360-section-heading h2{margin:0;color:#0f172a}.commerce360-section-heading p{margin:.25rem 0 0;color:#64748b}.commerce360-empty{padding:2.5rem 1rem;text-align:center;color:#64748b}.commerce360-empty i{display:block;font-size:2rem;color:#94a3b8;margin-bottom:.8rem}.commerce360-risk-table td,.commerce360-risk-table th{vertical-align:middle}.commerce360-score{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:.32rem .55rem;border-radius:999px;font-weight:800;background:#f1f5f9;color:#334155}.commerce360-score.is-critical{background:#fef2f2;color:#b91c1c}.commerce360-score.is-high{background:#fff7ed;color:#c2410c}.commerce360-score.is-medium{background:#fffbeb;color:#a16207}.commerce360-status-list{display:flex;flex-wrap:wrap;gap:.5rem}.commerce360-status-badge{padding:.45rem .7rem;border-radius:999px;background:#f1f5f9;color:#475569;font-size:.75rem;font-weight:750}
@media(max-width:767.98px){.commerce360-chart,.commerce360-chart.is-large{height:290px;min-height:290px}.commerce360-section-heading{display:block}.commerce360-section-heading .btn{margin-top:.8rem}.commerce360-kpi strong{font-size:1.25rem}}

/* ==========================================================
   Documents — liste
   ========================================================== */
.documents-module-hero { overflow: visible !important; }
.documents-module-hero .modules-header-hero-meta { display:flex; flex-wrap:wrap; gap:.55rem; align-items:center; }
.documents-module-hero .modules-header-hero-chip { display:inline-flex; align-items:center; gap:.45rem; padding:.42rem .7rem; border:1px solid rgba(255,255,255,.26); border-radius:999px; background:rgba(255,255,255,.12); color:#fff; font-size:.82rem; font-weight:700; }
.documents-list-card { border:1px solid #e5edf5; border-radius:1.25rem; box-shadow:0 12px 32px rgba(15,23,42,.055); overflow:visible; }
.documents-list-card .card-header { border-bottom:1px solid #e7edf4; background:#fff; padding:1.1rem 1.25rem; }
.documents-table thead th { white-space:nowrap; }
.documents-table tbody tr[data-open-url] { cursor:pointer; }
.documents-table tbody tr[data-open-url]:hover { background:rgba(37,99,235,.035); }
.documents-table .documents-actions { white-space:nowrap; }
.documents-table .documents-actions .btn { width:2.15rem; height:2.15rem; display:inline-grid; place-items:center; padding:0; }
.documents-filter-form .documents-v1-filter-row { display:grid; grid-template-columns:minmax(18rem,2fr) repeat(4,minmax(10.5rem,1fr)); gap:1rem; }
.documents-filter-form .documents-v1-filter-actions { display:flex; justify-content:space-between; align-items:center; margin-top:1rem; }
.documents-filter-summary { display:flex; align-items:center; gap:.5rem; color:#64748b; font-size:.85rem; }
#headerModulesHeroPeriodModal .modal-content { border:0; border-radius:1.25rem; box-shadow:0 24px 70px rgba(15,23,42,.22); }
@media (max-width:1199.98px) { .documents-filter-form .documents-v1-filter-row { grid-template-columns:repeat(2,minmax(0,1fr)); } .documents-filter-form .documents-v1-filter-field-search { grid-column:1/-1; } }
@media (max-width:767.98px) { .documents-filter-form .documents-v1-filter-row { grid-template-columns:1fr; } .documents-filter-form .documents-v1-filter-field-search { grid-column:auto; } .documents-filter-form .documents-v1-filter-actions { align-items:stretch; flex-direction:column; } .documents-filter-form .documents-v1-filter-actions .btn { width:100%; } .documents-module-hero [data-modules-header-hero-period-toggle] { width:100%; } }

/* Utilitaires d'interface Clients et Documents */
.clients-sticky-top {
    top: 1rem;
}

.clients-autocomplete-layer {
    z-index: 1080;
}

.clients-attachment-preview-body,
.clients-attachment-preview-frame {
    min-height: 78vh;
}

.documents-autocomplete-layer {
    z-index: 30;
}

.documents-article-thumb {
    width: 96px;
    height: 96px;
}

.documents-article-results-layer {
    top: calc(100% + 2px);
    z-index: 20;
}

.documents-portal-status-badge {
    margin-top: 14px;
}

.documents-signature-hash {
    font-size: 12px;
    word-break: break-all;
}

.documents-signature-image {
    display: block;
    max-width: 280px;
    max-height: 120px;
    margin-top: 18px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(15, 23, 42, .08));
}

.documents-signature-actions {
    margin-top: 18px;
}

/* ==========================================================
   Articles — référentiel commun ventes / achats
   ========================================================== */
.articles-module-hero {
    overflow: visible !important;
}
.articles-module-nav,
.articles-record-tabs {
    display: flex;
    align-items: center;
    gap: .55rem;
    overflow-x: auto;
    scrollbar-width: thin;
}
.articles-module-nav a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.25rem;
    padding: .45rem .7rem;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.1);
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.articles-module-nav a:hover,
.articles-module-nav a:focus,
.articles-module-nav a.active {
    border-color: #fff;
    background: #fff;
    color: #0f3f78;
}
.articles-record-tabs {
    padding: .2rem 0 .55rem;
}
.articles-record-tabs a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .85rem;
    border: 1px solid #dce6f1;
    border-radius: .85rem;
    background: #fff;
    color: #334155;
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.articles-record-tabs a:hover,
.articles-record-tabs a:focus,
.articles-record-tabs a.active {
    border-color: #0b7a75;
    background: #e9fbf7;
    color: #08675f;
    box-shadow: 0 8px 24px rgba(11,122,117,.12);
}
.articles-kpi-detail {
    margin-top: .4rem;
    color: #64748b;
    font-size: .7rem;
    line-height: 1.3;
}
.articles-filter-grid {
    display: grid;
    grid-template-columns: minmax(18rem,2fr) repeat(3,minmax(10rem,1fr));
    gap: 1rem;
}
.articles-filter-search {
    grid-column: span 2;
}
.articles-filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}
.articles-table {
    min-width: 1120px;
}
.articles-table tbody tr[data-open-url] {
    cursor: pointer;
}
.articles-table tbody tr[data-open-url]:hover {
    background: #f8fbff;
}
.articles-table tbody tr[data-open-url]:focus {
    outline: 2px solid rgba(37,99,235,.35);
    outline-offset: -2px;
}
.articles-list-thumb,
.articles-list-thumb-placeholder {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    border-radius: .75rem;
}
.articles-list-thumb {
    display: block;
    object-fit: cover;
}
.articles-list-thumb-placeholder {
    display: inline-grid;
    place-items: center;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
}
.articles-detail-image {
    display: block;
    width: 100%;
    max-height: 18rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    object-fit: contain;
    background: #f8fafc;
}
.articles-detail-list dt {
    color: #64748b;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.articles-detail-list dd {
    margin-bottom: 1rem;
    color: #0f172a;
}
.articles-description-content {
    line-height: 1.65;
}
.articles-description-content > :last-child {
    margin-bottom: 0;
}
.articles-value-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid #e5edf5;
    border-radius: 1rem;
    background: #fff;
}
.articles-value-card span {
    display: block;
    color: #64748b;
    font-size: .75rem;
    font-weight: 750;
}
.articles-value-card strong {
    display: block;
    margin-top: .45rem;
    color: #0f172a;
    font-size: 1.25rem;
}
.articles-ui-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .8rem;
}
.articles-ui-chip {
    display: inline-flex;
    align-items: center;
    padding: .3rem .55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .72rem;
    font-weight: 700;
}
.articles-pack-qty-column { width: 10rem; }
.articles-pack-order-column { width: 5.625rem; }
.articles-pack-action-column { width: 5rem; }
.articles-form-sticky-actions { z-index: 5; }

@media (max-width: 1199.98px) {
    .articles-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .articles-filter-search { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    .articles-filter-grid { grid-template-columns: 1fr; }
    .articles-filter-search { grid-column: auto; }
    .articles-filter-actions { align-items: stretch; flex-direction: column; }
    .articles-filter-actions .btn { width: 100%; }
    .articles-header-actions,
    .articles-header-actions .btn { width: 100%; }
    .articles-form-sticky-actions { position: static !important; }
}

/* Instruction 15 — pages d'erreur et résumé achat */
.gestilib-interface-error-page {
  min-height: 100vh;
  background: var(--gestilib-page-bg, #f4f7fb);
}
.gestilib-interface-error-code {
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: .8;
  font-weight: 800;
  color: rgba(255,255,255,.2);
}
.gestilib-interface-error-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(13,110,253,.1);
  color: var(--bs-primary);
  font-size: 1.35rem;
}
.achats-document-summary {
  top: 1rem;
}
@media (max-width: 1199.98px) {
  .achats-document-summary { position: static !important; }
}

