
.gta-vc-page,
.gta-vc-login {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 22px 60px;
}
.gta-vc-login { max-width: 620px; }
.gta-vc-eyebrow {
    margin: 0 0 8px !important;
    color: #b8891d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}
.gta-vc-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 22px;
    padding: 28px 30px;
    border-radius: 20px;
    background: #082f5c;
    color: #fff;
}
.gta-vc-hero h1 {
    margin: 0 0 10px !important;
    color: #fff !important;
    font-size: 42px;
    line-height: 1;
}
.gta-vc-hero p:last-child {
    max-width: 720px;
    margin: 0 !important;
    color: rgba(255,255,255,.84);
}
.gta-vc-hero__stats {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.gta-vc-hero__stats strong {
    color: #d9a524;
    font-size: 36px;
    line-height: 1;
}
.gta-vc-hero__stats span {
    margin-top: 5px;
    color: rgba(255,255,255,.72);
    font-size: 11px;
}
.gta-vc-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(145px, .8fr)) 120px;
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid #dbe2e9;
    border-radius: 16px;
    background: #f8fafc;
}
.gta-vc-toolbar label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}
.gta-vc-toolbar label > span {
    color: #17305a;
    font-size: 11px;
    font-weight: 700;
}
.gta-vc-toolbar input,
.gta-vc-toolbar select {
    width: 100%;
    min-height: 46px;
    margin: 0;
    border: 1px solid #ccd7e2;
    border-radius: 10px;
    background: #fff;
    color: #17305a;
}
.gta-vc-toolbar__count {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-height: 46px;
}
.gta-vc-toolbar__count strong {
    color: #17305a;
    font-size: 24px;
    line-height: 1;
}
.gta-vc-toolbar__count span {
    margin-top: 4px;
    color: #7a8695;
    font-size: 9px;
}
.gta-vc-note {
    margin: 0 0 18px !important;
    padding: 10px 14px;
    border-left: 3px solid #d9a524;
    background: #fffaf0;
    color: #6e6250;
    font-size: 11px;
}
.gta-vc-list { display: grid; gap: 12px; }
.gta-vc-card {
    display: grid;
    grid-template-columns: 110px minmax(0,1fr) 125px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    background: #fff;
}
.gta-vc-card[hidden] { display: none !important; }
.gta-vc-card__media {
    width: 110px;
    height: 110px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f6f7;
}
.gta-vc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gta-vc-card__topline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.gta-vc-card__sku {
    padding: 3px 7px;
    border-radius: 999px;
    background: #eef2f6;
    color: #5f6e80;
    font-size: 9px;
    font-weight: 700;
}
.gta-vc-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
}
.gta-vc-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b95a2;
}
.gta-vc-stock--in { color: #0f8b55; }
.gta-vc-stock--in::before { background: #16a365; }
.gta-vc-stock--reappro { color: #b67b00; }
.gta-vc-stock--reappro::before { background: #d9a524; }
.gta-vc-stock--out { color: #9a4850; }
.gta-vc-stock--out::before { background: #b65c65; }
.gta-vc-card h3 {
    margin: 0 0 4px !important;
    color: #12345c;
    font-size: 17px;
    line-height: 1.25;
}
.gta-vc-card__material {
    margin: 0 0 11px !important;
    color: #85909d;
    font-size: 10px;
}
.gta-vc-pricing {
    display: grid;
    grid-template-columns: 1.1fr 92px .65fr 1fr 1fr;
    gap: 10px;
    align-items: end;
}
.gta-vc-pricing > div,
.gta-vc-pricing label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}
.gta-vc-pricing small,
.gta-vc-pricing label > span {
    color: #85909d;
    font-size: 9px;
}
.gta-vc-pricing strong {
    color: #17305a;
    font-size: 13px;
    white-space: nowrap;
}
.gta-vc-pricing input {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #ccd7e2;
    border-radius: 8px;
    color: #17305a;
}
.gta-vc-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}
.gta-vc-tiers span {
    padding: 4px 7px;
    border-radius: 999px;
    background: #f1f4f7;
    color: #6e7a88;
    font-size: 8px;
}
.gta-vc-tiers b { color: #17305a; }
.gta-vc-card__action {
    display: flex;
    justify-content: flex-end;
}
.gta-vc-card__action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #173b68;
    border-radius: 9px;
    color: #173b68;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}
.gta-vc-card__action a:hover {
    background: #173b68;
    color: #fff;
}
.gta-vc-empty {
    padding: 32px;
    border: 1px dashed #cfd8e2;
    border-radius: 14px;
    color: #6e7987;
    text-align: center;
}
@media (max-width: 900px) {
    .gta-vc-card { grid-template-columns: 90px minmax(0,1fr); }
    .gta-vc-card__media { width: 90px; height: 90px; }
    .gta-vc-card__action { grid-column: 2; justify-content: flex-start; }
    .gta-vc-pricing { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .gta-vc-page,
    .gta-vc-login { padding: 22px 14px 44px; }
    .gta-vc-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 18px;
        border-radius: 14px;
    }
    .gta-vc-hero h1 { font-size: 32px; }
    .gta-vc-hero__stats { align-items: flex-start; }
    .gta-vc-toolbar {
        grid-template-columns: 1fr;
        padding: 14px;
    }
    .gta-vc-toolbar__count { align-items: flex-start; }
    .gta-vc-card {
        grid-template-columns: 76px minmax(0,1fr);
        gap: 12px;
        padding: 11px;
    }
    .gta-vc-card__media { width: 76px; height: 76px; }
    .gta-vc-pricing {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2,minmax(0,1fr));
        margin-top: 4px;
    }
    .gta-vc-pricing > div:first-child { grid-column: 1 / -1; }
    .gta-vc-tiers { grid-column: 1 / -1; }
    .gta-vc-card__action { grid-column: 1 / -1; }
}


/* =========================================================
   GTA Vue Commerciale v1.1.0 — Pleine largeur + filtres rapides
   ========================================================= */

body.gta-vc-fullwidth-page #secondary,
body.gta-vc-fullwidth-page .widget-area,
body.gta-vc-fullwidth-page .sidebar-main {
    display: none !important;
}

body.gta-vc-fullwidth-page #primary,
body.gta-vc-fullwidth-page .content-area {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.gta-vc-fullwidth-page .site-content > .ast-container,
body.gta-vc-fullwidth-page .ast-container {
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.gta-vc-fullwidth-page .entry-content,
body.gta-vc-fullwidth-page article.page {
    width: 100% !important;
    max-width: none !important;
}

.gta-vc-page {
    max-width: 1380px;
}

.gta-vc-toolbar {
    position: sticky;
    top: 10px;
    z-index: 20;
}

.gta-vc-reset {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 34px;
    padding: 6px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #17305a;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.gta-vc-reset:hover {
    background: #eaf0f6;
}

@media (max-width: 1180px) {
    .gta-vc-toolbar {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .gta-vc-search {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .gta-vc-toolbar {
        position: static;
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .gta-vc-search {
        grid-column: 1 / -1;
    }

    .gta-vc-toolbar__count {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .gta-vc-toolbar {
        grid-template-columns: 1fr;
    }

    .gta-vc-search,
    .gta-vc-reset {
        grid-column: auto;
    }

    .gta-vc-reset {
        justify-self: start;
    }
}


/* =========================================================
   GTA Vue Commerciale v1.2.0 — Commandes & performances
   ========================================================= */

.gta-vc-orders {
    margin-bottom: 34px;
}

.gta-vc-orders__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.gta-vc-orders__head h2 {
    margin: 0 0 6px !important;
    color: #17305a;
    font-size: 30px;
    line-height: 1.08;
}

.gta-vc-orders__head > div > p:last-child {
    margin: 0 !important;
    color: #7d8896;
    font-size: 12px;
}

.gta-vc-period {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gta-vc-period label {
    color: #7d8896;
    font-size: 10px;
    font-weight: 700;
}

.gta-vc-period select {
    min-height: 40px;
    margin: 0;
    border: 1px solid #ccd7e2;
    border-radius: 9px;
    background: #fff;
    color: #17305a;
    font-size: 11px;
}

.gta-vc-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.gta-vc-kpis > div {
    padding: 16px;
    border: 1px solid #dce3ea;
    border-radius: 13px;
    background: #fff;
}

.gta-vc-kpis small,
.gta-vc-kpis span {
    display: block;
    color: #8792a0;
}

.gta-vc-kpis small {
    margin-bottom: 6px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gta-vc-kpis strong {
    display: block;
    color: #17305a;
    font-size: 22px;
    line-height: 1.05;
}

.gta-vc-kpis span {
    margin-top: 5px;
    font-size: 8px;
}

.gta-vc-rankings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.gta-vc-ranking {
    padding: 17px;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    background: #f8fafc;
}

.gta-vc-ranking h3 {
    margin: 0 !important;
    color: #17305a;
    font-size: 16px;
}

.gta-vc-ranking > p {
    margin: 3px 0 11px !important;
    color: #8792a0;
    font-size: 9px;
}

.gta-vc-ranking ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ranking;
}

.gta-vc-ranking li {
    counter-increment: ranking;
    display: grid;
    grid-template-columns: 20px minmax(0,1fr) auto;
    gap: 7px;
    align-items: center;
    padding: 7px 0;
    border-top: 1px solid #e7ecf1;
}

.gta-vc-ranking li::before {
    content: counter(ranking);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #eaf0f6;
    color: #17305a;
    font-size: 8px;
    font-weight: 800;
}

.gta-vc-ranking li:first-child {
    border-top: 0;
}

.gta-vc-ranking li > div {
    min-width: 0;
}

.gta-vc-ranking li a,
.gta-vc-ranking li span {
    display: block;
    overflow: hidden;
    color: #17305a;
    font-size: 10px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gta-vc-ranking li small {
    display: block;
    margin-top: 2px;
    color: #8a95a2;
    font-size: 8px;
}

.gta-vc-ranking li > strong {
    color: #17305a;
    font-size: 10px;
    white-space: nowrap;
}

.gta-vc-history {
    overflow: hidden;
    border: 1px solid #dce3ea;
    border-radius: 16px;
    background: #fff;
}

.gta-vc-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 18px;
    border-bottom: 1px solid #e5ebf0;
    background: #f8fafc;
}

.gta-vc-history__head h3 {
    margin: 0 !important;
    color: #17305a;
    font-size: 17px;
}

.gta-vc-history__head p {
    margin: 3px 0 0 !important;
    color: #8792a0;
    font-size: 9px;
}

.gta-vc-history__head > span {
    color: #7c8794;
    font-size: 9px;
}

.gta-vc-order {
    border-bottom: 1px solid #edf1f4;
}

.gta-vc-order:last-child {
    border-bottom: 0;
}

.gta-vc-order > summary {
    display: grid;
    grid-template-columns: 75px 82px minmax(160px,1fr) 110px 105px 20px;
    gap: 10px;
    align-items: center;
    padding: 13px 16px;
    color: #17305a;
    cursor: pointer;
    list-style: none;
}

.gta-vc-order > summary::-webkit-details-marker {
    display: none;
}

.gta-vc-order > summary:hover {
    background: #fbfcfd;
}

.gta-vc-order__number {
    font-weight: 800;
}

.gta-vc-order__date,
.gta-vc-order__status {
    color: #7f8b98;
    font-size: 9px;
}

.gta-vc-order__client {
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gta-vc-order__amount {
    text-align: right;
    font-size: 10px;
    font-weight: 800;
}

.gta-vc-order__chevron {
    text-align: center;
    transition: transform .18s ease;
}

.gta-vc-order[open] .gta-vc-order__chevron {
    transform: rotate(180deg);
}

.gta-vc-order__detail {
    padding: 0 16px 16px;
    background: #fbfcfd;
}

.gta-vc-order__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 10px 0;
    color: #657283;
    font-size: 9px;
}

.gta-vc-order__tablewrap {
    overflow-x: auto;
}

.gta-vc-order table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 9px;
}

.gta-vc-order th,
.gta-vc-order td {
    padding: 8px 9px;
    border: 1px solid #e4eaf0;
    text-align: left;
}

.gta-vc-order th {
    background: #f3f6f9;
    color: #647286;
    font-size: 8px;
    text-transform: uppercase;
}

.gta-vc-order td small,
.gta-vc-order td strong {
    display: block;
}

.gta-vc-order td small {
    margin-bottom: 2px;
    color: #8a95a2;
}

.gta-vc-order td strong {
    color: #17305a;
}

.gta-vc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px;
    border-top: 1px solid #e5ebf0;
    background: #f8fafc;
}

.gta-vc-pagination a,
.gta-vc-pagination span {
    color: #17305a;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1050px) {
    .gta-vc-kpis {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }

    .gta-vc-rankings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .gta-vc-orders__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gta-vc-kpis {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .gta-vc-order > summary {
        grid-template-columns: 64px minmax(0,1fr) 84px 16px;
        gap: 7px;
    }

    .gta-vc-order__date,
    .gta-vc-order__status {
        display: none;
    }
}

@media (max-width: 480px) {
    .gta-vc-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .gta-vc-kpis > div:first-child {
        grid-column: 1 / -1;
    }

    .gta-vc-history__head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   GTA Vue Commerciale v1.3.0 — Navigation par onglets
   ========================================================= */

.gta-vc-tabs {
    position: sticky;
    top: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    margin: 0 0 18px;
    padding: 7px;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    background: rgba(248,250,252,.96);
    backdrop-filter: blur(8px);
}

.gta-vc-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 58px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #17305a;
    text-align: left;
    cursor: pointer;
}

.gta-vc-tab span {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
}

.gta-vc-tab small {
    margin-top: 3px;
    color: #7e8996;
    font-size: 8px;
    line-height: 1.25;
}

.gta-vc-tab:hover {
    background: #eef3f7;
}

.gta-vc-tab.is-active {
    background: #082f5c;
    color: #fff;
}

.gta-vc-tab.is-active small {
    color: rgba(255,255,255,.72);
}

.gta-vc-tabpanel {
    display: none;
}

.gta-vc-tabpanel.is-active {
    display: block;
}

.gta-vc-tabpanel[hidden] {
    display: none !important;
}

/* Le filtre stock peut rester sticky, mais sous la barre d'onglets. */
.gta-vc-tabpanel[data-gta-vc-panel="stock"] .gta-vc-toolbar {
    top: 82px;
}

/* L'espace avant le dashboard n'est plus nécessaire dans son onglet. */
.gta-vc-tabpanel[data-gta-vc-panel="orders"] .gta-vc-orders {
    margin-top: 0;
}

@media (max-width: 700px) {
    .gta-vc-tabs {
        top: 0;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        margin-bottom: 14px;
        padding: 5px;
    }

    .gta-vc-tab {
        min-height: 52px;
        padding: 8px 9px;
    }

    .gta-vc-tab span {
        font-size: 11px;
    }

    .gta-vc-tab small {
        display: none;
    }

    .gta-vc-tabpanel[data-gta-vc-panel="stock"] .gta-vc-toolbar {
        position: static;
    }
}


/* =========================================================
   GTA Vue Commerciale v1.4.0 — LISIBILITÉ RENFORCÉE
   ========================================================= */

/* Base générale de la vue commerciale */
.gta-vc-page {
    font-size: 16px;
}

/* Onglets */
.gta-vc-tab {
    min-height: 72px;
    padding: 14px 18px;
}

.gta-vc-tab span {
    font-size: 18px;
    line-height: 1.15;
}

.gta-vc-tab small {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
}

/* Hero */
.gta-vc-hero h1 {
    font-size: 48px;
}

.gta-vc-hero p:last-child {
    font-size: 16px;
    line-height: 1.5;
}

.gta-vc-eyebrow {
    font-size: 13px;
}

.gta-vc-hero__stats strong {
    font-size: 42px;
}

.gta-vc-hero__stats span {
    font-size: 12px;
}

/* Barre de recherche / filtres */
.gta-vc-toolbar label > span {
    font-size: 13px;
}

.gta-vc-toolbar input,
.gta-vc-toolbar select {
    min-height: 52px;
    font-size: 15px;
}

.gta-vc-toolbar__count strong {
    font-size: 30px;
}

.gta-vc-toolbar__count span {
    font-size: 11px;
}

.gta-vc-reset {
    font-size: 12px;
}

.gta-vc-note {
    font-size: 13px;
    line-height: 1.5;
}

/* Cartes stock */
.gta-vc-card__sku {
    font-size: 11px;
}

.gta-vc-stock {
    font-size: 12px;
}

.gta-vc-card h3 {
    font-size: 20px;
}

.gta-vc-card__material {
    font-size: 12px;
}

.gta-vc-pricing small,
.gta-vc-pricing label > span {
    font-size: 11px;
}

.gta-vc-pricing strong {
    font-size: 15px;
}

.gta-vc-pricing input {
    min-height: 42px;
    font-size: 15px;
}

.gta-vc-tiers span {
    font-size: 10px;
}

.gta-vc-card__action a {
    min-height: 46px;
    font-size: 12px;
}

/* Commandes & performances */
.gta-vc-orders__head h2 {
    font-size: 34px;
}

.gta-vc-orders__head > div > p:last-child {
    font-size: 14px;
}

.gta-vc-period label {
    font-size: 12px;
}

.gta-vc-period select {
    min-height: 46px;
    font-size: 14px;
}

.gta-vc-kpis small {
    font-size: 11px;
}

.gta-vc-kpis strong {
    font-size: 27px;
}

.gta-vc-kpis span {
    font-size: 10px;
}

.gta-vc-ranking h3 {
    font-size: 19px;
}

.gta-vc-ranking > p {
    font-size: 11px;
}

.gta-vc-ranking li a,
.gta-vc-ranking li span {
    font-size: 12px;
}

.gta-vc-ranking li small {
    font-size: 10px;
}

.gta-vc-ranking li > strong {
    font-size: 12px;
}

.gta-vc-history__head h3 {
    font-size: 20px;
}

.gta-vc-history__head p,
.gta-vc-history__head > span {
    font-size: 11px;
}

.gta-vc-order > summary {
    min-height: 50px;
    font-size: 13px;
}

.gta-vc-order__date,
.gta-vc-order__status {
    font-size: 11px;
}

.gta-vc-order__client,
.gta-vc-order__amount {
    font-size: 13px;
}

.gta-vc-order__meta {
    font-size: 11px;
}

.gta-vc-order table {
    font-size: 11px;
}

.gta-vc-order th {
    font-size: 10px;
}

.gta-vc-pagination a,
.gta-vc-pagination span {
    font-size: 11px;
}

/* Evite les rétrécissements inattendus du conteneur après soumission GET */
body.gta-vc-fullwidth-page .gta-vc-page {
    width: 100% !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 700px) {
    .gta-vc-tab {
        min-height: 58px;
    }

    .gta-vc-tab span {
        font-size: 13px;
    }

    .gta-vc-hero h1 {
        font-size: 36px;
    }

    .gta-vc-toolbar input,
    .gta-vc-toolbar select {
        font-size: 14px;
    }

    .gta-vc-card h3 {
        font-size: 17px;
    }
}


/* =========================================================
   GTA Vue Commerciale v1.5.0 — ONGLETS SERVEUR ROBUSTES
   ========================================================= */

.gta-vc-tabs a.gta-vc-tab {
    text-decoration: none !important;
}

.gta-vc-tabs a.gta-vc-tab:focus,
.gta-vc-tabs a.gta-vc-tab:visited {
    text-decoration: none !important;
}

.gta-vc-tabpanel {
    display: block;
}

body.gta-vc-fullwidth-page #content,
body.gta-vc-fullwidth-page .site-content,
body.gta-vc-fullwidth-page .ast-container,
body.gta-vc-fullwidth-page .site-content > .ast-container,
body.gta-vc-fullwidth-page #primary,
body.gta-vc-fullwidth-page .content-area,
body.gta-vc-fullwidth-page .site-main,
body.gta-vc-fullwidth-page article.page,
body.gta-vc-fullwidth-page .entry-content {
    width: 100% !important;
    max-width: none !important;
}

body.gta-vc-fullwidth-page .site-content > .ast-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

body.gta-vc-fullwidth-page .gta-vc-page {
    width: min(1380px, 100%) !important;
    max-width: 1380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* En onglet Commandes, aucune largeur héritée du catalogue stock. */
.gta-vc-tabpanel[data-gta-vc-panel="orders"] {
    width: 100% !important;
    max-width: none !important;
}

.gta-vc-tabpanel[data-gta-vc-panel="orders"] .gta-vc-orders {
    width: 100% !important;
    max-width: none !important;
}

/* Le formulaire de période ne doit jamais déborder. */
.gta-vc-period {
    max-width: 100%;
}

.gta-vc-period select {
    max-width: 240px;
}


/* =========================================================
   GTA Vue Commerciale v1.6.0 — Calcul historique asynchrone
   ========================================================= */

.gta-vc-all-history-progress {
    margin: 0 0 14px;
    padding: 10px 13px;
    border: 1px solid #d7e1eb;
    border-left: 4px solid #d9a524;
    border-radius: 9px;
    background: #f8fafc;
    color: #566579;
    font-size: 12px;
}

.gta-vc-all-history-progress strong {
    color: #17305a;
}

.gta-vc-all-history-progress.is-done {
    border-left-color: #16a365;
    background: #f4fbf7;
}

.gta-vc-all-history-progress.is-error {
    border-left-color: #b65c65;
    background: #fff7f7;
}

.gta-vc-ranking-loading::before {
    display: none !important;
}


/* =========================================================
   GTA Vue Commerciale v1.7.0 — CA annuel + graphique ventes
   ========================================================= */

.gta-vc-period-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 9px 13px;
    border: 1px solid #dce3ea;
    border-radius: 10px;
    background: #f8fafc;
}

.gta-vc-period-badge span {
    color: #8792a0;
    font-size: 10px;
}

.gta-vc-period-badge strong {
    margin-top: 2px;
    color: #17305a;
    font-size: 13px;
}

.gta-vc-sales-analysis {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(520px, 1.4fr);
    gap: 12px;
    margin-bottom: 14px;
}

.gta-vc-yearly-card,
.gta-vc-chart-card {
    padding: 17px;
    border: 1px solid #dce3ea;
    border-radius: 14px;
    background: #fff;
}

.gta-vc-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.gta-vc-panel-title h3 {
    margin: 0 !important;
    color: #17305a;
    font-size: 19px;
}

.gta-vc-panel-title p {
    margin: 3px 0 0 !important;
    color: #8792a0;
    font-size: 11px;
}

.gta-vc-panel-title > strong {
    color: #b8891d;
    font-size: 16px;
}

.gta-vc-yearly-list {
    display: grid;
    gap: 10px;
}

.gta-vc-year-row {
    display: grid;
    grid-template-columns: 48px minmax(90px,1fr) 105px;
    gap: 9px;
    align-items: center;
}

.gta-vc-year-row > strong {
    color: #17305a;
    font-size: 12px;
}

.gta-vc-year-row > b {
    color: #17305a;
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.gta-vc-year-bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f5;
}

.gta-vc-year-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #d9a524;
}

.gta-vc-sales-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(28px, 1fr));
    gap: 7px;
    align-items: end;
    min-height: 220px;
    padding-top: 8px;
}

.gta-vc-chart-col {
    display: grid;
    grid-template-rows: 32px 150px 18px;
    gap: 5px;
    min-width: 0;
    text-align: center;
}

.gta-vc-chart-value {
    overflow: hidden;
    color: #657283;
    font-size: 8px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gta-vc-chart-track {
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 5px;
    background: #f2f5f8;
}

.gta-vc-chart-track span {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 5px 5px 0 0;
    background: #173b68;
}

.gta-vc-chart-col small {
    color: #758190;
    font-size: 9px;
}

.gta-vc-analysis-loading {
    padding: 18px;
    color: #8792a0;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1000px) {
    .gta-vc-sales-analysis {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .gta-vc-period-badge {
        align-items: flex-start;
    }

    .gta-vc-sales-chart {
        overflow-x: auto;
        grid-template-columns: repeat(12, 52px);
    }

    .gta-vc-year-row {
        grid-template-columns: 42px minmax(80px,1fr) 90px;
    }
}


/* =========================================================
   GTA Vue Commerciale v1.8.0 — Statistiques SQL WooCommerce
   ========================================================= */

.gta-vc-analytics-warning {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid #ead8a4;
    border-left: 4px solid #d9a524;
    border-radius: 9px;
    background: #fffaf0;
    color: #6f6250;
    font-size: 12px;
}


/* =========================================================
   GTA Vue Commerciale v1.9.0 — COMMANDES PAR MOIS/ANNÉE + LISIBILITÉ
   ========================================================= */

/* KPI : 6 cartes et textes plus lisibles */
.gta-vc-kpis {
    grid-template-columns: repeat(6, minmax(0,1fr));
}

.gta-vc-kpis small {
    font-size: 12px !important;
    line-height: 1.25;
}

.gta-vc-kpis strong {
    font-size: 29px !important;
}

.gta-vc-kpis span {
    font-size: 11px !important;
    line-height: 1.3;
}

/* Titres / sous-titres */
.gta-vc-orders__head > div > p:last-child,
.gta-vc-panel-title p,
.gta-vc-ranking > p,
.gta-vc-history__head p,
.gta-vc-history__head > span {
    font-size: 13px !important;
    line-height: 1.4;
}

/* CA annuel + nombre de commandes */
.gta-vc-year-row {
    grid-template-columns: 54px minmax(130px,1fr) 120px;
    gap: 12px;
}

.gta-vc-year-row > strong {
    font-size: 14px !important;
}

.gta-vc-year-row > b {
    font-size: 13px !important;
}

.gta-vc-year-bar-wrap {
    display: grid;
    gap: 5px;
}

.gta-vc-year-bar-wrap small {
    color: #667487;
    font-size: 12px;
    font-weight: 700;
}

/* Graphique mensuel : CA + nombre de commandes */
.gta-vc-chart-col {
    grid-template-rows: 46px 150px 22px;
}

.gta-vc-chart-value {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    overflow: visible;
    color: #17305a;
    font-size: 10px !important;
    font-weight: 700;
    white-space: normal;
}

.gta-vc-chart-value > small {
    color: #6c7888;
    font-size: 11px !important;
    font-weight: 700;
}

.gta-vc-chart-month {
    color: #59677a !important;
    font-size: 11px !important;
    font-weight: 700;
}

/* Rankings plus lisibles */
.gta-vc-ranking h3 {
    font-size: 21px !important;
}

.gta-vc-ranking li a,
.gta-vc-ranking li span {
    font-size: 13px !important;
    line-height: 1.35;
}

.gta-vc-ranking li small {
    font-size: 11px !important;
}

.gta-vc-ranking li > strong {
    font-size: 13px !important;
}

/* Historique commandes */
.gta-vc-history__head h3 {
    font-size: 22px !important;
}

.gta-vc-order__number,
.gta-vc-order__client,
.gta-vc-order__amount {
    font-size: 14px !important;
}

.gta-vc-order__date,
.gta-vc-order__status {
    font-size: 12px !important;
}

.gta-vc-order__meta {
    font-size: 12px !important;
}

.gta-vc-order table {
    font-size: 12px !important;
}

.gta-vc-order th {
    font-size: 11px !important;
}

/* Onglets / période */
.gta-vc-tab small,
.gta-vc-period-badge span {
    font-size: 12px !important;
}

.gta-vc-period-badge strong {
    font-size: 14px !important;
}

/* Pages larges */
@media (max-width: 1180px) {
    .gta-vc-kpis {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 760px) {
    .gta-vc-kpis {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .gta-vc-year-row {
        grid-template-columns: 48px minmax(100px,1fr) 100px;
    }
}

@media (max-width: 480px) {
    .gta-vc-kpis {
        grid-template-columns: 1fr 1fr;
    }
}
