/* ==========================================================================
   Captures reconstituées des logiciels ConfigOne (HTML/CSS, données fictives).
   Chaque interface est dessinée à sa taille réelle (px) puis réduite par
   js/site.js (propriété zoom) pour tenir dans son cadre.
   Valeurs relevées dans le code des applications (thème clair).
   Police Inter (SIL OFL), icônes Bootstrap Icons (MIT).
   ========================================================================== */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Cadre (fenêtre de navigateur) ---------- */

.screen {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow-mock);
}
.screen__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    background: #faf9f6;
}
.screen__dots { display: flex; gap: 5px; }
.screen__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.screen__url {
    overflow: hidden;
    padding: 2px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--muted);
    font-family: var(--mono);
    font-size: .7rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.screen__view { position: relative; overflow: hidden; }
/* Hauteur du cadre réservée dès le premier affichage, au rapport largeur / hauteur réel de
   l'interface (data-width / data-height, posés par _screens/screen.html.twig d'après les tailles de
   .sf--dash, .sf--list, .sf--detail, .sp--cal et .spc-stage plus bas). Sans cela, le cadre change de
   hauteur quand le zoom s'applique ou quand un écran différé arrive, et la page saute (CLS). */
.screen__view[data-width="1440"][data-height="1000"] { aspect-ratio: 1440 / 1000; }
.screen__view[data-width="1720"][data-height="940"] { aspect-ratio: 1720 / 940; }
.screen__view[data-width="1440"][data-height="940"] { aspect-ratio: 1440 / 940; }
.screen__view[data-width="1440"][data-height="900"] { aspect-ratio: 1440 / 900; }
.screen__view[data-width="1440"][data-height="1220"] { aspect-ratio: 1440 / 1220; }
.screen__canvas {
    position: relative;
    overflow: hidden;
    zoom: .42; /* valeur par défaut sans JavaScript, ajustée par site.js */
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    user-select: none;
    pointer-events: none;
}
.screen__canvas * { box-sizing: border-box; }
:where(.screen__canvas) :where(p, ol, ul) { margin: 0; padding: 0; }
:where(.screen__canvas) :where(h1, h2, h3, h4, h5, h6) { margin: 0; color: inherit; text-wrap: wrap; }
/* Les applications coupent les lignes normalement : pas de « text-wrap: pretty » hérité du site. */
.screen__canvas :is(p, li, dd) { text-wrap: wrap; }
:where(.screen__canvas) :where(ol, ul) { list-style: none; }
.screen__canvas img, .screen__canvas svg { max-width: none; }
.screen__canvas .bi { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.125em; }
.screen__caption {
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    background: #faf9f6;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .02em;
}
@media (min-width: 760px) { .screen__canvas { zoom: .6; } }
@media (min-width: 1200px) { .screen__canvas { zoom: .78; } }
/* Navigateurs qui savent diviser des longueurs (Chrome 140+, dont proviennent les Core Web Vitals
   de Google) : le zoom exact est calculé en CSS dès le premier affichage, rien ne bouge ensuite.
   Une règle par largeur d'interface (data-width) ; site.js ignore ces largeurs dans ce cas. */
@supports (zoom: min(1, calc(100cqw / 1440px))) {
    .screen__view { container-type: inline-size; }
    .screen__view[data-width="1440"] > .screen__canvas { zoom: min(1, calc(100cqw / 1440px)); }
    .screen__view[data-width="1720"] > .screen__canvas { zoom: min(1, calc(100cqw / 1720px)); }
}

/* Couleurs des réseaux (palette de l'application) */
.n-linkedin  { --nc: #0A66C2; --nt: #EAF3FE; }
.n-instagram { --nc: #C13584; --nt: #FDF0F7; }
.n-facebook  { --nc: #1877F2; --nt: #EAF2FE; }
.n-x         { --nc: #111827; --nt: #F3F4F6; }
.n-tiktok    { --nc: #111827; --nt: #F3F4F6; }
.n-youtube   { --nc: #FF0000; --nt: #FEEAEA; }
.n-threads   { --nc: #000000; --nt: #F3F4F6; }
.n-pinterest { --nc: #BD081C; --nt: #FEEAEC; }
.n-bluesky   { --nc: #0560FF; --nt: #EAF2FE; }
.n-mastodon  { --nc: #563ACC; --nt: #EFEEFA; }
.n-google    { --nc: #4285F4; --nt: #E8F0FE; }

/* Photos fictives (dégradés) */
.ph-oak    { background: linear-gradient(160deg, #e9d3b4 0%, #c99a68 38%, #8d6240 70%, #5b3d27 100%); }
.ph-sage   { background: linear-gradient(150deg, #dfe5d8 0%, #a9b89a 45%, #6f8466 80%, #4f6249 100%); }
.ph-stone  { background: linear-gradient(170deg, #f2efe9 0%, #d8d2c8 40%, #a9a196 75%, #7d766c 100%); }
.ph-walnut { background: linear-gradient(155deg, #c9a07a 0%, #8a5a3a 45%, #5a3523 80%, #3a2116 100%); }
.ph-light  { background: linear-gradient(140deg, #fbf6ee 0%, #efe2cf 50%, #d9c3a4 100%); }
.ph-oak, .ph-sage, .ph-stone, .ph-walnut, .ph-light { position: relative; }
.ph-oak::after, .ph-sage::after, .ph-stone::after, .ph-walnut::after, .ph-light::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, .10) 58.4%, rgba(0, 0, 0, .04) 62%, transparent 62.4%),
        linear-gradient(90deg, transparent 22%, rgba(255, 255, 255, .16) 22.3%, transparent 23%, transparent 64%, rgba(0, 0, 0, .07) 64.3%, transparent 65%),
        radial-gradient(120% 70% at 75% 10%, rgba(255, 255, 255, .35), transparent 60%);
}

/* ==========================================================================
   ConfigOne Planificateur
   ========================================================================== */

.sp {
    --primary: #12708a;
    --primary-dark: #0d5669;
    --primary-tint: #e8f3f6;
    --accent: #1799b6;
    --canvas: #f5f6f7;
    --border: #e1e4e8;
    --border-strong: #cbd0d6;
    --text: #15181c;
    --soft: #4f5660;
    --muted: #6b727c;
    --g25: #fafbfb; --g100: #eceef0; --g400: #9ea5ae; --g700: #3a4048; --g800: #23272d;
    display: flex;
    background: var(--canvas);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    font-feature-settings: "cv11", "ss01";
    text-align: left;
}
.sp--cal { width: 1440px; height: 900px; }
.sp--home { width: 1280px; height: 760px; }

/* Barre latérale */
.sp-sidebar { display: flex; flex: none; flex-direction: column; width: 248px; height: 100%; border-right: 1px solid var(--border); background: #fff; }
.sp-sidebar__head { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 20px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.sp-logo { width: auto; height: 32px; }
.sp-sidebar__nav { flex: 1; padding: 16px 12px; }
.sp-create { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; margin: 0 0 20px; border: 1px solid var(--primary); border-radius: 6px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; }
.sp-create .bi { font-size: 16px; }
.sp-sec + .sp-sec { margin-top: 16px; }
.sp-sec__title { display: block; padding: 8px 12px 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sp-link { position: relative; display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: 6px; color: var(--soft); font-size: 14.4px; font-weight: 500; }
.sp-link + .sp-link { margin-top: 1px; }
.sp-link .bi { width: 18px; color: var(--g400); font-size: 16px; }
.sp-link.is-active { background: var(--canvas); color: var(--text); font-weight: 600; }
.sp-link.is-active .bi { color: var(--accent); }
.sp-link.is-active::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: -12px; width: 3px; border-radius: 0 2px 2px 0; background: var(--accent); }
.sp-user { padding: 12px; border-top: 1px solid var(--border); }
.sp-user__card { display: flex; align-items: center; gap: 12px; padding: 8px; }
.sp-user__avatar { display: flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; background: var(--primary-tint); color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.sp-user__info { flex: 1; min-width: 0; line-height: 1.35; }
.sp-user__info b { display: block; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sp-user__info small { display: block; overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.sp-user__out { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--muted); font-size: 16px; }

/* Colonne principale et barre supérieure */
.sp-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sp-topbar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 32px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .97); }
.sp-crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sp-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.sp-crumbs b { color: var(--text); font-weight: 600; }
.sp-topbar__actions { display: flex; align-items: center; gap: 8px; }
.sp-tbtn { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text); font-size: 16px; }
.sp-flag { width: 20px; height: 14.4px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 2px; object-fit: cover; }
.sp-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #b42318; color: #fff; font-size: 10.4px; font-style: normal; font-weight: 700; line-height: 17px; text-align: center; }
.sp-company { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--g25); color: var(--soft); font-size: 14px; font-weight: 600; }
.sp-company .bi { color: var(--muted); }
.sp-content { flex: 1; min-height: 0; padding: 32px; }
.sp-content--flush { padding: 0; }

/* Boutons et champs */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6.4px; height: 36px; padding: 0 12.8px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text); font-size: 13.6px; font-weight: 500; white-space: nowrap; }
.sp-btn--icon { width: 36px; padding: 0; }
.sp-btn--muted { color: var(--soft); }
.sp-btn--primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.sp-btn--block { width: 100%; }
.sp-input { position: relative; display: flex; align-items: center; height: 36px; padding: 0 11px 0 31px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--g400); font-size: 13.6px; white-space: nowrap; }
.sp-input .bi { position: absolute; left: 10.4px; color: var(--muted); font-size: 13.6px; }
.sp-select { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; height: 36px; padding: 0 10px 0 10.4px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text); font-size: 13.6px; white-space: nowrap; }
.sp-select .bi { color: #69717c; font-size: 11px; }
.sp-select--view { min-width: 164.8px; }
.sp-select--status { min-width: 215.8px; }
.sp-select--type { min-width: 162.8px; }

/* Calendrier */
.sp-pc {
    --st-ready: #1d6fb8; --st-processing: #6a4fc2; --st-review: #b06d00; --st-draft: #7a828c; --st-published: #1d7a4f; --st-failed: #b42318;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    height: 100%;
    background: #fff;
}
.st-ready { --st: var(--st-ready); }
.st-processing { --st: var(--st-processing); }
.st-review { --st: var(--st-review); }
.st-draft { --st: var(--st-draft); }
.st-published { --st: var(--st-published); }
.st-failed { --st: var(--st-failed); }
.sp-pc-accounts { display: flex; flex-direction: column; border-right: 1px solid var(--border); background: #fff; }
.sp-pc-accounts__search { padding: 13.6px 13.6px 8px; }
.sp-pc-accounts__list { flex: 1; padding: 4px 8px 8px; }
.sp-acc { display: flex; align-items: center; gap: 10.4px; padding: 7.2px 8px; margin-bottom: 2px; border-radius: 6px; }
.sp-acc.is-active { background: rgba(18, 112, 138, .08); }
.sp-acc__text { flex: 1; min-width: 0; line-height: 1.25; }
.sp-acc__text b { display: block; overflow: hidden; font-size: 13.76px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.sp-acc__text small { display: block; color: var(--soft); font-size: 12px; }
.sp-acc__count { color: var(--soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.sp-acc__check { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 1px solid var(--border-strong); border-radius: 4px; color: #fff; font-size: 11px; }
.sp-acc__check .bi { visibility: hidden; }
.sp-acc__check.is-on { border-color: var(--primary); background: var(--primary); }
.sp-acc__check.is-on .bi { visibility: visible; }
.sp-av { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--nt, #eceef0); color: var(--nc, #3a4048); font-size: 12.8px; font-weight: 600; text-transform: uppercase; }
.sp-av--all { background: var(--border); color: var(--g700); font-size: 14px; }
.sp-av__badge { position: absolute; right: -3px; bottom: -3px; display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: var(--nc); color: #fff; font-size: 8px; }
.sp-pc-accounts__foot { padding: 12px; border-top: 1px solid var(--border); }

.sp-pc-main { display: flex; flex-direction: column; min-width: 0; }
.sp-pc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9.6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sp-pc-toolbar--filters { padding-top: 9.6px; padding-bottom: 9.6px; background: var(--canvas); }
.sp-pc-nav { display: flex; align-items: center; gap: 6.4px; }
.sp-pc-range { margin: 0 0 0 8px; font-size: 16.8px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.sp-pc-filters { display: flex; align-items: center; gap: 6.4px; }
.sp-pc-filters .sp-input { width: 256px; }
.sp-pc-summary { display: flex; align-items: center; gap: 5.6px 16px; color: var(--soft); font-size: 12.8px; }
.sp-pc-summary b { color: var(--text); font-weight: 600; }
.sp-pc-summary .sp-dot { margin-right: 4.8px; }
.sp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--st); vertical-align: 1px; }

.sp-grid { display: grid; flex: 1; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 36px; grid-auto-rows: minmax(132px, auto); }
.sp-month-head { display: flex; align-items: center; justify-content: center; height: 36px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--soft); font-size: 12.5px; }
.sp-month-head:nth-child(7) { border-right: 0; }
.sp-day { position: relative; display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sp-day:nth-child(7n) { border-right: 0; }
.sp-day.is-past { background: var(--canvas); }
.sp-day__head { display: flex; align-items: center; justify-content: space-between; padding: 6.4px 8px 0; color: var(--soft); font-size: 13px; }
.sp-day__head strong { color: var(--text); font-size: 14.4px; font-weight: 600; }
.sp-day.is-outside .sp-day__head strong { color: var(--g400); }
.sp-today { padding: 2.4px 8.8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12.8px; font-weight: 600; }
.sp-day__posts { display: flex; flex-direction: column; gap: 3px; padding: 5.6px 6.4px; }
.sp-post { position: relative; display: flex; align-items: center; gap: 5.6px; padding: 3.5px 6.4px 3.5px 8.8px; border: 1px solid var(--border); border-radius: 5px; background: #fff; color: var(--text); font-size: 11.8px; line-height: 1.2; }
.sp-post::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: -1px; width: 3px; border-radius: 5px 0 0 5px; background: var(--st); }
.sp-post .bi { color: var(--nc); font-size: 11.5px; }
.sp-post__time { font-weight: 600; font-variant-numeric: tabular-nums; }
.sp-post__mini { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sp-post__retry { color: var(--st-failed); font-size: 11px; }
.sp-more { padding: 1.6px 5.6px; color: var(--soft); font-size: 12.2px; font-weight: 500; }

/* Éditeur de publication (partials/_dashboard_composer.html.twig), fenêtre de 1440 × 1220 */
.spc-stage { display: flex; width: 1440px; height: 1220px; padding: 16px; background: #aaabad; color: #283037; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.55; font-feature-settings: "cv11", "ss01"; text-align: left; }
.spc-panel { display: flex; flex: 1; flex-direction: column; min-width: 0; overflow: hidden; padding: 15.2px; border: 1px solid #e1e4e8; border-radius: 8px; background: linear-gradient(180deg, #fff 0%, #fafbfb 100%); box-shadow: 0 12px 32px rgba(21, 24, 28, .14); }
.spc-panel__head { display: flex; flex: none; align-items: center; justify-content: space-between; height: 32px; margin-bottom: 16px; }
.spc-title { color: #232a30; font-size: 17.6px; font-weight: 650; }
.spc-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #dadee2; border-radius: 50%; background: #f7f8f9; color: #5e6872; font-size: 18px; }
.spc-work { display: grid; flex: none; grid-template-columns: 315px 715px 320px; gap: 12.8px; height: 1704.4px; }
.spc-col { display: flex; flex-direction: column; min-width: 0; padding: 12px; border: 1px solid #e2e5e9; border-radius: 14.4px; background: #fff; }
.spc-col__title { margin: 0 0 8.8px; color: #65717c; font-size: 13.28px; font-weight: 600; line-height: 20.584px; }

/* Comptes */
.spc-picker { padding: 10.4px; border: 1px solid #dce0e4; border-radius: 14.72px; background: #fbfbfb; }
.spc-search { display: flex; align-items: center; height: 38px; margin-bottom: 8.8px; padding: 0 9.92px; border: 1px solid #d5d9dc; border-radius: 9.6px; background: #fff; color: #8a96a3; font-size: 13.76px; }
.spc-toolbar { display: flex; align-items: center; gap: 6.4px; height: 32px; margin-bottom: 9.92px; }
.spc-clear { display: flex; align-items: center; height: 32px; padding: 0 8.8px; border: 1px solid #cbd0d6; border-radius: 6px; background: #fff; color: #15181c; font-size: 14px; font-weight: 600; }
.spc-count { padding: 3.2px 8.8px; border: 1px solid #d0d4d8; border-radius: 999px; background: #f0f6f8; color: #0d5669; font-size: 12.16px; font-weight: 600; line-height: 18.848px; }
.spc-cards { display: grid; gap: 8.97px; padding-right: 3.2px; }
.spc-card { display: flex; align-items: center; gap: 10.88px; height: 84px; padding: 10.88px; border: 1px solid #dde1e4; border-radius: 13.6px; background: #fff; }
.spc-card.is-on { border-color: #12708a; background: #f3f8f9; box-shadow: 0 0 0 2px rgba(18, 112, 138, .18); }
.spc-card__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9.6px; background: var(--nt); color: var(--nc); font-size: 16px; }
.spc-card__body { flex: 1; min-width: 0; }
.spc-card__body b { display: block; color: #272f37; font-size: 14.4px; font-weight: 600; line-height: 17.28px; }
.spc-card__body small { display: block; margin-top: 3.2px; overflow: hidden; color: #76828f; font-size: 12.16px; line-height: 14.592px; white-space: nowrap; text-overflow: ellipsis; }
.spc-card__check { display: flex; flex: none; align-items: center; justify-content: center; width: 19.2px; height: 19.2px; border: 1px solid #bdc3c9; border-radius: 999px; color: transparent; font-size: 12.8px; }
.spc-card.is-on .spc-card__check { border-color: #12708a; background: #12708a; color: #fff; }
.spc-add-account { display: flex; align-items: center; justify-content: center; gap: 6.4px; height: 40px; margin-top: 9.85px; border: 1px dashed #c7cdd2; border-radius: 10.88px; background: #fff; color: #38434d; font-size: 13.76px; font-weight: 600; }

/* Contenu */
.spc-main { gap: 10.88px; }
.spc-hint { color: #5f6a74; font-size: 12.96px; line-height: 20.088px; }
.spc-shell { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 8.8px; padding: 8.8px; border: 1px solid #dde1e5; border-radius: 14.08px; background: #fbfcfc; }
.spc-rail { display: flex; flex-direction: column; align-items: center; gap: 7.2px; padding-right: 8px; border-right: 1px solid #e2e5e9; }
.spc-rail span { display: flex; flex: none; align-items: center; justify-content: center; width: 28.8px; height: 28.8px; border: 1px solid #cbd0d5; border-radius: 999px; background: var(--nt); color: var(--nc); font-size: 13.12px; }
.spc-editor { display: flex; flex-direction: column; gap: 9.28px; min-width: 0; }
.spc-tabs { display: flex; gap: 6.08px; }
.spc-tabs span { padding: 1.92px 1.28px 3.2px; border-bottom: 2px solid transparent; color: #7e8a95; font-size: 14.4px; font-weight: 600; line-height: 17.28px; }
.spc-tabs .is-active { border-bottom-color: #12708a; }
.spc-text { display: flex; flex-direction: column; gap: 6.72px; padding: 8.32px; border: 1px solid #dadee2; border-radius: 11.52px; background: #fff; }
.spc-text__label { margin-bottom: 5.44px; color: #7e8a95; font-size: 11.84px; font-weight: 600; line-height: 18.352px; }
.spc-text__msg { position: relative; height: 128px; color: #232a30; font-size: 15.2px; line-height: 21.28px; font-feature-settings: normal; }
.spc-text__msg::after, .spc-alt__field::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 9px; height: 9px; background: linear-gradient(135deg, transparent 0 45%, #9aa1a9 45% 52%, transparent 52% 70%, #9aa1a9 70% 77%, transparent 77%); }
.spc-text__bar { display: flex; align-items: center; justify-content: space-between; padding-top: 7.2px; border-top: 1px solid #e1e4e8; }
.spc-chip { padding: 4.16px 8px; border: 1px solid #d6dade; border-radius: 7.68px; background: #f7f8f9; color: #535c65; font-size: 12.16px; line-height: 13.376px; }
.spc-format { display: flex; gap: 4.48px; }
.spc-format span { display: flex; align-items: center; justify-content: center; width: 25.6px; height: 25.6px; border: 1px solid #d6dade; border-radius: 5.6px; background: #fbfcfc; color: #67737e; font-size: 13.12px; font-weight: 600; }
.spc-gallery { display: flex; gap: 7.2px; margin-top: 16px; }
.spc-media { position: relative; width: 98.8px; height: 98.8px; overflow: hidden; border: 1px solid #d3d7db; border-radius: 10.56px; }
.spc-media__type { position: absolute; top: 5.1px; left: 5.1px; z-index: 1; padding: 1.6px 5.44px; border: 1px solid rgba(63, 72, 80, .2); border-radius: 999px; background: rgba(255, 255, 255, .82); color: #505962; font-size: 10.24px; font-weight: 600; line-height: 12.288px; letter-spacing: .04em; text-transform: uppercase; }
.spc-media__x, .spc-media__move { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; width: 21.4px; height: 21.4px; border-radius: 999px; font-size: 11.2px; }
.spc-media__x { top: 4.8px; right: 4.9px; border: 1px solid rgba(211, 67, 79, .65); background: rgba(255, 237, 240, .96); color: #8e2531; }
.spc-media__move { bottom: 4.8px; left: 4.8px; border: 1px solid rgba(90, 102, 114, .35); background: rgba(255, 255, 255, .92); color: #505962; }
.spc-media__move--next { left: auto; right: 4.9px; }
.spc-media__add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.84px; width: 98.8px; height: 98.8px; border: 1px dashed #c4c9ce; border-radius: 10.56px; background: #f0f6f8; color: #6a7682; font-size: 11.84px; font-weight: 600; line-height: 18.352px; }
.spc-media__add .bi { font-size: 19.2px; }
.spc-alt { margin-top: 0.32px; }
.spc-alt__label { margin-bottom: 4px; color: #222930; font-size: 12.48px; font-weight: 500; line-height: 19.344px; }
.spc-alt__label span { color: #66727f; font-weight: 400; }
.spc-alt__field { position: relative; height: 57.1px; font-feature-settings: normal; padding: 7.2px 9.6px; border: 1px solid #d2d7db; border-radius: 6px; background: #fff; color: #757e87; font-size: 13.12px; line-height: 20.336px; }
.spc-alt__help { margin-top: 9.4px; color: #67737e; font-size: 12.16px; line-height: 17.632px; }
.spc-comment { display: flex; align-items: center; gap: 7.04px; margin-top: 17.6px; color: #56606a; font-size: 14.4px; font-weight: 600; line-height: 17.28px; }
.spc-comment i { display: flex; align-items: center; justify-content: center; width: 22.4px; height: 22.4px; border-radius: 999px; background: #eaf3fe; color: #0a66c2; font-size: 12.8px; font-style: normal; }
.spc-cns { margin-top: 16px; padding-top: 14.4px; border-top: 1px solid #e6e9eb; }
.spc-cns__title { margin-bottom: 4px; color: #232a30; font-size: 17.6px; font-weight: 600; line-height: 21.12px; letter-spacing: -.02em; }
.spc-cns__intro { margin-bottom: 9.6px; color: #67737e; font-size: 12.16px; line-height: 17.632px; }
.spc-cns__item { margin-bottom: 9.6px; border: 1px solid #e6e9eb; border-radius: 8px; background: #fff; }
.spc-cns__item::after { content: ""; display: block; height: 23.4px; border-top: 1px solid #eef0f2; }
.spc-cns__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9.6px 12.8px; }
.spc-cns__name { display: flex; align-items: center; gap: 7.2px; color: #222930; font-size: 13.6px; font-weight: 600; line-height: 21.08px; }
.spc-cns__name .bi { color: var(--nc); }
.spc-cns__name small { color: #67737e; font-size: 13.6px; font-weight: 400; }
.spc-cns__ok { color: #1d7a4f; font-size: 11.84px; line-height: 18.352px; }
.spc-tools { display: flex; gap: 5.44px; margin-bottom: 9.3px; padding-top: 7.68px; border-top: 1px solid #e1e4e8; }
.spc-tools span { display: flex; align-items: center; justify-content: center; width: 27.5px; height: 27.5px; border: 1px solid #d3d7db; border-radius: 7.2px; background: #fbfbfb; color: #6f7b87; font-size: 12.8px; }
.spc-tools .is-on { border-color: #12708a; background: #e8f1f3; color: #0d5669; }
.spc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 11.2px; padding-top: 8.8px; border-top: 1px solid #dfe2e5; }
.spc-bulk { display: flex; align-items: center; gap: 5.6px; padding: 3.2px 0; color: #6c7985; font-size: 15.2px; font-weight: 600; line-height: 23.56px; white-space: nowrap; }
.spc-actions { display: flex; align-items: center; gap: 7.36px; }
.spc-btn { display: flex; align-items: center; justify-content: center; min-width: 102px; height: 37.4px; padding: 7.2px 13.76px; border: 1px solid transparent; border-radius: 7.04px; font-size: 15px; font-weight: 600; line-height: 15px; white-space: nowrap; }
.spc-btn--draft { border-color: #d0d4d9; background: #f7f8f8; color: #485058; }
.spc-btn--publish { border-color: #12708a; background: #12708a; color: #fff; }
.spc-btn--schedule { border-color: #12708a; background: transparent; color: #12708a; }
.spc-btn--menu { min-width: 37.4px; width: 37.4px; margin-left: -2.24px; padding: 0; border-color: #14947f; background: #16a085; color: #fff; font-size: 15.12px; }

/* Aperçu */
.spc-preview__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 32px; margin-bottom: 8.8px; }
.spc-preview__head .spc-col__title { margin: 0; }
.spc-preview__tools { display: flex; align-items: center; gap: 6.4px; }
.spc-theme { display: flex; padding: 2px; border: 1px solid #d4e0ec; border-radius: 999px; background: #f3f7fb; }
.spc-theme span { display: flex; align-items: center; gap: 4px; padding: 2.4px 8.8px; border-radius: 999px; color: #4b6175; font-size: 11.52px; font-weight: 600; line-height: 16.128px; }
.spc-theme .is-active { background: #1799b6; color: #fff; }
.spc-mute { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #c7d9ea; border-radius: 999px; background: #f4f8fd; color: #3f5f7f; font-size: 14.08px; }
.spc-filter { display: flex; align-items: center; justify-content: space-between; height: 33.4px; margin-bottom: 8.8px; padding: 0 9.92px; border: 1px solid #c8d7e6; border-radius: 9.28px; background: #f6faff; color: #2c4f71; font-size: 13.12px; font-weight: 600; }
.spc-filter .bi { color: #212529; font-size: 12px; }
.spc-pv { display: flex; flex-direction: column; gap: 6px; margin: 0 3.2px 9.92px 0; }
.spc-pv__label { display: flex; align-items: center; gap: 6px; color: #353b43; font-size: 12px; font-weight: 600; line-height: 18.6px; }
.spc-pv__label .bi { color: var(--nc); }
.spc-pv__label small { color: #69717c; font-size: 12px; font-weight: 400; }
.spc-pv__label small::before { content: "·"; margin-right: 6px; }
.pv { overflow: hidden; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.pv-av { display: flex; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: #cfd9de; color: #fff; font-weight: 700; }
.pv-li { border-radius: 8px; color: rgba(0, 0, 0, .9); font-size: 14px; line-height: 20px; }
.pv-li__head { display: flex; align-items: flex-start; gap: 8px; height: 64px; padding: 12px 16px 0; }
.pv-li__head .pv-av { width: 48px; height: 48px; font-size: 20px; line-height: 20px; }
.pv-li__who { flex: 1; line-height: 16px; }
.pv-li__who b { display: block; font-size: 14px; font-weight: 600; line-height: 20px; }
.pv-li__who small { display: flex; align-items: center; gap: 3px; color: rgba(0, 0, 0, .6); font-size: 12px; }
.pv-li__who .bi { font-size: 11px; }
.pv-li__follow { display: flex; align-items: center; gap: 4px; color: #0a66c2; font-size: 14px; font-weight: 600; }
.pv-li__text { padding: 8px 16px; color: #4f5660; }
.pv-li__text em { color: #0a66c2; font-style: normal; font-weight: 600; }
.pv-li__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 163.6px; background: #000; }
.pv-li__counts { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 16px; color: rgba(0, 0, 0, .6); font-size: 12px; line-height: 20px; }
.pv-li__counts > span:last-child { flex: 1; }
.pv-li__reacts { display: flex; flex: none; align-items: center; }
.pv-li__reacts i { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: -3px; border: 1px solid #fff; border-radius: 50%; color: #fff; font-size: 8px; font-style: normal; }
.pv-li__reacts i:nth-child(1) { background: #378fe9; }
.pv-li__reacts i:nth-child(2) { background: #df704d; }
.pv-li__reacts i:nth-child(3) { margin-right: 6px; background: #f5bb5c; }
.pv-li__actions { display: flex; justify-content: space-around; margin: 0 8px; padding: 2px 0; border-top: 1px solid #e8e8e8; }
.pv-li__actions span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; color: rgba(0, 0, 0, .6); font-size: 12px; font-weight: 600; line-height: 20px; }
.pv-li__actions .bi { font-size: 18px; }
.pv-ig { padding-bottom: 12px; border-radius: 12px; color: #000; font-size: 14px; line-height: 18.67px; }
.pv-ig__head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 8px 12px; }
.pv-ig__ring { padding: 2px; border-radius: 50%; background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.pv-ig__ring .pv-av { width: 32px; height: 32px; border: 2px solid #fff; font-size: 13px; }
.pv-ig__head b { flex: 1; font-size: 14px; font-weight: 600; }
.pv-ig__head .bi { font-size: 18px; }
.pv-ig__img { height: 363.5px; }
.pv-ig__count { position: absolute; top: 12px; right: 12px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; font-weight: 600; line-height: 16px; }
.pv-ig__actions { display: flex; align-items: center; gap: 16px; padding: 10px 12px 7px; font-size: 24px; }
.pv-ig__dots { display: flex; flex: 1; justify-content: center; gap: 4px; margin-right: 40px; }
.pv-ig__dots i { width: 6px; height: 6px; border-radius: 50%; background: #a8a8a8; }
.pv-ig__dots .is-on { background: #0095f6; }
.pv-ig__likes { padding: 0 12px; color: #4f5660; font-weight: 600; }
.pv-ig__caption { display: -webkit-box; padding: 4px 12px 0; overflow: hidden; color: #4f5660; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.pv-ig__caption b { font-weight: 600; }

/* ==========================================================================
   ConfigOne Facturation
   ========================================================================== */

.sf {
    --primary: #2563eb;
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --g50: #f9fafb; --g100: #f3f4f6; --g200: #e5e7eb; --g300: #d1d5db; --g400: #9ca3af;
    --g500: #6b7280; --g600: #4b5563; --g700: #374151; --g800: #1f2937; --g900: #111827;
    display: flex;
    background: var(--g50);
    color: var(--g900);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}
.sf--dash { width: 1440px; height: 1000px; }
.sf--list { width: 1720px; height: 940px; }
.sf--detail { width: 1440px; height: 940px; }

/* Barre latérale */
.sf-sidebar { display: flex; flex: none; flex-direction: column; width: 256px; height: 100%; border-right: 1px solid var(--g200); background: #fff; }
.sf-sidebar__head { display: flex; flex: none; align-items: center; gap: 12px; height: 64px; padding: 0 24px; border-bottom: 1px solid var(--g200); color: var(--g900); font-size: 18px; font-weight: 700; }
.sf-sidebar__head img { width: 32.4px; height: 34.2px; margin: 0 1.8px; }
.sf-sidebar__nav { flex: 1; min-height: 0; overflow: hidden; padding: 16px 12px; }
.sf-sec { margin-bottom: 24px; }
.sf-sec__title { display: block; margin-bottom: 8px; padding: 0 12px; color: var(--g500); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sf-link { display: flex; align-items: center; gap: 12px; min-height: 48.8px; margin-bottom: 2px; padding: 10px 12px; border-radius: 8px; color: var(--g700); font-size: 15px; font-weight: 500; line-height: 1.6; }
.sf-link .bi { width: 20px; font-size: 18px; }
.sf-link.is-active { background: var(--primary); color: #fff; }
.sf-user { flex: none; padding: 16px; border-top: 1px solid var(--g200); }
.sf-user__card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--g200); border-radius: 8px; background: var(--g50); }
.sf-user__avatar { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; }
.sf-user__info { min-width: 0; line-height: 1.45; }
.sf-user__info b { display: block; font-size: 14px; font-weight: 600; }
.sf-user__info small { display: block; overflow: hidden; color: var(--g500); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.sf-user .sf-btn { width: 100%; margin-top: 8px; justify-content: flex-start; }

/* Barre supérieure */
.sf-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.sf-topbar { display: flex; flex: none; align-items: center; justify-content: space-between; height: 64px; padding: 0 32px; border-bottom: 1px solid var(--g200); background: #fff; }
.sf-topbar__title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sf-topbar__actions { display: flex; align-items: center; gap: 12px; }
.sf-tbtn { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--g300); border-radius: 8px; background: #fff; color: var(--g700); font-size: 15px; }
.sf-tbtn img { width: 20px; height: 14.4px; border-radius: 3px; object-fit: cover; }
.sf-tbtn__count { position: absolute; top: -4px; right: -4px; display: flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; }
.sf-company { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid rgba(37, 99, 235, .2); border-radius: 8px; background: rgba(37, 99, 235, .1); color: var(--primary); font-size: 12px; font-weight: 600; line-height: 1; }
.sf-content { flex: 1; min-height: 0; overflow: hidden; padding: 32px; }

/* En-tête de page */
.sf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sf-head--stack { display: block; }
.sf-head__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.sf-h1 { font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.sf-head__desc { margin-bottom: 16px; color: var(--g600); font-size: 15px; }
.sf-head__actions { display: flex; align-items: center; gap: 8px; }

/* Boutons */
.sf-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.sf-btn--primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.sf-btn--success { border-color: var(--success); background: var(--success); color: #fff; }
.sf-btn--secondary { border-color: var(--g300); background: #fff; color: var(--g700); }
.sf-btn--outline { border-color: var(--primary); background: transparent; color: var(--primary); }
.sf-btn--ghost { color: #6c757d; }
.sf-btn--warning { background: #ffc107; color: #000; }
.sf-btn--danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.sf-btn--sm { padding: 8px 16px; font-size: 13px; }
.sf-btn--icon { justify-content: center; width: 36px; height: 36px; padding: 0; }
.sf-btn--sq { justify-content: center; min-height: 37.5px; padding: 8px 16px; font-size: 13px; }

/* Cartes indicateurs */
.sf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.sf-stats--tight { gap: 16px; }
.sf-stat { padding: 24px; border: 1px solid var(--g200); border-radius: 12px; background: #fff; }
.sf-stat__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sf-stat__title { color: var(--g600); font-size: 14px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.sf-stat__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: 20px; }
.sf-stat__value { margin-bottom: 8px; font-size: 32px; font-weight: 800; line-height: 1; }
.sf-stat__change { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.sf-stat__change.is-up { color: var(--success); }
.sf-stat__change.is-down { color: var(--danger); }
.sf-stat__change.is-muted { color: var(--g500); font-weight: 400; }
.ic-blue   { background: rgba(37, 99, 235, .1); color: #2563eb; }
.ic-cyan   { background: rgba(8, 145, 178, .1); color: #0891b2; }
.ic-green  { background: rgba(5, 150, 105, .1); color: #059669; }
.ic-mint   { background: rgba(16, 185, 129, .1); color: #059669; }
.ic-violet { background: rgba(139, 92, 246, .1); color: #8b5cf6; }
.ic-pink   { background: rgba(236, 72, 153, .1); color: #ec4899; }
.ic-orange { background: rgba(249, 115, 22, .1); color: #f97316; }
.ic-sky    { background: rgba(59, 130, 246, .1); color: #3b82f6; }
.ic-green2 { background: #d1fae5; color: #059669; }
.ic-indigo { background: #e0e7ff; color: #4338ca; }
.ic-red    { background: #fee2e2; color: #dc2626; }

/* Grille et cartes */
.sf-cols { display: grid; grid-template-columns: calc((100% + 24px) * 2 / 3 - 24px) minmax(0, 1fr); gap: 24px; align-items: start; }
.sf-stack { display: grid; gap: 24px; }
.sf-card { overflow: hidden; border: 1px solid var(--g200); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.sf-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--g200); }
.sf-card__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.sf-card__head small { color: var(--g500); font-size: 13px; }
.sf-card__body { padding: 24px; }
.sf-card__body--flush { padding: 0; }

/* Tableaux */
.sf-table { width: 100%; border-collapse: collapse; }
.sf-table th { padding: 12px 16px; border-bottom: 1px solid var(--g200); background: var(--g50); color: var(--g600); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-align: left; text-transform: uppercase; vertical-align: bottom; }
.sf-table td { padding: 16px; border-bottom: 1px solid var(--g200); color: var(--g900); font-size: 15px; vertical-align: middle; }
.sf-table tr:last-child td { border-bottom: 0; }
.sf-table .is-right { text-align: right; }
.sf-table small, .sf-muted { color: var(--g500); font-size: 13.125px; line-height: 21px; }
.sf-table .is-danger { color: #dc3545; }
.sf-check { display: inline-block; width: 16px; height: 16px; border: 1px solid var(--g300); border-radius: 4px; background: #fff; vertical-align: middle; }
.sf-client { display: flex; align-items: center; gap: 8px; }
.sf-client__avatar { display: flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; }
.sf-client b { display: block; font-weight: 500; }
.sf-date { display: flex; align-items: center; gap: 4px; color: var(--g600); font-size: 14px; white-space: nowrap; }
.sf-num { font-weight: 600; }
.sf-num small { display: block; font-size: 13px; font-weight: 400; }
.sf-amount { font-size: 16px; font-weight: 700; }
.sf-due { color: var(--danger); font-weight: 600; }
.sf-table tr.is-late td { background: #fef2f2; }
.sf-actions { display: flex; justify-content: flex-end; gap: 4px; }

/* Badges */
.sf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid transparent; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.sf-badge--dash { padding: 6px 12px; font-weight: 500; }
.sf-badge--xs { font-size: 11.2px; }
.sf-badge--lg { padding: 8px 16px; font-size: 14px; }
.b-primary { border-color: rgba(37, 99, 235, .2); background: rgba(37, 99, 235, .1); color: #2563eb; }
.b-success { border-color: rgba(5, 150, 105, .2); background: rgba(5, 150, 105, .1); color: #059669; }
.b-neutral { border-color: var(--g300); background: var(--g100); color: var(--g700); }
.b-secondary { background: var(--g600); }
.b-danger { background: var(--danger); }
.b-warning { background: var(--warning); }
.b-warning-dark { background: var(--warning); color: #212529; }
.b-dark { background: #212529; }
.b-info { background: #0dcaf0; }
.sf-stack-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* Actions rapides et synthèse PA */
.sf-quick { display: grid; gap: 8px; }
.sf-quick .sf-btn { width: 100%; }
.sf-quick hr { width: 100%; margin: 16px 0; border: 0; border-top: 1px solid var(--g200); }
.sf-pa-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; text-align: center; }
.sf-pa-counts strong { display: block; font-size: 20px; line-height: 1.3; }
.sf-pa-checks { display: grid; gap: 8px; font-size: 13px; }
.sf-pa-checks span { display: flex; align-items: center; gap: 8px; color: var(--g900); }
.t-success { color: #198754; }
.t-danger { color: #dc3545; }
.t-warning { color: #ffc107; }

/* Liste des factures : filtres */
.sf-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sf-select { display: flex; align-items: center; justify-content: space-between; width: 200px; height: 44.5px; padding: 0 12px 0 14px; border: 1px solid var(--g300); border-radius: 8px; background: #fff; color: var(--g900); font-size: 15px; }
.sf-select .bi { color: #343a40; font-size: 12px; }
.sf-search { display: flex; width: 300px; height: 44.5px; }
.sf-search span:first-child { display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--g300); border-radius: 8px 0 0 8px; background: var(--g50); color: var(--g600); }
.sf-search span:last-child { display: flex; flex: 1; align-items: center; padding: 0 14px; border: 1px solid var(--g300); border-left: 0; border-radius: 0 8px 8px 0; background: #fff; color: var(--g400); }

/* Pied de page de l'espace connecté */
.sf-foot { display: flex; flex: none; align-items: center; justify-content: space-between; height: 48px; padding: 0 32px; border-top: 1px solid var(--g200); background: #fff; color: var(--g600); font-size: 14px; line-height: 1.4; }
.sf-foot__links { display: flex; gap: 24px; color: var(--g700); font-size: 14.4px; }

/* Création de devis (/devis/new) */
.sf--layered { position: relative; overflow: hidden; }
.sf-dochead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.sf-dochead__left { display: flex; align-items: center; gap: 16px; }
.sf-dochead__desc { margin-bottom: 16px; color: var(--g600); font-size: 15px; line-height: 24px; }
.sf-dochead__desc span { color: var(--g500); }
.sf-editor { display: grid; grid-template-columns: 658px 24px minmax(0, 1fr); align-items: start; }
.sf-editor__main, .sf-editor__side { display: grid; gap: 24px; }
.sf-editor__grip { position: relative; align-self: stretch; }
.sf-editor__grip::after { content: ""; position: absolute; top: 586px; left: 50%; width: 6.4px; height: 56px; border-radius: 999px; background: var(--g400); box-shadow: 0 0 0 4.8px #0f172a; transform: translate(-50%, -50%); }
.sf-dcard__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--g200); }
.sf-dcard__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; line-height: 24px; letter-spacing: -.02em; }
.sf-dcard__title .bi { font-size: 15px; }
.sf-dcard__body { padding: 24px; }
.sf-dcard__empty { padding: 42px 24px 48px; color: var(--g500); text-align: center; }
.sf-dcard__empty .bi { margin-bottom: 30px; color: var(--g300); font-size: 48px; }
.sf-form { display: grid; gap: 16px; padding: 24px; }
.sf-form__half { width: 296px; }
.sf-flabel { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--g700); font-size: 14px; font-weight: 500; line-height: 25.6px; }
.sf-flabel--tight { margin-bottom: 4px; }
.sf-flabel--pen { margin-bottom: 10px; }
.sf-flabel .bi { font-size: 16px; }
.sf-flabel em { margin-left: -4px; color: #dc3545; font-style: normal; }
.sf-input { display: flex; align-items: center; justify-content: space-between; height: 44.5px; padding: 0 14px; border: 1px solid var(--g300); border-radius: 8px; background: #fff; color: var(--g900); font-size: 15px; white-space: nowrap; }
.sf-input--select .bi { color: #343a40; font-size: 12px; }
.sf-input.is-disabled { background: #e9ecef; }
.sf-form__client { display: flex; gap: 8px; }
.sf-form__client .sf-input { flex: 1; }
.sf-btn--field { justify-content: center; width: 43px; height: 43px; padding: 0; }
.sf-form__dates { display: flex; align-items: flex-end; gap: 8px; }
.sf-form__dates > div { flex: 1; }
.sf-form__arrow { padding-bottom: 8px; color: var(--g500); }
.sf-form__switch { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--g700); font-size: 15px; line-height: 24px; }
.sf-form__switch .bi { color: var(--primary); }
.sf-form__switch--rule { margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(33, 37, 41, .25); }
.t-primary { color: var(--primary); }
.t-info { color: #0dcaf0; }
.sf-igroup { display: flex; }
.sf-igroup .sf-input { flex: 1; border-radius: 8px 0 0 8px; }
.sf-igroup .sf-input + .sf-input { margin-left: -1px; border-radius: 0 8px 8px 0; }
.sf-help { margin-top: 4px; color: var(--g500); font-size: 13px; line-height: 20.8px; }
.sf-live { height: 748px; overflow: hidden; border: 1px solid var(--g200); border-radius: 12px; background: #fff; }

/* Aperçu en direct du devis (devis/preview.html.twig, cadre de 386 px) */
.sf-qdoc { padding: 9.45px; color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 7px; line-height: 9.45px; }
.sf-qdoc__sheet { position: relative; padding: 11.34px 9.45px 15.12px 34.02px; }
.sf-qdoc__sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 20.8px; background: #2563eb; }
.sf-qdoc__brand { margin-bottom: 2px; font-size: 12.35px; font-weight: 700; line-height: 1; }
.sf-qdoc__form { margin-bottom: 13.2px; color: #666; font-size: 6px; font-weight: 600; line-height: 8.1px; letter-spacing: .7px; text-transform: uppercase; }
.sf-qdoc__meta { margin-bottom: 2px; }
.sf-qdoc__meta b, .sf-qdoc__ptitle, .sf-qdoc__pname, .sf-qdoc__number, .sf-qdoc__total b:first-child, .sf-qdoc__atitle { text-transform: uppercase; }
.sf-qdoc__title { margin: 11.25px 0 7.56px; font-family: "Arial Narrow", Impact, Arial, sans-serif; font-size: 38.6px; font-weight: 700; line-height: 36.67px; letter-spacing: 1px; }
.sf-qdoc__number { font-weight: 700; }
.sf-qdoc__party { margin-top: 15.12px; }
.sf-qdoc__party p { margin-bottom: 1.89px; }
.sf-qdoc__party p:last-child { margin-bottom: 0; }
.sf-qdoc__ptitle { font-weight: 700; }
.sf-qdoc .sf-qdoc__ptitle { margin-bottom: 4.54px; }
.sf-qdoc .sf-qdoc__pname { margin-bottom: 3.02px; font-size: 8px; font-weight: 700; line-height: 10.8px; }
.sf-qdoc__thead { display: grid; grid-template-columns: 194.2px 58.3px 1fr; margin: 15.1px 0; border-top: 1px solid #8f8f8f; border-bottom: 1px solid #8f8f8f; font-size: 6.5px; font-weight: 700; line-height: 8.775px; }
.sf-qdoc__thead span { padding: 2px 1px; }
.sf-qdoc__thead span + span { text-align: right; }
.sf-qdoc__total { display: flex; justify-content: space-between; padding: 4.54px 0; font-size: 8px; line-height: 10.8px; }
.sf-qdoc__total--final { padding-top: 7.56px; font-weight: 800; }
.sf-qdoc__accept { margin-top: 15.12px; padding-top: 7.56px; border-top: 1px dashed #cfcfcf; color: #444; font-size: 6.5px; line-height: 8.775px; }
.sf-qdoc__atitle { margin-bottom: 6.05px; color: #111; font-size: 9.6px; font-weight: 700; line-height: 12.96px; }
.sf-qdoc__sign { margin-top: 7.56px; }

/* Configurateur de produit (components/product_configuration_modal.html.twig) */
.sf-backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .25); }
.sf-config { position: absolute; top: 28px; left: 320px; display: flex; flex-direction: column; width: 800px; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
.sf-config__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--primary); color: #fff; }
.sf-config__title { display: flex; align-items: center; gap: 10px; font-size: 17.6px; font-weight: 600; line-height: 30px; letter-spacing: -.02em; }
.sf-config__title .bi { font-size: 20px; opacity: .9; }
.sf-config__sub { margin-top: 5.6px; color: rgba(255, 255, 255, .75); font-size: 12.8px; line-height: 20.48px; }
.sf-config__close { display: flex; align-items: center; justify-content: center; width: 31px; height: 31px; margin-right: -8px; color: #fff; font-size: 15px; opacity: .7; }
.sf-config__body { padding: 24px; background: var(--g50); }
.sf-banner-ok { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 12px 16px; border: 1px solid rgba(5, 150, 105, .2); border-radius: 10px; background: rgba(5, 150, 105, .08); color: var(--success); font-size: 13.2px; font-weight: 500; line-height: 28.16px; }
.sf-banner-ok .bi { font-size: 17.6px; }
.sf-citem { border: 2px solid var(--primary); border-radius: 12px; background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1), 0 1px 3px rgba(0, 0, 0, .04); }
.sf-citem__head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--g100); }
.sf-citem__status { display: flex; flex: none; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(5, 150, 105, .1); color: var(--success); font-size: 16px; }
.sf-citem__info { flex: 1; }
.sf-citem__info b { display: block; color: var(--g800); font-size: 14.8px; font-weight: 600; line-height: 20px; letter-spacing: -.02em; }
.sf-citem__info small { display: block; margin-top: 1px; color: var(--g400); font-size: 11.2px; line-height: 17.92px; }
.sf-citem__price { padding: 4.8px 11.2px; border-radius: 8px; background: rgba(37, 99, 235, .07); color: var(--primary); font-size: 14.4px; font-weight: 700; line-height: 23.04px; white-space: nowrap; }
.sf-citem__body { padding: 18px; }
.sf-csec + .sf-csec { margin-top: 18px; }
.sf-csec__head { display: flex; align-items: center; gap: 6.4px; margin-bottom: 10px; padding-bottom: 6.4px; border-bottom: 1px solid var(--g100); color: var(--g500); font-size: 11.2px; font-weight: 700; line-height: 20.48px; letter-spacing: .06em; text-transform: uppercase; }
.sf-csec__head .bi { font-size: 12.8px; }
.sf-csec__head .is-blue { color: var(--primary); }
.sf-csec__head .is-green { color: var(--success); }
.sf-variants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sf-variant { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--g200); border-radius: 10px; background: #fff; }
.sf-variant.is-on { border-color: var(--primary); background: rgba(37, 99, 235, .05); }
.sf-variant__check { display: flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid var(--g300); border-radius: 6px; color: transparent; font-size: 11.2px; }
.sf-variant.is-on .sf-variant__check { border-color: var(--primary); background: var(--primary); color: #fff; }
.sf-variant__info { flex: 1; min-width: 0; }
.sf-variant__info b { display: block; color: var(--g700); font-size: 13.2px; font-weight: 500; line-height: 17.16px; white-space: nowrap; }
.sf-variant__info small { display: block; color: var(--g400); font-size: 10.4px; line-height: 16.64px; }
.sf-variant__price { color: var(--g500); font-size: 12px; font-weight: 600; line-height: 19.2px; white-space: nowrap; }
.sf-variant.is-on .sf-variant__price { color: var(--primary); }
.sf-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 47.5px; border-radius: 8px; }
.sf-switch { position: relative; flex: none; width: 40px; height: 20px; border: 1px solid var(--g300); border-radius: 30px; background: #fff; }
.sf-switch::after { content: ""; position: absolute; top: 2.25px; left: 2.25px; width: 13.5px; height: 13.5px; border-radius: 50%; background: rgba(0, 0, 0, .25); }
.sf-switch.is-on { border-color: var(--primary); background: var(--primary); }
.sf-switch.is-on::after { left: auto; right: 2.25px; background: #fff; }
.sf-option__label { flex: 1; }
.sf-option__label b { display: block; color: var(--g700); font-size: 13.2px; font-weight: 500; line-height: 21.12px; }
.sf-option__label small { display: block; color: var(--g400); font-size: 10.4px; line-height: 16.64px; }
.sf-option__price { color: var(--g500); font-size: 12px; font-weight: 600; line-height: 19.2px; white-space: nowrap; }
.sf-config__foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--g200); background: #fff; }
.sf-config__foot .sf-btn { margin: 4px; }
.sf-config__count { flex: 1; margin: 4px; color: var(--g500); font-size: 12.8px; line-height: 20.48px; }
.sf-config__count b { color: var(--primary); font-weight: 600; }
.sf-config__grip { position: absolute; bottom: 0; left: 0; display: flex; justify-content: center; width: 100%; height: 15px; color: var(--g400); font-size: 10px; line-height: 15px; }

/* Détail de facture (/factures/{id}), contenu défilé jusqu'au suivi PA */
.sf-scrolled { margin-top: -184.7px; }
.sf-scrolled > .sf-acard { margin-top: 115.7px; }
.sf-card__title--sm .bi { font-size: 18px; }
.sf-card__meta { color: var(--g500); font-size: 13.125px; font-weight: 600; }
.sf-dtable th { padding-top: 12px; }
.sf-table .w-12 { width: 12%; }
.sf-table .w-15 { width: 15%; }
.sf-dline { display: flex; align-items: flex-start; gap: 4px; }
.sf-dline.is-child { padding-left: 20px; }
.sf-dline > .bi { flex: none; margin: 2.4px 4px 0 0; color: #9aa0ad; font-size: 14px; }
.sf-dline b { display: block; font-weight: 600; }
.sf-dline small { display: block; margin-top: 4px; color: var(--g500); font-size: 13.125px; line-height: 21px; }
.sf-dtotals { display: flex; justify-content: flex-end; padding: 24px; border-top: 1px solid var(--g200); background: var(--g50); }
.sf-dtotals__box { width: calc((100% + 16px) / 3 - 16px); }
.sf-dtotals__row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.sf-dtotals__row span { color: var(--g600); }
.sf-dtotals__row--ht { margin-bottom: 16px; }
.sf-dtotals__ttc { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 2px solid var(--g300); }
.sf-dtotals__ttc strong:first-child { font-size: 18px; }
.sf-dtotals__ttc strong:last-child { color: #198754; font-size: 24px; line-height: 38.4px; }
.sf-pa-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sf-pa-badge, .sf-pa-type { display: inline-flex; align-items: center; min-height: 24.3px; padding: 4px 8.8px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; font-weight: 700; line-height: 14.3px; white-space: nowrap; }
.pa-rule { border-color: #93c5fd; background: #dbeafe; color: #1d4ed8; }
.pa-tech { border-color: #86efac; background: #dcfce7; color: #166534; }
.pa-cycle { border-color: #7dd3fc; background: #e0f2fe; color: #075985; }
.sf-pa-events { display: grid; gap: 8px; }
.sf-pa-event { display: flex; align-items: flex-start; gap: 16px; padding: 8px; border: 1px solid var(--g200); border-radius: 6px; background: rgba(148, 163, 184, .08); }
.sf-pa-type { flex: none; justify-content: center; min-width: 136px; margin-top: 4px; border-color: #cbd5e1; background: #f1f5f9; color: #334155; }
.sf-pa-event__text { font-size: 13.125px; line-height: 21px; }
.sf-pa-event__text b { margin-right: 8px; color: #212529; font-weight: 700; }
.sf-pa-event__text span { color: var(--g500); }
.sf-acard { align-self: start; }
.sf-acard__body { padding: 40px; }
.sf-acard__label { margin-bottom: 16px; color: var(--g500); font-size: 13.125px; font-weight: 700; line-height: 17.06px; letter-spacing: -.02em; text-transform: uppercase; }
.sf-acard__list { display: grid; gap: 8px; }
.sf-acard__list > span { display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 14px; font-weight: 600; line-height: 21px; }
.sf-acard__list .bi { font-size: 14px; }
.a-teal { color: #14b8a6; } .a-violet { color: #8b5cf6; } .a-blue { color: #3b82f6; } .a-green { color: #10b981; } .a-sky { color: #38bdf8; }
.a-purple { color: #7c3aed; } .a-orange { color: #d97706; } .a-amber { color: #f59e0b; }
.sf-legal { display: flex; align-items: flex-start; gap: 12px; margin: 32px -8px 0; padding: 16px 20px; border: 1px solid #fdba74; border-radius: 12px; background: #fff7ed; color: #8a4b16; }
.sf-legal > .bi { flex: none; margin-top: 2.4px; font-size: 20px; }
.sf-legal strong { font-size: 14px; line-height: 22.4px; }
.sf-legal p { color: var(--g600); font-size: 13px; line-height: 20.8px; }
.sf-acard__foot { display: flex; align-items: center; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--g200); background: var(--g50); color: var(--g500); font-size: 13.125px; line-height: 24px; }
