/* ============================================================
   Hermès - Jordanne FM
   Charte : Bleu #2c5aa0 | Rouge #df5e5e | Vert #02e894
   Font : Montserrat (charte Jordanne FM)
   ============================================================ */

:root {
    --blue: #2c5aa0;
    --blue-50: #eef3fa;
    --blue-100: #d4e0f2;
    --blue-200: #a8c1e5;
    --blue-400: #5b8cc8;
    --blue-500: #2c5aa0;
    --blue-600: #244b87;
    --blue-700: #1e3f73;
    --blue-800: #162e54;
    --blue-900: #0e1f38;
    --red: #df5e5e;
    --red-50: #fef0f0;
    --red-100: #fcd8d8;
    --red-400: #e88080;
    --green: #02e894;
    --green-50: #e6fdf4;
    --green-100: #b3f9e0;
    --green-600: #02c47c;
    --green-700: #01a066;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --topbar-h: 56px;
    --toolsbar-h: 0px;
    --sidenav-w: 236px;
    --sidenav-rail: 68px;
    --transition: all .2s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue-200); }

/* Boutons, champs, listes et zones de texte en Montserrat comme le reste de la page (les navigateurs ne l'appliquent pas d'eux-mêmes) */
button, input, select, textarea, optgroup { font-family: inherit; }

/* ============================================================
   LOGIN
   ============================================================ */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-700);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(44,90,160,.4) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(2,232,148,.15) 0%, transparent 50%),
        linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-800) 100%);
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    width: 420px;
    max-width: 92vw;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0,0,0,.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 8px;
}

.login-logo img {
    height: 56px;
    width: auto;
}

.login-title {
    text-align: center;
    margin-bottom: 32px;
}

.login-title h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.5px;
    margin-top: 12px;
}

.login-title p {
    color: var(--gray-400);
    font-size: 14px;
    margin-top: 2px;
}

/* ============================================================
   MISE EN PAGE : menu latéral + colonne principale (v1.55.0)
   Grand écran (>= 1360 px) : menu fixe, repliable en icônes.
   Tablette et mobile : menu en tiroir, ouvert par le bouton menu de la barre du haut.
   ============================================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

table { font-variant-numeric: tabular-nums; }

.sidenav {
    width: var(--sidenav-w);
    flex-shrink: 0;
    background: var(--blue);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 150;
}

.sidenav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
    text-decoration: none;
    color: #fff;
}
.sidenav-brand img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.28); flex-shrink: 0; }
.sidenav-brand-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sidenav-brand-txt strong { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.sidenav-brand-txt span { font-size: 11px; color: rgba(255,255,255,.75); }

.sidenav-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 4px 10px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}

.sidenav-sec {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin: 14px 10px 4px;
}

.sidenav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    margin: 1px 0;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: rgba(255,255,255,.88);
    font: inherit;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.sidenav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidenav-item .lbl { overflow: hidden; text-overflow: ellipsis; }
.sidenav-item:hover { background: rgba(255,255,255,.12); color: #fff; }
.sidenav-item.active { background: #fff; color: var(--blue); font-weight: 700; }
.sidenav-item.soon { cursor: default; color: rgba(255,255,255,.55); }
.sidenav-item.soon:hover { background: transparent; }
.sidenav-item .badge-soon { margin-left: auto; background: rgba(255,255,255,.16); color: rgba(255,255,255,.85); }

.sidenav-foot {
    padding: 8px 10px 12px;
    border-top: 1px solid rgba(255,255,255,.16);
}
.sidenav-collapse { color: rgba(255,255,255,.7); }
.sidenav-collapse svg { transition: transform .2s; }

.nav-backdrop { display: none; }

/* Menu replié en icônes (grand écran, au choix de l'utilisateur) */
@media (min-width: 1360px) {
    .nav-collapsed .sidenav { width: var(--sidenav-rail); }
    .nav-collapsed .sidenav-brand { padding: 14px 14px 10px; }
    .nav-collapsed .sidenav-brand-txt,
    .nav-collapsed .sidenav-item .lbl,
    .nav-collapsed .sidenav-item .badge-soon { display: none; }
    .nav-collapsed .sidenav-sec { margin: 10px 8px 6px; height: 1px; background: rgba(255,255,255,.2); }
    .nav-collapsed .sidenav-sec span { display: none; }
    .nav-collapsed .sidenav-item { justify-content: center; padding: 8px 0; }
    .nav-collapsed .sidenav-collapse svg { transform: rotate(180deg); }
    .nav-burger { display: none !important; }
    /* Écran large mais menu déplié : résumé du devis un peu plus étroit */
    .app-layout:not(.nav-collapsed) .sim-layout { grid-template-columns: 1fr 300px; gap: 14px; }
}
@media (min-width: 1600px) {
    .app-layout:not(.nav-collapsed) .sim-layout { grid-template-columns: 1fr 340px; gap: 20px; }
}

/* Tablette et mobile : tiroir par-dessus le contenu */
@media (max-width: 1359px) {
    .sidenav {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(280px, 86vw);
        transform: translateX(-100%);
        transition: transform .22s cubic-bezier(.4,0,.2,1);
        box-shadow: none;
    }
    .nav-open .sidenav { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.38); z-index: 140; }
    .sidenav-collapse { display: none; }
    .sidenav-item { min-height: 46px; font-size: 14.5px; }
}

/* ============================================================
   TOP BAR
   ============================================================ */

.topbar {
    height: var(--topbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nav-burger {
    width: 44px;
    height: 44px;
    margin-left: -10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-burger:hover { background: var(--blue-50); }
.nav-burger svg { width: 24px; height: 24px; }

.topbar-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

.brand-section {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

.brand-sep {
    color: var(--gray-300);
    font-size: 15px;
}

.brand-tool {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue);
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px 4px 4px;
    border-radius: 24px;
    transition: var(--transition);
}

.user-badge:hover { background: var(--gray-100); }

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-badge-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.chevron { width: 16px; height: 16px; color: var(--gray-400); }

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 200;
    overflow: hidden;
}

.dropdown-header {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.dropdown-header strong { font-size: 13px; color: var(--gray-800); }

.dropdown-divider {
    height: 1px;
    background: var(--gray-200);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--gray-700);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item svg { width: 16px; height: 16px; color: var(--gray-400); }
.dropdown-item:hover { background: var(--gray-50); color: var(--blue); }
.dropdown-item:hover svg { color: var(--blue); }

.badge-soon {
    font-size: 10px;
    font-weight: 600;
    background: var(--gray-200);
    color: var(--gray-500);
    padding: 1px 6px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Admin sub-navigation : 4 familles en grille 2 × 2 (Tarifs | Données, Équipe | Connexions), titre à gauche sur une largeur fixe
   pour que les onglets soient alignés ; une famille par ligne quand le menu est étroit (requêtes sur la largeur du menu lui-même). */
.admin-subnav {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 0;
    margin-bottom: 24px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 8px 6px;
    box-shadow: var(--shadow-sm);
}

.subnav-group {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 0 8px;
}
.subnav-group:nth-child(even) { border-left: 1px solid var(--gray-200); }

.subnav-group-lbl {
    flex: 0 0 96px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-400);
    padding-left: 4px;
}

.subnav-items { display: flex; flex-wrap: wrap; gap: 2px; min-width: 0; }

@container (max-width: 1000px) {
    .subnav-group { grid-column: 1 / -1; }
    .subnav-group:nth-child(even) { border-left: none; }
    .subnav-group + .subnav-group { border-top: 1px solid var(--gray-100); padding-top: 4px; }
}
@container (max-width: 480px) {
    .subnav-group { flex-direction: column; align-items: stretch; }
    .subnav-group-lbl { flex: none; padding: 4px 0 0 12px; }
}

.subnav-item {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.subnav-item:hover { color: var(--blue); background: var(--blue-50); }

.subnav-item.active {
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
}

/* ============================================================
   COMPOSANTS COMMUNS
   ============================================================ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.card-header h2, .card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
}

/* Formulaires */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 180px;
}

.input-icon {
    position: relative;
}

.input-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.input-icon input[type="text"],
.input-icon input[type="password"] {
    padding-left: 40px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-100);
}

input::placeholder, textarea::placeholder { color: var(--gray-400); }

input[type="number"] {
    -moz-appearance: textfield;
    width: 100px;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 0;
    pointer-events: none;
}
input[type="number"]:focus::-webkit-inner-spin-button,
input[type="number"]:focus::-webkit-outer-spin-button {
    opacity: 1;
    pointer-events: auto;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--blue-600); box-shadow: var(--shadow); }

.btn-success { background: var(--green-600); color: var(--white); }
.btn-success:hover:not(:disabled) { background: var(--green-700); }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover:not(:disabled) { background: var(--red-400); }

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover:not(:disabled) { background: var(--gray-50); border-color: var(--gray-300); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 22px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .5s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Tables */
table { width: 100%; border-collapse: collapse; }

th, td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
}

th {
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-50);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr { transition: var(--transition); }
tbody tr:hover td { background: var(--blue-50); }

/* Alertes */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error { background: var(--red-50); color: var(--red); border: 1px solid var(--red-100); }
.alert-success { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.alert-info { background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); }
.alert-warning { background: #fff7e6; color: #8a4b08; border: 1px solid #fde2b3; }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-green { background: var(--green-50); color: var(--green-700); }
.badge-red { background: var(--red-50); color: var(--red); }

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
}

.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

.text-muted { font-size: 12px; color: var(--gray-400); }

/* Checkboxes */
.toggle-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
}

.toggle-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
}

/* Grille spots */
.spots-grid { overflow-x: auto; }
.spots-grid table { min-width: 600px; }

.spots-grid input[type="number"] {
    width: 52px;
    padding: 6px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.spots-grid th {
    font-size: 11px;
    padding: 8px;
    text-align: center;
}

.spots-grid td {
    text-align: center;
    padding: 4px 6px;
}

/* ============================================================
   SIMULATOR LAYOUT (2 colonnes)
   ============================================================ */

.sim-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: stretch;
}

.sim-editor { min-width: 0; }

.sim-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 16px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.sim-title-input {
    border: none !important;
    background: transparent !important;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    padding: 4px 0 !important;
    flex: 1;
    min-width: 120px;
    box-shadow: none !important;
}
.sim-title-input:focus {
    border: none !important;
    box-shadow: none !important;
    border-bottom: 2px solid var(--blue) !important;
    border-radius: 0 !important;
}
.sim-title-input::placeholder { color: var(--gray-300); font-weight: 500; }

/* Sous-onglets simulateur */
.sim-subtabs {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    padding: 3px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
    overflow-x: auto;
}

.sim-subtab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.sim-subtab:hover { color: var(--blue); background: var(--blue-50); }

.sim-subtab.active {
    background: var(--blue);
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.sim-subtab.active svg { color: var(--white); }

.sim-subtab svg { color: var(--gray-400); }

.sim-subtab-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: var(--blue-100);
    color: var(--blue);
}

.sim-subtab.active .sim-subtab-badge {
    background: rgba(255,255,255,.25);
    color: var(--white);
}

.btn-reset-week {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-400);
    font-size: 11px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.btn-reset-week:hover {
    color: var(--red);
    border-color: var(--red-100);
    background: var(--red-50);
}

.btn-prefill {
    padding: 4px 12px;
    border: 1.5px solid var(--blue-200);
    border-radius: 16px;
    background: var(--white);
    color: var(--blue);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}
.btn-prefill:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.sim-sidebar { min-width: 0; }

.devis-sticky {
    position: sticky;
    top: calc(var(--topbar-h) + var(--toolsbar-h) + 16px);
    max-height: calc(100vh - var(--topbar-h) - var(--toolsbar-h) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-200) transparent;
}
.devis-sticky::-webkit-scrollbar { width: 4px; }
.devis-sticky::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 4px; }

.etape-num {
    display: inline-block;
    width: 20px; height: 20px; line-height: 20px;
    text-align: center; border-radius: 50%;
    background: var(--blue); color: #fff;
    font-size: 10px; font-weight: 700; margin-right: 6px;
}

/* Tablette paysage (iPad 1024-1180 px) : on garde le résumé à côté de l'éditeur, colonne un peu plus étroite */
@media (max-width: 1180px) {
    .sim-layout { grid-template-columns: 1fr 300px; gap: 14px; }
}
/* En dessous (tablette portrait, petits écrans) : résumé sous l'éditeur */
@media (max-width: 1000px) {
    .sim-layout { grid-template-columns: 1fr; }
    .devis-sticky { position: static; max-height: none; }
}

/* Écrans tactiles (tablettes) : cibles plus grandes, pas de zoom automatique sur les champs (police >= 16 px) */
@media (pointer: coarse) {
    input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="date"], input[type="search"], select, textarea {
        font-size: 16px !important;
        min-height: 42px;
    }
    .spots-grid input[type="number"] { width: 60px; }
    input[type="checkbox"] { width: 24px !important; height: 24px !important; }
    .btn { min-height: 42px; }
    .btn-sm { padding: 9px 14px !important; font-size: 13px !important; }
    .zone-chip { padding: 10px 18px; font-size: 14px; }
    .week-btn { width: 48px; height: 42px; font-size: 13px; }
    .sim-subtab { padding: 12px 14px; font-size: 13px; }
    .subnav-item { padding: 11px 14px; }
    .bloc-tab { padding: 10px 14px; }
    .dropdown-item { padding: 12px 16px; }
}
/* Résumé devis */
.devis-summary {
    background: linear-gradient(135deg, var(--blue-50) 0%, var(--white) 100%);
    border: 2px solid var(--blue-200);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.devis-summary h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-700);
    margin-bottom: 16px;
}

.devis-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 12px;
}

.devis-row.total {
    border-top: 2px solid var(--blue);
    margin-top: 12px;
    padding-top: 14px;
    font-weight: 800;
    color: var(--blue);
    align-items: center;
    flex-wrap: wrap;
}
.devis-row.total .label { font-size: 14px; color: var(--blue); line-height: 1.3; flex: 0 0 100%; margin-bottom: 4px; }
.devis-row.total .value { font-size: 24px; white-space: nowrap; margin-left: auto; }

.devis-row.sub-total { font-weight: 600; color: var(--gray-800); font-size: 14px; }
.devis-row .label {flex:1;min-width:0; color: var(--gray-500); }
.devis-row .value {white-space:nowrap; font-weight: 600; color: var(--gray-800); }
.devis-row .value.negative { color: var(--green-700); }
.devis-row .value.positive { color: var(--red); }

/* Week selector */
.week-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}

.week-btn {
    width: 38px;
    height: 32px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.week-btn:hover { border-color: var(--blue); color: var(--blue); }
.week-btn.has-data { background: var(--green-50); border-color: var(--green-600); color: var(--green-700); }
.week-btn.active {
    background: var(--blue) !important;
    color: var(--white) !important;
    border-color: var(--blue) !important;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.4);
    transform: scale(1.1);
    z-index: 1;
    position: relative;
}

/* Zone selector */
.zone-chips { display: flex; gap: 8px; flex-wrap: wrap; }

.zone-chip {
    padding: 8px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    user-select: none;
}

.zone-chip:hover { border-color: var(--blue); color: var(--blue); }

.zone-chip.selected {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(44,90,160,.3);
}
.zone-chip.selected[style*="green"] {
    background: var(--green-600) !important;
    border-color: var(--green-600) !important;
    box-shadow: 0 2px 8px rgba(2,200,124,.3) !important;
}

/* Search autocomplete */
.search-container { position: relative; }

.search-results {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
}

.search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.search-result-item:hover { background: var(--blue-50); }

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    transition: var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card .stat-value { font-size: 28px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; }
.stat-card .stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; font-weight: 500; }

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--gray-400);
    font-size: 14px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
}
/* Fenêtre centrée quand elle tient à l'écran, sinon calée en haut et défilable (le haut n'est jamais coupé) */
.modal-overlay > * { margin: auto; }

/* ============================================================
   BLOC TABS (onglets de diffusion)
   ============================================================ */

.bloc-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.bloc-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    border: 1.5px solid transparent;
    background: var(--white);
}

.bloc-tab:hover { border-color: var(--blue-200); }

.bloc-tab.active {
    border-color: var(--blue);
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.15);
}

.bloc-tab-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bloc-tab-label {
    font-weight: 600;
    color: var(--gray-800);
}

.bloc-tab-mode {
    font-size: 11px;
    color: var(--gray-400);
    padding: 1px 6px;
    background: var(--gray-100);
    border-radius: 8px;
}

.bloc-tab-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 15px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    border-radius: 50%;
    transition: var(--transition);
}

.bloc-tab-close:hover {
    color: var(--red);
    background: var(--red-50);
}

/* ============================================================
   SPONSORING LIST
   ============================================================ */

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}
.accordion-header:hover { background: var(--gray-50); }

.sponso-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sponso-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    transition: var(--transition);
}

.sponso-item:hover { border-color: var(--blue-200); }

.sponso-item.active {
    border-color: var(--blue);
    background: var(--blue-50);
}

/* ============================================================
   PLANNING CALENDAR
   ============================================================ */

.planning-table {
    border-collapse: separate;
    border-spacing: 3px;
}

.planning-table th {
    background: transparent;
    border: none;
    font-size: 11px;
    padding: 6px 4px;
    color: var(--gray-500);
}

.planning-table td {
    border: none;
    padding: 4px;
    vertical-align: top;
}

.planning-table tbody tr {
    transition: var(--transition);
}

.planning-table tbody tr:hover td {
    background: transparent;
}

.planning-table tfoot td {
    border: none;
    padding: 10px 4px;
}

.planning-empty {
    opacity: 0.5;
}

.planning-cell {
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: var(--transition);
}

.planning-cell.active {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.3);
}

.planning-cell.empty {
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
}

.planning-spots {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.planning-date {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
}

.planning-cell.active .planning-date {
    opacity: 0.7;
}

/* Détail par emplacement dans le récap */
.planning-detail {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin: 2px 0;
    width: 100%;
}

.planning-detail-line {
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    padding-left: 5px;
    border-left: 3px solid #fff;
    text-align: left;
    opacity: .85;
}

.planning-detail-label {
    font-weight: 400;
    font-size: 8px;
    opacity: .75;
    margin-left: 2px;
}

.planning-detail-single {
    font-size: 9px;
    font-weight: 500;
    opacity: .7;
}

/* Cellule plus large pour les détails multi-blocs */
.planning-cell.active {
    min-width: 70px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .topbar { padding: 0 12px; }
    .topbar-brand .brand-section, .topbar-brand .brand-sep { display: none; }
    .user-badge-name, .user-badge .chevron { display: none; }
    .topbar-action span { display: none; }
    .main-content { padding: 16px; }
    .form-row { flex-direction: column; }
    .form-row .form-group { min-width: auto; }
    .sim-subtabs { overflow-x: auto; flex-wrap: nowrap; }
    .sim-subtab { white-space: nowrap; }
}

/* Outil Tiers : tuiles d'activité (v1.34.0) */
.tiers-tile { background: var(--blue-50, #eef3fa); border-radius: 8px; padding: 10px 8px; text-align: center; }
.tiers-tile-val { font-size: 17px; font-weight: 800; color: var(--blue); line-height: 1.2; }
.tiers-tile-lbl { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.tiers-chip { padding: 6px 12px; border: 1px solid var(--gray-200, #e2e8f0); border-radius: 16px; background: #fff; font-size: 13px; cursor: pointer; text-align: left; }
.tiers-chip:hover { border-color: var(--blue); background: var(--blue-50, #eef3fa); }
/* Outil Tiers : suivi commercial (v1.36.0) */
.note-form { background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200, #e2e8f0); border-radius: 8px; padding: 10px; }
.note-item { padding: 8px 2px; border-bottom: 1px solid var(--gray-100, #f1f5f9); }
.note-item:last-child { border-bottom: none; }
.note-item.note-auto { opacity: .65; }
/* Outil Tiers : profil Sirene (v1.37.0) */
.sirene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 16px; font-size: 13px; }
.sirene-grid span { display: block; font-size: 11px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .3px; }
.sirene-grid small { color: var(--gray-500); }
/* Outil Facturation (v1.39.0) */
.fact-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fact-kpi { background: #fff; border: 1px solid var(--gray-200, #e2e8f0); border-left: 4px solid var(--blue); border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.fact-kpi.alert { border-left-color: #dc2626; }
.fact-kpi.neutral { cursor: default; border-left-color: var(--gray-300, #cbd5e1); }
.fact-kpi .v { font-size: 20px; font-weight: 800; color: var(--gray-800, #1e293b); }
.fact-kpi .l { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.fact-tab { padding: 5px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #cbd5e1; background: #fff; color: var(--gray-600, #475569); }
.fact-tab.on { border-color: var(--blue); background: var(--blue); color: #fff; }
.fact-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.fact-badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.fact-badge.red { background: #fef2f2; color: #dc2626; }
.fact-badge.orange { background: #fffbeb; color: #b45309; }
.fact-badge.green { background: #f0fdf4; color: #15803d; }
.fact-badge.grey { background: #f1f5f9; color: #64748b; }
.fact-com { padding: 1px 4px; font-size: 11px; border: 1px solid transparent; background: transparent; color: var(--gray-500); width: auto; max-width: 220px; cursor: pointer; }
.fact-com:hover { border-color: var(--gray-300, #cbd5e1); background: #fff; }
.fact-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.fact-actions label { margin: 0; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.fact-actions input[type=checkbox] { width: auto; }
/* Commissions (v1.43.0) */
.com-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.com-bloc { border: 1px solid var(--gray-200, #e2e8f0); border-radius: 8px; padding: 10px 12px; }
.com-bloc h4 { font-size: 13px; color: var(--blue); margin: 0 0 8px; }
.com-bloc label { display: block; font-size: 12px; color: var(--gray-600, #475569); margin-bottom: 8px; }
.com-bloc label input, .com-bloc label select { display: block; width: 100%; margin-top: 3px; padding: 5px 8px; font-size: 13px; }
.com-bloc small { font-size: 11px; color: var(--gray-400); }
.com-bar { height: 6px; background: var(--gray-100, #f1f5f9); border-radius: 3px; overflow: hidden; margin-top: 6px; }
.com-bar div { height: 100%; background: var(--blue); }
.fact-edit { border: none; background: none; cursor: pointer; color: var(--gray-400); font-size: 13px; padding: 0 3px; }
.fact-edit:hover { color: var(--blue); }
/* Édition de date d'un brouillon : compact, prioritaire sur les styles généraux des champs et du mode tactile */
.fact-date-edit { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; white-space: nowrap; }
.fact-date-edit input[type="date"].fact-date-input { width: 132px !important; min-width: 0 !important; padding: 2px 6px !important; font-size: 12px !important; height: 26px !important; line-height: 1.2 !important; display: inline-block !important; }
.fact-date-edit .btn.fact-mini { padding: 2px 9px !important; font-size: 11px !important; height: 26px !important; min-height: 0 !important; line-height: 1.2 !important; white-space: nowrap; }
.fact-pay { border: 1px solid var(--blue-200, #bfd3ee); background: var(--blue-50, #eef3fa); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.fact-pay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 14px; }
.fact-pay table { background: #fff; }
.fact-pay input[type=number].fact-pay-amount { width: 110px !important; min-width: 0 !important; padding: 2px 6px !important; font-size: 12px !important; height: 26px !important; text-align: right; }
.fact-pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; }
.fact-pay-grid label { margin: 0; font-size: 12px; color: var(--gray-600, #475569); display: flex; flex-direction: column; gap: 3px; }
.fact-pay-grid input, .fact-pay-grid select { padding: 5px 8px; font-size: 13px; }
.fact-combos { border: 1px solid #fde68a; background: #fffbeb; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 12px; }
.fact-combo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 3px 0; border-top: 1px dashed #fde68a; }
.fact-combo:first-of-type { border-top: none; }
/* Tableau de bord (v1.48.0) */
.db-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; margin-bottom: 14px; }
.db-kpi { background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px 14px; border-left: 4px solid var(--blue); }
.db-kpi.db-alert { border-left-color: #dc2626; }
.db-kpi .l { font-size: 12px; color: var(--gray-500); }
.db-kpi .v { font-size: 22px; font-weight: 700; color: var(--gray-800, #1e293b); margin: 2px 0; }
.db-kpi .s { font-size: 12px; color: var(--gray-600, #475569); }
.db-kpi .n1 { font-size: 11px; color: var(--gray-400); }
.db-up { color: #15803d; font-weight: 600; }
.db-down { color: #dc2626; font-weight: 600; }
.db-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: 13px; }
.db-action { color: #b45309; text-decoration: none; border-bottom: 1px dashed #f59e0b; }
.db-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
@media (max-width: 900px) { .db-grid { grid-template-columns: 1fr; } }
.db-toggle { display: inline-flex; border: 1px solid var(--gray-200); border-radius: 6px; overflow: hidden; }
.db-toggle button { border: none; background: #fff; padding: 4px 12px; font-size: 12px; cursor: pointer; color: var(--gray-500); }
.db-toggle button.on { background: var(--blue); color: #fff; }
.db-legend { display: flex; gap: 14px; font-size: 12px; color: var(--gray-600, #475569); margin: 0 0 8px 2px; }
.db-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.db-sw.n, .db-bar.n { background: #2c5aa0; }
.db-sw.n1, .db-bar.n1 { background: #d9822b; }
.db-bars { position: relative; display: flex; align-items: stretch; gap: 4px; height: 210px; padding: 0 0 20px 38px; }
.db-axis { position: absolute; left: 38px; right: 0; border-top: 1px dashed var(--gray-200); height: 0; pointer-events: none; }
.db-axis span { position: absolute; left: -38px; top: -7px; font-size: 10px; color: var(--gray-400); width: 34px; text-align: right; }
.db-col { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; cursor: default; }
.db-col.hov { background: var(--blue-50, #eef3fa); border-radius: 4px; }
.db-pair { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.db-bar { width: 38%; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 0; }
.db-mlabel { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--gray-400); }
.db-mlabel.cur { color: var(--blue); font-weight: 700; }
.db-tip { position: absolute; bottom: 60%; left: 50%; z-index: 5; background: #1e293b; color: #fff; font-size: 12px; padding: 6px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.db-tip.left { left: auto; right: 50%; }
.db-tip .db-sw { border: 1px solid rgba(255,255,255,.6); }
.db-hbar { display: inline-block; width: 60px; height: 6px; background: var(--gray-100, #f1f5f9); border-radius: 3px; margin-right: 8px; vertical-align: middle; overflow: hidden; }
.db-hbar span { display: block; height: 100%; background: #2c5aa0; border-radius: 3px; }
/* Remplissage des écrans (v1.50.0) */
.rp-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .rp-grid { grid-template-columns: 1fr; } }
.rp-legend { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--gray-600, #475569); margin-bottom: 8px; flex-wrap: wrap; }
.rp-ramp { display: inline-block; width: 110px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, rgb(238,243,250), rgb(30,63,115)); }
.rp-sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 10px; }
.rp-heat { border-collapse: separate; border-spacing: 2px; font-size: 11px; width: 100%; }
.rp-heat th { font-weight: 600; color: var(--gray-500); padding: 2px 4px; text-align: center; background: none; border: none; white-space: nowrap; }
.rp-heat thead th div { font-weight: 400; font-size: 10px; color: var(--gray-400); }
.rp-heat thead th.today { color: var(--blue); }
.rp-heat tbody th { text-align: right; font-weight: 500; font-size: 10px; }
.rp-heat td { text-align: center; padding: 3px 2px; border-radius: 3px; cursor: pointer; min-width: 38px; border: none; font-variant-numeric: tabular-nums; }
.rp-heat td.vide { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 3px, #eef2f6 3px, #eef2f6 6px); cursor: default; }
.rp-heat td.sel { outline: 2px solid #f59e0b; outline-offset: 0; }
.rp-heat td:hover:not(.vide) { outline: 2px solid var(--gray-400); }
.rp-item { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 2px; border-bottom: 1px dashed var(--gray-200); cursor: pointer; }
.rp-item:hover { background: var(--blue-50, #eef3fa); }
.rp-trend { position: relative; display: flex; align-items: stretch; gap: 3px; height: 180px; padding: 0 0 20px 38px; }
.rp-tcol { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; }
.rp-tcol.cur { background: var(--blue-50, #eef3fa); border-radius: 4px; }
.rp-stack { flex: 1; display: flex; flex-direction: column-reverse; justify-content: flex-start; align-items: center; gap: 2px; }
.rp-stack .db-bar { width: 60%; max-width: 18px; border-radius: 0; }
.rp-stack .db-bar.n { border-radius: 4px 4px 0 0; }
.rp-tcol .db-mlabel { font-size: 9px; }
/* Bilans de campagne (v1.51.0) */
.bl-devis { font-size: 12px; background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bl-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: 8px; }
@media (max-width: 700px) { .bl-grid { grid-template-columns: 1fr; } }
.bl-h { font-size: 13px; color: var(--blue); margin: 6px 0; }
.bl-bars { display: flex; align-items: flex-end; gap: 2px; height: 110px; border-bottom: 1px solid var(--gray-200); }
.bl-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bl-bar span { display: block; width: 100%; background: #2c5aa0; border-radius: 3px 3px 0 0; }
.bl-bar .db-tip { bottom: 100%; }
/* Lot 3 : disponibilité des écrans dans le simulateur, reconduction (v1.52.0) */
.dispo-card { border-left: 4px solid var(--blue); }
.dispo-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--gray-200); }
.dispo-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; margin-top: 3px; }
.dispo-dot.vert { background: #16a34a; } .dispo-dot.orange { background: #f59e0b; } .dispo-dot.rouge { background: #dc2626; }
.bl-reco { border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.bl-opt { display: flex; align-items: center; gap: 6px; margin: 3px 0; font-size: 12px; cursor: pointer; flex-wrap: wrap; }
.bl-opt input[type=radio], .bl-opt input[type=checkbox] { width: auto; }
/* Référentiel des créneaux / contrôle vendu-programmé (v1.54.0) */
.bl-ctrl { font-size: 12px; border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }
.cr-mode { font-size: 12px; font-weight: 700; color: var(--blue); margin: 12px 0 4px; text-transform: uppercase; letter-spacing: .4px; }

/* Accueil (v1.56.0) */
.acc .db-kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1000px) { .acc-grid { grid-template-columns: minmax(0, 1fr); } .acc .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-card { margin: 0; }
.acc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.acc-h h3 { font-size: 15px; font-weight: 700; color: var(--gray-800); margin: 0; }
.acc-h a { font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.acc-row { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 4px; border-top: 1px solid var(--gray-100); }
.acc-row.acc-click:hover { background: var(--gray-50); }
.acc-click { cursor: pointer; }
.acc-titre { font-weight: 600; font-size: 13px; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-sous { font-size: 12px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-gris { color: var(--gray-400); font-size: 12px; }
.acc-lien { font-weight: 700; color: var(--blue); text-decoration: none; }
.acc-date { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gray-700); margin-right: 6px; white-space: nowrap; }
.acc-date.late { color: #b83c3c; }
.acc-montant { font-weight: 700; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc-vide { font-size: 13px; color: var(--gray-400); padding: 10px 0; }
.acc-plus { font-size: 12px; padding-top: 8px; border-top: 1px solid var(--gray-100); }
.acc-plus a { color: var(--blue); font-weight: 600; text-decoration: none; }
.acc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; background: var(--gray-100); color: var(--gray-600); }
.acc-chip.vert { background: #d9fbec; color: #046c47; }
.acc-chip.orange { background: #fff4e0; color: #8a4b08; }
.acc-alertes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 14px; }
.acc-alerte { display: flex; flex-direction: column; gap: 2px; min-height: 48px; padding: 10px 14px; border-radius: 10px; text-decoration: none; background: #fff; border: 1px solid var(--gray-200); border-left: 4px solid var(--blue); font-size: 12px; color: var(--gray-600); }
.acc-alerte strong { font-size: 13px; color: var(--gray-800); }
.acc-alerte.rouge { border-left-color: #df5e5e; background: #fff7f7; }
.acc-alerte.orange { border-left-color: #d9822b; }
.acc-skel .l, .acc-skel .v, .acc-skel .s { background: var(--gray-100); border-radius: 4px; color: transparent; }
.db-kpi.acc-click:hover { border-color: var(--blue-200); }
@media (pointer: coarse) { .acc-row { min-height: 52px; } }

/* Fiche utilisateur : arbre des droits (v1.57.0) */
.dr-profils { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 12px; color: var(--gray-500); }
.dr-pole { border: 1px solid var(--gray-200); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.dr-pole-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); cursor: pointer; margin: 0 0 4px; }
.dr-page { padding: 4px 0 4px 24px; border-top: 1px solid var(--gray-100); }
.dr-page-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.dr-page-h label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; margin: 0; }
.dr-pole input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); }
.dr-portee { display: inline-flex; border: 1px solid var(--gray-300); border-radius: 8px; overflow: hidden; }
.dr-portee button { border: none; background: #fff; padding: 5px 10px; font: inherit; font-size: 12px; color: var(--gray-600); cursor: pointer; }
.dr-portee button.on { background: var(--blue); color: #fff; font-weight: 600; }
.dr-note { font-size: 11px; color: var(--gray-400); }
.dr-aide { font-size: 11px; color: var(--gray-500); margin: 0 0 4px 24px; }
.dr-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px 24px; }
.dr-subs label { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1.5px solid var(--gray-200); border-radius: 16px; font-size: 12px; cursor: pointer; margin: 0; }
.dr-subs label.on { border-color: var(--blue); background: var(--blue-50); color: var(--blue); }
.dr-subs input[type=checkbox] { width: 13px; height: 13px; }
@media (pointer: coarse) { .dr-portee button { padding: 9px 14px; font-size: 13px; } .dr-subs label { padding: 8px 12px; } }
.dr-page-h label, .dr-subs label { text-transform: none; letter-spacing: normal; color: var(--gray-800); }
.dr-subs label { font-weight: 500; color: var(--gray-600); }
.dr-subs label.on { color: var(--blue); }
.dr-pole label.dr-pole-h { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .05em; margin: 0 0 4px; }

/* Nom de tiers cliquable vers sa fiche Hermès (v1.57.1) */
.tiers-lien { font-weight: 700; color: var(--blue); text-decoration: none; }
.tiers-lien:hover { text-decoration: underline; }
.tiers-nom { font-weight: 700; }

/* Todoist (v1.58.0) : suivi des clients dans la fiche Tiers et sur l'accueil */
.td-tache { border: 1px solid var(--gray-200); border-left: 4px solid var(--blue); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.td-l1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; }
.td-etape { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--blue-50); color: var(--blue); padding: 2px 8px; border-radius: 10px; }
.td-ech { font-weight: 700; color: var(--gray-700); }
.td-ech.retard { color: #b83c3c; }
.td-ech.jour { color: #b45309; }
.td-ech.aucune { color: var(--gray-400); font-weight: 500; }
.td-gris { color: var(--gray-500); }
.td-etiq { font-size: 11px; background: var(--gray-100); color: var(--gray-600); padding: 1px 7px; border-radius: 10px; }
.td-ouvrir { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--blue); text-decoration: none; white-space: nowrap; }
.td-desc { font-size: 12px; color: var(--gray-600); margin: 6px 0 0; line-height: 1.5; word-break: break-word; }
.td-desc a { color: var(--blue); }
.td-li::before { content: '• '; color: var(--gray-400); }
.td-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--gray-200); }
.td-actions select, .td-actions input[type=date] { width: auto; padding: 4px 6px; font-size: 12px; }
.td-lbl { font-size: 11px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .03em; margin-left: 6px; }
.td-lbl:first-child { margin-left: 0; }
.td-terminer { margin-left: auto; color: #b83c3c; }
.td-form { border: 1px dashed var(--blue-200); border-radius: 10px; padding: 10px 12px; background: var(--blue-50); }
.acc-chip.rouge { background: #fdecec; color: #9b2c2c; }

/* Todoist v1.58.1 : tâche principale du client, actions de suivi (sous-tâches), historique (commentaires) */
.td-alerte { font-size: 12px; color: #8a4b08; background: #fff4e0; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.td-sec { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--gray-100); }
.td-sec-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.td-sec-h a { text-transform: none; letter-spacing: normal; font-weight: 600; color: var(--blue); text-decoration: none; }
.td-vide { font-size: 12px; color: var(--gray-400); }
.td-sous { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--gray-100); min-height: 44px; }
.td-coche { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--gray-300); background: #fff; color: transparent; font-weight: 700; cursor: pointer; }
.td-coche:hover { border-color: #15803d; color: #15803d; }
.td-sous-t { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.td-com-form { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.td-com-form textarea { flex: 1; font-size: 13px; }
.td-com { padding: 6px 0; border-bottom: 1px dashed var(--gray-100); }
.td-com-h { font-size: 11px; font-weight: 600; color: var(--gray-400); }

/* Fiche Tiers en onglets (v1.58.2) */
.tiers-resume { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--gray-600); margin: -4px 0 10px; }
.tiers-resume a { color: var(--blue); text-decoration: none; }
.tiers-gris { color: var(--gray-400); }
.tiers-onglets { display: flex; gap: 2px; border-bottom: 2px solid var(--gray-200); margin: 0 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tiers-onglets::-webkit-scrollbar { display: none; }
.tiers-onglets button { flex-shrink: 0; border: none; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--gray-500); padding: 10px 14px; margin-bottom: -2px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tiers-onglets button:hover { color: var(--blue); }
.tiers-onglets button.on { color: var(--blue); border-bottom-color: var(--blue); }
.tiers-onglet-n { display: inline-block; margin-left: 6px; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--gray-100); color: var(--gray-500); font-size: 11px; line-height: 18px; text-align: center; }
.tiers-onglets button.on .tiers-onglet-n { background: var(--blue-50); color: var(--blue); }
.tiers-pane > div { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }
.tiers-pane > div + div { margin-top: 20px !important; padding-top: 16px !important; border-top: 1px solid var(--gray-200) !important; }

/* Todoist en un clic (v1.59.0) */
.td-btn { font-size: 12px !important; padding: 3px 9px !important; white-space: nowrap; color: #b84a2e; border-color: #f2c9bd; }
.td-btn:hover:not(:disabled) { background: #fdf0ec; }
.td-btn.ok { color: #15803d; border-color: #bbe5c9; background: #f0fdf4; opacity: 1; }
.td-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 9px; background: var(--blue-50); color: var(--blue); text-decoration: none; white-space: nowrap; vertical-align: middle; }
.td-badge.retard { background: #fdecec; color: #9b2c2c; }
.acc-row .td-btn { flex-shrink: 0; }

/* WinMedia : homonymes Dolibarr (v1.59.1) */
.wm-homs { margin-top: 4px; font-size: 12px; color: var(--gray-500); display: flex; flex-direction: column; gap: 2px; }
.wm-hom { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.wm-hom em { font-style: normal; font-size: 11px; color: #15803d; }

/* Fiche Tiers : modification des coordonnées (v1.60.0) */
.tiers-edit { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px 14px; margin-top: 8px; }
.tiers-edit .form-group input, .tiers-edit .form-group select { width: 100%; }

/* Clôture d'un devis : signée / non signée (v1.61.0) */
.clot-choix { display: flex; flex-direction: column; gap: 8px; }
.clot-choix label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--gray-200); border-radius: 10px; cursor: pointer; text-transform: none; letter-spacing: normal; margin: 0; }
.clot-choix label input { width: auto; margin-top: 3px; }
.clot-choix label span { display: flex; flex-direction: column; }
.clot-choix label strong { font-size: 14px; color: var(--gray-800); }
.clot-choix label small { font-size: 12px; color: var(--gray-500); font-weight: 400; }
.clot-choix label.on { border-color: var(--blue); background: var(--blue-50); }
.clot-choix label.refus.on { border-color: #df5e5e; background: #fff5f5; }

/* Chiffre d'affaires : factures brouillon empilées sur la barre « Facturé » (v1.61.3) */
.db-stack { width: 38%; max-width: 14px; display: flex; flex-direction: column; min-height: 0; }
.db-stack .db-bar { width: 100%; max-width: none; min-height: 0; }
.db-stack .db-bar.n { border-radius: 0; }
.db-bar.br, .db-sw.br { background: repeating-linear-gradient(45deg, #9bb7e0 0 3px, #d4e0f2 3px 6px); }
.db-bar.br { border-radius: 4px 4px 0 0; }
.db-stack .db-bar.br { margin-bottom: 2px; }
/* Tuiles de chiffres : titres, valeurs et détails alignés d'une tuile à l'autre, même quand un titre tient sur deux lignes (v1.61.4) */
.db-kpi { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 2px; align-content: start; }
.db-kpi .l { align-self: end; }
.db-kpi .v { margin: 0; }

/* Administration › Todoist (v1.62.0) */
.tdad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; }
.tdad-h { font-size: 13px; color: var(--blue); margin: 0 0 6px; }
.tdad-proj { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; text-transform: none; letter-spacing: normal; margin: 0; color: var(--gray-700); }
.tdad-proj input { width: auto; }
.tdad-proj small { color: #b45309; font-size: 11px; }
.tdad-user { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--gray-100); }
.tdad-aide { font-size: 12px; color: var(--gray-500); margin-top: 6px; }
.tdad-n { font-size: 11px; color: var(--gray-400); }

.tdad-via { font-size: 11px; color: #15803d; margin-top: 2px; }

/* Spots (v1.63.0) */
.spot-camp { padding: 12px 14px; margin-bottom: 10px; border-left: 4px solid var(--blue); }
.spot-camp.alerte { border-left-color: #d9822b; }
.spot-camp-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.spot-gris { font-size: 11.5px; color: var(--gray-500); }
.spot-ecart { color: #b45309; font-weight: 700; }
.spot-barre { display: inline-block; width: 48px; height: 6px; border-radius: 3px; background: var(--gray-100); vertical-align: middle; overflow: hidden; }
.spot-barre i { display: block; height: 100%; background: #2c5aa0; border-radius: 3px; }

/* Écoute des spots (v1.64.0) */
.spot-play { width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); font-size: 11px; cursor: pointer; vertical-align: middle; flex-shrink: 0; }
.spot-play:hover, .spot-play.on { background: var(--blue); color: #fff; }
@media (pointer: coarse) { .spot-play { width: 38px; height: 38px; font-size: 13px; } }

/* Écoute depuis la liste des campagnes (v1.64.1) */
.bl-spots { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12px; color: var(--gray-500); }
.bl-spot { display: inline-flex; align-items: center; }
.bl-spot .spot-play { width: 26px; height: 26px; margin-right: 5px; font-size: 10px; }
@media (pointer: coarse) { .bl-spot .spot-play { width: 34px; height: 34px; font-size: 12px; } }

/* Téléchargement des spots (v1.64.2) */
.spot-ecoute { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.spot-ecoute .spot-play { margin-right: 0; }
.spot-dl { font-size: 14px; font-weight: 700; }
.bl-spot .spot-ecoute { margin-right: 5px; }

/* Droits d'action Dolibarr dans l'arbre des droits (v1.64.4) */
.dr-actions { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 6px 24px; }
.dr-actions label { text-transform: none; letter-spacing: normal; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1.5px dashed var(--gray-300); border-radius: 8px; font-size: 12px; cursor: pointer; margin: 0; }
.dr-actions label small { margin-left: auto; color: var(--gray-400); font-size: 10px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.dr-actions label span { text-transform: none; letter-spacing: normal; font-weight: 600; }
.dr-actions label.on { border-style: solid; border-color: #df5e5e; background: #fdf1f1; color: #b83c3c; }
.dr-actions input { width: auto; }

/* Pastilles cliquables de l'Accueil (v1.64.5) */
button.acc-chip { border: 1.5px solid transparent; font-family: inherit; line-height: 1.4; }
.acc-chip.cliquable { cursor: pointer; transition: filter .15s, border-color .15s; }
.acc-chip.cliquable:hover { filter: brightness(.95); border-color: currentColor; }
.acc-chip.cliquable.on { border-color: currentColor; box-shadow: 0 0 0 2px rgba(44, 90, 160, .12); }
@media (pointer: coarse) { .acc-chip.cliquable { padding: 6px 12px; } }

/* Tiers en double (v1.65.0) */
.dbl-groupe { border: 1px solid var(--gray-200); border-left: 4px solid #df5e5e; border-radius: 8px; padding: 10px 12px; margin-top: 12px; }
.dbl-groupe.distinct { border-left-color: var(--gray-300); }
.dbl-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13px; }
.dbl-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 6px; }
.dbl-badge.rouge { background: #fdecec; color: #9b2c2c; }
.dbl-badge.gris { background: var(--gray-100); color: var(--gray-600); }
.dbl-tiers { display: flex; flex-direction: column; gap: 6px; }
.dbl-t { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1.5px solid var(--gray-200); border-radius: 8px; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; font-weight: 400; }
.dbl-t input { width: auto; margin-top: 3px; }
.dbl-t.garde { border-color: #02b874; background: #effcf6; }
.dbl-corps { min-width: 0; flex: 1; font-size: 13px; }
.dbl-role { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--gray-500); margin-right: 6px; }
.dbl-t.garde .dbl-role { color: #046c47; }
.dbl-sous { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.dbl-pieces { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--gray-600); }
.dbl-pieces .wm { color: #2c5aa0; }
.dbl-pieces .td { color: #b83c3c; }
.dbl-proc { margin-top: 8px; font-size: 13px; }
.dbl-proc summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.dbl-proc ol { margin: 8px 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dbl-proc pre { margin: 4px 0 0; padding: 8px 10px; background: #1e293b; color: #e2e8f0; border-radius: 6px; font-size: 12px; white-space: pre-wrap; word-break: break-all; cursor: copy; }
.dbl-proc code { background: var(--gray-100); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
@media (pointer: coarse) { .dbl-t { padding: 12px; } .dbl-t input { transform: scale(1.3); } }

/* Complétion des SIREN : indices (v1.66.0) */
.sir-indice { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 9px; background: #d9fbec; color: #046c47; }

/* Complétion des SIREN : devis / factures du tiers (v1.66.1) */
.sir-filtre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; margin-bottom: 8px; }
.sir-sans-piece { font-size: 11px; font-weight: 600; color: #b83c3c; margin-top: 2px; }
.sir-sans-piece a { color: #b83c3c; }
.sir-pieces { font-size: 11px; color: #046c47; margin-top: 2px; }

/* Claude (IA) (v1.67.0) */
.ia-aide { font-size: 12px; color: var(--gray-500); margin: 6px 0 0; }
.ia-gris, .sir-gris { font-size: 12px; color: var(--gray-500); }
.ia-etat { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.ia-etat.ok { background: #d9fbec; color: #046c47; }
.ia-etat.non { background: #fdecec; color: #9b2c2c; }
.ia-actuelle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ia-actuelle code { background: var(--gray-100); padding: 3px 8px; border-radius: 6px; font-size: 13px; }
.ia-test { margin-top: 8px; font-size: 13px; font-weight: 600; }
.ia-test.ok { color: #046c47; } .ia-test.non { color: #b83c3c; }
.ia-saisie { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ia-saisie input { flex: 1; min-width: 240px; font-family: monospace; }
.ia-reglages { display: flex; gap: 16px; flex-wrap: wrap; }
.ia-reglages label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; min-width: 220px; }
.sir-ia { margin-top: 6px; padding: 6px 8px; border-left: 3px solid #d97757; background: #fdf6f2; border-radius: 0 6px 6px 0; font-size: 12px; }
.sir-ia.rien { border-left-color: var(--gray-300); background: var(--gray-50, #f8fafc); }
.sir-ia-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: #d97757; padding: 1px 6px; border-radius: 4px; margin-right: 6px; }
.sir-ia-just { color: var(--gray-600); margin-top: 3px; }
.sir-ia-fermer { margin-left: 6px; font-weight: 600; color: #b83c3c; }
.sir-ia-choisir { font-size: 11px; padding: 1px 8px; margin-left: 6px; }
.sir-ia-btn { font-size: 11px; color: #b85a3c; border-color: #e8b9a6; }
.sir-ia-lot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; margin-bottom: 10px; }

/* Complétion des SIREN : suppression d'une fiche sans pièce (v1.67.2) */
.sir-suppr { font-size: 11px; color: #b83c3c; border-color: #efc2c2; }
.sir-suppr:hover { background: #fdecec; }

/* Intelligence artificielle : Gemini (v1.68.0) */
.ia-logo { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 5px; margin-right: 6px; vertical-align: 2px; }
.ia-logo.claude { background: #d97757; }
.ia-logo.gemini { background: #3b6fe0; }
.ia-reglages input[type=number] { max-width: 140px; }
.sir-ia.gem { border-left-color: #3b6fe0; background: #f1f5fe; }
.sir-ia.gem .sir-ia-tag { background: #3b6fe0; }
.sir-accord { margin-top: 4px; font-size: 12px; font-weight: 700; }
.sir-accord.ok { color: #046c47; }
.sir-accord.non { color: #b83c3c; }
.sir-gem-btn { font-size: 11px; color: #2c55b8; border-color: #b9c9ef; }

/* Intelligence artificielle : ChatGPT (v1.69.0) */
.ia-logo.openai { background: #10a37f; }
.sir-ia.oai { border-left-color: #10a37f; background: #effaf6; }
.sir-ia.oai .sir-ia-tag { background: #10a37f; }
.sir-accord.partiel { color: #8a4b08; }
.sir-oai-btn { font-size: 11px; color: #0b7a5e; border-color: #a9dccd; }

/* Complétion des SIREN : associations du RNA (v1.70.0) */
.sir-dissoute { color: #b83c3c; font-weight: 600; }

/* Roue crantée des tâches longues (v1.70.3) : boutons occupés (classe en-cours posée automatiquement) et messages de chargement */
@keyframes rat-roue { to { transform: rotate(360deg); } }
.en-cours::before, .loading::before {
    content: ''; display: inline-block; width: 1.05em; height: 1.05em; margin-right: 6px; vertical-align: -0.18em; flex-shrink: 0;
    background: currentColor; animation: rat-roue 1.1s linear infinite;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M10.3 1h3.4l.5 2.9c.8.2 1.5.5 2.2.9l2.4-1.7 2.4 2.4-1.7 2.4c.4.7.7 1.4.9 2.2l2.9.5v3.4l-2.9.5c-.2.8-.5 1.5-.9 2.2l1.7 2.4-2.4 2.4-2.4-1.7c-.7.4-1.4.7-2.2.9l-.5 2.9h-3.4l-.5-2.9c-.8-.2-1.5-.5-2.2-.9l-2.4 1.7-2.4-2.4 1.7-2.4c-.4-.7-.7-1.4-.9-2.2L1 13.7v-3.4l2.9-.5c.2-.8.5-1.5.9-2.2L3.1 5.2l2.4-2.4 2.4 1.7c.7-.4 1.4-.7 2.2-.9L10.3 1zM12 8.2a3.8 3.8 0 1 0 0 7.6 3.8 3.8 0 0 0 0-7.6z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' fill-rule='evenodd' d='M10.3 1h3.4l.5 2.9c.8.2 1.5.5 2.2.9l2.4-1.7 2.4 2.4-1.7 2.4c.4.7.7 1.4.9 2.2l2.9.5v3.4l-2.9.5c-.2.8-.5 1.5-.9 2.2l1.7 2.4-2.4 2.4-2.4-1.7c-.7.4-1.4.7-2.2.9l-.5 2.9h-3.4l-.5-2.9c-.8-.2-1.5-.5-2.2-.9l-2.4 1.7-2.4-2.4 1.7-2.4c-.4-.7-.7-1.4-.9-2.2L1 13.7v-3.4l2.9-.5c.2-.8.5-1.5.9-2.2L3.1 5.2l2.4-2.4 2.4 1.7c.7-.4 1.4-.7 2.2-.9L10.3 1zM12 8.2a3.8 3.8 0 1 0 0 7.6 3.8 3.8 0 0 0 0-7.6z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.btn.en-cours { cursor: progress; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .en-cours::before, .loading::before { animation-duration: 3s; } }

/* Création d'un tiers : type et recherche (v1.71.0) */
.nt-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.nt-types label { flex: 1; min-width: 140px; display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1.5px solid var(--gray-200); border-radius: 8px; cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; font-weight: 400; }
.nt-types label.on { border-color: var(--blue); background: var(--blue-50); }
.nt-types input { width: auto; margin-top: 3px; }
.nt-types small { display: block; font-size: 11px; color: var(--gray-500); }
.nt-recherche { background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200); border-radius: 8px; padding: 10px; margin-bottom: 12px; }
.nt-resultats { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 260px; overflow-y: auto; }
.nt-res { text-align: left; background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; padding: 6px 9px; font-size: 13px; cursor: pointer; font-family: inherit; }
.nt-res:hover { border-color: var(--blue); }
.nt-res.ferme { opacity: .65; }

/* Tiers : aperçu d'un résultat de l'annuaire (v1.71.3) */
.sir-res-carte { cursor: pointer; transition: border-color .15s; }
.sir-res-carte:hover, .sir-res-carte.ouverte { border-color: var(--blue); }
.sir-apercu-lien { margin-left: 8px; color: var(--blue); font-weight: 600; }
.sir-apercu { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--gray-200); cursor: default; }

/* Planning des sponsorings (v1.72.0) */
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--gray-600); margin-bottom: 10px; align-items: center; }
.sp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sp-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; flex: none; }
.sp-wrap { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.sp-wrap.avec-detail { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 1100px) { .sp-wrap.avec-detail { grid-template-columns: 1fr; } .sp-wrap .sp-detail { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; max-height: 45vh; overflow-y: auto; z-index: 50; box-shadow: 0 -6px 24px rgba(15,23,42,.18); } }
.sp-card { overflow: auto; max-height: calc(100vh - 230px); padding: 0; }
.sp-table { border-collapse: separate; border-spacing: 2px; font-size: 11px; width: 100%; }
.sp-table thead th { position: sticky; top: 0; background: var(--white); z-index: 2; font-weight: 600; color: var(--gray-600); padding: 6px 4px; text-align: center; border: none; min-width: 78px; line-height: 1.2; }
.sp-table thead tr.sp-zones th { top: 38px; padding: 0 4px 4px; font-weight: 500; color: var(--gray-400); font-size: 9px; }
.sp-zones th span { display: inline-block; width: 25%; text-align: center; }
.sp-table th.sp-sem { position: sticky; left: 0; background: var(--white); z-index: 1; text-align: left; white-space: nowrap; min-width: 54px; padding: 2px 6px; font-weight: 600; color: var(--gray-700); border: none; }
.sp-table thead th.sp-sem { z-index: 3; }
.sp-table th.sp-sem span { display: block; font-size: 9px; font-weight: 400; color: var(--gray-400); }
.sp-table tbody tr.cur th.sp-sem { color: var(--blue); }
.sp-table tbody tr.cur td { box-shadow: inset 0 0 0 2px var(--blue-200); border-radius: 4px; }
.sp-table tbody tr.passe { opacity: .6; }
.sp-table td { padding: 0; cursor: pointer; border: none; vertical-align: middle; }
.sp-table td.sel { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 3px; }
.sp-multi { display: flex; gap: 2px; height: 26px; }
.sp-mini { flex: 1; border-radius: 3px; position: relative; }
.sp-one { height: 30px; border-radius: 3px; display: flex; align-items: center; gap: 3px; padding: 0 5px; position: relative; overflow: hidden; }
.sp-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sp-vendu { background: var(--blue); color: #fff; }
.sp-cache { background: #e2e8f0; color: var(--gray-600); }
.sp-partiel { background: #fde68a; color: #92400e; }
.sp-vide { background: #fee2e2; color: #b91c1c; box-shadow: inset 0 0 0 1px #fca5a5; }
.sp-ete { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 4px, #eef2f7 4px, #eef2f7 8px); color: var(--gray-400); }
.sp-aucun { background: transparent; }
.sp-one.sp-cache .sp-txt, .sp-one.sp-ete .sp-txt { font-weight: 500; }
.sp-rat { font-size: 9px; font-weight: 700; border-radius: 3px; padding: 1px 3px; flex: none; }
.sp-rat.ok { background: #15803d; color: #fff; }
.sp-rat.att { background: #fff; color: #b45309; box-shadow: inset 0 0 0 1px #f59e0b; }
.sp-rat.ko { background: #dc2626; color: #fff; padding: 1px 5px; }
.sp-legend .sp-rat { margin-right: 2px; }
.sp-dot { position: absolute; top: 2px; right: 2px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff; }
.sp-dot.ok { background: #15803d; } .sp-dot.att { background: #f59e0b; } .sp-dot.ko { background: #dc2626; width: 9px; height: 9px; }
.sp-detail { position: sticky; top: 10px; font-size: 12px; }
.sp-dz { border-top: 1px solid var(--gray-100); padding: 8px 0; }
.sp-dz:first-of-type { border-top: none; }
.sp-dz-h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sp-dz-l { margin: 3px 0 3px 20px; color: var(--gray-600); }

/* Administration › Sponsorings : écrans WinMedia (v1.73.0) */
.as-ecrans { margin-top: 6px; font-size: 11px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.as-lab { color: var(--gray-500); margin-right: 2px; }
.as-chip { background: var(--blue-50); color: var(--blue-700); border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.as-chip em { font-style: normal; color: var(--gray-500); margin-left: 4px; }
.as-chip.ko { background: #fef2f2; color: #b91c1c; }
.as-retire { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.as-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.as-modal-card { width: 680px; max-width: 100%; margin: 0; }
.as-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--gray-100); flex-wrap: wrap; font-size: 12px; }
.as-row-nom { flex: 1; min-width: 160px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.as-jours { display: flex; gap: 2px; }
.as-jour { width: 30px; height: 28px; border-radius: 5px; border: 1px solid var(--gray-300); background: var(--white); color: var(--gray-500); font-size: 11px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.as-jour.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.as-jour.absent { opacity: .35; }
.as-ajout { margin-top: 10px; }
.as-liste { max-height: 230px; overflow-y: auto; border: 1px solid var(--gray-200); border-top: none; border-radius: 0 0 6px 6px; }
.as-cand { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: 12px; cursor: pointer; border-top: 1px solid var(--gray-100); flex-wrap: wrap; }
.as-cand:hover { background: var(--blue-50); }
.as-deja { font-size: 11px; color: #b45309; }

/* Propositions : disponibilité des sponsorings (v1.74.0) */
.week-btn.spd-ko { background: #fee2e2 !important; color: #b91c1c !important; border-color: #f87171 !important; }
.week-btn.spd-att { background: #fffbeb !important; color: #b45309 !important; border-color: #f59e0b !important; }
.spd-alerte { margin-top: 6px; padding: 6px 10px; border-radius: 6px; font-size: 11px; line-height: 1.45; }
.spd-alerte.spd-ko { background: #fef2f2; color: #991b1b; border-left: 3px solid #dc2626; }
.spd-alerte.spd-att { background: #fffbeb; color: #92400e; border-left: 3px solid #f59e0b; }

/* Contrats volume (v1.75.0) */
.cv-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.cv-tuile { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.cv-tuile span { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.cv-tuile b { font-size: 24px; color: var(--gray-800); line-height: 1.2; }
.cv-tuile small { font-size: 11px; color: var(--gray-500); }
.cv-tuile.alerte b { color: var(--red); }
.cv-tuile.ok b { color: var(--green-700); }
.cv-legende { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--gray-500); margin-bottom: 8px; }
.cv-legende i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.cv-barre { position: relative; display: flex; height: 8px; border-radius: 4px; background: var(--gray-200); overflow: hidden; }
.cv-barre i { display: block; height: 100%; }
.cv-b-diff { background: var(--green-600, #16a34a); }
.cv-b-prog { background: var(--blue, #2563eb); }
.cv-b-prev { background: repeating-linear-gradient(45deg, #93c5fd 0 3px, #dbeafe 3px 6px); }
.cv-b-reste { background: var(--gray-200); }
.cv-b-trop { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(45deg, #dc2626 0 3px, #fca5a5 3px 6px); }
.cv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cv-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--gray-500); padding: 8px 10px; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.cv-table td { padding: 8px 10px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
.cv-ligne { cursor: pointer; }
.cv-ligne:hover td { background: var(--blue-50); }
.cv-sous { font-size: 11px; color: var(--gray-500); }
.cv-neg { color: var(--red); }
.cv-extra { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 8px; background: var(--gray-100); color: var(--gray-600); margin: 0 4px 2px 0; white-space: nowrap; }
.cv-extra.ko { background: var(--red-50); color: var(--red); font-weight: 600; }
.cv-alerte { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 8px; margin: 0 4px 2px 0; white-space: nowrap; }
.cv-alerte.ko { background: #fee2e2; color: #b91c1c; }
.cv-alerte.att { background: #fffbeb; color: #b45309; }
.cv-retour { font-size: 12px; color: var(--gray-500); text-decoration: none; }
.cv-infos { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--gray-700); }
.cv-infos b { color: var(--gray-500); font-weight: 600; }
.cv-note-contrat { flex-basis: 100%; font-size: 12px; color: var(--gray-600); background: var(--gray-50); border-radius: 6px; padding: 6px 10px; white-space: pre-line; }
.cv-h3 { font-size: 14px; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.cv-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.cv-ex { border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.cv-ex span { font-size: 11px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; }
.cv-ex b { font-size: 18px; color: var(--gray-800); }
.cv-ex small { font-size: 11px; color: var(--gray-500); }
.cv-ex.ko { border-color: #f87171; background: #fef2f2; }
.cv-ex.ko b, .cv-ex.ko small { color: #b91c1c; }
.cv-ex.vide { opacity: .55; }
.cv-camp td { vertical-align: middle; }
.cv-camp input.cv-num { width: 46px; padding: 5px 2px; font-size: 13px; text-align: center; }
.cv-camp input.cv-txt { width: 100%; min-width: 110px; padding: 5px 6px; font-size: 12px; }
.cv-camp input.cv-date { padding: 5px 4px; font-size: 12px; width: 132px; }
.cv-etat { display: inline-block; font-size: 10px; font-weight: 600; padding: 0 6px; border-radius: 6px; background: var(--gray-100); color: var(--gray-600); }
.cv-etat.en_cours { background: var(--blue-50); color: var(--blue); }
.cv-etat.a_venir { background: #f5f3ff; color: #6d28d9; }
.cv-etat.hors { background: #fffbeb; color: #b45309; }
.cv-spot { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 6px; padding: 1px 6px; margin: 0 4px 3px 0; }
.cv-spot em { font-style: normal; font-size: 10px; color: var(--green-700); margin-left: 3px; }
.cv-spot .spot-ecoute { margin-right: 2px; }
.cv-spot .spot-play { width: 22px; height: 22px; font-size: 9px; }
@media (pointer: coarse) { .cv-spot .spot-play { width: 32px; height: 32px; font-size: 11px; } }
.cv-spot.reutil em { color: var(--gray-500); }
.cv-rattacher { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cv-rattacher select { flex: 1; min-width: 220px; padding: 6px; font-size: 13px; }
.cv-exclues { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--gray-200); }
.cv-exclue { display: inline-block; font-size: 12px; color: var(--gray-500); background: var(--gray-50); border-radius: 6px; padding: 2px 8px; margin: 0 6px 4px 0; text-decoration: none; }
.cv-modal { width: 640px; max-width: 100%; }
.cv-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.cv-grille4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cv-grille4 small { display: block; font-size: 11px; color: var(--gray-500); margin-bottom: 2px; }
.cv-grille4 input[type="number"] { width: 100%; }
.cv-devis { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-dv { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 1px solid var(--gray-200); background: var(--white); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 12px; max-width: 100%; }
.cv-dv span, .cv-dv small { font-size: 11px; color: var(--gray-500); }
.cv-dv.on { border-color: var(--blue); background: var(--blue-50); }
.cv-lignes { font-size: 11px; color: var(--gray-500); margin-top: 6px; }
.cv-tiers { border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; cursor: pointer; }
.cv-tiers:hover { background: var(--blue-50); }
@media (max-width: 640px) { .cv-grille, .cv-grille4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Contrats volume : facture rattachée (v1.76.0) */
.cv-fact { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; border-radius: 6px; padding: 2px 4px 2px 8px; }
.cv-fact span { font-weight: 700; }
.cv-fact a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cv-fact small { color: inherit; opacity: .8; }
.cv-fact button { margin-left: auto; border: none; background: none; cursor: pointer; color: inherit; opacity: .6; font-size: 11px; padding: 2px 4px; }
.cv-fact.ok { background: var(--green-50); color: var(--green-700); }
.cv-fact.att { background: #fffbeb; color: #b45309; }
.cv-camp select.cv-fact-sel { margin-top: 4px; width: 100%; padding: 4px 6px; font-size: 12px; color: var(--gray-500); }
.cv-camp select.cv-fact-sel.sugg { border-color: #f59e0b; color: #92400e; }
.cv-fact-ok { color: var(--green-700) !important; }

/* Contrats volume : éléments offerts (v1.77.0) */
.cv-offert { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; color: var(--gray-500); cursor: pointer; }
.cv-offert input { width: auto; margin: 0; }
