.pointer-events-none{
    pointer-events: none !important;
}

a{
    transition: 200ms !important;
}

.tooltip-span{
    font-size: 11px !important;
    width: 33% !important;
    text-align: left !important;
    border-bottom: 1px solid grey;
}

.tooltip-span.date{
    width: 20%;
}

.tooltip-span.amount{
    width: 20%;
}

.tooltip-span.gateway{
    width: 60%;
}

/* -------------------------------------------------------------------------
  VERTICAL STEPPERS
-------------------------------------------------------------------------- */

/* Steps */
.delivery-step {
    position: relative;
    min-height: 1em;
    color: gray;
}
.delivery-step + .delivery-step {
    margin-top: 1.5em
}
.delivery-step > div:first-child {
    position: static;
    height: 0;
}
.delivery-step > div:not(:first-child) {
    margin-left: 1.5em;
    padding-left: 1em;
}
.delivery-step h5 {
    margin-bottom: 5px !important;
}

.delivery-step.step-pending {
    color: #d9822b
}
.delivery-step.step-pending h5 {
    color: #d9822b
}
.delivery-step.step-pending .circle {
    background-color: #d9822b;
}

.delivery-step.step-error {
    color: #dc3545
}
.delivery-step.step-error h5 {
    color: #dc3545
}
.delivery-step.step-error .circle {
    background-color: #dc3545;
}

.delivery-step.step-delivered {
    color: #28a745
}
.delivery-step.step-delivered h5 {
    color: #28a745
}
.delivery-step.step-delivered .circle {
    background-color: #28a745;
}

/* Circle */
.circle {
    background: gray;
    position: relative;
    width: 1.8em;
    height: 1.8em;
    line-height: 1.8em;
    border-radius: 100%;
    color: #fff;
    text-align: center;
    box-shadow: 0 0 0 3px #fff;
}

/* Vertical Line */
.circle:after {
    content: ' ';
    position: absolute;
    display: block;
    top: 1px;
    right: 50%;
    bottom: 1px;
    left: 50%;
    height: 100%;
    width: 1px;
    transform: scale(1, 2);
    transform-origin: 50% -100%;
    background-color: rgba(0, 0, 0, 0.25);
}
.delivery-step:last-child .circle:after {
    display: none
}

/* Stepper Titles */
.title {
    line-height: 1.5em;
    font-weight: bold;
}
.caption {
    font-size: 0.9em;
    color: rgb(90,90,90) !important;
}
.step-note {
    font-size: 0.8em;
    font-weight: 500;
    color: rgb(100,100,100) !important;
}

.tva-pill-selector {
    /*justify-content: space-between;*/
}

.tva-pill-selector li button{
    padding: 6px 13px;
    font-size: 12px;
    margin-right: 5px;
}

.tva-pill-selector li button, .tva-pill-selector li button:focus{
    border: none;
    outline: none !important;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    background-color: #03A9F4 !important;
}

.max-height-400{
    max-height: 400px;
}

/* Sticky column header: stays visible while the table body scrolls (the wrapper
   is a max-height scroll container, same one the TOTAL footer sticks to). Table
   stays in Bootstrap's default border-collapse: collapse so cells don't segment;
   the header underline is a box-shadow so it survives the sticky positioning. */
.table-tva-order thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    box-shadow: inset 0 -2px 0 #e6e9ee;
}

/* Grand-total footer: one clean continuous band (collapse mode = no cell
   segmentation), clear presence with a gentle lift off the list. */
.bottom-row-tva-ca{
    background-color: transparent;
}
.bottom-row-tva-ca td{
    background-color: #eaf1f8;
    position: sticky;
    bottom: 0;
    z-index: 2;
    border-top: 2px solid #c9dbec;
    box-shadow: 0 -4px 12px rgba(31,45,61,.07);
    font-weight: 700;
    color: #24384a;
    padding-top: 14px;
    padding-bottom: 14px;
}

.table-tva-ca::-webkit-scrollbar {
    width: 3px;
    transition: 200ms;
}

/* Track */
.table-tva-ca::-webkit-scrollbar-track {
    border-radius: 10px;
}

/* Handle */
.table-tva-ca::-webkit-scrollbar-thumb {
    background: #455a64;
    border-radius: 10px;
}

/* Handle on hover */
.table-tva-ca::-webkit-scrollbar-thumb:hover {
    background: #263136;
}

.table-tva-ca{
    transition: max-height 0.5s ease;
}

.bill-web-logo-header-container {
    position: relative;
    transition: 200ms;
    margin-bottom: 25px;
    max-width: 110px;
    max-height: 110px;
}

.bill-logosize-none {
    display: none !important;
}

.bill-logosize-small {
    max-width: 70px;
    max-height: 70px;
}

.bill-logosize-medium {
    max-width: 110px;
    max-height: 110px;
}

.bill-logosize-large {
    max-width: 200px;
    max-height: 200px;
}

.bill-web-logo-header-container img{
    width: 100%;
    height: 100%;
}

.bill-web-logo-header-container .edit-logo-btn{
    transition: 200ms;
    position: absolute;
    top: 5%;
    right: 5%;
    /*transform: translate(-50%, -50%);*/
    /*-ms-transform: translate(-50%, -50%);*/
    background-color: #ff5c6c;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    opacity: .75;
    width: 30px;
    height: 30px;
    font-size: 14px;
    padding: 5px;
}

.bill-web-logo-header-container .edit-logo-btn:hover{
    opacity: 1;
    background-color: #ff5c6c;
}

.contact-us-card{
    height: 50px;
    border: 1px solid #20aee3 !important;
    border-radius: 5px !important;
    transition: 200ms;
}

.contact-us-card:hover{
    background-color: #20aee3 !important;
}

.contact-us-card:hover p{
    color: white !important;
}

.contact-us-card p {
    font-size: 15px;
    font-weight: bold;
}

.article-thumbnail{
    max-width: 100% !important;
    max-height: 64px !important;
}

/* MOBILE */
@media screen and (max-width: 640px) {
    .show-desktop{
        display: none;
    }
    .show-mobile{
        display: block;
    }
    .flex-row-desktop-column-mobile{
        flex-direction: column;
    }
}
/* MOBILE */
@media screen and (min-width: 640px) {
    .show-desktop{
        display: block;
    }
    .show-mobile{
        display: none;
    }
    .flex-row-desktop-column-mobile{
        flex-direction: row;
    }
}

.tva-disabled{
    pointer-events: none;
    opacity: .25;
}

.dropdown-toggle-income-year::after{
    margin-bottom: 3px !important;
    font-size: 18px !important;
}

.dropdown-menu--small{
    min-width: 80px;
    border-radius: 2px;
    transform: translate3d(80px, 36px, 0px) !important;
}

.tinymce-textarea-item{
    display: block;
    width: 100%;
    min-height: 150px !important;
}

td.form-group.x-description.bill_col_description > div > div > div.mce-top-part.mce-container.mce-stack-layout-item.mce-first,
.tinymce-item-parent-element .mce-top-part
{
    position: absolute;
    bottom: 1px;
    left: 1px;
}

td.form-group.x-description.bill_col_description > div > div > div.mce-top-part.mce-container.mce-stack-layout-item.mce-first > div > div,
td.form-group.x-description.bill_col_description > div > div > div.mce-top-part.mce-container.mce-stack-layout-item.mce-first > div > div > div > div,
.tinymce-item-parent-element .mce-top-part > div > div > div > div
{
    background: #f3f3f3 !important;
    border-top-right-radius: 5px;
}

.tinymce-item-parent-element .mce-top-part > div > div {
    padding: 0;
}

td.form-group.x-description.bill_col_description > div > div > div.mce-edit-area.mce-container.mce-panel.mce-stack-layout-item.mce-last{
    transition: 200ms;
    border-radius: 3px;
    border-color: #eeeff0;
}

.mce-panel iframe{
    border-radius: 10px !important;
}

.focused-tinymce > div > .mce-panel{
    border-color: #80bdff !important;
}

#billing-items-container tr {
    border-top: 1px solid #dee2e6;
}

.rotative-div{
    transition: .3s;
}

/* Collapse accordion -> rotate arrow icon */
#recurringExpensesHeader[aria-expanded="true"] .rotative-div {
    transform: rotate(-90deg);
}

.d-flex-force{
    display: flex !important;
}

.recurring-expense-card{
    background-color: #f6f6f6;
    padding: 15px;
    margin-bottom: 20px;
}

.recurring-expense-price{
    font-size: 18px;
}

.recurring-expense-period{
    font-size: 12px;
}

.recurring-expense-card-create{
    cursor: pointer;
    min-height: 127px;
    width: 100%;
    border: 1px dashed #20aee3;
    background-color: transparent;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.recurring-expense-card-create-icon{
    font-size: 25px;
}

.btn-delete-circle-recurring-expense{
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 14px;
    top: -10px;
    right: 5px;
    position: absolute;
    /*background-color: #f22613;*/
    background-color: white;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    color: #f22613;
    border: none;
}

.btn-delete-circle-recurring-expense:hover, .btn-delete-circle-recurring-expense:focus{
    background-color: #f22613;
    color: white;
    border: none;
}

.btn-edit-circle-recurring-expense{
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 14px;
    top: -10px;
    right: 39px;
    position: absolute;
    color: #24d2b5;
    background-color: white;
    box-shadow: 0 0 3px rgba(0,0,0,0.2);
    border: none;
}

.btn-edit-circle-recurring-expense:hover, .btn-edit-circle-recurring-expense:focus{
    background-color: #24d2b5;
    color: white;
    border: none;
}

.recurring-expense-new-badge{
    padding: 3px 8px;
    font-size: 12px;
    background-color: #20aee3;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    margin-left: 10px;
}

/*@media print{*/
/*    .used-for-sorting{*/
/*        display: none !important;*/
/*    }*/
/*    #tva-top-cards{*/
/*        visibility: hidden !important;*/
/*        display: none !important;*/
/*    }*/
/*}*/

.col-print-1 {width:8%;  float:left;}
.col-print-2 {width:16%; float:left;}
.col-print-3 {width:25%; float:left;}
.col-print-4 {width:33%; float:left;}
.col-print-5 {width:42%; float:left;}
.col-print-6 {width:50%; float:left;}
.col-print-7 {width:58%; float:left;}
.col-print-8 {width:66%; float:left;}
.col-print-9 {width:75%; float:left;}
.col-print-10{width:83%; float:left;}
.col-print-11{width:92%; float:left;}
.col-print-12{width:100%; float:left;}

@media print {
    .hidden-print{
        visibility: hidden !important;
        display: none !important;
    }
    .card-border-printing{
        border: 1px solid #20aee3 !important;
    }
    .table-tva-ca{
        max-height: none !important;
    }
}

.report-border-left-sep{
    border-left: 1px solid #ededed !important;
}

.gmail-box-connected-as{
    margin-top: 10px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: #1a73e8;
    height: 42px;
    border-radius: 42px;
}

.gmail-box-connected-as p{
    margin-bottom: 0 !important;
    color: white;
    padding: 10px 20px 10px 12px;
    font-weight: 500;
}

.gmail-box-connected-as .img-container{
    width: 42px;
    height: 42px;
    background-color: white;
    border: 2px solid #1a73e8;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 42px;
}

.gmail-box-connected-as .img-container img{
    height: 25px;
    width: 25px;
    margin: auto;
}

.gmail-icon-round{
    padding: 20px;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.gmail-icon-round img{
    width: 30px;
    height: 30px;
}

.text-debit{
    color: #cf5a66 !important;
}

.btn-bs-custom-action{
    justify-content: center;
    align-items: center;
    display: flex;
    background: #ebf2f5;
    color: #79848a;
    font-weight: 500;
    margin-left: 6px;
}

.btn-bs-custom-action span{
    margin-left: 4px;
}

.alert-danger-full{
    background-color: #f8d7da !important;
}

.team_manager_tenant_name{
    display: block;
    font-size: 8px;
    color: grey;
    font-weight: 700;
}

.team_avatar{
    object-fit: cover;
}

.table-responsive{
    scrollbar-width: thin;
}


.sharer-top-logo{
    max-height: 50px;
    margin: auto;
}

.sharer-company-name{
    margin: auto auto auto 15px;
    white-space: normal;
    line-height: 14px;
}

@media screen and (max-width: 640px){
    .sharer-company-name{
        font-size: 14px;
    }
}

.page-wrapper-sharer{
    margin-left: 0 !important;
}

.sharer-navbar{
    border-bottom: 1px solid #eeeff0;
}

.js-invoice-statuses h1{
    font-size: 25px !important;
}

.bill-file-attachments-wrapper-sharer .x-file-attachment{
    width: auto !important;
    padding-right: 12px;
}

.btn-sharer-top-action-row{
    max-width: 100%;
    margin: auto;
    width: 500px;
}

.sharer-payments-no-payment{
    text-align: center;
    font-size: 13px;
    background: #ededed;
    padding: 16px 23px;
}

.sharer-payzen-icon{
    max-width: 140px;
}

@media (min-width: 1200px) {
    .container-sharer {
        max-width: 1280px;
    }
}

.fc-alert{
    border: 2px solid #def1ff;
    position: relative;
    border-radius: 5px;
    border-left-width: 60px;
    margin: .5em 0;
    padding: 10px 15px;
}

.fc-alert.warning {
    border-color: #fdf1b8;
}

.fc-alert.info {
    border-color: #b8ccfd;
}

.fc-alert.danger {
    border-color: #fdb8b8;
}

.fc-alert.warning.warning>i{
    color: #f99d29;
    background-color: #fdf1b8;
}

.fc-alert.danger.danger>i{
    color: #f92929;
    background-color: #fdb8b8;
}

.fc-alert.info.info>i{
    color: #297cf9;
}

.fc-alert>i{
    position: absolute;
    font-size: 24px;
    top: calc(50% - 12px);
    left: -42px;
}

.footer-sharer{
    padding: 60px;
    position: relative !important;
    z-index: 1;
    font-family: "Poppins", sans-serif;
}

.footer-sharer h4{
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 10px;
    color: #5c5678;
}

.footer-sharer p, .footer-sharer div{
    font-weight: 500;
    font-size: 14px;
}

.sharer-footer-img{
    max-height: 115px;
    max-width: 115px;
}

.bill-text-button-actions{
    flex-wrap: wrap;
    row-gap: 7px;
}

.tva-expand-btn-container{
    position: absolute;
    top: 20px;
    right: 20px;
}

.tva-expand-btn-container span{
    font-weight: 500;
    color: #a6b5bd !important;
    font-size: 12px;
}

.tva-expand-btn-container i{
    font-size: 10px;
    color: #a6b5bd !important;
}

.tva-expand-btn-container button:hover {
    background-color: #e2e9ec !important;
    color: #a6b5bd !important;
}

/* ───────── Applied filter chips — echo the segmented-control style ─────────
   White pill + soft shadow (like the active segment), brand-blue value/icon,
   slate-bold key, and a hover-able circular remove. Markup built in
   public/js/core/app.js (NXUpdateFilterBadges). */
.active-filters-container .filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 50px;
    padding: 6px 8px 6px 14px;
    font-size: 12.5px;
    color: #4b5563;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.active-filters-container .filter-badge:hover {
    border-color: #d7dee6;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .12);
}

.active-filters-container .filter-badge strong {
    color: #212529;
    font-weight: 600;
}

.active-filters-container .filter-badge .filter-badge-value {
    color: #20aee3;
    font-weight: 500;
}

.active-filters-container .filter-badge .filter-badge-info {
    color: #20aee3;
    font-size: 14px;
    cursor: help;
}

.active-filters-container .filter-badge .filter-badge-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9aa5b1;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.active-filters-container .filter-badge .filter-badge-remove:hover {
    background: #fdecec;
    color: #e0533d;
}

/* ============================================================
   Dashboard — currency code de-emphasis (moneyHtml helper)
   ============================================================ */
.money-cur { font-size: .62em; font-weight: 600; opacity: .55; margin-left: 2px; letter-spacing: .2px; }
/* [10/11/2026] tables de liste (produits, devis, factures, paiements, dépenses, clients, fournisseurs) : devise un peu plus petite et atténuée */
table[id$="-list-table"] .money-cur { font-size: .8em; font-weight: 400; opacity: .55; margin-left: 3px; letter-spacing: 0; }

/* dashboard income chart — empty state (dimmed placeholder chart + floating card) */
.fc-chart-faded canvas { opacity: .28; }
.fc-chart-empty-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eef0f4; border-radius: 12px; box-shadow: 0 8px 28px rgba(62, 85, 105, .12); padding: 18px 26px; color: #67757c; font-size: 14px; font-weight: 600; max-width: 85%; }
.fc-chart-empty-card i { font-size: 24px; color: #b6bfc7; flex: 0 0 auto; }

/* dashboard activity timeline — empty state (skeleton rows + floating card) */
.fc-activity-empty { position: relative; min-height: 230px; }
.fc-activity-skeleton { padding: 4px 0; }
.fc-skel-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 2px; }
.fc-skel-dot { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #eef1f5; }
.fc-skel-lines { flex: 1 1 auto; display: flex; flex-direction: column; gap: 9px; padding-top: 5px; }
.fc-skel-line { display: block; height: 10px; border-radius: 6px; background: #eef1f5; }
.fc-skel-line--title { width: 42%; }
.fc-skel-line--sub { width: 68%; height: 8px; background: #f2f4f7; }
.fc-activity-empty-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eef0f4; border-radius: 12px; box-shadow: 0 8px 28px rgba(62, 85, 105, .12); padding: 16px 22px; color: #67757c; font-size: 14px; font-weight: 600; max-width: 88%; }
.fc-activity-empty-card i { font-size: 24px; color: #b6bfc7; flex: 0 0 auto; }

/* ============================================================
   Dashboard — invoice-status card + mobile-app promo card
   ============================================================ */
.fc-bar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.fc-bar-label { font-size: 11px; font-weight: 600; color: #99abb4; text-transform: uppercase; letter-spacing: .4px; }
.fc-bar-total { font-size: 13px; font-weight: 700; color: #3e5569; }
.fc-stacked-bar { display: flex; height: 20px; border-radius: 5px; background: #eef0f4; margin-bottom: 18px; }
.fc-stacked-seg { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 600; overflow: hidden; white-space: nowrap; cursor: pointer; min-width: 22px; transition: opacity .15s ease, filter .15s ease; }
.fc-seg-txt { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.fc-stacked-bar:hover .fc-stacked-seg { opacity: .4; }
.fc-stacked-bar .fc-stacked-seg:hover { opacity: 1; filter: brightness(1.06); }
.fc-bar-empty { color: #99abb4; font-size: 11px; margin: auto; }
.fc-detail { width: 100%; border-collapse: collapse; }
.fc-detail td { padding: 7px 0; font-size: 12px; border-top: 1px solid #eef0f4; vertical-align: middle; }
.fc-detail tr.fc-detail-head td { border-top: 0; padding: 0 0 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: #aab4bd; }
.fc-detail .lbl { color: #67757c; }
.fc-detail .num { text-align: right; font-weight: 600; color: #455a64; width: 42px; white-space: nowrap; padding-right: 14px; }
.fc-detail .amt { text-align: right; font-weight: 600; color: #3e5569; white-space: nowrap; }
.fc-detail tr.muted td { color: #b6bfc7; font-weight: 500; }
.fc-detail .fc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.fc-app-promo { display: flex; align-items: center; }
.fc-phone-img { flex: 0 0 auto; width: 96px; height: auto; margin-right: 18px; transition: transform .18s ease; }
#fcAppPromoTrigger:hover { transform: scale(1.05); }

/* Mobile-app carousel overlay (dashboard) — self-contained modal (own backdrop + z-index),
   independent of the theme's modal plumbing and the .page-wrapper stacking context. */
.fc-appmodal { position: fixed; inset: 0; z-index: 20000; display: none; align-items: center; justify-content: center; padding: 24px; }
.fc-appmodal.is-open { display: flex; }
.fc-appmodal__backdrop { position: absolute; inset: 0; background: rgba(9, 20, 34, .6); }
.fc-appmodal__panel { position: relative; z-index: 1; background: #fff; border-radius: 16px; width: 100%; max-width: 1040px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 30px 32px 34px; box-shadow: 0 30px 80px rgba(9, 20, 34, .4); }
.fc-appmodal__close { position: absolute; top: 14px; right: 16px; z-index: 3; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f4f8; color: #5a6b7b; font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.fc-appmodal__close:hover { background: #e4e9f0; color: #1b2a3d; }
.fc-app-text { min-width: 0; }
.fc-new-badge { display: inline-block; background: #e6f1fb; color: #1c6cc0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 8px; border-radius: 5px; margin-bottom: 8px; }
.fc-app-title { color: #3e5569; font-weight: 600; font-size: 15px; line-height: 1.25; }
.fc-app-sub { color: #99abb4; font-size: 12px; margin: 5px 0 14px; line-height: 1.4; }
.fc-app-badges { margin-top: 14px; white-space: nowrap; }
.fc-app-badges a { display: inline-block; margin-right: 6px; text-decoration: none !important; }
.fc-app-badges img { height: 28px; width: auto; vertical-align: middle; border: 0; }
.fc-config-link { display: inline-block; margin-top: 14px; font-size: 12px; color: #1c6cc0 !important; font-weight: 600; text-decoration: none !important; }
.fc-config-link:hover { text-decoration: underline !important; }

/* ============================================================
   Reports — expenses category × month report
   ============================================================ */
.fc-xr-summary { display: flex; align-items: flex-end; gap: 22px; margin: 6px 0 20px; flex-wrap: wrap; }
.fc-xr-metric { display: flex; flex-direction: column; }
.fc-xr-metric .fc-xr-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: #99abb4; margin-bottom: 2px; }
.fc-xr-metric .fc-xr-value { font-size: 27px; font-weight: 700; color: #3e5569; line-height: 1.05; }
.fc-xr-sub { display: flex; gap: 16px; font-size: 12px; color: #8a97a0; flex-wrap: wrap; align-items: baseline; }
.fc-xr-sub .fc-xr-period { color: #67757c; font-weight: 700; }
.fc-xr-state { background: #eef4f9; color: #3e5569; font-weight: 700; padding: 1px 9px; border-radius: 20px; font-size: 11px; }
.fc-xr-summary .money-cur { font-size: .55em; font-weight: 600; opacity: .55; margin-left: 2px; }
.fc-xr-chart { min-height: 340px; margin-bottom: 4px; }
.fc-xr-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 2px 0 10px; font-size: 12px; color: #67757c; }
.fc-xr-lg { display: inline-flex; align-items: center; }
.fc-xr-sw { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.fc-xr-sw-hatch { background-color: #dfe4ea; background-image: repeating-linear-gradient(45deg, #9aa4ae 0, #9aa4ae 2px, transparent 2px, transparent 4px); }
.fc-xr-empty { padding: 48px 12px; text-align: center; color: #99abb4; font-size: 13px; }
.fc-xr-caption { caption-side: top; text-align: left; color: #99abb4; font-size: 11px; font-weight: 600; padding: 2px 2px 8px; }
.fc-xr-table { margin-bottom: 0; table-layout: fixed; width: 100%; min-width: 960px; font-variant-numeric: tabular-nums; }
.fc-xr-table th { font-size: 10px; text-transform: uppercase; letter-spacing: .2px; color: #aab4bd; font-weight: 600; border-bottom: 1px solid #eef0f4; white-space: nowrap; padding: 6px 5px; overflow: hidden; text-overflow: ellipsis; }
.fc-xr-table td { font-size: 12px; color: #67757c; border-top: 1px solid #f2f4f7; white-space: nowrap; padding: 7px 5px; overflow: hidden; text-overflow: ellipsis; }
.fc-xr-table .fc-xr-cat { width: 132px; text-align: left; color: #455a64; font-weight: 500; position: sticky; left: 0; background: #fff; z-index: 1; padding-left: 2px; }
.fc-xr-table th.fc-xr-cat { color: #aab4bd; }
.fc-xr-yr { display: block; font-size: 9px; color: #c3cbd1; font-weight: 500; }
.fc-xr-table .fc-xr-total-col { width: 104px; font-weight: 700; color: #3e5569; border-left: 1px solid #eef0f4; }
.fc-xr-table tr.fc-xr-muted td { color: #cbd2d8; }
.fc-xr-table tfoot .report-results-table-totals td { font-weight: 700; color: #3e5569; border-top: 2px solid #e6e9ee; background: #fbfcfd; }
.fc-xr-table tfoot .report-results-table-totals .fc-xr-cat { color: #3e5569; background: #fbfcfd; }
.reports-list-page-filter-container { margin-bottom: 6px; }
/* off-screen table used only for the complete Excel/CSV export (not display:none, so tableExport still reads it) */
.fc-xr-export-only { position: absolute; left: -99999px; top: 0; width: auto; }

/* ============================================================
   Reports — landing / start page
   ============================================================ */
.fc-rs-page { padding: 8px 4px 12px; }
.fc-rs-intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 22px; }
.fc-rs-intro h4 { color: #3e5569; font-weight: 700; margin: 0; font-size: 20px; }
.fc-rs-intro p { color: #99abb4; font-size: 12.5px; margin: 0; line-height: 1.5; flex: 1 1 320px; min-width: 0; }
.fc-rs-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start; align-items: stretch; }
.fc-rs-card { flex: 0 1 288px; max-width: 300px; min-width: 240px; background: #fff; border: 1px solid #e9edf2; border-radius: 12px; box-shadow: 0 1px 3px rgba(62, 85, 105, .05); padding: 16px 16px 14px; }
.fc-rs-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fc-rs-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: 0 0 auto; }
.fc-rs-title { font-size: 15px; font-weight: 700; color: #3e5569; }
.fc-rs-desc { font-size: 12px; color: #99abb4; line-height: 1.5; margin: 0 0 13px; }
.fc-rs-links { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-rs-links a { font-size: 11.5px; font-weight: 600; color: #3e5569; background: #f4f6f9; border-radius: 6px; padding: 5px 10px; text-decoration: none !important; cursor: pointer; transition: background .15s ease, color .15s ease; }
.fc-rs-links a:hover { background: #e6f1fb; color: #1c6cc0; }
.fc-rs-foot { text-align: center; color: #aab4bd; font-size: 12px; margin-top: 28px; }

/* ============================================================
   Dashboard — top KPI cards (payments / invoices)
   ============================================================ */
.fc-kpi .fc-kpi-card { position: relative; border: 1px solid #eef0f4; border-radius: 0; overflow: hidden; }
.fc-kpi-card::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.fc-kpi-card .card-body { padding: 16px 18px; }
.fc-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; min-height: 22px; }
.fc-kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #99abb4; }
.fc-kpi-value { font-size: 25px; font-weight: 700; color: #3e5569; line-height: 1.1; white-space: nowrap; }
.fc-kpi-sub { font-size: 12px; color: #99abb4; margin-top: 8px; min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-kpi-sub--danger { color: #ff5c6c; font-weight: 600; }
.fc-kpi-prev { font-weight: 700; color: #67757c; }
.fc-kpi-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; flex: 0 0 auto; }
.fc-kpi-badge--up { background: rgba(27, 184, 158, .12); color: #1bb89e; }
.fc-kpi-badge--down { background: rgba(255, 92, 108, .12); color: #ff5c6c; }
.fc-kpi-badge--flat { background: #eef0f4; color: #99abb4; }
.fc-kpi--teal .fc-kpi-card::before { background: #24d2b5; }
.fc-kpi--blue .fc-kpi-card::before { background: #20aee3; }
.fc-kpi--orange .fc-kpi-card::before { background: #ff9041; }
.fc-kpi--red .fc-kpi-card::before { background: #ff5c6c; }

/* Embedded list tables (client/project detail tabs) already sit inside a card, but each list table
   renders its own .card too — flatten that inner card so it doesn't stack a second card's shadow /
   border / margin / padding and push the table in. Standalone list pages keep their card. */
.tab-body-embedded .card-embed-fix .card { box-shadow: none !important; border: 0 !important; margin: 0 !important; background: transparent; }
.tab-body-embedded .card-embed-fix .card > .card-body { padding: 0 !important; }

/* ============================================================
   Expense add/edit modal (expenses/components/modals/add-edit-inc)
   ============================================================ */
#js-trigger-expenses .form-group { margin-bottom: .9rem !important; }
#js-trigger-expenses .col-form-label { padding-top: 0 !important; padding-bottom: 7px !important; line-height: 1.3 !important; }
#js-trigger-expenses .row + .row { margin-top: 0; }
/* "Plus de détails" expander reflects its open/closed state via the hidden checkbox :checked state (no JS) */
#js-trigger-expenses .js-more-details-toggle:hover .more-label-show,
#js-trigger-expenses .js-more-details-toggle:hover .more-label-hide { text-decoration: underline; }
#js-trigger-expenses .more-chevron { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; transition: transform .15s ease; }
#js-trigger-expenses .more-label-hide { display: none; }
#js-trigger-expenses .js-more-details-toggle input:checked ~ .more-chevron { transform: rotate(180deg); }
#js-trigger-expenses .js-more-details-toggle input:checked ~ .more-label-show { display: none; }
#js-trigger-expenses .js-more-details-toggle input:checked ~ .more-label-hide { display: inline; }

/* settlement segmented chooser (Réglée / Pas encore réglée) */
.settle-choice { display: flex; align-items: stretch; margin-top: 12px; }
.settle-card { flex: 1 1 0; display: flex; align-items: center; gap: 12px; margin: 0; padding: 13px 14px; border: 1.5px solid #e3e8ee; border-radius: 12px; background: #fff; cursor: pointer; transition: all .15s ease; min-width: 0; }
.settle-card:hover { border-color: #cbd2d9; }
.settle-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.settle-card__icon { flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #eef1f5; color: #9aa5b1; font-size: 15px; transition: all .15s ease; }
.settle-card__body { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.settle-card__title { font-weight: 700; font-size: 14px; color: #8795a1; }
.settle-card__desc { font-size: 11px; color: #b0b7c0; }
.settle-choice__or { align-self: center; flex: 0 0 auto; margin: 0 10px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1.5px solid #e3e8ee; font-size: 11px; font-weight: 700; color: #9aa5b1; }
.settle-card--paid.is-active { border-color: #14b8a6; background: #f0fbf9; }
.settle-card--paid.is-active .settle-card__icon { background: #14b8a6; color: #fff; }
.settle-card--paid.is-active .settle-card__title { color: #0d9488; }
.settle-card--paid.is-active .settle-card__desc { color: #4a9d92; }
.settle-card--due.is-active { border-color: #f59e0b; background: #fff8ef; }
.settle-card--due.is-active .settle-card__icon { background: #f59e0b; color: #fff; }
.settle-card--due.is-active .settle-card__title { color: #c9760a; }
.settle-card--due.is-active .settle-card__desc { color: #a9773f; }
@media (max-width: 480px) { .settle-choice { flex-direction: column; } .settle-choice__or { margin: 8px 0; } }
/* --- Stock oversell warning (invoice line quantity exceeds available stock) --- */
.fc-stock-oversell { border-color: #e46a76 !important; background: #fff6f7; }
.fc-stock-warning { font-size: 11px; font-weight: 600; color: #e46a76; margin-top: 3px; line-height: 1.2; }

/* --- Free-trial countdown banner (shown in-app while settings_saas_status = free-trial) --- */
.fc-trial-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 18px; border-radius: 8px; border: 1px solid #dcebf7; background: #f0f7fd; }
.fc-trial-banner__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fc-trial-banner__icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 21px; line-height: 1; background: #e3f0fb; color: #1c8fcf; }
.fc-trial-banner__text { font-size: 14px; color: #33475c; line-height: 1.35; }
.fc-trial-banner__text strong { color: #16243f; }
.fc-trial-banner__sub { display: block; font-size: 12px; color: #8895a4; margin-top: 1px; }
.fc-trial-banner__cta { display: inline-block; background: #1c6cc0; color: #fff !important; font-weight: 600; font-size: 13.5px; text-decoration: none; padding: 9px 18px; border-radius: 7px; white-space: nowrap; flex: 0 0 auto; }
.fc-trial-banner__cta:hover { background: #155aa6; color: #fff !important; }
.fc-trial-warning { background: #fbf3e2; border-color: #f0e0bd; }
.fc-trial-warning .fc-trial-banner__icon { background: #fbeccf; color: #c9871f; }
.fc-trial-warning .fc-trial-banner__cta { background: #c9871f; }
.fc-trial-warning .fc-trial-banner__cta:hover { background: #a96f13; }
.fc-trial-critical { background: #fdecec; border-color: #f5d2d2; }
.fc-trial-critical .fc-trial-banner__icon { background: #fbdad6; color: #c0392b; }
.fc-trial-critical .fc-trial-banner__cta { background: #c0392b; }
.fc-trial-critical .fc-trial-banner__cta:hover { background: #a12f22; }
/* card registered mid-trial: calm scheduled state */
.fc-trial-scheduled { background: #e4f3f0; border-color: #cfe9e3; }
.fc-trial-scheduled .fc-trial-banner__icon { background: #d3efe9; color: #0e8f82; }
.fc-trial-scheduled .fc-trial-banner__cta { background: #0e8f82; }
.fc-trial-scheduled .fc-trial-banner__cta:hover { background: #0b756a; }

/* --- Billing page (myaccount) trial status box --- */
.fc-trial-account { padding: 16px 18px; border-radius: 8px; border: 1px solid #dcebf7; background: #f0f7fd; margin-top: 6px; }
.fc-trial-account__title { font-weight: 700; color: #16243f; font-size: 15px; }
.fc-trial-account__sub { color: #54657a; font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
.fc-trial-account--scheduled { background: #e4f3f0; border-color: #cfe9e3; }
.fc-trial-account--open { background: #fbf3e2; border-color: #f0e0bd; }

/* --- Settings > Application mobile (QR pairing + download) --- */
.fc-ma-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid #e7ecf1; }
.fc-ma-head__icon { width: 42px; height: 42px; border-radius: 12px; background: #eaf7fc; display: flex; align-items: center; justify-content: center; color: #1691c4; font-size: 19px; flex: 0 0 42px; }
.fc-ma-head__title { font-size: 16.5px; font-weight: 600; color: #1f2733; margin: 0; }
.fc-ma-head__sub { font-size: 12.5px; color: #8a94a3; margin: 2px 0 0; }
@media (min-width: 992px) {
    .fc-ma-col--left { border-right: 1px solid #e7ecf1; padding-right: 34px; }
    .fc-ma-col--right { padding-left: 34px; }
}
.fc-ma-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 1.3px; color: #1691c4; text-transform: uppercase; margin-bottom: 6px; }
.fc-ma-title { font-size: 16px; font-weight: 600; color: #1f2733; margin: 0 0 4px; }
.fc-ma-sub { font-size: 13px; color: #8a94a3; line-height: 1.55; margin: 0 0 22px; }
.fc-ma-sub b { color: #1f2733; }
.fc-ma-qrwrap { display: flex; flex-direction: column; align-items: center; padding-bottom: 6px; }
.fc-ma-qrtile { position: relative; width: 236px; height: 236px; background: #fff; border-radius: 16px; box-shadow: 0 2px 14px rgba(20, 40, 60, .10); display: flex; align-items: center; justify-content: center; }
.fc-ma-qrtile__inner { width: 196px; height: 196px; display: flex; align-items: center; justify-content: center; transition: filter .25s, opacity .25s; }
.fc-ma-qrtile__inner img, .fc-ma-qrtile__inner canvas { width: 196px !important; height: 196px !important; }
.fc-ma-corner { position: absolute; width: 26px; height: 26px; border: 3px solid #20AEE3; }
.fc-ma-corner--tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.fc-ma-corner--tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.fc-ma-corner--bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.fc-ma-corner--br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.fc-ma-qrtile.is-expired .fc-ma-qrtile__inner { filter: blur(4px); opacity: .25; }
.fc-ma-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 2; }
.fc-ma-qrtile.is-expired .fc-ma-overlay { display: flex; }
.fc-ma-overlay__msg { font-size: 12px; color: #C2362B; font-weight: 600; background: #FDE7E4; padding: 5px 12px; border-radius: 999px; }
.fc-ma-overlay__btn { background: #20AEE3; color: #fff; border: none; border-radius: 10px; padding: 11px 18px; font-family: inherit; font-size: 13.5px; font-weight: 600; box-shadow: 0 3px 10px rgba(32, 174, 227, .35); cursor: pointer; }
.fc-ma-overlay__btn:hover { background: #1a9dcf; }
.fc-ma-ttl { width: 236px; margin-top: 18px; }
.fc-ma-bar { height: 4px; background: #edf1f5; border-radius: 3px; overflow: hidden; }
.fc-ma-bar__fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #20AEE3, #6fd0f2); border-radius: 3px; transition: width 1s linear; }
.fc-ma-ttl__lbl { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #8a94a3; }
.fc-ma-ttl__lbl b { color: #1f2733; font-weight: 600; }
.fc-ma-ttl__expired { color: #C2362B; font-weight: 600; }
.fc-ma-regen { display: inline-block; margin-top: 14px; font-size: 12.5px; color: #1691c4; font-weight: 500; cursor: pointer; }
.fc-ma-regen:hover { color: #127aa6; text-decoration: none; }
.fc-ma-steps { list-style: none; margin: 0 0 24px; padding: 0; }
.fc-ma-steps li { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.fc-ma-steps li:last-child { padding-bottom: 0; }
.fc-ma-steps li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: #e7ecf1; }
.fc-ma-steps li:last-child::before { display: none; }
.fc-ma-steps__n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #eaf7fc; color: #1691c4; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.fc-ma-steps__tx { font-size: 13.5px; line-height: 1.5; padding-top: 4px; color: #1f2733; }
.fc-ma-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.fc-ma-badges a { display: inline-block; text-decoration: none !important; border-radius: 8px; transition: transform .15s, box-shadow .15s; }
.fc-ma-badges a:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(20, 40, 60, .18); }
.fc-ma-badges img { height: 40px; width: auto; display: block; border: 0; border-radius: 8px; }

/* --- Landlord backoffice > Analytics section (Usage + AI Pricing) ---
   Tiles use the theme's own .card markup (same as the home top stats) — only the two
   intermediate band colors need utilities the theme lacks. */
.fc-lla-watch { color: #b98900 !important; }
.fc-lla-risk { color: #d2691e !important; }
/* Equal-height KPI cards: the flex row stretches the cols; fill it minus the theme card's
   margin-bottom (30px) so a card that wraps to 2 lines doesn't overhang the next row. */
.analytics .top-stats-panels .card,
.aipricing .top-stats-panels .card { height: calc(100% - 30px); }
.fc-lla-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: #8a99a8; }
/* Only the churn + free-trial tables are click-sortable; scope the affordance to them (the
   AI-pricing table isn't). */
.fc-lla-sortable thead th { cursor: pointer; user-select: none; white-space: nowrap; }
/* Free-trial row that has produced neither invoice nor estimate — the trial never started. */
.fc-llt-zero { color: #c2362b; font-weight: 600; }
/* Trial end date, coloured by urgency instead of carrying a badge: < 3 j red, < 10 j amber, green. */
.fc-llt-end--soon { color: #c2362b; font-weight: 600; }
.fc-llt-end--near { color: #b98900; font-weight: 600; }
.fc-llt-end--ok { color: #0e8f6e; font-weight: 600; }
/* Long tenant tables scroll inside their own card instead of stretching the page. */
.fc-lla-scroll { max-height: 500px; overflow-y: auto; }
/* Keep the (clickable) header row visible while the body scrolls. border-collapse drops a sticky
   cell's own border, so the header rule is drawn with an inset shadow instead. */
.fc-lla-scroll thead th { position: sticky; top: 0; z-index: 2; background: #fff; box-shadow: inset 0 -1px 0 #e9ecef; }
.fc-lla-table td { vertical-align: middle; }
.fc-lla-tenant { font-weight: 600; }
.fc-lla-muted { color: #8a99a8; }
.fc-lla-up { color: #0e8f6e; font-weight: 600; }
.fc-lla-down { color: #c2362b; font-weight: 600; }
.fc-lla-empty { color: #8a99a8; font-size: 13px; padding: 14px 0; margin: 0; }
.fc-lla-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.fc-lla-badge--healthy { background: #e0f4ee; color: #0e8f6e; }
.fc-lla-badge--watch { background: #fdf3d7; color: #b98900; }
.fc-lla-badge--risk { background: #fdeadd; color: #d2691e; }
.fc-lla-badge--dormant { background: #fde7e4; color: #c2362b; }

/* ============================================================
   Déclaration TVA 1010 (pages/tva/declaration.blade.php)
   ============================================================ */
.fc-tvadecl-formhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 6px; }
.fc-tvadecl-section { background: #f6f7fa; border-left: 3px solid #ff6849; padding: 7px 12px; font-weight: 700; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; color: #455261; margin: 18px 0 10px; }
.fc-tvadecl-subhead { font-weight: 600; font-size: 12.5px; color: #67757c; margin: 4px 0 6px; }
/* [TVA déclaration] "crédit reporté" reminder shown under line 15 (previous period's credit) */
.fc-decl-report-hint > td { border-top: 0 !important; padding-top: 0 !important; }
.fc-decl-report-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #eaf7ee; border: 1px solid #cdebd6; border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #2f6b45; line-height: 1.45; }
.fc-decl-report-note > i { font-size: 16px; color: #2bbf6a; flex: 0 0 auto; }
.fc-decl-report-note .fc-decl-report-verify { color: #6f8a79; font-size: 12px; }
.fc-decl-report-btn { margin-left: auto; flex: 0 0 auto; }
.fc-tvadecl-table { margin-bottom: 6px; }
.fc-tvadecl-table td, .fc-tvadecl-table th { padding: 6px 8px; vertical-align: middle; }
.fc-tvadecl-table th.fc-tvadecl-amount { text-align: right; font-size: 12px; color: #67757c; }
.fc-tvadecl-num { width: 44px; font-weight: 700; color: #ff6849; text-align: center; background: #fdf5f3; border-radius: 4px; font-size: 12.5px; }
.fc-tvadecl-amount { width: 190px; text-align: right; }
.fc-tvadecl-amount input { text-align: right; font-variant-numeric: tabular-nums; }
.fc-tvadecl-table tr.fc-tvadecl-total td { border-top: 2px solid #e3e7ee; font-weight: 700; }
.fc-tvadecl-table tr.fc-tvadecl-total input[readonly] { background: #f2f4f8; font-weight: 700; }
.fc-tvadecl-due-final input[readonly] { background: #fdeadd !important; color: #c2362b; font-size: 15px; }
.fc-tvadecl-hint { font-size: 12px; margin: 2px 0 10px; }

/* ============================================================
   TVA & CA — period chips + gated déclaration button (pages/tva/tva.blade.php)
   ============================================================ */
.fc-tva-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.fc-tva-chip { display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #455261; background: #f1f3f7; border: 1px solid #e0e4ec; text-decoration: none; transition: background .15s ease, color .15s ease; }
.fc-tva-chip:hover { background: #e2ebf5; color: #1c72b8; text-decoration: none; }
.fc-tva-chip--active { background: #1d96c3; border-color: #1d96c3; color: #fff; }
.fc-tva-chip--active:hover { background: #1d96c3; color: #fff; }
/* Fresh, consistent TVA action buttons (report + declaration). inline-flex + symmetric padding =
   always perfectly centred label/icon; soft rounded look with a subtle lift on the primary. */
.fc-tvabtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border-radius: 8px; font-weight: 600; font-size: 13px; line-height: 1; padding: 10px 18px;
    border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease; }
.fc-tvabtn i { font-size: 15px; }
.fc-tvabtn + .fc-tvabtn { margin-left: 8px; }
.fc-tvabtn--primary { background: #20aee3; color: #fff; box-shadow: 0 3px 8px rgba(32,174,227,.28); }
.fc-tvabtn--primary:hover, .fc-tvabtn--primary:focus { background: #12a2d8; color: #fff; box-shadow: 0 5px 14px rgba(32,174,227,.36); text-decoration: none; }
.fc-tvabtn--ghost { background: #fff; color: #5a6b7b; border-color: #e2e7ef; box-shadow: 0 1px 2px rgba(31,45,61,.05); }
.fc-tvabtn--ghost:hover, .fc-tvabtn--ghost:focus { background: #eaf6fc; color: #1c9fd4; border-color: #bfe6f6; text-decoration: none; }
.fc-tvabtn--disabled, .fc-tvabtn--disabled:hover, .fc-tvabtn--disabled:focus { background: #f3f5f8; color: #a2a8b4; border-color: #e6e9f0; box-shadow: none; cursor: not-allowed; }

/* ============================================================
   TVA & CA v2 — synthèse, tuiles CA, matrice par taux, onglets,
   overlay module TVA désactivé (pages/tva/tva.blade.php)
   ============================================================ */
.fc-tva2-lockzone { position: relative; }
.fc-tva2-dim { opacity: .35; pointer-events: none; user-select: none; }
.fc-tva2-overlay { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 14px; }
/* Faint tint over ONLY this band's region, so the disabled area reads as one bounded
   box scoped to the TVA synthesis, not a page-level modal. */
.fc-tva2-overlay:not(.fc-tva2-overlay--mini) { background: rgba(249,250,253,.5); border-radius: 10px; }
.fc-tva2-overlay--mini { align-items: flex-start; padding-top: 90px; }
/* Compact, soft-shadowed notice (was a big modal-like card): sits within the band. */
.fc-tva2-overlay-card { background: #fff; border: 1px solid #e0e4ec; border-radius: 8px; box-shadow: 0 3px 12px rgba(31,45,61,.12); padding: 14px 22px; max-width: 540px; text-align: center; }
.fc-tva2-overlay-card h4 { font-size: 14px; font-weight: 700; color: #1f2d3d; margin: 6px 0 4px; }
.fc-tva2-overlay-card p { font-size: 12.5px; color: #55606d; margin: 0; }
.fc-tva2-overlay-sub a { font-weight: 600; }
.fc-tva2-overlay-icon { width: 34px; height: 34px; margin: 0 auto; border-radius: 50%; background: #fdf5f3; color: #ff6849; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.fc-tva2-overlay-card--mini { padding: 9px 18px; font-size: 13px; font-weight: 600; color: #455261; }
.fc-tva2-overlay-card--mini i { color: #ff6849; }

/* Clean white card (no left rail — it clashed with the rounded corners); the result is a soft
   tinted pill so the eye lands on it without needing an accent bar. */
.fc-tva2-synth { background: #fff; border: 1px solid #e6e9f0; border-radius: 10px; box-shadow: 0 1px 3px rgba(31,45,61,.06); color: #2b3440; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-bottom: 18px; }
.fc-tva2-synth-lab { font-size: 11px; letter-spacing: .5px; text-transform: uppercase; color: #7b8493; font-weight: 600; }
.fc-tva2-synth-val { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 3px; color: #1c1c30; }
.fc-tva2-synth-op { font-size: 18px; color: #c3c9d4; font-weight: 400; }
.fc-tva2-synth-net { padding: 8px 18px; border-radius: 9px; background: #fdecea; }
.fc-tva2-synth-net .fc-tva2-synth-lab { color: #c2362b; opacity: .9; }
.fc-tva2-synth-net .fc-tva2-synth-val { color: #c2362b; font-size: 24px; }
.fc-tva2-synth-net--credit { background: #e6f6f0; }
.fc-tva2-synth-net--credit .fc-tva2-synth-lab, .fc-tva2-synth-net--credit .fc-tva2-synth-val { color: #0e8f6e; }
.fc-tva2-synth-cta { margin-left: auto; text-align: right; }
/* Short reason under the disabled CTA, instead of a hidden tooltip. */
.fc-tva2-cta-hint { font-size: 11.5px; line-height: 1.45; color: #97a0ad; margin-top: 8px; max-width: 250px; margin-left: auto; text-align: right; }
.fc-tva2-cta-hint i { color: #c3c9d4; }
/* Declaration page footer actions, right-aligned with even spacing. */
.fc-decl-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
/* TVA & CA period filter: align the Soumettre button on the inputs' baseline (bottom of the
   label+input group), not floated above them. */
.fc-tva-submit-col { display: flex; align-items: flex-end; }
.fc-tva-submit-col .fc-tvabtn { height: 38px; }
/* Du/Au date fields: sized to the date, not the column (were full col-4 width),
   and height matched to the Soumettre button (38px). */
input.fc-tva-date { width: 150px; max-width: 100%; height: 38px; }
/* "Du" / "Au" label inline with its input (was stacked above). */
.fc-tva-datefield { display: flex; align-items: center; gap: 8px; }
.fc-tva-datefield > label { white-space: nowrap; }
/* Period block: title (calendar) on top, then the Du/Au range + Appliquer, and the
   shortcut chips below. */
.fc-tva-period-head { margin-bottom: 14px; }
.fc-tva-period-title { font-size: 14px; font-weight: 700; color: #3e5569; margin: 0; display: flex; align-items: center; gap: 7px; }
.fc-tva-period-title i { color: #20aee3; font-size: 16px; }

/* PDF preview modal (Aperçu) */
.fc-pdfmodal { position: fixed; inset: 0; background: rgba(20,28,38,.55); display: none; align-items: center; justify-content: center; z-index: 1060; padding: 24px; }
.fc-pdfmodal.is-open { display: flex; }
.fc-pdfmodal-box { background: #fff; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.35); width: 100%; max-width: 920px; height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.fc-pdfmodal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 20px; border-bottom: 1px solid #eef0f4; }
.fc-pdfmodal-head > div { display: flex; align-items: center; gap: 10px; }
.fc-pdfmodal-title { font-weight: 700; font-size: 14px; color: #1f2d3d; }
.fc-pdfmodal-close { border: 0; background: none; font-size: 26px; line-height: 1; color: #9aa4b0; cursor: pointer; padding: 0 6px; }
.fc-pdfmodal-close:hover { color: #46525f; }
.fc-pdfmodal-body { flex: 1; position: relative; background: #f3f5f8; }
.fc-pdfmodal-body iframe { width: 100%; height: 100%; border: 0; }
.fc-pdfmodal-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #7b8493; font-size: 13px; padding: 20px; text-align: center; }

/* [ETAPE 3] fenêtre du premier choix du rythme de déclaration (page 1010) */
.fc-rythme-box { max-width: 560px; height: auto; }
.fc-rythme-form { padding: 20px 24px 22px; }
.fc-rythme-lead { font-size: 15px; color: #455a64; margin: 0 0 14px; }
.fc-rythme-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.fc-rythme-opt { position: relative; display: flex; flex-direction: column; gap: 4px; border: 1px solid #dfe5ea; border-radius: 8px; padding: 14px 16px; cursor: pointer; margin: 0; }
.fc-rythme-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.fc-rythme-opt b { font-size: 14px; color: #263238; }
.fc-rythme-opt span { font-size: 12.5px; color: #78909c; }
.fc-rythme-opt:hover { border-color: #20aee3; }
.fc-rythme-opt.on { border-color: #20aee3; box-shadow: 0 0 0 3px rgba(32,174,227,.15); }
.fc-rythme-help { font-size: 13px; color: #78909c; margin: 0 0 16px; }
.fc-rythme-foot { display: flex; justify-content: flex-end; }
.fc-rythme-foot button:disabled { opacity: .5; cursor: default; }
@media (max-width: 575px) { .fc-rythme-opts { grid-template-columns: 1fr; } }

/* [ETAPE 3] déclaration déposée : statut, cases en lecture, rappel après téléchargement, liste des périodes */
/* la couleur de l'état l'emporte sur la pastille neutre .fc-decl-pill, déclarée plus bas */
.fc-decl-pill.fc-decl-pill--filed { color: #0f9d7a; background: #e4f6f0; border-color: #c4e8dc; }
.fc-decl-pill.fc-decl-pill--todo { color: #E07B12; background: #fff3e4; border-color: #f6d7b0; }
.fc-decl-pill.fc-decl-pill--late { color: #c62828; background: #fdecea; border-color: #f5c6c3; }
.fc-decl-deadline.fc-is-filed { color: #0f9d7a; }
.fc-decl-inp--ro { background: #f6f8fa !important; border-color: #e3e8ec !important; color: #455a64; }
.fc-decl-filed-ask { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; padding: 10px 14px; border-radius: 6px; background: #e4f6f0; color: #1d6a5e; font-size: 14px; }
.fc-decl-check label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #455a64; cursor: pointer; margin: 0; }
.fc-decl-check input { margin: 0; }
.fc-decl-list td, .fc-decl-list th { vertical-align: middle; }
.fc-decl-list .fc-decl-pill { margin-right: 6px; }

/* [ETAPE 3] régularisations : complémentaires sous leur période, reprises de ligne 14, « À traiter » */
.fc-decl-sub td { background: #fbfcfd; font-size: 13px; }
.fc-decl-sub-label { padding-left: 28px !important; color: #6b7a86; }
.fc-decl-hint { font-size: 12px; color: #6b7a86; margin-top: 4px; text-align: left; }
.fc-decl-todo .fc-decl-link { font-weight: 600; }

/* [ETAPE 3] « Corriger ce paiement » : cadenas en tête de la fenêtre, lignes de correction repliées */
.fc-pay-lock { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border-radius: 6px; background: #f6f8fa; border: 1px solid #e3e8ec; }
.fc-pay-lock-icon { font-size: 22px; color: #E07B12; cursor: help; }
.fc-pay-lock-title { font-weight: 600; color: #2b3a44; }
.fc-pay-lock-sub { font-size: 12.5px; color: #6b7a86; }
.fc-pay-help { font-size: 13px; color: #455a64; margin-bottom: 14px; }
.fc-pay-corrected { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #1d6a5e; background: #e4f6f0; }
.fc-pay-corr-label { display: block; font-size: 11.5px; color: #6b7a86; }
.fc-pay-corr-detail td { background: #fbfcfd; }
.fc-pay-corr-detail.fc-hidden { display: none; }

/* [ETAPE 3] Réglages TVA : rythme de déclaration en bouton segmenté (celui de la bascule HT / TTC) */
.fc-tva-seg { display: inline-flex; background: #f2f5f8; border-radius: 6px; padding: 3px; white-space: nowrap; align-self: center; }
.fc-tva-seg a { padding: 5px 13px; border-radius: 4px; font-size: 13px; color: #67757c; text-decoration: none; }
.fc-tva-seg a.on { background: #fff; color: #20aee3; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 500; }

.fc-tva2-tile-lab { font-weight: 700; font-size: 12px; letter-spacing: .3px; margin-bottom: 4px; }
.fc-tva2-tile--fact .fc-tva2-tile-lab { color: #1c72b8; }
.fc-tva2-tile--enc .fc-tva2-tile-lab { color: #0e8f6e; }

.fc-tva2-fact { color: #1c72b8; }
.fc-tva2-enc { color: #0e8f6e; }
.fc-tva2-matrix th, .fc-tva2-matrix td { text-align: right; font-variant-numeric: tabular-nums; vertical-align: middle; }
.fc-tva2-matrix th:first-child, .fc-tva2-matrix td:first-child { text-align: left; }
.fc-tva2-matrix thead th { font-size: 12px; border-top: 0; }
.fc-tva2-matrix tr.fc-tva2-zero td { color: #c3c9d2; }
.fc-tva2-matrix tr.fc-tva2-matrix-total td { font-weight: 700; border-top: 2px solid #e3e7ee; }

.fc-tva2-tabs { display: flex; gap: 4px; border-bottom: 2px solid #e3e7ee; margin: 4px 0 14px; }
.fc-tva2-tab { padding: 9px 16px; font-size: 13px; font-weight: 600; color: #67757c; border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.fc-tva2-tab:hover { color: #1c9fd4; }
.fc-tva2-tab.fc-on { color: #1c9fd4; border-bottom-color: #1c9fd4; }
.fc-tva2-tab:focus { outline: none; box-shadow: none; }
.fc-tva2-tab:focus-visible { outline: 2px solid #bfe6f6; outline-offset: 2px; border-radius: 4px; }

@media print {
    /* les onglets ne concernent que l'écran : tout imprimer */
    .fc-tva2-pane { display: block !important; }
}

/* ============================================================
   Déclaration 1010 v2 — barre de période, bandeau résultat,
   états des champs (pages/tva/declaration.blade.php)
   ============================================================ */
.fc-decl-periodbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fc-decl-pill { background: #f1f3f7; border: 1px solid #e0e4ec; border-radius: 999px; padding: 4px 13px; font-size: 12.5px; font-weight: 600; color: #455261; }
.fc-decl-pill b { color: #1f2d3d; }
.fc-decl-link { color: #1c72b8; font-size: 12.5px; font-weight: 600; }
/* les onglets des pages TVA & CA (rapport, déclarations, échéances) et la page Échéances (décision du 05/11/2026) */
.fc-tvatabs { display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 18px; border-bottom: 1px solid #e3e8ee; }
.fc-tvatabs a { margin-bottom: -1px; padding: 10px 2px 12px; border-bottom: 2px solid transparent; font-size: 14px; color: #67757c; text-decoration: none; }
.fc-tvatabs a:hover, .fc-tvatabs a:focus { color: #1e9cd7; text-decoration: none; }
.fc-tvatabs a.on { border-bottom-color: #1e9cd7; color: #1e9cd7; font-weight: 500; }
.fc-due-table td { padding-top: 11px; padding-bottom: 11px; }
.fc-due-date { font-weight: 600; color: #2b333c; white-space: nowrap; }
.fc-due-table .fc-decl-pill { margin-right: 0; white-space: nowrap; }
.fc-due-empty { margin: 4px 0; font-size: 14px; color: #455261; }
.fc-due-note { margin: 12px 0 0; font-size: 12.5px; color: #77828f; }
/* le récapitulatif annuel : chiffres clés et échéance, échelle des tranches TPE, mois */
.fc-recap-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 24px; align-items: start; }
.fc-recap-kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.7fr); }
.fc-recap-kpi small { display: block; margin-bottom: 6px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #77828f; }
.fc-recap-kpi b { font-size: 21px; font-weight: 600; color: #2b333c; white-space: nowrap; }
.fc-recap-kpi span { display: block; margin-top: 4px; font-size: 12.5px; color: #77828f; }
.fc-recap-due { padding: 12px 16px; border-left: 3px solid #1e9cd7; border-radius: 0 6px 6px 0; background: #f5fafd; font-size: 13.5px; line-height: 1.55; color: #3e4a56; }
.fc-recap-due b { font-weight: 600; color: #2b333c; }
.fc-recap-h { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: #2b333c; }
.fc-recap-scale { position: relative; height: 8px; margin: 18px 6px 34px; border-radius: 4px; background: #eef1f5; }
.fc-recap-scale i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; background: #1e9cd7; }
.fc-recap-scale u { position: absolute; top: -5px; width: 2px; height: 18px; background: #c9d2dc; }
.fc-recap-scale em { position: absolute; top: 18px; transform: translateX(-50%); font-size: 11.5px; font-style: normal; color: #77828f; white-space: nowrap; }
.fc-recap-note { margin: 0 2px; font-size: 12.5px; color: #77828f; }
.fc-recap-warn { color: #b26a00; }
.fc-recap-warn i { margin-right: 6px; }
.fc-recap-future td { color: #a8b2bd; }
.fc-recap-total td { border-top: 2px solid #e3e7ee; font-weight: 600; }
@media (max-width: 900px) {
    .fc-recap-kpis, .fc-recap-kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-recap-due { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .fc-recap-table-wrap { overflow-x: auto; }
    .fc-recap-table th, .fc-recap-table td { white-space: nowrap; }
    .fc-recap-kpi b { font-size: 18px; }
}
@media (max-width: 640px) {
    .fc-tvatabs { flex-wrap: nowrap; gap: 14px; overflow-x: auto; }
    .fc-tvatabs a { font-size: 13px; white-space: nowrap; }
    .fc-tvatabs-more { display: none; }
    /* une échéance par carte : la date et l'état, la déclaration et le lien, puis la période */
    .fc-due-table thead { display: none; }
    .fc-due-table, .fc-due-table tbody { display: block; }
    .fc-due-table tr.fc-due-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "date state" "decl link" "period period"; gap: 4px 12px; padding: 12px 0; border-top: 1px solid #eef1f4; }
    .fc-due-table tr.fc-due-row:first-child { border-top: 0; }
    .fc-due-table tr.fc-due-row td { display: block; padding: 0; border: 0; }
    .fc-due-table tr.fc-due-row td:nth-child(1) { grid-area: date; }
    .fc-due-table tr.fc-due-row td:nth-child(2) { grid-area: decl; }
    .fc-due-table tr.fc-due-row td:nth-child(3) { grid-area: period; font-size: 13px; color: #77828f; }
    .fc-due-table tr.fc-due-row td:nth-child(4) { grid-area: state; text-align: right; }
    .fc-due-table tr.fc-due-row td:nth-child(5) { grid-area: link; text-align: right; }
}
.fc-decl-spacer { flex: 1; }
.fc-decl-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: #67757c; text-decoration: none; }
.fc-decl-back i { font-size: 16px; }
.fc-decl-back:hover, .fc-decl-back:focus { color: #1c9fd4; text-decoration: none; }

/* Light result banner — same white-card look as the report's synthesis card. */
.fc-decl-hero { background: #fff; border: 1px solid #e6e9f0; border-radius: 10px; box-shadow: 0 1px 3px rgba(31,45,61,.06); color: #2b3440; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.fc-decl-hero-lab { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: #7b8493; font-weight: 600; }
.fc-decl-hero-val { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; color: #c2362b; }
.fc-decl-hero-val.fc-is-credit { color: #0e8f6e; }
.fc-decl-hero-val small { font-size: 15px; font-weight: 600; color: #a2a7b5; }
.fc-decl-hero-sub { color: #7b8493; font-size: 12.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.fc-decl-hero-sub b { color: #1c1c30; font-weight: 600; }
.fc-decl-hero-side { text-align: right; }
.fc-decl-deadline { display: inline-block; background: #eef6fc; border: 1px solid #cfe7f7; color: #1c72b8; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 600; }
.fc-decl-deadline.fc-is-overdue { background: #fde7e4; border-color: #f3c7c1; color: #c2362b; }
.fc-decl-sources { font-size: 12.5px; color: #67757c; margin: 10px 2px 14px; }
.fc-decl-sources a { color: #1c72b8; font-weight: 600; }
/* Official DICP reference links (footer of the déclaration page) */
.fc-decl-refs { margin: 6px 0 4px; padding: 10px 14px; background: #f7f9fb; border: 1px solid #eef0f4; border-radius: 8px; font-size: 12px; color: #67757c; }
.fc-decl-refs-title { display: block; font-weight: 700; color: #46525f; margin-bottom: 5px; }
.fc-decl-refs ul { margin: 0; padding-left: 18px; }
.fc-decl-refs li { margin: 3px 0; }
.fc-decl-refs a { color: #1c72b8; }
.fc-decl-refs a:hover { text-decoration: underline; }

.fc-decl-wrap { position: relative; display: block; }
/* Badge inside the field on the LEFT (amounts are right-aligned, so this side is free) and
   vertically centred — the old top:-8px overlapped the border and the row above. */
.fc-decl-tag { position: absolute; top: 50%; left: 8px; transform: translateY(-50%); border: 0; border-radius: 4px; padding: 2px 6px; font-size: 9px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; display: none; line-height: 1; }
.fc-decl-wrap.fc-is-auto .fc-decl-tag { display: block; background: #e0f4ee; color: #0e8f6e; cursor: default; }
.fc-decl-wrap.fc-is-edited .fc-decl-tag { display: block; background: #fdf3d7; color: #b98900; cursor: pointer; }
.fc-decl-wrap.fc-is-edited .fc-decl-inp { border-color: #e8a13d; background: #fdf7ec; }
tr.fc-decl-opt td:not(.fc-tvadecl-num) { color: #8a94a1; font-size: 12.5px; }
tr.fc-decl-opt .fc-tvadecl-num { opacity: .55; }
tr.fc-decl-opt .form-control { border-style: dashed; background: #fcfcfd; }
.fc-decl-total { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: #1f2d3d; }
.fc-decl-total--due { color: #c2362b; }
   Fresh app-wide buttons — standard rectangular text buttons (primary blue +
   ghost secondary) get the modern look used on the TVA screens: rounded, a
   soft lift on the primary, a light hover on the ghost. Scoped with :not() so
   circular/icon buttons (.btn-circle, .btn-add-circle) keep their shape, and
   the semantic red/green outline buttons keep their colour (shape only).
   ============================================================ */
/* Smooth hover on EVERY button. NB: the primary changes its background COLOUR, and browsers do not
   animate the `background` shorthand — it must be `background-color`, which is why "Sauvegarder"
   snapped while the ghost (which animates color/border) looked fine. Set as a base !important rule
   so no theme declaration can drop it. */
.btn {
    transition: color .15s ease, background-color .15s ease,
                border-color .15s ease, box-shadow .15s ease, opacity .15s ease !important;
}
.btn-danger:not(.btn-circle):not(.btn-add-circle),
.btn-info:not(.btn-circle):not(.btn-add-circle),
.btn-secondary:not(.btn-circle):not(.btn-add-circle),
.btn-outline-secondary:not(.btn-circle):not(.btn-add-circle),
.btn-outline-danger:not(.btn-circle):not(.btn-add-circle),
.btn-outline-success:not(.btn-circle):not(.btn-add-circle),
.btn-outline-primary:not(.btn-circle):not(.btn-add-circle) {
    border-radius: 5px;
    font-weight: 600;
    padding: 9px 18px;
    line-height: 1.2;
}
.btn-sm.btn-danger:not(.btn-circle):not(.btn-add-circle),
.btn-sm.btn-info:not(.btn-circle):not(.btn-add-circle),
.btn-sm.btn-secondary:not(.btn-circle):not(.btn-add-circle),
.btn-sm.btn-outline-secondary:not(.btn-circle):not(.btn-add-circle),
.btn-sm.btn-outline-danger:not(.btn-circle):not(.btn-add-circle),
.btn-sm.btn-outline-success:not(.btn-circle):not(.btn-add-circle) {
    padding: 6px 13px;
    font-size: 12.5px;
}
/* primary (the theme's btn-danger/btn-info are both brand blue) */
.btn-danger:not(.btn-circle):not(.btn-add-circle),
.btn-info:not(.btn-circle):not(.btn-add-circle) {
    background: #20aee3 !important;
    border: 1px solid #20aee3 !important;
    color: #fff !important;
    box-shadow: none;
}
.btn-danger:not(.btn-circle):not(.btn-add-circle):hover,
.btn-danger:not(.btn-circle):not(.btn-add-circle):focus,
.btn-info:not(.btn-circle):not(.btn-add-circle):hover,
.btn-info:not(.btn-circle):not(.btn-add-circle):focus {
    background: #1aa6da !important;
    border-color: #1aa6da !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(32,174,227,.14);
}
/* ghost (secondary) */
.btn-secondary:not(.btn-circle):not(.btn-add-circle),
.btn-outline-secondary:not(.btn-circle):not(.btn-add-circle) {
    background: #fff !important;
    color: #5a6b7b !important;
    border: 1px solid #e2e7ef !important;
    box-shadow: 0 1px 2px rgba(31,45,61,.05);
}
.btn-secondary:not(.btn-circle):not(.btn-add-circle):hover,
.btn-secondary:not(.btn-circle):not(.btn-add-circle):focus,
.btn-outline-secondary:not(.btn-circle):not(.btn-add-circle):hover,
.btn-outline-secondary:not(.btn-circle):not(.btn-add-circle):focus {
    background: #eaf6fc !important;
    color: #1c9fd4 !important;
    border-color: #bfe6f6 !important;
}
/* Respect reduced-motion preferences: instant, no fade. */
@media (prefers-reduced-motion: reduce) {
    .btn { transition: none !important; }
}

/* --------------------------------------------------------------------------
   Required-field indicator
   The "*" after required labels is rendered via CSS (removed from the blade
   labels) so it can be coloured. Applies wherever custom.css loads (tenant +
   landlord); frontend does not load custom.css and has no required labels.
   -------------------------------------------------------------------------- */
label.required::after,
.control-label.required::after {
    content: "*";
    color: #1d96c3;
    margin-left: 2px;
}

/* Invoice / estimate line-item action buttons (Nouveau produit, section title, text block...)
   Softer look requested: a bit more vertical padding, rounder corners, and a tighter group
   indent (the theme sets a large 37px left padding + crushes the buttons to ~1px vertical via
   .btn-rounded-icon !important, so these need matching specificity + !important to win). */
.invoice .invoice-wrapper .invoice-item-actions,
.estimate .invoice-wrapper .invoice-item-actions {
    padding-left: 8px;
}
.invoice .invoice-wrapper .invoice-item-actions .btn,
.estimate .invoice-wrapper .invoice-item-actions .btn {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    border-radius: 10px !important;
}

/* ============================================================================
   [FENUACOMPTA] select2 restyle — give every select2 the "fc-sel" look (rounded
   control, floating rounded panel, accent hover, checkmark on the selected row)
   WITHOUT replacing select2, so search / optgroups / ajax / multi-select keep
   working. Accent #20aee3. custom.css loads after the theme, so these win by order.
   ============================================================================ */

/* --- single control (the closed box) --- */
.select2-container--bootstrap .select2-selection--single {
    background: #fff;
    border: 1px solid #d9dfe7;
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
    /* box model (height / padding / line-height) is left to the bootstrap theme so vertical
       centering and left padding stay consistent with the app's other form-control inputs */
}
.select2-container--bootstrap .select2-selection--single:hover { border-color: #bfe6f6; }
.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
    color: #2b3440;
}
.select2-container--bootstrap .select2-selection--single .select2-selection__placeholder { color: #9aa4b0; }

/* open / focus — accent ring like fc-sel */
.select2-container--bootstrap.select2-container--open .select2-selection--single,
.select2-container--bootstrap.select2-container--focus .select2-selection--single {
    border-color: #20aee3;
    box-shadow: 0 0 0 3px rgba(32, 174, 227, .15);
}
.select2-container--bootstrap .select2-selection { outline: none; } /* kill the native focus outline; accent ring is the indicator */

/* caret — replace select2's triangle with a thin chevron via ::after */
.select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
    top: 0;
    bottom: 0;
    right: 10px;
    width: 14px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.select2-container--bootstrap .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--bootstrap .select2-selection--single .select2-selection__arrow::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: -2px; /* optical centering of the down-chevron */
    border-right: 2px solid #9aa4b0;
    border-bottom: 2px solid #9aa4b0;
    transform: rotate(45deg);
    transition: transform .15s ease;
}
.select2-container--bootstrap.select2-container--open .select2-selection--single .select2-selection__arrow::after {
    margin-top: 2px;
    transform: rotate(-135deg);
}
.select2-container--bootstrap .select2-selection--single .select2-selection__clear { color: #9aa4b0; }
.select2-container--bootstrap .select2-selection--single .select2-selection__clear:hover { color: #fb7d88; }

/* --- the dropdown panel --- */
.select2-container--bootstrap .select2-dropdown {
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 45, 61, .14);
    padding: 5px;
    overflow: hidden;
    color: #46525f;
}
/* match the TVA fc-sel menu: float with a small gap (theme sets margin-top:-1px = flush), all corners rounded */
.select2-container--bootstrap .select2-dropdown--below { margin-top: 5px; }
.select2-container--bootstrap .select2-dropdown--above { margin-bottom: 5px; }

/* results: options, hover, selected (+ aligned checkmark column like fc-sel) */
.select2-container--bootstrap .select2-results__option {
    padding: 8px 11px;
    border-radius: 6px;
    font-size: 13px;
    color: #46525f;
}
.select2-container--bootstrap .select2-results__option[aria-selected]::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 12px;
    vertical-align: middle;
    background: no-repeat left center;
    background-size: 12px 12px;
}
.select2-container--bootstrap .select2-results__option[aria-selected="true"]::before {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%231c9fd4'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E");
}
.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
    background: #eaf6fc;
    color: #1c9fd4;
}
.select2-container--bootstrap .select2-results__option[aria-selected="true"] {
    background: transparent;
    color: #1c9fd4;
    font-weight: 600;
}

/* optgroup section header (the "sections" case) */
.select2-container--bootstrap .select2-results__group {
    padding: 8px 11px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa4b0;
}
/* the group wrapper <li> is itself a .select2-results__option — strip its option padding so
   only its header (.select2-results__group) and its child options carry spacing */
.select2-container--bootstrap .select2-results__option[role="group"] { padding: 0; }

/* search box inside the dropdown */
.select2-container--bootstrap .select2-search--dropdown { padding: 4px 4px 6px; }
.select2-container--bootstrap .select2-search--dropdown .select2-search__field {
    border: 1px solid #e0e5ec;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
}
.select2-container--bootstrap .select2-search--dropdown .select2-search__field:focus {
    border-color: #20aee3;
    box-shadow: 0 0 0 3px rgba(32, 174, 227, .12);
}

/* --- multi-select (tags): match the rounded control; chips already themed accent --- */
.select2-container--bootstrap .select2-selection--multiple {
    border: 1px solid #d9dfe7;
    border-radius: 8px;
    min-height: 38px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.select2-container--bootstrap.select2-container--open .select2-selection--multiple,
.select2-container--bootstrap.select2-container--focus .select2-selection--multiple {
    border-color: #20aee3;
    box-shadow: 0 0 0 3px rgba(32, 174, 227, .15);
}
.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice { border-radius: 5px; }

/* ===== Empty bill (invoice / estimate) state ===== */
.invoice-table-wrapper.fc-bill-empty {
    position: relative;
    min-height: 180px;
}
.fc-bill-skeleton-row {
    opacity: .5;
}
.fc-bill-skeleton-row td {
    border: 0;
    padding: 10px 12px;
}
.fc-bill-skeleton-line {
    display: flex;
    align-items: center;
    gap: 18px;
}
.fc-bill-skeleton-bar {
    display: inline-block;
    height: 11px;
    border-radius: 6px;
    background: linear-gradient(90deg, #edeef1 25%, #e3e5e9 37%, #edeef1 63%);
    background-size: 400% 100%;
    animation: fcBillShimmer 1.5s ease infinite;
}
.fc-bill-skeleton-bar--desc  { width: 38%; }
.fc-bill-skeleton-bar--sm    { width: 8%; }
.fc-bill-skeleton-bar--md    { width: 12%; }
.fc-bill-skeleton-bar--right { width: 12%; margin-left: auto; }
@keyframes fcBillShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.fc-bill-empty-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .70);
    z-index: 3;
}
.fc-bill-empty-card {
    max-width: 440px;
    text-align: center;
    padding: 18px 26px;
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20, 32, 43, .10);
}
.fc-bill-empty-icon {
    width: 38px; height: 38px;
    margin: 0 auto 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef2f7;
    color: #7a8695;
    font-size: 15px;
}
.fc-bill-empty-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1f2a37;
    margin-bottom: 4px;
}
.fc-bill-empty-text {
    font-size: 12.5px;
    line-height: 1.4;
    color: #6b7280;
    margin-bottom: 13px;
}
.fc-bill-empty-btn i {
    margin-right: 7px;
}

/* ─────────────────────────────────────────────────────────────────────────
   Dashboard "Dernière activité" — editorial feed. Scoped to .dashboard-events
   (rendered by pages/timeline/components/misc/dashboard-feed.blade.php); the
   shared project/lead timelines keep their original markup + styling.
   ───────────────────────────────────────────────────────────────────────── */
.dashboard-events.profiletimeline {
    padding-left: 0;
    margin: 16px 0 0;
    border-left: 0;
}
/* Onglet Activite d'une fiche client : il reprend ce style de fil, mais le theme fixe .dashboard-events a
   400 px de haut (pense pour le widget du tableau de bord). La liste debordait de la carte et le bouton
   « Voir plus », place apres ces 400 px, se retrouvait par-dessus les lignes. Hauteur libre ici seulement. */
#timeline-container.dashboard-events { height: auto; }
#timeline_see_more_button { text-align: center; padding: 18px 0 6px; }
.dashboard-events .sl-item.timeline {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 16px 2px;
    border-top: 1px solid #edf0f5;
}
.dashboard-events .sl-item.timeline:first-child {
    border-top: 0;
    padding-top: 4px;
}
/* icon node: soft teal circle with a Font Awesome type icon */
.dashboard-events .sl-left {
    float: none;
    margin: 1px 0 0;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e7f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dashboard-events .sl-left i {
    color: #12849f;
    font-size: 15px;
    line-height: 1;
}
.dashboard-events .sl-right {
    float: none;
    margin: 0;
    flex: 1;
    min-width: 0;
}
/* line 1: action (headline) + time (right) */
.dashboard-events .ev-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.dashboard-events .ev-action {
    font-size: 15px;
    font-weight: 700;
    color: #182230;
    letter-spacing: -.005em;
}
.dashboard-events .ev-time {
    margin-left: auto;
    font-size: 12.5px;
    color: #93a0b0;
    white-space: nowrap;
}
/* line 2: resource link · par who (muted) */
.dashboard-events .ev-sub {
    margin-top: 3px;
    font-size: 13px;
    color: #93a0b0;
}
.dashboard-events .ev-sub .x-description {
    display: inline;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}
.dashboard-events .ev-sub .x-description a {
    color: #0b7f9b;
    font-weight: 500;
    text-decoration: none;
}
.dashboard-events .ev-sub .x-description a:hover {
    text-decoration: underline;
}
.dashboard-events .x-description + .ev-who::before {
    content: '·';
    margin: 0 7px;
    color: #c9d2de;
}

/* ------------------------------------------------------------------ *
 * Client delete modal (loaded into #commonModal) — .fc-cd
 * ------------------------------------------------------------------ */
/* fixed body min-height so the loading spinner has room while the AJAX body loads (footer hidden,
   buttons live in the body) */
#commonModalContainer.fc-cd-modal #commonModalBody {
    min-height: 200px;
}
.fc-cd {
    text-align: left;
    padding: 10px 6px 6px;
}
/* no-documents state: a compact, centred confirmation reads better than a sparse left-aligned block */
.fc-cd.fc-cd--empty {
    text-align: center;
}
.fc-cd-icon {
    width: 54px;
    height: 54px;
    margin: 2px auto 16px;
    border-radius: 50%;
    background: #fdecec;
    color: #e0505a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}
.fc-cd-lead {
    font-size: 16px;
    font-weight: 700;
    color: #2b3648;
    margin: 0 0 4px;
}
.fc-cd-sub {
    font-size: 13px;
    color: #7a8494;
    margin: 0 0 12px;
}
.fc-cd-summary {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    text-align: left;
}
.fc-cd-summary li {
    display: flex;
    align-items: baseline;
    padding: 9px 14px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #5a6472;
    background: #fafbfc;
    border: 1px solid #eef1f4;
    border-radius: 8px;
}
.fc-cd-n {
    font-weight: 700;
    color: #2b3648;
    font-size: 15px;
    min-width: 26px;
}
.fc-cd-label {
    color: #5a6472;
}
.fc-cd-amount {
    margin-left: auto;
    font-weight: 600;
    color: #2b3648;
    font-variant-numeric: tabular-nums;
}
.fc-cd-note {
    font-size: 13px;
    color: #7a8494;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* ------------------------------------------------------------------ *
 * Bill recycle bin modal (invoices/estimates toolbar) — .fc-arch
 * ------------------------------------------------------------------ */
.fc-arch-sub { font-size: 13px; color: #8a94a2; margin: 0 0 20px; line-height: 1.5; }
.fc-arch-tablewrap { overflow-x: auto; }
.fc-arch-table { width: 100%; border-collapse: collapse; }
/* borderless & clean — kill any inherited table borders, keep only horizontal row dividers */
.fc-arch-table th, .fc-arch-table td { border: none !important; background: transparent; }
.fc-arch-table thead th { text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #929cab; font-weight: 600; padding: 11px 16px; background: #f6f8fa; border: none !important; border-bottom: 1px solid #eef1f4 !important; white-space: nowrap; }
.fc-arch-table thead th.ta-r, .fc-arch-table td.ta-r { text-align: right; }
.fc-arch-table tbody td { padding: 15px 16px; font-size: 13px; color: #5a6472; border-bottom: 1px solid #f2f4f7 !important; vertical-align: middle; }
.fc-arch-table tbody tr:last-child td { border-bottom: none !important; }
.fc-arch-table tbody tr:hover td { background: #f8fafc; }
.fc-arch-num { font-weight: 700; color: #2b3648; font-size: 13.5px; white-space: nowrap; }
.fc-arch-muted { color: #98a2b0; font-size: 12.5px; }
.fc-arch-amt { font-weight: 600; color: #2b3648; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-arch-actions { text-align: right; white-space: nowrap; }
.fc-arch-empty { text-align: center; padding: 54px 20px; color: #8a94a2; font-size: 14px; }
.fc-arch-empty-ico { width: 56px; height: 56px; border-radius: 50%; background: #f1f4f7; color: #9aa4b2; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; }

/* Archive modal (invoice/estimate trash → #commonModal): keep a fixed body height so the loading
   spinner has room while the AJAX body loads (the footer is hidden, buttons live in the body). */
#commonModalContainer.fc-arch-modal #commonModalBody { min-height: 200px; padding-top: 8px; }
/* the theme forces .modal-header min-height:58px — tighten the title→content gap for the bin modal */
#commonModalContainer.fc-arch-modal .modal-header { min-height: auto; padding-bottom: 4px; }
/* commonModal title: the theme's h4 line-height is tight (22px on an 18px font), so accents (é)
   in a modal title clip at the rounded top edge (e.g. "Créer une nouvelle facture"). Give it room. */
#commonModal .modal-header { padding-top: 20px; }
#commonModal .modal-header .modal-title { line-height: 1.5; margin: 0; }
/* sortable column headers */
.fc-arch-sort { color: inherit; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.fc-arch-sort:hover { color: #5a6472; }
.fc-arch-sort-ico { font-size: 9px; opacity: .45; }
.fc-arch-sort.is-active { color: #5a6472; }
.fc-arch-sort.is-active .fc-arch-sort-ico { opacity: 1; color: #4aa3d6; }

/* ------------------------------------------------------------------ *
 * Client detail left panel (pages/client/components/misc/leftpanel) — "profil épuré"
 * ------------------------------------------------------------------ */
.fc-cp-top { padding: 22px 22px 20px; text-align: center; background: #eef3f6; }
.fc-cp-logo { margin-bottom: 12px; }
.fc-cp-logo img { max-height: 42px; max-width: 72%; object-fit: contain; }
.fc-cp-name { font-size: 18px; font-weight: 600; letter-spacing: .01em; color: #5a6472; margin: 0; line-height: 1.3; }
.fc-cp-pill { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.fc-cp-pill.cat { background: #efedfc; color: #7b71e4; }
.fc-cp-pill.ok { background: #e9f6ef; color: #34a96f; }
.fc-cp-pill.ko { background: #fdeeee; color: #e0616a; }
.fc-cp-sep { height: 1px; background: #eef1f5; margin: 4px 22px; }
.fc-cp-rows { padding: 18px 22px 8px; display: flex; flex-direction: column; gap: 16px; }
.fc-cp-row { display: flex; flex-direction: column; gap: 4px; }
.fc-cp-lbl { display: block; font-size: 11px; font-weight: 500; letter-spacing: .01em; color: #9aa6b2; }
.fc-cp-val { font-size: 14.5px; font-weight: 500; color: #4a5561; word-break: break-word; }
.fc-cp-val.muted { color: #b7c0ca; font-weight: 400; }
.fc-cp-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.fc-cp-tags .fc-cp-tag { font-size: 11px; font-weight: 600; color: #5a6472; background: #f0f2f6; border-radius: 20px; padding: 3px 10px; }
.fc-cp-money { padding: 18px 22px; display: flex; flex-direction: column; gap: 20px; }
.fc-cp-mrow { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 18px; }
.fc-cp-mlabel { font-size: 14px; font-weight: 500; color: #7a8494; white-space: nowrap; }
.fc-cp-mval { text-align: right; }
.fc-cp-amt { font-size: 16px; font-weight: 700; color: #46515f; line-height: 1; white-space: nowrap; }
.fc-cp-bar { height: 3px; border-radius: 3px; margin-top: 9px; width: 88px; margin-left: auto; }
.fc-cp-bar.inv { background: #20aee3; }
.fc-cp-bar.pay { background: #26cdad; }
.fc-cp-addr { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 4px; }

/* ===== Activity log page (full "Voir tout" activity table) ===== */
/* "Voir tout" link on the dashboard activity widget heading */
.fc-view-all { font-size: 12.5px; font-weight: 500; color: #20aee3; white-space: nowrap; }
.fc-view-all:hover { color: #1794c2; text-decoration: none; }

/* filter bar */
.fc-activity-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #eef1f5; }
.fc-activity-filters .pickadate { width: 150px; }
.fc-activity-filters .select2-container { min-width: 180px; }
.fc-activity-filters .btn { white-space: nowrap; }

/* sortable table */
.fc-activity-table thead th { border-top: 0; border-bottom: 1px solid #eef1f5; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #9aa6b2; padding: 10px 12px; }
.fc-activity-table td { vertical-align: middle; padding: 13px 12px; border-top: 1px solid #f2f4f7; }
.fc-activity-table .fc-act-sort { color: #9aa6b2; }
.fc-activity-table .fc-act-sort:hover { color: #46515f; text-decoration: none; }
.fc-act-c-action { white-space: nowrap; }
.fc-act-ico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf6fb; color: #20aee3; margin-right: 10px; vertical-align: middle; }
.fc-act-ico i { font-size: 14px; }
.fc-act-label { font-weight: 600; color: #46515f; vertical-align: middle; }
.fc-act-c-item .x-description { margin: 0; }
.fc-act-c-item a { color: #20aee3; }
.fc-act-c-user { color: #6a7583; }
.fc-act-c-date { color: #9aa6b2; font-size: 13px; white-space: nowrap; }


/* ============================================================================
 * [Settings > Détails de l'entreprise] grouped-section layout.
 * Replaces the old full-width stacked inputs (fine on mobile, far too wide on
 * desktop) with themed sections + a 2-column grid, capped so fields fit content.
 * Bootstrap .form-row / .col-md-6 handle the responsive columns (stack on mobile).
 * ==========================================================================*/
.fc-company-form { max-width: 1100px; }
/* sections tile into 2 balanced columns on desktop, using the horizontal space; break-inside
   keeps each section whole; collapses to a single column below the lg breakpoint. */
.fc-company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; align-items: start; }
/* white cards with a light crisp border (no shadow, no grey fill) — distinguishes the four
   groups cleanly and stays light; the border is the only delineation. */
.fc-company-section { background: #fff; border: 1px solid #dde4ec; border-radius: 10px; padding: 20px 22px 8px; }
/* header: accent icon chip + label */
.fc-company-section-title { display: flex; align-items: center; gap: 11px; margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #46586b; }
.fc-company-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: #e7f6fc; color: #20aee3; font-size: 13px; }
.fc-company-hint { margin: -8px 0 18px; font-size: 12.5px; color: #9aa5b1; }
/* tiny help note (under an input, or under a section title), with a leading (i) icon */
.fc-company-note { display: flex; align-items: flex-start; gap: 6px; margin: 6px 2px 12px; font-size: 11px; line-height: 1.45; color: #9aa5b1; }
.fc-company-note i { flex: 0 0 auto; margin-top: 2px; font-size: 10.5px; color: #20aee3; }
.fc-company-narrow { max-width: 320px; }
@media (max-width: 991.98px) { .fc-company-grid { grid-template-columns: 1fr; } }

/* ============================================================================
 * [Settings home] card-grid landing (replaces the empty "select an item" page).
 * Cards open sections via the existing AJAX nav mechanism (data-url).
 * ==========================================================================*/
.fc-settings-home { max-width: 1120px; }
.fc-settings-intro { margin-bottom: 6px; }
.fc-settings-intro h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #2b3542; }
.fc-settings-intro p { margin: 0; font-size: 14px; color: #8a95a3; }
.fc-settings-group { display: flex; align-items: center; gap: 12px; margin: 26px 0 13px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa5b1; }
.fc-settings-group::after { content: ""; flex: 1; height: 1px; background: #e7ebf1; }
.fc-settings-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fc-settings-card { display: flex; gap: 13px; align-items: flex-start; padding: 15px 16px; border: 1px solid #e4e9f0; border-radius: 11px; background: #fff; text-decoration: none; color: inherit; transition: border-color .12s ease, box-shadow .12s ease; }
.fc-settings-card:hover, .fc-settings-card:focus { border-color: #20aee3; box-shadow: 0 6px 18px rgba(32, 174, 227, .12); text-decoration: none; color: inherit; }
.fc-settings-ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: #e7f6fc; color: #20aee3; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.fc-settings-txt { display: flex; flex-direction: column; min-width: 0; }
.fc-settings-tt { font-size: 14px; font-weight: 700; color: #2b3542; margin-bottom: 3px; }
.fc-settings-ds { font-size: 12px; color: #7c8794; line-height: 1.4; }
@media (max-width: 900px) { .fc-settings-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fc-settings-cards { grid-template-columns: 1fr; } }

/* [Settings] "Quitter" exit control in the dark top-left header — a clean pill button */
.exit-panel { display: flex; align-items: center; height: 100%; padding: 0 14px; margin: 0; }
.fc-exit-settings { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #d6e8f4 !important; font-size: 13.5px; font-weight: 600; line-height: 1; transition: background .12s ease, color .12s ease; }
.fc-exit-settings:hover, .fc-exit-settings:focus { background: rgba(255, 255, 255, .16); color: #fff !important; text-decoration: none; }
.fc-exit-settings i { font-size: 14px; color: inherit; }
/* [Settings] make the "Réglages" breadcrumb crumb read as a clickable link (back to the card overview) */
.settings-crumb-link a { color: #20aee3; }
.settings-crumb-link a:hover { color: #1183ab; text-decoration: underline; }

/* [Settings] "Accueil des réglages" button in the white top bar — same dark-pill style as "Quitter"
   (cog icon), offset a little to the right. No .nav-link class so the theme font can't inflate it. */
.fc-settings-home-top { display: inline-flex; align-items: center; gap: 9px; margin-left: 24px; padding: 8px 16px; border-radius: 8px; background: #3a4759; color: #d6e8f4; font-size: 13.5px; font-weight: 600; line-height: 1; transition: background .12s ease, color .12s ease; }
.fc-settings-home-top i { font-size: 13px; color: inherit; }
.fc-settings-home-top:hover, .fc-settings-home-top:focus { background: #47566c; color: #fff; text-decoration: none; }
/* keep the label on one line so it can't wrap and break the header */
.fc-settings-home-top { white-space: nowrap; }
@media (max-width: 767px) {
    /* the "Accueil des réglages" quick-link overflows the phone header, and the left menu +
       the "Réglages" breadcrumb already cover settings navigation — drop it on phones */
    .fc-settings-home-top { display: none; }
    /* on mobile the dark sidebar is hidden, so "Quitter" (light colour) sat on the white top bar
       and was invisible — give it a readable dark treatment */
    .fc-exit-settings { background: #eef1f5; color: #46586b !important; }
    .fc-exit-settings i { color: #46586b; }
}

/* ============================================================================
 * [Settings > Logo] one logo + live invoice preview (desktop only).
 * ==========================================================================*/
.fc-logo-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.fc-logo-card { background: #fff; border: 1px solid #dde4ec; border-radius: 11px; padding: 22px 24px; }
.fc-logo-title { display: flex; align-items: center; gap: 11px; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #46586b; }
.fc-logo-ico { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: #e7f6fc; color: #20aee3; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.fc-logo-hint { margin: 0 0 18px; font-size: 12.5px; color: #9aa5b1; }
.fc-logo-frame { border: 1px dashed #dbe2ea; border-radius: 10px; background: #fbfcfd; display: flex; align-items: center; justify-content: center; height: 130px; margin-bottom: 18px; }
.fc-logo-frame img { max-width: 72%; max-height: 74px; }
.fc-logo-meta { margin: 16px 0 0; font-size: 12px; color: #9aa5b1; line-height: 1.6; }
.fc-logo-meta b { color: #7c8794; }
/* live invoice preview */
.fc-logo-preview { border: 1px solid #dde4ec; border-radius: 11px; background: linear-gradient(180deg, #f3fbfe, #fff); overflow: hidden; }
.fc-logo-preview-cap { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa5b1; padding: 12px 18px; border-bottom: 1px solid #e7ebf1; }
.fc-logo-preview-cap i { color: #20aee3; margin-right: 6px; }
.fc-logo-doc { background: #fff; margin: 18px; border: 1px solid #eef1f5; border-radius: 8px; box-shadow: 0 8px 22px rgba(20, 30, 45, .09); padding: 22px 22px 26px; }
.fc-logo-doc-logorow { margin-bottom: 18px; }
.fc-logo-doc-logo { max-width: 160px; max-height: 48px; }
.fc-logo-doc-addr { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.fc-logo-doc-client { text-align: right; }
.fc-logo-doc-coname { font-size: 13px; font-weight: 700; color: #20aee3; margin-bottom: 4px; }
.fc-logo-doc-coname--dark { color: #2b3542; }
.fc-logo-doc-clabel { font-size: 11px; font-weight: 700; color: #2b3542; margin-bottom: 3px; }
.fc-logo-doc-addrtxt { font-size: 11px; color: #8a95a3; line-height: 1.6; }
.fc-logo-doc-title { font-size: 22px; font-weight: 800; color: #2b3542; letter-spacing: 1px; }
.fc-logo-doc-meta { font-size: 11px; color: #9aa5b1; margin-top: 2px; }
/* line-items table skeleton (mirrors the invoice: Description / Qté / P.U. / Montant) */
.fc-logo-doc-table { margin-top: 18px; }
.fc-logo-doc-tr { display: grid; grid-template-columns: 1fr 40px 60px 66px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f2f4f7; }
.fc-logo-doc-tr > * { justify-self: end; }
.fc-logo-doc-tr > *:first-child { justify-self: start; }
.fc-logo-doc-tr--head { padding: 7px 0; border-bottom: 1px solid #e7ebf1; }
.fc-logo-doc-tr--head span { font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b7c0cb; }
/* shimmering skeleton bars */
.fc-sk { display: block; height: 8px; border-radius: 5px; background: linear-gradient(90deg, #eef1f5 25%, #f6f8fb 37%, #eef1f5 63%); background-size: 400% 100%; animation: fcSkShimmer 1.4s ease infinite; }
.fc-sk-lg { width: 88%; }
.fc-sk-md { width: 62%; }
.fc-sk-n { width: 30px; }
.fc-sk-num { width: 56px; }
.fc-sk--accent { background: linear-gradient(90deg, #bfe6f6 25%, #ddf2fb 37%, #bfe6f6 63%); background-size: 400% 100%; }
@keyframes fcSkShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .fc-sk { animation: none; } }
/* totals block (right-aligned, like the invoice) */
.fc-logo-doc-totals { margin: 16px 0 0 auto; width: 210px; }
.fc-logo-doc-totrow { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 11px; color: #8a95a3; }
.fc-logo-doc-totrow--grand { border-top: 1px solid #e7ebf1; margin-top: 4px; padding-top: 9px; font-size: 13px; font-weight: 700; color: #2b3542; }
@media (max-width: 860px) { .fc-logo-wrap { grid-template-columns: 1fr; } .fc-logo-preview { display: none; } }

/* single app logo in the sidebar header — shown expanded (185px) AND collapsed (scaled to ~50px) */
/* Single sidebar logo (from the /logos page) — cap BOTH dimensions so any aspect
   ratio (wide wordmark or near-square mark) fits the header without overflowing
   onto the menu. width/height auto keeps the aspect ratio; the smaller cap wins. */
.fix-sidebar .fc-app-logo { display: inline-block; width: auto; height: auto; max-width: 185px; max-height: 46px; }
.fix-sidebar.mini-sidebar .fc-app-logo { max-width: 48px; max-height: 40px; }
/* ===== Bon de sortie (goods-issue note) — .fc-bs ===== */
/* create form: articles as stacked cards (mobile-first, never scrolls sideways) */
/* create header: number of the note about to be created, right on desktop, under the title on mobile */
.fc-bs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; }
.fc-bs-next-num { margin-left: auto; font-size: 18px; color: #8a95a3; }
.fc-bs-submit-num { margin-right: 12px; font-size: 13px; color: #8a95a3; }
@media (max-width: 767px) {
  .fc-bs-head h3 { flex-basis: 100%; }
  .fc-bs-next-num { margin-left: 0; margin-top: -6px; font-size: 15px; }
}
.fc-bs-cards { display: flex; flex-direction: column; gap: 10px; }
.fc-bs-card { border: 1px solid #e9edf2; border-radius: 10px; background: #fbfcfe; padding: 12px; }
.fc-bs-card .select2-container { width: 100% !important; min-width: 0; }
.fc-bs-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.fc-bs-qty { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid #d7dee6; border-radius: 8px; overflow: hidden; background: #fff; }
.fc-bs-qty-btn { border: 0; background: #f2f6fa; color: #2b3542; width: 40px; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-user-select: none; user-select: none; }
.fc-bs-qty-btn:hover { background: #e6edf4; }
.fc-bs-qty-btn:active { background: #d9e3ec; }
.fc-bs-qty-input { border: 0; width: 62px; text-align: center; font-size: 15px; font-weight: 600; color: #2b3542; -moz-appearance: textfield; }
.fc-bs-qty-input:focus { outline: 0; }
.fc-bs-qty-input::-webkit-outer-spin-button, .fc-bs-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fc-bs-del { border: 0; background: #fdecec; color: #e0554e; width: 40px; height: 40px; border-radius: 8px; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.fc-bs-del:hover { background: #f9dad9; color: #d23b33; }
/* detail: read-only article list (name -> quantity + unit, no prices; stacks fine on mobile) */
.fc-bs-lines-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #9aa6b2; margin: 22px 0 10px; }
.fc-bs-lines { border: 1px solid #eef1f5; border-radius: 10px; overflow: hidden; }
.fc-bs-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid #f2f4f7; }
.fc-bs-line:last-child { border-bottom: 0; }
.fc-bs-line:nth-child(even) { background: #fbfcfe; }
.fc-bs-line-name { font-weight: 500; color: #2b3542; }
.fc-bs-line-qty { flex: 0 0 auto; font-weight: 700; color: #2b3542; white-space: nowrap; }
.fc-bs-line-unit { font-weight: 500; color: #9aa6b2; font-size: 12.5px; margin-left: 5px; }
.fc-bs-sigwrap { border: 1px dashed #cfd8e0; border-radius: 8px; background: #fff; overflow: hidden; }
.fc-bs-sig { width: 100%; height: 190px; display: block; touch-action: none; cursor: crosshair; }
.fc-bs-error { font-size: 13px; font-weight: 500; }
.fc-bs .select2-container { min-width: 200px; }
/* history table: headers + status badge inherit the app's list-table + label styling via .contact-list
   and .label-outline-success (see wrapper/ajax). Cell links use the theme blue like the BS number. */
.fc-bs-msort { margin-bottom: 14px; }
.fc-bs-msort label { display: block; font-size: 12px; font-weight: 600; color: #9aa6b2; margin-bottom: 4px; }
/* filter bar (same layout as the activity table's .fc-activity-filters) */
.fc-bs-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #eef1f5; }
.fc-bs-filters .pickadate { width: 140px; }
.fc-bs-filters .select2-container { min-width: 180px; }
.fc-bs-filters .btn { white-space: nowrap; }
/* borderless row-action icons (view / archive / unarchive) */
.fc-bs-act { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; font-size: 17px; line-height: 1; cursor: pointer; opacity: .8; vertical-align: middle; }
.fc-bs-act:hover { opacity: 1; }
.fc-bs-act:focus { outline: 0; }
/* detail */
.fc-bs-detail-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #eef1f5; }
.fc-bs-detail-num { font-size: 20px; font-weight: 700; color: #2b3542; }
.fc-bs-lock { font-size: 11.5px; color: #9aa6b2; margin-left: 8px; }
.fc-bs-lock i { font-size: 11px; }
.fc-bs-meta { width: 100%; }
.fc-bs-meta td { padding: 6px 0; font-size: 14px; vertical-align: top; }
.fc-bs-meta-k { width: 130px; color: #9aa6b2; font-size: 12.5px; }
.fc-bs-doc-icon { font-size: 40px; color: #20aee3; margin: 8px 0 6px; }
.fc-bs-doc-name { font-size: 15px; font-weight: 600; color: #2b3542; }
.fc-bs-table td a { color: #20aee3; }
.fc-bs-table td a b { color: #20aee3; }

/* mobile (employee's phone): turn the history table into stacked cards so it never scrolls sideways.
   Each row becomes a card and each cell shows its data-label -> value. Headers are hidden (sorting is
   provided by .fc-bs-msort above the list). */
@media (max-width: 767px) {
    .fc-bs-table thead { display: none; }
    .fc-bs-table, .fc-bs-table tbody, .fc-bs-table tfoot, .fc-bs-table tr, .fc-bs-table td { display: block; width: 100%; }
    .fc-bs-table tbody tr { border: 1px solid #e9edf2; border-radius: 10px; background: #fff; margin-bottom: 10px; padding: 4px 2px; box-shadow: 0 1px 2px rgba(20,34,54,.03); }
    .fc-bs-table tbody td { border: 0 !important; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px; text-align: right; white-space: normal; }
    .fc-bs-table tbody td::before { content: attr(data-label); flex: 0 0 auto; color: #9aa6b2; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; text-align: left; }
    .fc-bs-table tbody td:first-child { border-bottom: 1px solid #f2f4f7 !important; padding-bottom: 10px; margin-bottom: 2px; }
    .fc-bs-table tbody td:first-child a b { font-size: 15px; }
    .fc-bs-table tfoot td { text-align: center; padding: 6px 0; border: 0 !important; }
    /* the row actions are cramped in a card; hide them and let a tap open the detail instead */
    .fc-bs-table tbody td[data-label="Actions"] { display: none; }
    .fc-bs-table tbody tr.fc-bs-row-link { cursor: pointer; }
    /* filter bar: stack every control full-width so it never wraps awkwardly */
    .fc-bs-filters { flex-direction: column; align-items: stretch; }
    .fc-bs-filters > *, .fc-bs-filters .pickadate { width: 100%; }
    .fc-bs-filters .select2-container { width: 100% !important; min-width: 0; }
}
/* small screens: keep the create-form signature + detail meta comfortable */
@media (max-width: 640px) {
    .fc-bs-sig { height: 200px; }
    .fc-bs-meta-k { width: 100px; }
}

/* ============================================================
   [FENUACOMPTA] Réglages › Fiscalité (page unique, décision du 05/11/2026) : la TVA et l'exercice en cartes
   légères, une tuile par section, une ligne par réglage (titre, au besoin une courte phrase, choix à droite).
   Bouton segmenté doux .fc-tva-seg ; avertissements en une ligne. Préfixe .fc-fisc-.
   ============================================================ */
.fc-tva-ic {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.fc-tva-ic-sm { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
.fc-tva-ic-brand { background: #e8f3fc; color: #2b7fbd; }
.fc-fisc { max-width: 860px; }
.fc-fisc-section + .fc-fisc-section { margin-top: 26px; }
.fc-fisc-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.fc-fisc-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: #2b333c; }
.fc-fisc-card { background: #fff; border: 1px solid #e8edf2; border-radius: 12px; padding: 0 22px; }
.fc-fisc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 24px; align-items: center; padding: 15px 0; }
.fc-fisc-row + .fc-fisc-row { border-top: 1px solid #eef1f4; }
.fc-fisc-row b { display: block; font-size: 14px; font-weight: 600; color: #2b333c; }
.fc-fisc-row small { display: block; font-size: 12.5px; color: #8a96a3; margin-top: 2px; }
.fc-fisc-row small a { color: #2b7fbd; }
.fc-fisc-row select { min-width: 230px; }
.fc-fisc-row .switch { margin: 0; }
.fc-fisc-row .switch .lever { margin-left: 0; margin-right: 0; }
.fc-fisc-warn { grid-column: 1 / -1; font-size: 12.5px; color: #b26a00; }
.fc-fisc-warn i { margin-right: 6px; }
.fc-fisc-warn a { color: inherit; text-decoration: underline; }
@media (max-width: 640px) {
    .fc-fisc-card { padding: 0 16px; }
    .fc-fisc-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .fc-fisc-row select { min-width: 0; width: 100%; }
}
/* questionnaire « Bien démarrer avec tes impôts » : sur la page, à la place des réglages tant qu'il n'est pas fait, sans
   carte autour ; les choix de la page 1010 (.fc-rythme-opt) en liste, rond de sélection et trait fin comme les lignes des
   réglages ; le lien pour le refaire se place sur la ligne du titre */
.fc-fisc-quiz { display: flex; align-items: center; justify-content: flex-end; height: 25px; margin: -43px 0 18px; font-size: 13px; }
.fc-fisc-quiz a { color: #2b7fbd; }
.fc-quiz { max-width: 600px; }
.fc-quiz-head { justify-content: flex-end; margin-bottom: 4px; }
.fc-quiz-head a { font-size: 13px; color: #2b7fbd; }
.fc-quiz-count { font-size: 12px; font-weight: 600; color: #90a4ae; margin: 0 0 6px; }
.fc-quiz .fc-rythme-lead { font-size: 17px; font-weight: 600; color: #2b333c; margin-bottom: 16px; }
.fc-quiz-opts { grid-template-columns: 1fr; }
.fc-quiz .fc-rythme-opts { gap: 0; margin-bottom: 18px; border-top: 1px solid #eef1f4; border-bottom: 1px solid #eef1f4; }
.fc-quiz .fc-rythme-opt { padding: 13px 12px 13px 44px; border: 0; border-radius: 0; }
.fc-quiz .fc-rythme-opt + .fc-rythme-opt { border-top: 1px solid #eef1f4; }
.fc-quiz .fc-rythme-opt::before { content: ''; position: absolute; left: 12px; top: 15px; width: 18px; height: 18px; border: 2px solid #c5d0da; border-radius: 50%; background: #fff; }
.fc-quiz .fc-rythme-opt:hover, .fc-quiz .fc-rythme-opt:focus-within { background: #f7fafc; }
.fc-quiz .fc-rythme-opt.on { background: #f1f9fd; box-shadow: none; }
.fc-quiz .fc-rythme-opt.on::before { border-color: #20aee3; background: #20aee3; box-shadow: inset 0 0 0 3px #fff; }
.fc-quiz-mois { max-width: 280px; margin: -4px 0 14px; }
.fc-quiz-sum { margin: 0 0 14px; padding: 0; list-style: none; border-top: 1px solid #eef1f4; border-bottom: 1px solid #eef1f4; }
.fc-quiz-sum li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 13px 12px; font-size: 14px; font-weight: 600; color: #263238; }
.fc-quiz-sum li + li { border-top: 1px solid #eef1f4; }
.fc-quiz-sum li span { font-size: 13px; font-weight: 400; color: #78909c; }
.fc-quiz-foot { display: flex; align-items: center; justify-content: flex-end; }
.fc-quiz-foot .fc-tvabtn + .fc-tvabtn { margin-left: 0; }
.fc-quiz-foot button:disabled { opacity: .5; cursor: default; }
.fc-quiz-back { margin-right: 10px; border: 0; background: none; font-size: 13px; color: #78909c; }

/* ============================================================
   [FENUACOMPTA] TVA 1010 declaration — Pro gate. Non-Pro tenants can OPEN the page
   but it is read-only, dimmed, with an upgrade overlay. The PDF is blocked server-side.
   ============================================================ */
.fc-decl-locked { position: relative; }
/* block interaction with everything except the overlay itself */
.fc-decl-locked > :not(.fc-decl-lock) { pointer-events: none; user-select: none; }
.fc-decl-lock {
    position: absolute; inset: 0; z-index: 20;
    display: flex; justify-content: center; align-items: flex-start;
    background: rgba(240, 243, 247, .35);
    -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
.fc-decl-lock-card {
    position: sticky; top: 96px; margin: 12vh 16px 0; max-width: 460px; width: 100%;
    background: #fff; border: 1px solid #e4e9f0; border-radius: 16px;
    box-shadow: 0 12px 44px rgba(20, 30, 45, .18); padding: 30px 28px; text-align: center;
}
.fc-decl-lock-ic {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: #e8f3fc; color: #2b7fbd; font-size: 26px;
}
.fc-decl-lock-title { margin: 0 0 10px; font-size: 19px; font-weight: 750; color: #2b333c; }
.fc-decl-lock-text { margin: 0 0 20px; color: #77828f; font-size: 14px; line-height: 1.55; }
.fc-decl-lock-cta { display: inline-flex; }

/* ============================================================
   [FENUACOMPTA] Shared pricing cards (.fc-pc-) for the TENANT app surfaces:
   myaccount (current plan) + packages (change plan). Mirrors the /pricing design
   (same feature partial). Keep in sync with the frontend theme's copy.
   ============================================================ */
.fc-pc-grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; }
.fc-pc-grid > .fc-pc-cardwrap { flex: 1 1 300px; max-width: 380px; display: flex; }
.fc-pc-card { position: relative; background: #fff; border: 1px solid #e9eef5; border-radius: 18px; padding: 26px 24px 24px; display: flex; flex-direction: column; width: 100%; box-shadow: 0 1px 2px rgba(20,30,45,.03), 0 10px 30px rgba(20,40,70,.05); }
.fc-pc-card.is-current { border-color: #18b898; box-shadow: 0 0 0 1px #18b898, 0 12px 30px rgba(24,184,152,.12); }
.fc-pc-current { position: absolute; top: -11px; left: 24px; background: linear-gradient(135deg, #18b898, #12a486); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.fc-pc-plan { font-size: 13px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: #67748b; margin: 0 0 8px; }
.fc-pc-price { display: flex; align-items: baseline; gap: 6px; }
.fc-pc-amt { font-size: 38px; font-weight: 700; letter-spacing: -.02em; color: #1f2a44; line-height: 1; }
.fc-pc-amt .fc-pc-cur { font-size: 15px; font-weight: 750; }
.fc-pc-subprice { margin-top: 4px; font-size: 14px; font-weight: 600; color: #9aa6b8; }
.fc-pc-cta { margin-top: 20px; display: block; width: 100%; text-align: center; background: #1e6fb8; color: #fff !important; font-family: inherit; font-weight: 700; font-size: 15px; padding: 13px; border: 0; border-radius: 12px; box-shadow: none; -webkit-appearance: none; appearance: none; text-decoration: none; cursor: pointer; transition: background .15s; }
.fc-pc-cta:hover { background: #175d9e; color: #fff !important; box-shadow: none; }
.fc-pc-cta:focus, .fc-pc-cta:active { outline: none; box-shadow: none; }
.fc-pc-cta.is-current { background: #eef2f7; color: #67748b !important; cursor: default; pointer-events: none; }

/* --- feature list (identical to the frontend theme's .fc-pc- block) --- */
.fc-pc-per { font-size: 14px; font-weight: 600; color: #9aa6b8; text-transform: lowercase; }
.fc-pc-lead { align-items: flex-start; }
.fc-pc-lead .fc-pc-ic { margin-top: 2px; }
.fc-pc-lead .fc-pc-lab b { display: block; font-weight: 700; color: #1f2a44; line-height: 1.3; }
.fc-pc-lead .fc-pc-lab small { display: block; font-size: 12.5px; color: #67748b; font-weight: 400; margin-top: 1px; }
.fc-pc-feat { list-style: none; margin: 18px 0 0; padding: 0; }
.fc-pc-feat li { display: flex; align-items: center; gap: 11px; padding: 8px 0; margin: 0; font-size: 14.5px; color: #1f2a44; line-height: 1.35; }
.fc-pc-feat li.fc-pc-off { color: #9aa6b8; }
.fc-pc-ic { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; }
.fc-pc-ic.ok { background: #e8f7ef; color: #2fb673; }
.fc-pc-ic.ko { background: #fdedee; color: #e0616b; }
.fc-pc-ic.neu { background: #eaf2fb; color: #2f80c7; }
.fc-pc-ic .mdi { line-height: 1; }
.fc-pc-lab { flex: 0 1 auto; }
.fc-pc-chip { margin-left: auto; font-size: 12.5px; font-weight: 800; border-radius: 8px; padding: 4px 11px; letter-spacing: .01em; white-space: nowrap; }
.fc-pc-chip.cap { background: #fdecee; color: #e0505a; }
.fc-pc-chip.unl { background: linear-gradient(135deg, #18b898, #12a486); color: #fff; }
.fc-pc-qty { font-weight: 650; }
.fc-pc-sep { border-top: 1px dashed #e9eef5; margin-top: 14px; padding-top: 18px; }
.fc-pc-info { position: relative; display: inline-flex; align-items: center; color: #9aa6b8; cursor: help; margin-left: 6px; font-size: 15px; }
.fc-pc-tip { position: absolute; bottom: 135%; left: 50%; transform: translateX(-50%) translateY(4px); width: 230px; background: #1f2a44; color: #fff; font-size: 12px; font-weight: 500; line-height: 1.5; padding: 10px 12px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.22); opacity: 0; visibility: hidden; transition: .15s; z-index: 20; text-align: left; text-transform: none; }
.fc-pc-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #1f2a44; }
.fc-pc-info:hover .fc-pc-tip, .fc-pc-info:focus .fc-pc-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* myaccount: plan features as full-width rows (label left, indicator right) */
.fc-pcr { width: 100%; margin: 0; }
.fc-pcr td { padding: 10px 4px; border-top: 1px solid #eef1f5; vertical-align: middle; }
.fc-pcr tr:first-child td { border-top: 0; }
.fc-pcr-lab { color: #2b333c; font-size: 14.5px; }
.fc-pcr-val { text-align: right; white-space: nowrap; width: 1%; }
.fc-pcr-yes { color: #2fb673; font-size: 18px; }
.fc-pcr-no { color: #e0616b; font-size: 18px; }
.fc-pcr-text { font-weight: 700; color: #2b333c; font-size: 13px; }

/* change-plan confirmation modal — cycle chosen as two selectable cards */
.fc-cp2 { padding: 6px 16px 20px; }
.fc-cp2-illus { width: 150px; max-width: 55%; height: auto; margin: 6px auto 14px; display: block; }
.fc-cp2-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8a97a6; }
.fc-cp2-plan { font-size: 24px; font-weight: 750; color: #2b333c; margin: 4px 0 0; }
.fc-cyc { display: flex; gap: 14px; max-width: 460px; margin: 22px auto 6px; }
.fc-cyc-card { flex: 1; position: relative; border: 1.6px solid #e3e9f1; border-radius: 14px; padding: 16px 18px 16px 42px; text-align: left; cursor: pointer; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.fc-cyc-card:hover { border-color: #b9d7ea; }
.fc-cyc-card.is-selected { border-color: #17a2df; background: #f1fbff; box-shadow: 0 0 0 1px #17a2df; }
.fc-cyc-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(23,162,223,.28); }
.fc-cyc-radio { position: absolute; left: 15px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfd8e3; background: #fff; transition: .15s; }
.fc-cyc-card.is-selected .fc-cyc-radio { border-color: #17a2df; background: radial-gradient(circle at center, #17a2df 0 5px, #fff 5px); }
.fc-cyc-k { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #77828f; }
.fc-cyc-card.is-selected .fc-cyc-k { color: #1690c7; }
.fc-cyc-v { font-size: 20px; font-weight: 780; color: #2b333c; margin-top: 6px; }
.fc-cyc-v small { font-size: 13px; font-weight: 600; color: #9aa6b8; }
.fc-cyc-sub { font-size: 12px; font-weight: 700; color: #18b898; margin-top: 3px; }
.fc-cp2-free { margin: 20px 0 8px; font-size: 20px; font-weight: 750; color: #2b333c; }
.fc-cp2-actions { margin-top: 20px; }
.fc-cp2-cta { min-width: 260px; }
@media (max-width: 520px) { .fc-cyc { flex-direction: column; } }

/* ============================================================
   Modules (pages/modules, maquette du 10/11/2026) : le catalogue (.fc-modp), la présentation d'un module
   (.fc-modv) et l'annonce du tableau de bord (.fc-modh). Les aperçus sont de vrais gabarits de l'application,
   réduits dans une « fenêtre » posée sur un fond bleuté et coupée par le cadre.
   ============================================================ */
.fc-modp, .fc-modv { max-width: 1040px; padding-top: 26px; }
.fc-modp-head h2 { margin: 4px 0 20px; font-size: 22px; font-weight: 600; color: #2b333c; }
.fc-modp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fc-modp-card { background: #fff; border: 1px solid #e3e9ef; border-radius: 12px; overflow: hidden;
    display: flex; flex-direction: column; min-width: 0; }
.fc-modp-shot { position: relative; height: 214px; background: #e9f1f7; overflow: hidden; }
.fc-modp-win { position: absolute; top: 24px; left: 28px; width: 616px; transform: scale(.74); transform-origin: 0 0;
    pointer-events: none; background: #fff; border-radius: 10px; padding: 20px 22px 30px;
    box-shadow: 0 10px 30px rgba(31, 45, 61, .13), 0 1px 3px rgba(31, 45, 61, .08); }
.fc-modp-win .fc-recon-tabs { margin: 14px 0 14px; }
.fc-modp-win .fc-recon-tabs button { font-size: 13px; padding: 7px 14px; }
/* la carte à graphique de l'espace comptable, sans son cadre : la fenêtre en tient lieu */
.fc-modp-win .fc-ct-card, .fc-modh-thumb .fc-ct-card, .fc-modv-shot .fc-ct-card { border: 0; margin: 0; }
.fc-modp-win .fc-ct-card-main, .fc-modh-thumb .fc-ct-card-main, .fc-modv-shot .fc-ct-card-main { padding: 0; }
.fc-modp-win .fc-ct-card { display: block; }
.fc-modp-win .fc-ct-card-side { border: 0; padding: 6px 0 0; flex: 0 0 auto; }
.fc-modp-win .fc-ct-chart { height: 108px; }
.fc-modh-thumb .fc-ct-card-side, .fc-modv-shot .fc-ct-card-side { display: none; }
.fc-modp-body { padding: 18px 22px 4px; flex: 1; }
.fc-modp-body h4 { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; color: #2b333c; }
.fc-modp-body p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #5f6b77; max-width: 52ch; }
.fc-modp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 18px; }
.fc-modp-state { font-size: 13px; color: #8a96a3; }
.fc-modp-state.is-on { color: #1c9c7c; font-weight: 600; }
.fc-modp-foot .btn { margin-left: 6px; }
.fc-modp-soon { margin-top: 32px; }
.fc-modp-soon h5 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: #2b333c; }
.fc-modp-card.is-soon .fc-modp-body { padding-bottom: 20px; }
/* aperçu de la caisse, d'après la maquette de l'écran de vente : familles, produits, ticket en cours */
.fc-modp-pos { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; align-items: start;
    margin: -20px -22px -30px; padding: 14px 14px 30px; border-radius: 10px; background: #f2f4f8; }
.fc-modp-pos-cats { display: flex; gap: 5px; margin-bottom: 10px; }
.fc-modp-pos-cats span { height: 30px; padding: 0 11px; border-radius: 4px; background: #fff; font-size: 12px; font-weight: 500;
    line-height: 30px; color: #67757c; white-space: nowrap; }
.fc-modp-pos-cats span.is-on { background: #20aee3; color: #fff; }
.fc-modp-pos-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fc-modp-pos-item { display: flex; flex-direction: column; height: 94px; border: 1px solid #e9edf2; border-radius: 4px;
    background: #fff; overflow: hidden; }
.fc-modp-pos-item > i { flex: 0 0 40px; display: flex; align-items: center; justify-content: center; font-size: 19px;
    font-weight: 500; font-style: normal; }
.fc-modp-pos-item > i.is-a { background: #e3f4fb; color: #1a8db8; }
.fc-modp-pos-item > i.is-b { background: #fdeee3; color: #c46a2a; }
.fc-modp-pos-item > i.is-c { background: #e3f8f4; color: #12907b; }
.fc-modp-pos-item > b { padding: 6px 8px 0; font-size: 12px; font-weight: 500; color: #455a64; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.fc-modp-pos-item > span { margin-top: auto; padding: 0 8px 7px; font-size: 14px; font-weight: 600; color: #455a64; }
.fc-modp-pos-ticket { border-radius: 4px; background: #fff; font-variant-numeric: tabular-nums; }
.fc-modp-pos-t { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #e9edf2; }
.fc-modp-pos-t b { font-size: 14px; font-weight: 500; color: #455a64; }
.fc-modp-pos-t em { padding: 3px 7px; border-radius: 3px; background: #e3f4fb; font-size: 11px; font-weight: 600;
    font-style: normal; color: #1a8db8; }
.fc-modp-pos-line { display: flex; align-items: center; gap: 6px; margin: 0 12px; padding: 7px 0;
    border-bottom: 1px solid #f2f4f8; font-size: 12px; color: #455a64; }
.fc-modp-pos-n { flex: 1; min-width: 0; font-weight: 500; line-height: 1.3; }
.fc-modp-pos-line > u { width: 22px; height: 22px; border-radius: 4px; background: #e9edf2; font-size: 14px; line-height: 21px;
    text-align: center; text-decoration: none; }
.fc-modp-pos-line > b { width: 12px; font-weight: 500; text-align: center; }
.fc-modp-pos-a { width: 56px; font-weight: 500; text-align: right; }
.fc-modp-pos-tva, .fc-modp-pos-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 12px; }
.fc-modp-pos-tva { padding-top: 7px; font-size: 11.5px; color: #67757c; }
.fc-modp-pos-total { padding: 0 0 7px; font-size: 13px; font-weight: 500; color: #455a64; }
.fc-modp-pos-total b { font-size: 20px; font-weight: 600; }
.fc-modp-pos-btns { display: flex; gap: 6px; padding: 0 12px 12px; }
.fc-modp-pos-btns span { flex: 1; height: 34px; border-radius: 4px; background: #e9edf2; font-size: 12.5px; font-weight: 500;
    line-height: 34px; text-align: center; color: #455a64; }
.fc-modp-pos-btns span.is-main { flex: 1.3; background: #20aee3; color: #fff; }
/* aperçu des déclarations fiscales, dans le gabarit du récapitulatif annuel : échéance, recettes par nature, mois */
.fc-modp-fis-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.fc-modp-fis-head > b { font-size: 15px; font-weight: 600; color: #2b333c; }
.fc-modp-fis-head .fc-decl-deadline { margin-left: auto; }
.fc-modp-fis-kpis { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; margin-bottom: 14px; }
.fc-modp-fis-kpis .fc-recap-kpi b { font-size: 19px; }
.fc-modp-win .fc-recap-table { margin: 0; font-variant-numeric: tabular-nums; }
.fc-modp-win .fc-recap-table .fc-tvadecl-amount { width: auto; white-space: nowrap; }

.fc-modh { background: #fff; border: 1px solid #eef0f4; padding: 16px 20px 18px; margin-bottom: 30px; }
.fc-modh-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.fc-modh-top b { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #99abb4; }
.fc-modh-top a { font-size: 12.5px; color: #8a96a3; }
.fc-modh-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.fc-modh-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: center; }
.fc-modh-thumb { position: relative; height: 112px; background: #e9f1f7; border-radius: 8px; overflow: hidden; }
.fc-modh-thumb > div { position: absolute; top: 14px; left: 16px; width: 330px; transform: scale(.56); transform-origin: 0 0;
    pointer-events: none; background: #fff; border-radius: 9px; box-shadow: 0 8px 22px rgba(31, 45, 61, .13); padding: 16px 18px 22px; }
.fc-modh-thumb .fc-recon-head { border: 0; padding: 0; }
.fc-modh-thumb .fc-recon-head-a { margin: 6px 0 12px; }
.fc-modh-thumb .fc-recon-cand { margin: 0; }
.fc-modh-item h5 { margin: 0 0 3px; font-size: 14.5px; font-weight: 600; color: #2b333c; }
.fc-modh-item p { margin: 0 0 7px; font-size: 13px; line-height: 1.45; color: #5f6b77; }
.fc-modh-item a { font-size: 13px; font-weight: 600; color: #2b7fbd; }

.fc-modv-back { display: inline-block; margin: 2px 0 14px; font-size: 13px; color: #7b8894; }
.fc-modv-back i { font-size: 10px; }
.fc-modv-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center;
    background: #fff; border: 1px solid #e3e9ef; border-radius: 12px; overflow: hidden; }
.fc-modv-text { padding: 34px 0 34px 36px; }
.fc-modv-text h2 { margin: 0 0 10px; font-size: 24px; font-weight: 600; color: #2b333c; }
.fc-modv-text p { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: #4f5c68; }
.fc-modv-actions { display: flex; align-items: center; gap: 14px; }
.fc-modv-actions .btn { padding: 9px 22px; font-size: 15px; }
.fc-modv-actions span { font-size: 12.5px; color: #8a96a3; }
.fc-modv-shot { position: relative; height: 360px; background: #e9f1f7; overflow: hidden; }
.fc-modv-shot > div { position: absolute; background: #fff; border-radius: 10px; transform-origin: 0 0; pointer-events: none;
    box-shadow: 0 12px 34px rgba(31, 45, 61, .14), 0 1px 3px rgba(31, 45, 61, .08); }
.fc-modv-w1 { top: 30px; left: 34px; width: 620px; transform: scale(.78); padding: 20px 22px 24px; }
.fc-modv-w2 { top: 214px; left: 96px; width: 640px; transform: scale(.72); padding: 6px 4px 20px; }
.fc-modv-wt { padding: 12px 16px 8px; font-size: 14px; font-weight: 600; color: #2b333c; }
.fc-modv-pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin: 26px 4px 0; }
.fc-modv-pts h5 { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; color: #2b333c; }
.fc-modv-pts p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #5f6b77; }
.fc-modv-note { margin: 24px 4px 0; padding-top: 16px; border-top: 1px solid #e3e9ef; font-size: 13px; color: #7b8894; }
@media (max-width: 991px) {
    .fc-modp-grid, .fc-modh-list, .fc-modv-top, .fc-modv-pts { grid-template-columns: minmax(0, 1fr); }
    .fc-modv-text { padding: 26px 24px 0; }
}

/* ============================================================
   Banque · rapprochement bancaire (pages/bank/*)
   ============================================================ */
.fc-bank-empty { text-align: center; padding: 44px 20px; }
.fc-bank-empty h4 { color: #455261; margin-bottom: 6px; }
.fc-bank-empty p { color: #8a99a8; max-width: 44ch; margin: 0 auto 18px; }

/* [10/11/2026] le sélecteur de compte : une liste déroulante au-dessus du titre */
.fc-bank-accts { display: table; margin-bottom: 16px; }
.fc-bank-sw-b { display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; background: #fff;
    border: 1px solid #e3e8ec; border-radius: 6px; padding: 7px 12px; font-size: 14px; font-weight: 600; color: #3e5569; }
a.fc-bank-sw-b:hover, .fc-bank-accts.show .fc-bank-sw-b { border-color: #c5d0d8; color: #3e5569; text-decoration: none; }
.fc-bank-sw-b small { color: #a4b1bd; font-weight: 400; font-size: 12.5px; }
.fc-bank-sw-b i { font-size: 9px; color: #8a99a8; margin-left: 4px; }
.fc-bank-sw-m { min-width: 280px; padding: 6px 0; }
.fc-bank-sw-m .dropdown-item { display: flex; align-items: baseline; gap: 7px; padding: 9px 16px; font-size: 14px;
    color: #455a64; white-space: nowrap; }
.fc-bank-sw-m .dropdown-item.is-on { background: #f4f8fb; font-weight: 600; color: #3e5569; }
.fc-bank-sw-m .dropdown-item small { color: #a4b1bd; font-weight: 400; font-size: 12.5px; }
.fc-bank-sw-m .dropdown-item em { margin-left: auto; padding-left: 24px; font-style: normal; font-size: 12.5px;
    font-weight: 400; color: #8a99a8; }

.fc-bank-kpi { font-size: 26px; font-weight: 600; color: #263238; margin: 0 0 2px;
    font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.fc-bank-kpi--warn { color: #ff9041; }
.fc-bank-bar { height: 5px; border-radius: 99px; background: #eef0f4; overflow: hidden; margin-top: 12px; }
.fc-bank-bar i { display: block; height: 100%; background: #24d2b5; border-radius: 99px; min-width: 5px; }

.fc-bank-op { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    padding: 11px 0; border-bottom: 1px solid #eef2f5; }
.fc-bank-op:last-of-type { border-bottom: 0; }
.fc-bank-op-d { font-size: 11.5px; color: #8a99a8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-bank-op-l { color: #455261; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-bank-op-l small { display: block; color: #a4b1bd; font-size: 11px; }

.fc-bank-amt { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.fc-bank-amt.is-neg { color: #ff5c6c; }
.fc-bank-amt.is-pos { color: #12a58e; }
.fc-bank-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-bank-raw { font-size: 11px; color: #a4b1bd; }
.fc-bank-muted { color: #8a99a8; }
/* réservé à l'en-tête de carte du tableau de bord : le float ne doit pas fuiter ailleurs */
.card-title .fc-bank-link { float: right; font-size: 12.5px; color: #20aee3; }

.fc-bank-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px;
    font-weight: 600; background: #eef2f5; color: #8a99a8; white-space: nowrap; }
.fc-bank-pill--ok { background: rgba(36,210,181,.14); color: #12a58e; }
.fc-bank-pill--warn { background: rgba(255,144,65,.14); color: #cf6a1c; }
/* la troisième famille, ni recette ni dépense : couleur distincte pour qu'on ne la confonde pas */
.fc-bank-pill--mov { background: rgba(116,96,238,.14); color: #5b48cf; }

.fc-bank-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fc-bank-filters .form-control { width: auto; min-width: 160px; }
.fc-bank-table th { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8a99a8; }
.fc-bank-table td { vertical-align: middle; }
/* [11/11/2026] liste « Opérations » : en-têtes des listes de l'application, cellules centrées, action à droite */
.fc-bank-ops td { vertical-align: middle; }
.fc-bank-ops .fc-bank-ops-action { width: 70px; text-align: right; white-space: nowrap; }

/* --- Banque : import en trois étapes et écran de rapprochement --- */
.fc-bank-steps { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.fc-bank-step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #8a99a8; }
.fc-bank-step i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    background: #eef2f5; color: #8a99a8; font-size: 12px; font-weight: 600; font-style: normal; }
.fc-bank-step.is-done i { background: #24d2b5; color: #fff; }
.fc-bank-step.is-now i { background: #20aee3; color: #fff; }
.fc-bank-step.is-now { color: #455261; font-weight: 500; }
.fc-bank-steps-sep { flex: 1; height: 1px; background: #e6ecf0; margin: 0 14px; min-width: 24px; }

.fc-bank-lab { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8a99a8;
    font-weight: 600; margin-bottom: 8px; }
.fc-bank-detect { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-bank-detect span { background: rgba(32,174,227,.09); color: #1183ab; border-radius: 3px;
    padding: 4px 10px; font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; }


/* pile des opérations : la ligne travaillée est marquée par un filet, pas par un fond criard */
.fc-bank-op--pick { display: grid; text-decoration: none; padding: 11px 12px; border-radius: 0 3px 3px 0; }
.fc-bank-op--pick:hover { background: #f6f9fa; text-decoration: none; }
.fc-bank-op--pick.is-on { background: rgba(32,174,227,.09); box-shadow: inset 3px 0 0 #20aee3; }



/* ============================================================
   Réglages > Comptes bancaires (settings/sections/banking)
   ============================================================ */
.fc-acct { max-width: 780px; }
.fc-acct-intro { color: #8a99a8; font-size: 13.5px; max-width: 66ch; margin-bottom: 22px; }

/* un compte est une fiche, pas une ligne de tableau : les trois informations utiles
   (identité, chiffres, actions) se lisent d'un coup */
.fc-acct-list { display: grid; gap: 12px; margin-bottom: 30px; }
@media (min-width: 720px) { .fc-acct-list { grid-template-columns: 1fr 1fr; } }
.fc-acct-card { border: 1px solid #e6ecf0; border-radius: 5px; padding: 16px 18px; background: #fff; }
.fc-acct-card.is-editing { border-color: #20aee3; box-shadow: 0 0 0 3px rgba(32,174,227,.09); }
.fc-acct-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fc-acct-name { font-size: 15px; font-weight: 600; color: #455261; }
.fc-acct-bank { font-size: 12.5px; color: #8a99a8; margin-top: 1px; }
.fc-acct-chip { background: #f2f7f8; border-radius: 999px; padding: 3px 10px; font-size: 11.5px;
    color: #67757c; white-space: nowrap; font-variant-numeric: tabular-nums; }

.fc-acct-card-fig { display: flex; gap: 26px; margin: 14px 0 12px;
    padding-top: 12px; border-top: 1px solid #f0f4f6; }
.fc-acct-k { display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
    color: #a4b1bd; font-weight: 600; }
.fc-acct-v { display: block; font-size: 14px; color: #455261; font-variant-numeric: tabular-nums;
    margin-top: 2px; }

/* deux actions distinctes : la destructive ne prend la couleur d'alerte qu'au survol */
.fc-acct-card-act { display: flex; gap: 16px; }
.fc-acct-edit { font-size: 12.5px; color: #20aee3; }
.fc-acct-del { font-size: 12.5px; color: #a4b1bd; }
.fc-acct-del:hover { color: #ff5c6c; }

.fc-acct-form { border-top: 1px solid #e6ecf0; padding-top: 24px; }
.fc-acct-form-h { font-size: 15px; font-weight: 600; color: #455261; margin-bottom: 18px; }
.fc-acct-field { margin-bottom: 16px; }
.fc-acct-field label { display: block; font-size: 12.5px; color: #67757c; margin-bottom: 5px; font-weight: 500; }
.fc-acct-field label.required::after { content: " *"; color: #20aee3; }
.fc-acct-field small { display: block; font-size: 11.5px; color: #a4b1bd; margin-top: 5px; line-height: 1.4; }
/* champs courts alignés sur une ligne : un solde et une date n'ont pas besoin de 900 px */
.fc-acct-row { display: grid; gap: 16px; }
@media (min-width: 620px) { .fc-acct-row { grid-template-columns: repeat(2, 1fr); } }
.fc-acct-form-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ============================================================
   Banque > importer un relevé (pages/bank/bank-import)
   ============================================================ */
.fc-imp-wrap .card { max-width: 780px; }
/* la correspondance des colonnes a besoin de toute la largeur : trois colonnes et des exemples
   ne tiennent pas dans la laisse posée pour le dépôt de fichier */
.fc-imp-wrap.is-large .card { max-width: none; }
.fc-imp-field { margin-bottom: 18px; }
.fc-imp-field label { display: block; font-size: 12.5px; color: #67757c; font-weight: 500; margin-bottom: 5px; }

/* le champ fichier natif est masqué : son bouton n'est ni traduisible ni cohérent avec le thème */
.fc-imp-drop { display: block; text-align: center; cursor: pointer; margin: 0 0 20px;
    border: 2px dashed #d7e1e8; border-radius: 6px; padding: 30px 22px; background: #fbfdfe;
    transition: border-color .15s, background .15s; }
.fc-imp-drop:hover, .fc-imp-drop.is-over { border-color: #20aee3; background: rgba(32,174,227,.05); }
.fc-imp-drop.has-file { border-style: solid; border-color: #24d2b5; background: rgba(36,210,181,.06); }
.fc-imp-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0;
    overflow: hidden; clip: rect(0 0 0 0); }
.fc-imp-drop-i { display: block; font-size: 26px; color: #a4b1bd; margin-bottom: 10px; }
.fc-imp-drop.has-file .fc-imp-drop-i { color: #24d2b5; }
.fc-imp-drop-t { display: block; font-size: 14.5px; font-weight: 600; color: #455261; }
.fc-imp-drop-s { display: block; font-size: 12px; color: #8a99a8; margin: 6px auto 0; max-width: 46ch; line-height: 1.5; }
.fc-imp-act { display: flex; justify-content: flex-end; gap: 10px; }

/* --- correspondance des colonnes : une ligne par colonne du fichier --- */
.fc-map-h, .fc-map-row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr) 260px;
    gap: 16px; align-items: center; }
.fc-map-h { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #a4b1bd;
    font-weight: 600; padding-bottom: 10px; border-bottom: 1px solid #e6ecf0; }
.fc-map-row { padding: 11px 0; border-bottom: 1px solid #f2f6f8; }
.fc-map-row:last-of-type { border-bottom: 0; }
.fc-map-col { font-size: 13.5px; color: #455261; font-weight: 500; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
/* l'exemple est la donnée qui permet de décider : lisible, mais jamais dominant */
.fc-map-ex { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: #8a99a8;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-map-row.is-mapped .fc-map-col { color: #1183ab; }
.fc-map-sel .form-control { width: 100%; }
@media (max-width: 720px) {
    .fc-map-h { display: none; }
    .fc-map-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
}
.fc-imp-saveprofile { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6ecf0; font-size: 13px; }
.fc-imp-saveprofile .form-control { width: auto; min-width: 220px; }

/* --- Banque : tableau de bord, second passage --- */
.fc-kpi-value--date { font-size: 21px; }
.fc-bank-cardhead { display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 6px; }
.fc-bank-seeall { font-size: 12.5px; color: #20aee3; white-space: nowrap; }

/* chaque ligne mène à sa décision : la flèche le dit, l'aire cliquable couvre la ligne entière */
.fc-bank-op--go { display: grid; grid-template-columns: auto 1fr auto 16px; gap: 14px;
    align-items: center; text-decoration: none; padding: 12px 6px; border-bottom: 1px solid #f2f6f8; }
.fc-bank-op--go:last-of-type { border-bottom: 0; }
.fc-bank-op--go:hover { background: #f8fbfc; text-decoration: none; }
.fc-bank-op-go { color: #cdd8e0; font-size: 12px; }
.fc-bank-op--go:hover .fc-bank-op-go { color: #20aee3; }

/* état terminé : une affirmation, pas un vide */
.fc-bank-done { display: flex; align-items: center; gap: 14px; padding: 18px 4px; }
.fc-bank-done i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(36,210,181,.14); color: #24d2b5; font-size: 15px; flex: 0 0 auto; }
.fc-bank-done b { display: block; color: #455261; font-weight: 600; font-size: 14px; }
.fc-bank-done span { color: #8a99a8; font-size: 12.5px; }

/* l'action principale de la page a sa propre carte, pas un lien perdu en bas de liste */
.fc-bank-cta .card-body { text-align: center; padding: 22px 20px; }
.fc-bank-cta-n { font-size: 34px; font-weight: 700; color: #ff9041; line-height: 1;
    font-variant-numeric: tabular-nums; }
.fc-bank-cta-t { font-size: 12.5px; color: #8a99a8; margin: 6px 0 16px; line-height: 1.45; }

.fc-bank-batch { padding: 12px 0; border-bottom: 1px solid #f2f6f8; }
.fc-bank-batch:last-of-type { border-bottom: 0; padding-bottom: 0; }
.fc-bank-batch-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fc-bank-batch-d { font-size: 13px; color: #455261; font-weight: 500; font-variant-numeric: tabular-nums; }
.fc-bank-batch-f { font-size: 11.5px; color: #8a99a8; margin-top: 2px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.fc-bank-batch-s { font-size: 11px; color: #a4b1bd; margin-top: 3px; }

/* ============================================================
   Banque > rapprochement (pages/bank/components/recon-block)
   ============================================================ */
.fc-recon-count { font-size: 12px; font-weight: 700; color: #ff9041;
    background: rgba(255,144,65,.13); border-radius: 999px; padding: 2px 10px; }
.fc-recon-progress { font-size: 11.5px; color: #a4b1bd; margin-bottom: 6px; }
/* la pile défile dans la carte : on garde la décision visible à droite sans scroller la page */
.fc-recon-list { max-height: 560px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.fc-recon-op { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    padding: 11px 10px; border-bottom: 1px solid #f2f6f8; text-decoration: none;
    /* bord gauche carré : le filet de sélection s'y appuie, un arrondi le tronquerait */
    border-radius: 0 3px 3px 0; }
.fc-recon-op:last-child { border-bottom: 0; }
.fc-recon-op:hover { background: #f8fbfc; text-decoration: none; }
.fc-recon-op.is-on { background: rgba(32,174,227,.09); box-shadow: inset 3px 0 0 #20aee3; }
.fc-recon-op-d { font-size: 11.5px; color: #a4b1bd; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-recon-op-l { font-size: 13px; color: #455261; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* l'opération travaillée est annoncée en grand : c'est la question à laquelle on répond */
.fc-recon-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
    padding-bottom: 16px; border-bottom: 1px solid #eef2f5; }
.fc-recon-head-l { font-size: 15.5px; font-weight: 600; color: #3e5569; line-height: 1.35; }
.fc-recon-head-m { font-size: 12px; color: #a4b1bd; margin-top: 4px; }
.fc-recon-head-a { font-size: 24px; font-weight: 700; white-space: nowrap;
    font-variant-numeric: tabular-nums; }
.fc-recon-head-a.is-neg { color: #ff5c6c; }
.fc-recon-head-a.is-pos { color: #1bb89e; }

.fc-recon-sec { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; }
.fc-recon-sec-t { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    color: #99abb4; }
.fc-recon-none { font-size: 12.5px; color: #8a99a8; max-width: 62ch; margin: 0; }
/* volet sans proposition : le constat dans un cadre, puis la recherche d'une écriture à lier à la main */
.fc-recon-empty { border: 1px dashed #d3dbe3; border-radius: 8px; background: #f8fafb; padding: 22px 18px; text-align: center; font-size: 13.5px; color: #5f6b78; }
.fc-recon-search { margin-top: 20px; }
.fc-recon-search > label { display: block; font-size: 13px; color: #455261; margin: 0 0 6px; }
.fc-recon-search-box { position: relative; }
.fc-recon-search-box i { position: absolute; left: 12px; top: 10px; font-size: 14px; color: #9aa4b0; }
.fc-recon-search-box input { padding-left: 34px; }
.fc-recon-search-results .fc-recon-cand { margin-top: 10px; }
.fc-recon-search-none { font-size: 12.5px; color: #8a99a8; margin: 10px 0 0; }
.fc-recon-note { font-size: 12px; color: #a4b1bd; max-width: 64ch; margin: -4px 0 12px; line-height: 1.5; }

.fc-recon-cand { display: flex; justify-content: space-between; align-items: center; gap: 14px;
    border: 1px solid #eef0f4; border-radius: 4px; padding: 12px 14px; margin-bottom: 8px; }
.fc-recon-cand.is-best { border-color: #24d2b5; background: rgba(36,210,181,.06); }
.fc-recon-cand-x { min-width: 0; }
.fc-recon-cand-t { color: #455261; font-size: 13.5px; font-weight: 500; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
/* le titre et, à sa suite, l'icône qui ouvre la pièce : le titre seul se tronque */
form.fc-recon-cand .fc-recon-cand-t { display: flex; align-items: center; gap: 8px; }
form.fc-recon-cand .fc-recon-cand-t > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fc-recon-cand-see { flex: 0 0 auto; appearance: none; background: transparent; border: 0; padding: 0; line-height: 1; font-size: 14px; color: #20aee3; cursor: pointer; }
.fc-recon-cand-see:hover, .fc-recon-cand-see:focus-visible { color: #1790bd; text-decoration: none; }
.fc-recon-cand-see:focus:not(:focus-visible) { outline: 0; }
.fc-recon-cand-s { font-size: 11.5px; color: #8a99a8; margin-top: 2px; }
.fc-recon-cand-k { font-size: 13px; color: #455261; margin-top: 3px; }
.fc-recon-cand-k b { font-weight: 600; margin-right: 8px; }
.fc-recon-cand-why { font-size: 10.5px; color: #a4b1bd; margin-top: 5px; }
.fc-recon-cand-m { font-size: 14px; font-weight: 600; color: #455261; white-space: nowrap; }
.fc-recon-cand-a { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.fc-recon-mov { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fc-recon-mov .form-control { width: auto; min-width: 260px; flex: 1 1 260px; }

.fc-recon-more { font-size: 11.5px; color: #b6c1cb; margin: 8px 0 0; font-style: italic; }

/* --- rapprochement : onglets de classement --- */
/* contrôle segmenté : même dessin que les onglets Équipe / Rôles (piste grise, pastille blanche
   active, bleu de marque), pour qu'un seul geste se lise partout de la même façon */
.fc-recon-tabs { display: inline-flex; gap: 0; margin: 18px 0 16px; flex-wrap: wrap;
    background: #eef2f7; border-radius: .5rem; padding: 4px; }
.fc-recon-tabs button { appearance: none; font: inherit; font-size: 14px; font-weight: 500;
    cursor: pointer; background: transparent; border: 0; border-radius: .375rem; padding: 8px 18px;
    color: #6c757d; display: inline-flex; align-items: center; gap: 7px;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.fc-recon-tabs button:hover { color: #212529; background: rgba(255,255,255,.6); }
/* l'anneau du navigateur au clic est parasite, mais le retirer partout rendrait la navigation au
   clavier invisible : on ne l'ôte que quand le focus ne vient pas du clavier */
.fc-recon-tabs button:focus:not(:focus-visible),
.fc-recon-link:focus:not(:focus-visible),
.fc-recon-done-x:focus:not(:focus-visible) { outline: 0; box-shadow: none; }
.fc-recon-tabs button:focus-visible { outline: 2px solid #20aee3; outline-offset: 1px; }
.fc-recon-tabs button.is-on { background: #fff; color: #20aee3;
    box-shadow: 0 1px 2px rgba(16,24,40,.08); }
/* pastille : une correspondance exacte attend dans cet onglet */
.fc-recon-dot { width: 6px; height: 6px; border-radius: 50%; background: #24d2b5; }
.fc-recon-pane { display: none; }
.fc-recon-pane.is-on { display: block; }
.fc-recon-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px;
    padding-top: 14px; border-top: 1px solid #f2f6f8; }
.fc-recon-new label { display: block; font-size: 12px; color: #67757c; font-weight: 500; margin-bottom: 4px; }
.fc-recon-new .form-control { width: 100%; }
.fc-recon-new .btn { margin-top: 12px; }

/* --- select2 dans les dispositions en ligne du module banque ---
   select2 masque le <select> et insère un .select2-container : les règles de largeur posées sur
   .form-control ne s'appliquent donc plus à l'élément réellement visible. */
.fc-bank-filters .select2-container { min-width: 170px; }
.fc-recon-mov .select2-container { flex: 1 1 260px; min-width: 240px; }
.fc-recon-new .select2-container { width: 100% !important; }
.fc-imp-field .select2-container { width: 100% !important; }
.fc-map-sel .select2-container { width: 100% !important; }
/* la liste de correspondance est dense : on garde la même hauteur que les champs voisins */
.fc-map-sel .select2-container--default .select2-selection--single { height: 31px; }
.fc-map-sel .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 29px; }

/* ── banque · formulaires du panneau de rapprochement ─────────────────────────────────────────
   Le panneau est étroit et rejoué à chaque décision : tout y est compact, et ce que l'opération
   porte déjà (montant, date, moyen de règlement) est montré plutôt que redemandé. */

/* ce qui est connu et non modifiable ici */
.fc-recon-known { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; padding: 10px 14px;
    background: #f8fbfc; border: 1px solid #eef3f6; border-radius: 4px; }
.fc-recon-known > div { display: flex; flex-direction: column; gap: 1px; }
.fc-recon-known span { font-size: 10.5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; color: #a4b1bd; }
.fc-recon-known b { font-size: 13px; color: #455261; font-variant-numeric: tabular-nums; }
.fc-recon-opt { font-weight: 400; font-size: 11px; color: #b6c1cb; text-transform: none;
    letter-spacing: 0; }

/* replis : TVA et reçu, repliés par défaut */
.fc-recon-folds { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 0; }
.fc-recon-link { appearance: none; background: transparent; border: 0; padding: 0; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 500; color: #4f9be0;
    display: inline-flex; align-items: center; gap: 5px; }
.fc-recon-link:hover { color: #2a7cc7; }
.fc-recon-link i { font-size: 10px; }
.fc-recon-link.is-on { color: #67757c; }
.fc-recon-fold { display: none; margin-top: 12px; padding: 12px 14px; background: #fafcfd;
    border: 1px solid #eef3f6; border-radius: 4px; }
.fc-recon-fold.is-on { display: block; }

/* grille des montants de TVA */
.fc-recon-tva { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }
.fc-recon-tva-f label { font-size: 11.5px; color: #67757c; margin-bottom: 3px; }
.fc-recon-tva-f .input-group { flex-wrap: nowrap; }
.fc-recon-tva-f input { -moz-appearance: textfield; }
.fc-recon-tva-f input::-webkit-outer-spin-button,
.fc-recon-tva-f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fc-recon-tva-f .input-group-addon { display: flex; align-items: center; padding: 0 8px;
    font-size: 11.5px; color: #8a99a8; background: #f2f6f8; border: 1px solid #e6ecf0;
    border-left: 0; border-radius: 0 3px 3px 0; }
.fc-recon-fold .fc-recon-more { margin-top: 10px; }

/* dépôt du reçu */
.fc-recon-dz { min-height: 88px; border: 1px dashed #cfdae2; border-radius: 4px; background: #fff;
    padding: 12px; }
.fc-recon-dz .dz-message { margin: 10px 0; color: #a4b1bd; font-size: 12.5px; }

/* ── sélecteur de facture, avec ventilation ── */
.fc-recon-search { margin-bottom: 10px; }
.fc-recon-inv { max-height: 320px; overflow-y: auto; border: 1px solid #eef3f6; border-radius: 4px; }
.fc-recon-split .fc-recon-inv-r { display: grid; grid-template-columns: auto 1fr auto; gap: 12px;
    align-items: center; margin: 0; padding: 9px 12px; border-bottom: 1px solid #f4f8fa;
    cursor: pointer; font-weight: 400; }
.fc-recon-split .fc-recon-inv-r:last-child { border-bottom: 0; }
.fc-recon-split .fc-recon-inv-r:hover { background: #f8fbfc; }
.fc-recon-split .fc-recon-inv-r.is-best { background: rgba(36,210,181,.06); }
/* case du thème (filled-in) : l'input reste masqué, c'est son <label> qui dessine la case.
   Il faut donc lui réserver sa place et annuler le décalage prévu pour un libellé accolé. */
.fc-recon-split .fc-recon-inv-b { position: relative; display: block; width: 20px; height: 20px; }
.fc-recon-split .fc-recon-inv-b label { position: absolute; top: 0; left: 0; width: 20px;
    height: 20px; padding: 0; margin: 0; min-height: 0; }
.fc-recon-split .fc-recon-inv-x { margin: 0; cursor: pointer; font-weight: 400; }
.fc-recon-inv-x { min-width: 0; display: block; }
.fc-recon-inv-t { display: block; font-size: 13px; color: #455261; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }
.fc-recon-inv-s { display: block; font-size: 11.5px; color: #8a99a8; margin-top: 1px; }
.fc-recon-exact { font-style: normal; font-size: 10.5px; font-weight: 600; color: #12a68c;
    background: rgba(36,210,181,.15); border-radius: 3px; padding: 1px 5px; margin-left: 6px; }
.fc-recon-inv-a { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.fc-recon-inv-a b { font-size: 13px; color: #455261; font-variant-numeric: tabular-nums;
    white-space: nowrap; }
/* les flèches natives de <input type=number> rognaient la valeur au point de la tronquer :
   elles n'apportent rien sur un montant, on les retire et on laisse la place aux chiffres */
.fc-recon-split .fc-recon-inv-m { width: 128px; font-variant-numeric: tabular-nums; text-align: right;
    -moz-appearance: textfield; }
.fc-recon-split .fc-recon-inv-m::-webkit-outer-spin-button,
.fc-recon-split .fc-recon-inv-m::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* le champ de filtre garde la pleine largeur, lui */
.fc-recon-split .fc-recon-search { width: 100%; }
/* téléphone : le montant et sa saisie passent sous le libellé, qui garde toute la largeur (la
   troisième colonne écrasait le numéro et le client lettre par lettre) ; les onglets se partagent
   la ligne au lieu de s'empiler */
@media (max-width: 575px) {
    .fc-recon-split .fc-recon-inv-r { grid-template-columns: auto 1fr; row-gap: 6px; }
    .fc-recon-split .fc-recon-inv-a { grid-column: 2; justify-content: space-between; }
    .fc-recon-split .fc-recon-inv-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fc-recon-split .fc-recon-inv-t { white-space: normal; line-height: 1.7; }
    .fc-recon-tabs { display: flex; width: 100%; }
    .fc-recon-tabs button { flex: 1 1 auto; justify-content: center; padding: 8px 10px; font-size: 13px; }
}

/* compteur de répartition */
.fc-recon-tally { display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
    margin-top: 10px; font-size: 12.5px; color: #67757c; font-variant-numeric: tabular-nums; }
.fc-recon-tally b { color: #455261; }
.fc-recon-tally-left { font-size: 11.5px; color: #a4b1bd; }
.fc-recon-split.is-over .fc-recon-tally, .fc-recon-split.is-over .fc-recon-tally b,
.fc-recon-split.is-over .fc-recon-tally-left { color: #ff5c6c; }

/* ── ventilation déjà enregistrée sur l'opération ── */
.fc-recon-done { margin: 0 0 18px; padding: 12px 14px; background: #fffaf3;
    border: 1px solid #f5e6d0; border-radius: 4px; }
.fc-recon-done-t { font-size: 10.5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; color: #b58330; margin-bottom: 8px; }
.fc-recon-done-r { display: grid; grid-template-columns: 1fr auto auto; gap: 12px;
    align-items: center; padding: 4px 0; font-size: 12.5px; color: #455261; }
.fc-recon-done-r b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-recon-done-r form { margin: 0; }
.fc-recon-done-x { appearance: none; background: transparent; border: 0; padding: 0 2px;
    cursor: pointer; color: #c6b294; font-size: 11px; line-height: 1; }
.fc-recon-done-x:hover { color: #ff5c6c; }
.fc-recon-done-s { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f5e6d0;
    font-size: 12.5px; color: #8a6a2f; }
.fc-recon-done-s b { font-variant-numeric: tabular-nums; }

/* mention de pré-remplissage : le souvenir doit être annoncé, sinon l'utilisateur valide une
   décision qu'il croit avoir prise alors qu'elle vient de la mémoire */
/* pleine largeur du panneau : bridée à 66 caractères, la mention laissait un vide à sa droite
   et se lisait comme un élément flottant plutôt que comme un bandeau */
.fc-recon-learned { display: flex; align-items: flex-start; gap: 7px; margin: -4px 0 12px;
    padding: 9px 12px; background: rgba(32,174,227,.07); border-left: 3px solid #20aee3;
    border-radius: 0 4px 4px 0; font-size: 12.5px; color: #3e5569; line-height: 1.5; }
.fc-recon-learned i { color: #20aee3; font-size: 12px; margin-top: 2px; flex: 0 0 auto; }
.fc-recon-learned span { flex: 1 1 auto; }

/* une supposition de l'assistant ne se présente pas comme une décision déjà prise */
.fc-recon-learned.is-ia { background: rgba(255,144,65,.09); border-left-color: #ff9041; }
.fc-recon-learned.is-ia i { color: #ff9041; }

/* ── banque · consentement à l'analyse, étape 1 de l'import ── */
.fc-imp-consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start;
    margin: 18px 0 4px; padding: 14px 16px; background: #f8fbfc; border: 1px solid #eef3f6;
    border-radius: 4px; }
.fc-imp-consent-b { position: relative; display: block; width: 20px; height: 20px; }
.fc-imp-consent-b label { position: absolute; top: 0; left: 0; width: 20px; height: 20px;
    padding: 0; margin: 0; min-height: 0; }
.fc-imp-consent-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    font-size: 13px; color: #455261; line-height: 1.5; }
.fc-imp-consent-t label { margin: 0; font-weight: 400; cursor: pointer; }
.fc-imp-consent-more { appearance: none; background: transparent; border: 0; padding: 0;
    font: inherit; font-size: 12.5px; color: #4f9be0; cursor: pointer; text-decoration: underline;
    text-underline-offset: 2px; }
.fc-imp-consent-more:hover { color: #2a7cc7; }
.fc-imp-consent-more:focus:not(:focus-visible) { outline: 0; }
.fc-imp-consent-modal { font-size: 13.5px; color: #67757c; line-height: 1.6; }
.fc-imp-consent-modal h6 { font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; color: #a4b1bd; margin: 18px 0 6px; }
.fc-imp-consent-modal ul { padding-left: 18px; margin: 0; }
.fc-imp-consent-modal li { margin-bottom: 5px; }
.fc-imp-consent-modal b { color: #455261; }
.fc-imp-consent-off { margin-top: 16px; padding: 12px 14px; background: #f8fbfc;
    border-left: 3px solid #cfdae2; border-radius: 0 4px 4px 0; }
.fc-imp-consent-cgu { margin-right: auto; font-size: 12.5px; }

/* bilan de fin d'import : des chiffres qui se lisent, pas des pastilles en chasse fixe */
.fc-imp-bilan { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.fc-imp-bilan-c { flex: 1 1 140px; padding: 14px 16px; background: #f8fbfc;
    border: 1px solid #eef3f6; border-radius: 4px; }
.fc-imp-bilan-c b { display: block; font-size: 26px; font-weight: 700; color: #3e5569;
    line-height: 1.1; font-variant-numeric: tabular-nums; }
.fc-imp-bilan-c span { display: block; margin-top: 3px; font-size: 12.5px; color: #8a99a8; }
.fc-imp-bilan-c.is-ok { background: rgba(36,210,181,.07); border-color: rgba(36,210,181,.25); }
.fc-imp-bilan-c.is-ok b { color: #17836f; }

/* plusieurs exemples par colonne : un seul ne distingue pas deux colonnes de dates. En ligne, et
   repliés seulement si la place manque, pour ne pas tripler la hauteur de chaque rangée. */
.fc-map-ex { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.fc-map-ex span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-map-ex span + span { opacity: .55; }
.fc-map-ex-vide { font-style: italic; opacity: .6; }

/* ── banque · analyse par l'assistant, étape 3 ── */
.fc-imp-ai { margin-top: 18px; }
.fc-imp-ai-run { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: #f8fbfc; border: 1px solid #eef3f6; border-radius: 4px;
    font-size: 13px; color: #67757c; }
.fc-imp-ai-spin { width: 14px; height: 14px; flex: 0 0 auto; border-radius: 50%;
    border: 2px solid #d7e2e9; border-top-color: #20aee3; animation: fcImpSpin .7s linear infinite; }
@keyframes fcImpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fc-imp-ai-spin { animation-duration: 3s; } }
.fc-imp-ai-res { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px;
    border-radius: 4px; font-size: 13px; border: 1px solid #eef3f6; background: #f8fbfc;
    color: #67757c; }
.fc-imp-ai-res.is-ok { background: rgba(36,210,181,.08); border-color: rgba(36,210,181,.3);
    color: #17836f; }

/* bouton d'encaissement inopérant tant que rien n'est réparti */
.fc-recon-split .fc-recon-go[disabled] { opacity: .45; cursor: not-allowed; }

/* annulation d'un import : discrète tant qu'on n'en a pas besoin, jamais une icône de poubelle
   qu'on clique par réflexe */
.fc-bank-batch-a { margin: 6px 0 0; }
.fc-bank-batch-cancel { appearance: none; background: transparent; border: 0; padding: 0;
    font: inherit; font-size: 11.5px; color: #b6c1cb; cursor: pointer; text-decoration: underline;
    text-underline-offset: 2px; }
.fc-bank-batch-cancel:hover { color: #ff5c6c; }
.fc-bank-batch-cancel:focus:not(:focus-visible) { outline: 0; }
.fc-bank-batch-x { margin-top: 4px; font-size: 11.5px; color: #b58330; font-style: italic; }

/* ── banque · alignement des rangées ─────────────────────────────────────────────────────────
   Les colonnes Bootstrap sont déjà de même hauteur, mais la carte qu'elles contiennent ne les
   remplit pas : une carte avec une barre de progression dépassait donc ses voisines. */
/* la colonne s'étire, la carte la remplit SANS sa marge : « height: 100% » la lui aurait fait
   absorber, ajoutant trente pixels de vide sous chaque indicateur */
.fc-bank-kpis > [class*="col-"] { display: flex; flex-direction: column; }
.fc-bank-kpis .fc-kpi-card { flex: 1 1 auto; display: flex; flex-direction: column; }
.fc-bank-kpis .fc-kpi-card .card-body { flex: 1 1 auto; display: flex; flex-direction: column; }

/* même principe en bas : la colonne des imports s'étire au lieu de flotter à mi-hauteur */
.fc-bank-panels > [class*="col-"] { display: flex; flex-direction: column; }
.fc-bank-panels > [class*="col-"] > .card:last-child { flex: 1 1 auto; }
.fc-bank-panels > [class*="col-"] > .card:last-child > .card-body { display: flex; flex-direction: column; }

/* état vide qui occupe la place au lieu d'une phrase perdue en haut d'une carte vide */
.fc-bank-done--tall { flex: 1 1 auto; flex-direction: column; text-align: center; gap: 12px;
    justify-content: center; padding: 26px 10px; }
.fc-bank-done--tall span { display: block; max-width: 38ch; margin: 4px auto 0; line-height: 1.55; }

/* le libellé complémentaire du relevé : utile pour identifier un tiers, illisible en titre */
.fc-recon-head-x { font-size: 12px; color: #8a99a8; margin-top: 3px; line-height: 1.5;
    max-width: 74ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; }

/* ── fenêtre d'information autonome (module banque) ──
   Le thème garde la main sur les modales Bootstrap et les empêche de s'ouvrir depuis ces pages :
   celle-ci ne dépend d'aucun greffon. */
.fc-modal { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center;
    justify-content: center; padding: 24px; }
.fc-modal[hidden] { display: none; }
.fc-modal-fond { position: absolute; inset: 0; background: rgba(26,28,33,.45); }
.fc-modal-boite { position: relative; width: 100%; max-width: 560px; max-height: 86vh;
    display: flex; flex-direction: column; background: #fff; border-radius: 6px;
    box-shadow: 0 12px 40px -12px rgba(16,24,40,.35); }
.fc-modal-tete { display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px; border-bottom: 1px solid #eef3f6; }
.fc-modal-tete h5 { margin: 0; font-size: 15px; font-weight: 600; color: #3e5569; }
.fc-modal-x { appearance: none; background: transparent; border: 0; padding: 4px; cursor: pointer;
    color: #a4b1bd; font-size: 12px; line-height: 1; }
.fc-modal-x:hover { color: #455261; }
.fc-modal-x:focus:not(:focus-visible) { outline: 0; }
.fc-modal-corps { padding: 18px 20px; overflow-y: auto; }
.fc-modal-pied { display: flex; align-items: center; gap: 14px; padding: 14px 20px;
    border-top: 1px solid #eef3f6; }

/* facture du client que le libellé désigne */
.fc-recon-meme { font-style: normal; font-size: 10.5px; font-weight: 600; color: #2a7cc7;
    background: rgba(32,174,227,.13); border-radius: 3px; padding: 1px 5px; margin-left: 6px; }

/* la meilleure des candidates : signalée, mais laissée au jugement de l'utilisateur */
.fc-recon-reco { font-style: normal; font-size: 10.5px; font-weight: 600; color: #fff;
    background: #20aee3; border-radius: 3px; padding: 2px 7px; margin-left: 6px; cursor: help; }

/* ── contenu d'une confirmation chiffrée ──
   La fenêtre du thème compose en 18 px centré : parfait pour « Êtes-vous sûr ? », illisible pour
   une phrase de trois lignes. On y met deux chiffres et une ligne d'explication. */
.jconfirm .x-details .fc-confirm { display: block; }
.jconfirm .x-details .fc-confirm-n { display: flex; justify-content: center; gap: 10px;
    margin-bottom: 14px; flex-wrap: wrap; }
.jconfirm .x-details .fc-confirm-n span { flex: 0 1 auto; min-width: 128px; padding: 12px 16px;
    background: #f8fbfc; border: 1px solid #eef3f6; border-radius: 4px;
    font-size: 13px; color: #8a99a8; line-height: 1.3; }
.jconfirm .x-details .fc-confirm-n b { display: block; font-size: 24px; font-weight: 700;
    color: #3e5569; font-variant-numeric: tabular-nums; }
.jconfirm .x-details .fc-confirm-n span:first-child b { color: #ff5c6c; }
.jconfirm .x-details .fc-confirm-p { display: block; font-size: 13.5px; color: #8a99a8;
    line-height: 1.55; max-width: 46ch; margin: 0 auto; }
/* la case « tout supprimer » : lisible, et non en corps de titre */
.jconfirm .confirm_popup_checkbox + label { font-size: 13px; color: #67757c; line-height: 1.5;
    text-align: left; }

/* une écriture qui s'ouvre en fenêtre doit se lire comme un lien, pas comme un bouton */
.fc-recon-lien { appearance: none; background: transparent; border: 0; padding: 0; font: inherit;
    color: #4f9be0; cursor: pointer; text-align: left; }
.fc-recon-lien:hover { color: #2a7cc7; text-decoration: underline; }
.fc-recon-lien:focus:not(:focus-visible) { outline: 0; }

/* importer un relevé est l'action de départ du module : à l'aplomb de la liste des comptes, et non
   en lien discret dans une carte de bas de page */
    flex-wrap: wrap; margin-bottom: 18px; }

/* ── banque · état de rapprochement ─────────────────────────────────────────────────────────────
   Un document plus qu'un écran : on vient y lire un verdict, puis vérifier le calcul qui le
   soutient. D'où le verdict en tête et la démonstration en dessous, dans l'ordre où on la referait
   à la main. */
.fc-etat-date { font-size: 12.5px; color: #a4b1bd; margin-top: 3px; margin-bottom: 18px; }

.fc-etat-verdict { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
    border-radius: 4px; margin-bottom: 22px; }
.fc-etat-verdict b { display: block; font-size: 15px; margin-bottom: 3px; }
.fc-etat-verdict span { font-size: 13px; line-height: 1.55; display: block; max-width: 74ch; }
.fc-etat-verdict.is-ok { background: rgba(36,210,181,.09); }
.fc-etat-verdict.is-ok b { color: #17836f; }
.fc-etat-verdict.is-ok span { color: #4b7d72; }
.fc-etat-verdict.is-todo { background: rgba(255,144,65,.09); }
.fc-etat-verdict.is-todo b { color: #b25e18; }
.fc-etat-verdict.is-todo span { color: #8a7358; }

.fc-etat-calcul { border: 1px solid #eef3f6; border-radius: 4px; overflow: hidden; }
.fc-etat-l { display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
    padding: 13px 18px; border-bottom: 1px solid #f4f8fa; }
.fc-etat-l:last-child { border-bottom: 0; }
.fc-etat-l span { font-size: 13.5px; color: #455261; }
.fc-etat-l em { display: block; font-style: normal; font-size: 11.5px; color: #a4b1bd; margin-top: 2px;
    max-width: 62ch; }
.fc-etat-l b { font-size: 15px; color: #3e5569; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-etat-l--total { background: #f8fbfc; }
.fc-etat-l--total span { font-weight: 600; }
.fc-etat-l--total b { font-size: 19px; }
.fc-etat-l--total.is-ok b { color: #17836f; }
.fc-etat-l--total.is-bad b { color: #ff5c6c; }

.fc-etat-quoi { margin: 14px 0 0; padding: 13px 16px; background: rgba(255,92,108,.06);
    border-left: 3px solid #ff5c6c; border-radius: 0 4px 4px 0; font-size: 13px; color: #67757c;
    line-height: 1.6; max-width: 82ch; }

.fc-etat-bloc { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eef3f6; }
.fc-etat-bloc-t { font-size: 14px; font-weight: 600; color: #455261; margin-bottom: 5px; }
.fc-etat-bloc p { font-size: 13px; color: #8a99a8; line-height: 1.6; max-width: 82ch; margin-bottom: 12px; }

/* ── banque · la saisie du solde de relevé ──────────────────────────────────────────────────────
   Le même geste sur deux écrans, l'import et l'état : un seul dessin, sans quoi le champ occupait
   toute la largeur à l'import et son « XPF » y devenait un pavé. */
.fc-etat-vide { color: #b6c1cb; font-weight: 400; font-size: 13px; font-style: italic; }
.fc-solde-saisie { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
    margin-top: 16px; padding: 14px 16px; background: #f8fbfc; border: 1px solid #eef3f6;
    border-radius: 4px; }
.fc-solde-saisie-t { flex: 1 0 100%; margin: 0 0 2px; font-size: 12.5px; color: #3e5569;
    font-weight: 600; }
.fc-solde-saisie-t span { font-weight: 400; color: #a4b1bd; }
.fc-solde-saisie-f label { display: block; font-size: 12px; color: #67757c; font-weight: 500;
    margin-bottom: 5px; }
.fc-solde-saisie-f .input-group { flex-wrap: nowrap; }
.fc-solde-saisie-f .input-group-addon { display: flex; align-items: center; padding: 0 9px;
    font-size: 12px; color: #8a99a8; background: #f2f6f8; border: 1px solid #e6ecf0;
    border-left: 0; border-radius: 0 3px 3px 0; }
.fc-solde-saisie input { width: 190px; }
.fc-solde-saisie input.fc-ct-date { width: 130px; }
/* la phrase d'explication passe sous les champs et tient toute la largeur du bloc */
/* pas de max-width ici : une largeur maximale plus courte que la base rend l'élément assez petit
   pour tenir sur la ligne des champs, et la phrase remontait à côté d'eux */
.fc-solde-saisie-p { flex: 1 0 100%; margin: 6px 0 0; font-size: 12px; color: #8a99a8;
    line-height: 1.5; }

/* ── banque · traitement groupé ─────────────────────────────────────────────────────────────── */
/* le liseré gauche est un bord franc : arrondi, il laissait un liseré blanc dans le coin */
.fc-lot-invite { display:flex; align-items:center; gap:16px; flex-wrap:wrap;
    margin-bottom:18px; padding:16px 18px; background:#fff; border:1px solid #e7eef3;
    border-left:3px solid #20aee3; border-radius:0 4px 4px 0; }
.fc-lot-invite-i { flex:0 0 auto; display:flex; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:50%; background:rgba(32,174,227,.1); color:#20aee3;
    font-size:17px; }
.fc-lot-invite-d { flex:1 1 260px; min-width:0; }
.fc-lot-invite-d b { display:block; font-size:14px; color:#2b3542; }
/* les deux natures se lisent comme une liste, chacune précédée de sa puce */
.fc-lot-invite-d span { display:block; position:relative; font-size:12.5px; color:#8a99a8;
    margin-top:3px; padding-left:13px; line-height:1.5; }
.fc-lot-invite-d span:before { content:''; position:absolute; left:0; top:7px; width:5px; height:5px;
    border-radius:50%; background:#c7d3dd; }
.fc-lot-invite form { margin:0; flex:0 0 auto; }
.fc-lot-invite > .btn { flex:0 0 auto; }
.fc-lot-invite-go { flex:0 0 auto; display:inline-flex; align-items:center; gap:6px;
    font-size:13px; font-weight:600; color:#20aee3; white-space:nowrap; }
.fc-lot-invite-go:hover { color:#1795c4; text-decoration:none; }
.fc-lot-invite-go i { font-size:10px; }
.fc-lot-invite.is-done { border-left-color:#24d2b5; }
.fc-lot-invite.is-done .fc-lot-invite-i { background:rgba(36,210,181,.12); color:#17836f; }
.fc-lot-invite.is-done .fc-lot-invite-d span:before { display:none; }
.fc-lot-invite.is-done .fc-lot-invite-d span { padding-left:0; }

/* Les deux natures sont séparées par un en-tête qui dit ce qui va ARRIVER, pas seulement ce que
   la liste contient : c'est la conséquence qui distingue les deux groupes, pas leur intitulé. */
.fc-lot-grp { border:1px solid #eef3f6; border-radius:4px; margin-top:22px; overflow:hidden; }
.fc-lot-tete { display:grid; grid-template-columns:20px 1fr auto; gap:12px; align-items:center;
    padding:12px 14px; background:#f4f8fb; border-bottom:1px solid #e7eef3; }
/* le titre travaille en étiquette de section : petites capitales, pas un intertitre */
.fc-lot-tete b { font-size:11.5px; color:#3e5569; font-weight:700; text-transform:uppercase;
    letter-spacing:.07em; }
.fc-lot-tete-l { min-width:0; }
.fc-lot-tete-t { display:flex; align-items:center; gap:10px; min-width:0; }
.fc-lot-tete-l > span:last-child { display:block; font-size:12px; color:#8a99a8; margin-top:3px; }
.fc-lot-n { font-size:12.5px; color:#8a99a8; font-variant-numeric:tabular-nums; }

.fc-lot-l { display:grid; grid-template-columns:20px minmax(0,1.15fr) minmax(0,1fr) 118px;
    gap:12px; align-items:center;
    padding:10px 14px; border-bottom:1px solid #f4f8fa; font-size:13px; }
.fc-lot-l:last-child { border-bottom:0; }
.fc-lot-l:hover { background:#f8fbfc; }
.fc-lot-b { position:relative; display:block; width:20px; height:20px; }
.fc-lot-b label { position:absolute; top:0; left:0; width:20px; height:20px; padding:0; margin:0;
    min-height:0; }
.fc-lot-x { margin:0; min-width:0; cursor:pointer; font-weight:400; }
.fc-lot-t { display:block; color:#455261; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fc-lot-s { display:block; font-size:11.5px; color:#8a99a8; margin-top:1px; }
.fc-lot-d b { display:block; font-size:12.5px; color:#455261; font-weight:600; }
.fc-lot-d span { display:block; font-size:11px; color:#8a99a8; margin-top:1px; }
.fc-lot-a { text-align:right; font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
.fc-lot-a.is-pos { color:#17836f; }
.fc-lot-a.is-neg { color:#ff5c6c; }

/* le libellé de la banque, sous le client reconnu : c'est la reconnaissance qui se vérifie */
.fc-lot-raw { display:block; font-size:11px; color:#a4b1bd; margin-top:2px; letter-spacing:.2px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* le numéro ouvre le récapitulatif en fenêtre : un lien ferait perdre la sélection en cours */
.fc-lot-lien { appearance:none; padding:0; border:0; background:0; font:inherit; cursor:pointer;
    color:#455261; border-bottom:1px dotted #c7d3dd; }
.fc-lot-lien:hover { color:#20aee3; border-bottom-color:#20aee3; }
.fc-lot-lien:focus:not(:focus-visible) { outline:0; box-shadow:none; }

/* une ligne où plusieurs factures convenaient : le choix est le mien et se signale */
.fc-lot-d b .fc-lot-flag { display:inline-block; margin-left:6px; padding:1px 6px; border-radius:9px;
    background:#fff3e0; color:#c47b16; font-size:10px; font-weight:600; vertical-align:1px; }
.fc-lot-l.is-check { background:#fffdf8; }
.fc-lot-l.is-check:hover { background:#fffaf0; }
.fc-lot-filtre { appearance:none; font:inherit; display:inline-flex; align-items:center; gap:6px;
    padding:2px 9px; border:1px solid #f0dcb8; border-radius:12px; background:#fff8ec;
    color:#c47b16; font-size:11.5px; font-weight:600; cursor:pointer; white-space:nowrap; }
.fc-lot-filtre:hover { background:#fff2e0; }
.fc-lot-filtre[aria-pressed="true"] { background:#c47b16; border-color:#c47b16; color:#fff; }
.fc-lot-filtre:focus:not(:focus-visible) { outline:0; box-shadow:none; }
/* le filtre masque, il ne décoche pas : ce qui sort de la vue reste dans la sélection */
.fc-lot-grp.is-filtre .fc-lot-l:not(.is-check) { display:none; }

/* la validation reste sous les yeux : sur cent lignes, un pied de liste ne se voit jamais */
.fc-lot-bar { position:fixed; left:0; right:0; bottom:0; z-index:20; display:flex;
    align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
    padding:12px 26px; background:#fff; border-top:1px solid #e2ebf0;
    box-shadow:0 -3px 14px rgba(48,72,96,.07); }
/* du texte courant, et non une rangée flex : un gap entre éléments détacherait le « s » du pluriel */
.fc-lot-bar-n { font-size:13px; color:#8a99a8; }
.fc-lot-bar-n > b { font-size:19px; color:#2b3542; font-variant-numeric:tabular-nums;
    margin-right:5px; }
.fc-lot-bar-s { margin-left:22px; }
.fc-lot-bar-s b { color:#17836f; font-variant-numeric:tabular-nums; }
.fc-lot-bar-a { display:flex; gap:10px; align-items:center; }
/* la barre flotte au-dessus de la liste : sans cette réserve elle masquerait les dernières lignes */
.fc-lot { display:block; padding-bottom:74px; }
@media (max-width: 767px) {
    .fc-lot-bar { padding:10px 16px; }
    .fc-lot-bar-s { margin-left:0; padding-left:0; border-left:0; flex-basis:100%; }
}

/* ── banque · récapitulatif de facture en fenêtre ───────────────────────────────────────────────
   Ouvert depuis l'aperçu du traitement groupé : on y vient trancher sur une ligne, donc les
   chiffres d'abord et le reste ensuite. */
.fc-fact-tete { display:flex; align-items:flex-start; justify-content:space-between; gap:14px;
    padding-bottom:14px; border-bottom:1px solid #eef3f6; }
.fc-fact-tete b { display:block; font-size:16px; color:#2b3542; }
.fc-fact-tete > div > span { display:block; font-size:13px; color:#8a99a8; margin-top:2px; }
.fc-fact-tete > .label { flex:0 0 auto; }

.fc-fact-chiffres { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin:16px 0 18px; }
.fc-fact-chiffres > div { padding:11px 12px; background:#f8fbfc; border-radius:4px; }
/* enfant direct : sans quoi le symbole monétaire, lui aussi un <span>, passerait à la ligne */
.fc-fact-chiffres > div > span { display:block; font-size:11px; color:#a4b1bd;
    text-transform:uppercase; letter-spacing:.06em; }
.fc-fact-chiffres b { display:block; margin-top:3px; font-size:16px; color:#2b3542;
    font-variant-numeric:tabular-nums; }
.fc-fact-chiffres b.is-pos { color:#17836f; }
.fc-fact-chiffres b.is-nul { color:#c7d3dd; }
/* un reste dû nul n'est pas un avertissement : il ne se peint qu'au-dessus de zéro */
.fc-fact-chiffres b.is-reste { color:#e0762b; }
.fc-fact-chiffres b.is-solde { color:#17836f; }

.fc-fact-l { display:flex; justify-content:space-between; gap:14px; padding:7px 0;
    border-bottom:1px solid #f4f8fa; font-size:13px; }
.fc-fact-l span { color:#8a99a8; }
.fc-fact-l b { color:#455261; font-weight:500; text-align:right; }

.fc-fact-bloc { margin-top:16px; padding:12px 14px; background:#f8fbfc; border-radius:4px; }
.fc-fact-bloc-t { font-size:12.5px; font-weight:600; color:#3e5569; margin-bottom:6px; }
.fc-fact-r { display:flex; justify-content:space-between; gap:14px; font-size:12.5px;
    color:#67757c; padding:3px 0; font-variant-numeric:tabular-nums; }

/* une ligne de facture par ligne de texte : la description peut être longue, elle est coupée */
.fc-fact-li { display:flex; justify-content:space-between; gap:14px; align-items:baseline;
    padding:5px 0; border-bottom:1px solid #edf3f6; font-size:12.5px; color:#55636f; }
.fc-fact-li:last-child { border-bottom:0; }
.fc-fact-li > span { min-width:0; line-height:1.5; }
.fc-fact-li em { font-style:normal; color:#8a99a8; margin-right:6px;
    font-variant-numeric:tabular-nums; }
.fc-fact-li b { flex:0 0 auto; color:#3e5569; font-weight:600; font-variant-numeric:tabular-nums; }

.fc-fact-act { margin-top:20px; text-align:right; }

/* ── banque · l'accueil sans compte ─────────────────────────────────────────────────────────────
   Le module s'ouvrait sur une page blanche. Il montre maintenant à quoi il ressemblera, flouté
   derrière la carte d'appel : mêmes gabarits de carte et de liste que le vrai tableau de bord, et
   le même rendu que l'aperçu de l'espace comptable (.fc-ct-demo). */
.fc-bank-void { position: relative; }
.fc-bank-void-bg { position: relative; overflow: hidden; opacity: .45; filter: blur(4px) saturate(.6);
    pointer-events: none; user-select: none; }
.fc-bank-void-bg .fc-bank-op:last-of-type { border-bottom: 0; }

.fc-bank-void-card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 5; width: 460px; max-width: 92%; text-align: center; background: #fff;
    border-radius: 12px; box-shadow: 0 14px 40px rgba(31, 45, 61, .16); padding: 32px 30px; }
.fc-bank-void-card h4 { margin: 0 0 8px; font-size: 19px; font-weight: 600; color: #2b333c; }
.fc-bank-void-card p { margin: 0 auto 20px; max-width: 42ch; font-size: 14px; color: #5f6b77;
    line-height: 1.5; }
.fc-bank-void-note { display: block; font-size: 12.5px; color: #a4b1bd; }

/* la fenêtre reprend les champs des réglages : seul l'habillage en diffère. Le filet du haut y
   séparait le formulaire de la liste des comptes ; en fenêtre il ne sépare plus rien. */
.fc-acct-form--modal { margin: 0; border-top: 0; padding-top: 0; }
.fc-acct-form--modal .fc-acct-form-act { margin-top: 18px; text-align: right; }

/* ── champs de saisie · la marque d'invite ──────────────────────────────────────────────────────
   Bootstrap peint le placeholder en #6c757d, à un cheveu du texte saisi (#67757c dans le thème) :
   « Socredo, Banque de Tahiti… » se lisait comme une valeur déjà entrée. On reprend le gris que le
   thème s'était déjà donné pour .form-control-xs, plutôt que d'en inventer un autre. */
.form-control::placeholder,
.form-control::-webkit-input-placeholder { color: #bdbdbd; opacity: 1; }
.form-control::-moz-placeholder { color: #bdbdbd; opacity: 1; }
.form-control:-ms-input-placeholder { color: #bdbdbd; }

/* =========================================================================
   EXPENSE MODAL — two columns with the receipt alongside the form (.fc-xm-)
   ========================================================================= */

/* Widen whichever modal is holding an expense two-column layout — the edit form or the
   read-only "Voir" view. Keyed on :has() over the CONTENT rather than a class on the
   container, because events.js adds data-add-class and never removes it: a class would
   leak onto every modal opened afterwards. The body is swapped per modal, so this
   selector stops matching by itself. */
@media (min-width: 992px) {
    .modal-dialog:has(.fc-xm-grid) { max-width: 1180px; }
}

/* Below lg this stays a plain block: one column, receipt under the form. */
.fc-xm-grid { display: block; }

/* Every wide-layout rule hangs off the SAME :has() selector as the width above,
   so the two can never disagree. On a browser without :has() the modal simply
   stays one column at its normal width — rather than hiding the switch while
   leaving the pane collapsed, which would make the receipt unreachable. */
@media (min-width: 992px) {
    .modal-dialog:has(.fc-xm-grid) .fc-xm-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }
    /* The switch existed only to unfold the drop zone. Once the receipt owns half
       the dialog there is nothing to unfold, so it goes and the pane is forced
       open — .hidden is plain `display:none` with no !important, so this wins. */
    .modal-dialog:has(.fc-xm-grid) .fc-xm-toggle { display: none; }
    .modal-dialog:has(.fc-xm-grid) .fc-xm-pane.hidden { display: block; }
    .modal-dialog:has(.fc-xm-grid) .fc-xm-side { position: sticky; top: 8px; }
}

.fc-xm-pane { position: relative; }
.fc-xm-preview {
    border: 1px solid #dde3e8;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 14px;
}
.fc-xm-preview__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #eceff2;
    background: #fcfdfe;
}
.fc-xm-preview__name { font-size: 12.5px; font-weight: 600; color: #5a6470; }
.fc-xm-preview__open { color: #7e8994; font-size: 13px; }
.fc-xm-preview__open:hover { color: #20aee3; }
.fc-xm-preview__body {
    position: relative;
    background: #edf1f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    min-height: 240px;
    /* The column has ~700px to give; capping at 460 letterboxed a portrait receipt
       inside wide grey gutters for no reason. Viewport-relative so it still fits
       on a short laptop screen. */
    max-height: min(620px, 62vh);
    overflow: auto;
}
.fc-xm-preview__body img {
    max-width: 100%;
    max-height: min(600px, 60vh);
    object-fit: contain;
    background: #fff;
    box-shadow: 0 3px 12px rgba(20, 40, 60, .16);
}
.fc-xm-preview__body iframe { width: 100%; height: min(600px, 60vh); border: 0; background: #fff; }

/* Once a receipt is attached, adding ANOTHER file is the rare case: the drop zone
   stops being the loudest thing in the column and collapses to a single line.
   The theme sizes it with `padding: 5% 0` on .dz-message — a percentage of WIDTH,
   so the wider the column the taller the box, which is why it grew to ~250px here. */
.fc-xm-pane--has-file .dropzone { min-height: 0; padding: 0; }
.fc-xm-pane--has-file .dropzone .dz-message { margin: 0; padding: 11px 0; }
.fc-xm-pane--has-file .dropzone .dz-message i {
    font-size: 17px;
    vertical-align: middle;
    margin-right: 7px;
}
.fc-xm-pane--has-file .dropzone .dz-message span {
    display: inline;
    font-size: 13px;
    vertical-align: middle;
}
.fc-xm-preview__file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: #67727d;
    font-size: 13px;
}
.fc-xm-preview__file i { font-size: 26px; }

.fc-xm-files td a { color: #4a5560; }
.fc-xm-files td a:hover { color: #20aee3; }

/* Drop zone hint + the AI autofill button (expense modal) */
.fc-xm-ai {
    /* over the top-right of the preview, clear of its header bar and the expand icon */
    position: absolute;
    top: 46px;
    right: 13px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border: 0;
    border-radius: 40px;
    background: #20aee3;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(32, 174, 227, .38);
    cursor: pointer;
}
/* .hidden is `display:none` at the SAME specificity (0,1,0) as .fc-xm-ai, and custom.css loads
   AFTER the theme — so the display above silently won and the button showed with nothing uploaded.
   This rule is 0,2,0, so hiding works again. */
.fc-xm-ai.hidden { display: none; }
.fc-xm-ai:hover { background: #1b9bcb; }
.fc-xm-ai:disabled { opacity: .65; cursor: default; }
.fc-xm-ai i { font-size: 14px; }

/* Scanning state: a light sweep down the document while the model reads it. Far more legible
   than greying the button out, because it says WHAT is being worked on. */
.fc-xm-scan { display: none; }
.fc-xm-preview.is-scanning .fc-xm-scan {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: rgba(32, 174, 227, .07);
    overflow: hidden;
}
.fc-xm-preview.is-scanning .fc-xm-scan::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(32, 174, 227, 0), #20aee3, rgba(32, 174, 227, 0));
    box-shadow: 0 0 16px 4px rgba(32, 174, 227, .5);
    animation: fc-xm-sweep 1.6s ease-in-out infinite;
}
@keyframes fc-xm-sweep {
    0%   { top: 0; }
    50%  { top: calc(100% - 3px); }
    100% { top: 0; }
}
/* the button holds its place but reads as busy while the sweep runs */
.fc-xm-ai.is-busy { background: #1b9bcb; cursor: progress; }
.fc-xm-ai.is-busy i { animation: fc-xm-pulse 1.1s ease-in-out infinite; }
@keyframes fc-xm-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-xm-preview.is-scanning .fc-xm-scan::before,
    .fc-xm-ai.is-busy i { animation: none; }
}

/* Attached files: one row per receipt, the row IS the selector for the preview above. */
.fc-xm-files { list-style: none; margin: 12px 0 0; padding: 0; }
.fc-xm-file {
    display: flex;
    align-items: stretch;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}
.fc-xm-file + .fc-xm-file { margin-top: 7px; }
/* Selected reads as a soft tint, not a hard rule: the border plus an inset ring used to draw
   what looked like two stacked blue rectangles. */
.fc-xm-file.is-active { border-color: #a9dff3; background: #f4fbfe; }

/* Clicking a row should select it, not leave a focus ring behind. Keyboard users keep theirs. */
.fc-xm-file__pick:focus,
.fc-xm-file__act:focus { outline: none; box-shadow: none; }
.fc-xm-file__pick:focus-visible,
.fc-xm-file__act:focus-visible { outline: 2px solid #20aee3; outline-offset: -3px; border-radius: 4px; }

.fc-xm-file__pick {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: #4a5560;
    text-align: left;
    cursor: pointer;
}
.fc-xm-file__pick:hover { background: #f4f8fb; }
.fc-xm-file.is-active .fc-xm-file__pick { color: #14618c; font-weight: 600; }
.fc-xm-file__pick > i { flex: none; font-size: 15px; color: #9aa5b0; }
.fc-xm-file.is-active .fc-xm-file__pick > i { color: #20aee3; }
.fc-xm-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fc-xm-file__act {
    flex: none;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid #eceff2;
    background: transparent;
    color: #8a949e;
    font-size: 13px;
    cursor: pointer;
}
.fc-xm-file__act:hover { background: #f4f8fb; color: #20aee3; }
.fc-xm-file__act--danger:hover { background: #fdecea; color: #e3574a; }

/* "L'IA remplit la dépense pour vous" — sits under an EMPTY drop zone, so it has to sell the
   feature without shouting over the drop target itself. Tinted card, one badge, two short lines. */
.fc-xm-promo {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 10px;
    padding: 10px 13px;
    border: 1px solid #d5edf9;
    border-radius: 9px;
    background: linear-gradient(135deg, #ebf8fd 0%, #f7fcfe 100%);
}
.fc-xm-promo__icon {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #20aee3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 1px 4px rgba(32, 174, 227, .22);
}
.fc-xm-promo__body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fc-xm-promo__head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
/* the badge labels the title, it does not compete with it: tinted rather than filled, and small */
.fc-xm-promo__badge {
    background: #d3edfa;
    color: #147ba8;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 3px;
    position: relative;
    top: -1px;
}
.fc-xm-promo__title { font-size: 13px; font-weight: 700; color: #17698f; letter-spacing: -.1px; }
.fc-xm-promo__text { font-size: 12px; line-height: 1.4; color: #7b8894; }

/* Scan refused: reuses .fc-trial-banner + .fc-trial-critical, the app's own red upsell banner,
   so this message looks like the rest of the product rather than a one-off card. Only the
   positioning and the dismiss control are added here. */
/* nowrap: the base banner wraps, so a longer sentence pushed the CTA onto its own line and the
   banner grew a third row. Keep it on the row; the text column shrinks and wraps instead. */
.fc-xm-quota { position: relative; margin-bottom: 12px; padding: 9px 12px; flex-wrap: nowrap; gap: 12px; }
/* centre, not flex-start: with a single line the text sat above the circle's middle, so the
   word looked lifted off the icon. Two lines still read fine against a centred 26px icon. */
.fc-xm-quota .fc-trial-banner__main { min-width: 0; gap: 9px; align-items: center; }
.fc-xm-quota .fc-trial-banner__text { min-width: 0; }
/* the banner is sized for a full-width page strip; in a half-modal column it needs to shrink */
.fc-xm-quota .fc-trial-banner__icon { width: 26px; height: 26px; font-size: 12px; }
.fc-xm-quota .fc-trial-banner__text { font-size: 12.5px; line-height: 1.4; }
.fc-xm-quota .fc-trial-banner__sub { font-size: 11.5px; margin-top: 2px; }

/* Read-only expense view ("Voir"): values as static blocks, not disabled inputs, so nothing
   looks typeable. Same two-column shell as the edit modal, hence the shared .fc-xm-* classes. */
.fc-xm-ro-field { margin-bottom: 14px; }
/* Label and value were too close in size, weight and colour to read as two different things:
   in a form the input's box does that separating work, and a read-only view has no box. So the
   value carries real weight and near-black ink, and the label steps back. */
.fc-xm-ro-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #96a1ad;
    margin-bottom: 2px;
}
.fc-xm-ro-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #22303c;
    line-height: 1.45;
    word-break: break-word;
}
.fc-xm-ro-value--strong { font-size: 17px; font-weight: 700; color: #22303c; }
.fc-xm-ro-hint { display: block; margin-top: 5px; color: #8a949e; font-size: 12px; }
.fc-xm-ro-rule { height: 1px; background: #e6ebef; border: 0; margin: 18px 0; }

.fc-xm-ro-taxes { list-style: none; margin: 4px 0 0; padding: 0; max-width: 340px; }
.fc-xm-ro-taxes li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px dashed #e6ebef;
    font-size: 13.5px;
    color: #5a6470;
}
.fc-xm-ro-taxes li:last-child { border-bottom: 0; }
.fc-xm-ro-taxes li span:last-child { font-weight: 600; color: #3f4a55; white-space: nowrap; }



/* The banner's CTA is sized for a full-width page strip; shrink it for the modal column so it
   sits on the row rather than wrapping underneath and dominating the message. */
.fc-xm-quota .fc-trial-banner__cta {
    align-self: center;
    padding: 6px 13px;
    font-size: 12px;
    border-radius: 6px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   [TTC] Bascule de la base de saisie des prix dans l'editeur de facture / devis.
   Affichee uniquement en mode edition sur un compte assujetti a la TVA. Le prix
   enregistre reste le HT : ceci ne change que ce que l'utilisateur voit et tape.
   ───────────────────────────────────────────────────────────────────────────── */
.fc-pm {
    /* Le selecteur porte lui-meme l'ecart au bloc precedent (le tableau perd son m-t-40, cf.
       main-table.blade) et reste colle a l'en-tete du tableau, qu'il commande. */
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 40px 0 8px;
}
.fc-pm-table { margin-top: 0; }
.fc-pm__label { font-size: 12.5px; color: #6b7484; font-weight: 500; }
.fc-pm__seg { display: inline-flex; background: #f1f4f8; border-radius: 8px; padding: 3px; gap: 2px; }
.fc-pm__btn {
    font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
    border: 0; background: transparent; color: #6b7484;
    padding: 5px 16px; border-radius: 6px; cursor: pointer;
    transition: background .12s, color .12s;
}
.fc-pm__btn[aria-pressed="true"] { background: #fff; color: #20aee3; box-shadow: 0 1px 3px rgba(27, 32, 40, .14); }
.fc-pm__btn:hover { color: #2b3542; }
.fc-pm__btn[aria-pressed="true"]:hover { color: #12a2d8; }
/* Pas d'anneau de focus au clic : il se lisait comme une bordure et brouillait l'etat selectionne,
   deja porte par le fond blanc. L'indication clavier passe par un lisere interieur, qui ne peut pas
   etre confondu avec une bordure. Meme parti pris que .fc-tva2-tab plus haut. */
.fc-pm__btn:focus, .fc-pm__btn:focus-visible { outline: none !important; }
.fc-pm__btn:focus-visible { box-shadow: inset 0 0 0 2px #bfe6f6; }
.fc-pm__btn[aria-pressed="true"]:focus-visible { box-shadow: 0 1px 3px rgba(27, 32, 40, .14), inset 0 0 0 2px #bfe6f6; }

/* Déclaration 1010 : montant à 5 % ou 1 % qu'aucune fiche produit ne permet de classer entre
   ventes et prestations. Compté en ventes, mais signalé pour rester corrigeable à la main. */
.fc-decl-unclassified { display: block; font-size: 11.5px; color: #8a6d3b; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   [PAGE PUBLIQUE DES DEVIS ET FACTURES] Ce que voit le client de notre client quand il ouvre le
   lien partage. Le DOCUMENT lui-meme n'est pas retouche : seul l'ecran autour change, pour
   repondre d'emblee aux trois questions qu'on se pose en ouvrant un lien pareil, a savoir quel
   document, combien, et qu'est-ce que je fais.

   L'accent est la couleur de marque du tenant, --bill-themable-color, deja posee par le document.
   Les couleurs d'etat en sont distinctes : elles portent une information, pas une identite.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

.fc-sh {
    --fc-sh-paper: #ffffff;
    --fc-sh-ink: #131a24;
    --fc-sh-soft: #66727f;
    --fc-sh-faint: #8d97a4;
    --fc-sh-line: #e4e9f0;
    --fc-sh-line-soft: #eef1f6;
    /* Le PRIMAIRE de l'application, pas la couleur du tenant : celle-ci habille le DOCUMENT,
       l'interface autour reste celle de FenuaCompta. Meme valeur que .btn-danger / .btn-info
       (custom.css plus haut), pour qu'un seul bleu circule dans tout le produit. */
    --fc-sh-accent: #20aee3;
    --fc-sh-accent-hover: #1aa6da;
    --fc-sh-st: var(--fc-sh-accent);
    --fc-sh-st-bg: #eef2f7;
}
.fc-sh--due     { --fc-sh-st: #cf4040; --fc-sh-st-bg: #fbeaea; }
.fc-sh--ok      { --fc-sh-st: #1c9a6a; --fc-sh-st-bg: #e8f6f0; }
.fc-sh--wait    { --fc-sh-st: #b8830c; --fc-sh-st-bg: #fbf3e2; }
.fc-sh--neutral { --fc-sh-st: #6b7684; --fc-sh-st-bg: #eef1f6; }
/* fond neutre volontaire : l'accent etant la couleur libre du tenant, on ne peut pas en
   deriver une teinte claire sure, et un fond gris lit bien avec n'importe quelle marque */
.fc-sh--accent  { --fc-sh-st: var(--fc-sh-accent); --fc-sh-st-bg: #eef2f7; }

/* --- bandeau de marque --- */
/* la page partagee occupait toute la largeur a 15px des bords : on lui donne de l'air, le
   bandeau de synthese etant desormais un contenu pleine largeur et non plus un titre centre */
@media (min-width: 992px) { .container-sharer { padding-left: 26px; padding-right: 26px; } }

/* Le theme fige l'en-tete et compense par 70px de padding. L'en-tete du partage est plus haut
   que cela, a cause du logo du tenant, et le contenu passait donc dessous. Sur une page qui ne
   porte qu'un document, rien ne justifie de figer l'en-tete : le flux normal suffit. */
.fix-header .fc-sh-topbar { position: static; margin-left: 0; }
.fix-header .page-wrapper-sharer { padding-top: 26px; }

/* La page portait QUATRE alignements gauches differents : la barre de marque a 16px, le contenu
   a 106px, les colonnes du pied a 170px et sa mention a 200px. Les deux mentions de
   confidentialite, qui disent la meme chose, tombaient donc a deux endroits sans rapport, dont
   aucun ne s'alignait sur le document. Tout partage desormais le conteneur du contenu, ce qui
   garantit aussi le meme comportement a chaque palier de largeur. */
.fc-sh-topbar .navbar { padding-left: 0; padding-right: 0; }
.fc-sh-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fc-sh-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px;
                color: var(--fc-sh-faint); white-space: nowrap; }

/* --- bandeau de synthese : pose a meme le fond, filet d'etat a gauche --- */
.fc-sh-sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
             padding: 2px 0 20px 18px; border-left: 4px solid var(--fc-sh-st);
             border-radius: 2px; margin: 6px 0 22px; }
.fc-sh-sum-l { min-width: 0; }
.fc-sh-kind { font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
              text-transform: uppercase; color: var(--fc-sh-faint); }
.fc-sh-no { font-size: 27px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15;
            color: var(--fc-sh-ink); margin: 7px 0 9px; }
.fc-sh-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px;
              font-weight: 600; padding: 5px 12px 5px 10px; border-radius: 999px;
              color: var(--fc-sh-st); background: var(--fc-sh-st-bg); }
.fc-sh-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--fc-sh-st); display: block; }
.fc-sh-sum-r { text-align: right; white-space: nowrap; }
.fc-sh-lbl { font-size: 11px; font-weight: 700; letter-spacing: 1.3px;
             text-transform: uppercase; color: var(--fc-sh-faint); }
.fc-sh-amt { font-size: 33px; font-weight: 700; letter-spacing: -1px; line-height: 1.1;
             color: var(--fc-sh-ink); font-variant-numeric: tabular-nums; margin: 4px 0 3px; }
.fc-sh-when { font-size: 12.5px; color: var(--fc-sh-soft); }
.fc-sh-when b { color: var(--fc-sh-ink); font-weight: 600; }

/* --- grille document / rail --- */
.fc-sh-cols { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; align-items: start; }
.fc-sh-doc { min-width: 0; }
.fc-sh-rail { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }

.fc-sh-blk { background: var(--fc-sh-paper); border: 1px solid var(--fc-sh-line);
             border-radius: 9px; padding: 16px 17px; }
.fc-sh-blk-h { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
               color: var(--fc-sh-faint); margin: 0 0 12px; }
/* --- le bloc d'action, traite comme le PIED DU DOCUMENT ---
   Il portait auparavant une carte arrondie et ombree, surmontee d'un lisere colore, dont le seul
   contenu etait un bouton lui-meme arrondi et borde : deux objets pour une action, et un lisere
   qui repetait un etat deja dit deux fois par le bandeau de synthese.
   On emprunte desormais le vocabulaire du papier : une etiquette, un filet, la zone d'action, puis
   un filet tirete qui rappelle la ligne qu'on signe. Rayons serres, accordes au papier du
   document (5px) et non au rayon generique des cartes. */
.fc-sh-sign { background: var(--fc-sh-paper); border: 1px solid var(--fc-sh-line);
              border-radius: 4px; padding: 16px 16px 14px; }
.fc-sh-sign-l { font-size: 10px; font-weight: 700; letter-spacing: 1.3px;
                text-transform: uppercase; color: var(--fc-sh-faint); }
.fc-sh-sign-rule { height: 1px; background: var(--fc-sh-line); margin: 9px 0 13px; }
.fc-sh-sign-note { font-size: 12.5px; line-height: 1.55; color: var(--fc-sh-soft); margin: 0 0 12px; }
.fc-sh-sign-note b { color: var(--fc-sh-ink); font-weight: 600; }

/* le primaire de l'application, avec le meme survol que ses boutons */
.fc-sh-sign-btn { display: flex; align-items: center; justify-content: center; gap: 9px;
                  width: 100%; background: var(--fc-sh-accent); color: #fff;
                  border: 0; border-radius: 3px; padding: 14px 16px; cursor: pointer;
                  font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none;
                  transition: background .15s; }
.fc-sh-sign-btn:hover, .fc-sh-sign-btn:focus { background: var(--fc-sh-accent-hover);
                  color: #fff; text-decoration: none; }
.fc-sh-sign-btn i { font-size: 15px; }
.fc-sh-sign-btn svg { width: 18px; height: 18px; flex: none; }

.fc-sh-sign-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px;
                   margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--fc-sh-line); }
.fc-sh-sign-hint { font-size: 11.5px; color: var(--fc-sh-faint); }
.fc-sh-sign-alt { font-size: 12.5px; font-weight: 600; color: var(--fc-sh-soft);
                  background: none; border: 0; padding: 0; cursor: pointer; }
.fc-sh-sign-alt:hover { color: var(--fc-sh-ink); }

/* --- boutons --- */
.fc-sh-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
             border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 13.5px;
             font-weight: 600; padding: 12px 14px; line-height: 1.2; text-decoration: none;
             transition: filter .15s, background .15s, border-color .15s; }
.fc-sh-btn:hover, .fc-sh-btn:focus { text-decoration: none; }
.fc-sh-btn-pri { background: var(--fc-sh-accent); color: #fff; }
.fc-sh-btn-pri:hover { filter: brightness(1.08); color: #fff; }
.fc-sh-btn-ghost { background: var(--fc-sh-paper); color: var(--fc-sh-ink); border-color: var(--fc-sh-line); }
.fc-sh-btn-ghost:hover { border-color: #c9d2de; background: #fbfcfe; color: var(--fc-sh-ink); }
.fc-sh-btn-quiet { background: transparent; color: var(--fc-sh-soft); }
.fc-sh-btn-quiet:hover { color: var(--fc-sh-ink); background: #f2f5f9; }
.fc-sh-btn-sm { padding: 9px 10px; font-size: 12.5px; }
.fc-sh-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fc-sh-btn i { font-size: 15px; }

.fc-sh-meta { display: flex; align-items: center; gap: 6px; justify-content: center;
              margin: 10px 0 0; font-size: 11px; color: var(--fc-sh-faint); }
.fc-sh-empty { font-size: 12.5px; color: var(--fc-sh-faint); line-height: 1.55; margin: 0; }

/* --- pied de page : une bande de cloture, pas une ligne perdue --- */
/* .footer du theme est en position:absolute;bottom:0, ce qui fait chevaucher le pied de page
   sur le bas du document. L'ancienne classe .footer-sharer le neutralisait deja ainsi. */
.fc-sh-foot { background: var(--fc-sh-paper); border-top: 1px solid var(--fc-sh-line);
              margin-top: 30px; position: relative !important; z-index: 1; }
.fc-sh-foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px;
                   padding-top: 34px; padding-bottom: 30px; align-items: start; }
.fc-sh-foot-col { min-width: 0; }
.fc-sh-foot-h { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
                color: var(--fc-sh-faint); margin: 0 0 12px; }
.fc-sh-foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fc-sh-foot-brand b { font-size: 14px; font-weight: 700; color: var(--fc-sh-ink); }
.fc-sh-foot-addr { margin: 0 0 8px; font-size: 12.5px; line-height: 1.65; color: var(--fc-sh-soft); }
.fc-sh-foot-legal { margin: 0; font-size: 11.5px; color: var(--fc-sh-faint); }
.fc-sh-foot-link { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500;
                   color: var(--fc-sh-ink); margin-bottom: 9px; text-decoration: none; }
.fc-sh-foot-link:hover { color: var(--fc-sh-accent); text-decoration: none; }
.fc-sh-foot-link i { font-size: 15px; color: var(--fc-sh-faint); }
.fc-sh-foot-by { border-left: 1px solid var(--fc-sh-line); padding-left: 34px; }
.fc-sh-foot-by-mark { font-size: 13.5px; font-weight: 700; color: var(--fc-sh-ink); margin-bottom: 8px; }
.fc-sh-foot-by-txt { margin: 0 0 13px; font-size: 12.5px; line-height: 1.6; color: var(--fc-sh-soft); }
.fc-sh-foot-cta { display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
                  font-size: 12.5px; font-weight: 600; color: var(--fc-sh-accent);
                  border: 1px solid var(--fc-sh-line); border-radius: 7px; padding: 8px 14px; }
.fc-sh-foot-cta:hover { border-color: var(--fc-sh-accent); color: var(--fc-sh-accent); text-decoration: none; }
.fc-sh-foot-base { border-top: 1px solid var(--fc-sh-line-soft); background: #fbfcfe; }
.fc-sh-foot-base-in { display: flex; justify-content: space-between; align-items: center; gap: 16px;
                      flex-wrap: wrap; padding-top: 13px; padding-bottom: 13px;
                      font-size: 11.5px; color: var(--fc-sh-faint); }
.fc-sh-foot-base-in span { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 991px) {
    /* le rail passe AVANT le document : l'action doit etre visible sans defiler, et une barre
       collante en bas masquerait le bas du document sur un petit ecran */
    .fc-sh-cols { grid-template-columns: minmax(0,1fr); }
    /* le document est plus large qu'un telephone, et c'est ainsi depuis toujours : la page
       entiere partait donc en defilement lateral. On ne touche pas au document, on le fait
       defiler dans sa propre boite pour que le reste de la page tienne dans l'ecran. */
    .fc-sh-doc { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .fc-sh-rail { position: static; order: -1; }
    .fc-sh-sum { flex-direction: column; align-items: flex-start; gap: 14px; }
    .fc-sh-sum-r { text-align: left; }
    .fc-sh-foot-grid { grid-template-columns: minmax(0,1fr); gap: 28px;
                       padding-top: 28px; padding-bottom: 24px; }
    .fc-sh-foot-by { border-left: 0; border-top: 1px solid var(--fc-sh-line);
                     padding-left: 0; padding-top: 26px; }
}

/* --- signature du devis depuis le lien public --- */
.fc-sh-note { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px;
              border-radius: 8px; font-size: 13px; line-height: 1.55; margin-bottom: 18px;
              background: var(--fc-sh-st-bg); color: var(--fc-sh-st); }
.fc-sh-note i { font-size: 16px; line-height: 1.3; }
.fc-sh-note b { font-weight: 700; }

.fc-sign-field { margin-bottom: 16px; }
.fc-sign-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.1px;
                 text-transform: uppercase; color: #8d97a4; margin-bottom: 7px; }
.fc-sign-input { width: 100%; border: 1px solid #d9e0ea; border-radius: 7px; padding: 10px 13px;
                 font-size: 14px; color: #131a24; background: #fff; }
.fc-sign-input:focus { outline: none; border-color: var(--fc-sh-accent, #1c8fc4); }
.fc-sign-pad-wrap { position: relative; border: 1px dashed #c8d2df; border-radius: 8px;
                    background: #fbfcfe; overflow: hidden; }
.fc-sign-pad { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.fc-sign-hint { position: absolute; inset: 0; display: flex; align-items: center;
                justify-content: center; pointer-events: none; font-size: 13px; color: #a7b0bd; }
.fc-sign-pad-wrap.is-signed .fc-sign-hint { display: none; }
.fc-sign-clear { position: absolute; top: 8px; right: 8px; border: 1px solid #e0e6ee;
                 background: #fff; border-radius: 6px; font-size: 11.5px; font-weight: 600;
                 color: #66727f; padding: 5px 10px; cursor: pointer; }
.fc-sign-clear:hover { color: #131a24; border-color: #c9d2de; }
/* la case est dessinee par le theme via le label ; on ne fait qu'ajuster le confort de lecture */
.fc-sign-check label { font-size: 13.5px; line-height: 1.5; color: #131a24; }
.fc-sign-err { display: none; font-size: 13px; color: #cf4040; margin: 0 0 12px; }
.fc-sign-err.is-shown { display: block; }
.fc-sign-legal { font-size: 11.5px; color: #8d97a4; line-height: 1.6; margin: 14px 0 0; }

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   [SIGNATURE EN LIGNE] Reglage cote tenant, et pour les offres hors Pro un apercu ANIME de la
   fonctionnalite plutot qu'une capture figee : montrer le geste vend mieux qu'une phrase.
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */
.fc-sgn-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 6px; }
.fc-sgn-head .badge, .fc-sgn-badge { white-space: nowrap; }
.fc-sgn-title { margin: 0; font-size: 16px; font-weight: 600; color: #2b3540; }
.fc-sgn-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
                color: #fff; background: #1c9a6a; border-radius: 5px; padding: 3px 8px; }
.fc-sgn-pitch { font-size: 13px; line-height: 1.65; color: #66727f; max-width: 62ch; margin: 0 0 16px; }

.fc-sgu { max-width: 520px; border: 1px solid #e4e9f0; border-radius: 12px; overflow: hidden; background: #fff; }
.fc-sgu-stage { position: relative; padding: 24px 22px; background: linear-gradient(170deg, #f7f9fc, #eef2f8); }
.fc-sgu-mini { background: #fff; border-radius: 8px; padding: 15px 16px;
               box-shadow: 0 1px 2px rgba(16,24,40,.07), 0 10px 26px rgba(16,24,40,.10); }
.fc-sgu-mini-t { font-size: 12px; font-weight: 700; color: #131a24; }
.fc-sgu-mini-n { font-size: 10.5px; color: #8d97a4; margin-top: 1px; }
.fc-sgu-bars { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 14px; }
.fc-sgu-bars span { height: 6px; border-radius: 3px; background: #eef1f6; display: block; }
.fc-sgu-bars span:nth-child(2) { width: 82%; }
.fc-sgu-bars span:nth-child(3) { width: 58%; }
.fc-sgu-sign { border-top: 1px dashed #dfe5ee; padding-top: 11px; }
.fc-sgu-sign-l { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
                 color: #8d97a4; margin-bottom: 4px; }
.fc-sgu-pad { height: 52px; }
.fc-sgu-pad svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* Le trace est un SEUL sous-trace, volontairement : en SVG le motif de tirets se reinitialise a
   chaque « M », donc deux sous-traces se dessineraient EN MEME TEMPS. Une main n'ecrit qu'un trait
   a la fois, et le paraphe revient donc sous le mot sans lever le stylo. Changer le trace oblige a
   remesurer sa longueur (getTotalLength) et a reporter la valeur ci-dessous ET dans fcSguDraw. */
.fc-sgu-ink { fill: none; stroke: #1f2733; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
              stroke-dasharray: 780; stroke-dashoffset: 780; animation: fcSguDraw 5.2s cubic-bezier(.5,.05,.35,1) infinite; }
.fc-sgu-name { font-size: 10.5px; color: #66727f; margin-top: 2px; opacity: 0;
               animation: fcSguFade 5.2s linear infinite; }
.fc-sgu-chip { position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center;
               gap: 6px; background: #1c9a6a; color: #fff; font-size: 11.5px; font-weight: 700;
               padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(28,154,106,.35);
               opacity: 0; transform: translateY(7px) scale(.94); animation: fcSguPop 5.2s ease-out infinite; }
.fc-sgu-copy { padding: 16px 20px 18px; border-top: 1px solid #e4e9f0; }
.fc-sgu-cta { display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
              background: #1c8fc4; color: #fff; font-size: 13.5px; font-weight: 600;
              padding: 10px 18px; border-radius: 8px; }
.fc-sgu-cta:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.fc-sgu-plan { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: #46515f; }

@keyframes fcSguDraw { 0%,6% { stroke-dashoffset: 780; } 46%,100% { stroke-dashoffset: 0; } }
@keyframes fcSguFade { 0%,48% { opacity: 0; } 58%,100% { opacity: 1; } }
@keyframes fcSguPop  { 0%,58% { opacity: 0; transform: translateY(7px) scale(.94); }
                       70%,94% { opacity: 1; transform: translateY(0) scale(1); }
                       100% { opacity: 0; transform: translateY(7px) scale(.94); } }

/* une animation en boucle ne doit pas s'imposer a qui demande moins de mouvement */
@media (prefers-reduced-motion: reduce) {
    .fc-sgu-ink { animation: none; stroke-dashoffset: 0; }
    .fc-sgu-name { animation: none; opacity: 1; }
    .fc-sgu-chip { animation: none; opacity: 1; transform: none; }
}

/* --- boutons de confirmation des modales de reponse au devis ---
   Dans ce theme, .btn-danger ET .btn-info valent tous deux le bleu de marque (style.css:4757,
   deja note plus haut dans ce fichier). Confirmer un refus prenait donc exactement la meme
   couleur que confirmer une signature. Trois roles, trois traitements distincts. */
/* UNE SEULE definition de metriques pour les trois boutons de pied. Le defaut precedent venait
   d'avoir habille le bouton de confirmation en laissant « Annuler » aux classes du theme : trois
   ecarts cumules, hauteur 29px contre 40px, sans que rien ne les relie. */
.fc-sign-go, .fc-sign-no, .fc-sign-cancel {
    border: 1px solid transparent; border-radius: 4px; padding: 10px 18px;
    font-size: 12.5px; font-weight: 700; line-height: 1.2;
}
/* meme bleu que le bouton qui a ouvert la modale ; les jetons de .fc-sh ne portant pas jusqu'ici,
   la valeur est reprise en clair */
.fc-sign-go { background: #20aee3; color: #fff; border-color: #20aee3; }
.fc-sign-go:hover, .fc-sign-go:focus { background: #1aa6da; border-color: #1aa6da; color: #fff; }
/* le refus reste discret : c'est une issue, pas une action a encourager */
.fc-sign-no { background: #fff; color: #b3413f; border-color: #e3c4c3; }
.fc-sign-no:hover, .fc-sign-no:focus { background: #fdf6f6; border-color: #cf8b89; color: #96302e; }
.fc-sign-cancel { background: #fff; color: #66727f; border-color: #d9e0ea; }
.fc-sign-cancel:hover, .fc-sign-cancel:focus { background: #fbfcfe; border-color: #c9d2de; color: #131a24; }

/* Les modales vivent HORS de .fc-sh, qui porte les jetons de la page : elles se suffisent donc
   a elles-memes. Le titre passe en encre, le cyan du theme jurant avec le reste du parcours. */
.fc-sign-modal .modal-content { border-radius: 5px; }
/* le theme colore les titres de modale en cyan via une regle a quatre classes
   (style.css:9486) : on egale sa specificite plutot que de sortir un !important */
.fc-sign-modal .modal-dialog .modal-header .modal-title {
    color: #131a24; font-size: 15px; font-weight: 700; letter-spacing: -.1px; }
.fc-sign-modal .modal-footer { border-top: 1px solid #e4e9f0; background: #fbfcfe; }

/* ===============================================================================================
   [SIGNATURE DU CLIENT] sur l'apercu du document (pages/bill/bill-web).
   Posee en bas a droite, la ou une signature se pose sur un papier, et dans le meme ordre que sur
   le PDF : mention, trace, puis qui et quand. Le PDF la rend pleine largeur faute de place ; a
   l'ecran on peut lui donner sa colonne sans rien repousser.
   =============================================================================================== */
.fc-bw-sign {
    float: right;
    width: 260px;
    max-width: 100%;
    margin: 6px 0 14px;
    padding-top: 10px;
    border-top: solid 1px #e9ecef;
}
.fc-bw-sign-l {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #8d97a4;
}
.fc-bw-sign-img {
    display: block;
    max-height: 60px;
    max-width: 100%;
    margin: 4px 0 2px;
}
.fc-bw-sign-meta {
    font-size: 12px;
    color: #5b676d;
    line-height: 1.4;
}



/* ------------------------------------------------------------------ *
 * Modale « Partager ce devis / cette facture » — .fc-shr
 * Le lien d'abord, sa copie posee dans le champ, puis les canaux. La couleur de marque ne vit que
 * dans l'icone : trois aplats satures pour trois choix equivalents criaient plus fort que le lien,
 * qui est pourtant ce qu'on vient chercher ici neuf fois sur dix.
 * ------------------------------------------------------------------ */
.fc-shr { padding: 4px 2px 8px; }
.fc-shr-lead { font-size: 13.5px; color: #7a8494; margin: 0 0 18px; line-height: 1.5; }
.fc-shr-lbl {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    color: #9aa6b2;
    margin: 0 0 8px;
}
.fc-shr-field {
    display: flex;
    align-items: stretch;
    border: solid 1px #dde3ea;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
}
.fc-shr-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 14px;
    font-size: 13px;
    color: #5a6472;
    background: #fff;
}
.fc-shr-field input:focus { outline: none; }
.fc-shr-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-left: solid 1px #dde3ea;
    background: #f6f8fa;
    color: #5a6472;
    font-size: 13px;
    font-weight: 600;
    padding: 11px 18px;
    white-space: nowrap;
    cursor: pointer;
}
.fc-shr-copy:hover { background: #eef2f6; color: #20aee3; }
/* separateur : un filet de part et d'autre du libelle */
.fc-shr-sep { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; }
.fc-shr-sep:before,
.fc-shr-sep:after { content: ""; flex: 1; height: 1px; background: #eaeef3; }
.fc-shr-sep span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #aab3bd;
}
.fc-shr-chans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fc-shr-chan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border: solid 1px #e0e6ec;
    border-radius: 5px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 600;
    color: #5a6472;
    cursor: pointer;
}
.fc-shr-chan:hover { background: #fafbfc; border-color: #cfd8e2; }
.fc-shr-chan i { font-size: 16px; line-height: 1; }
.fc-shr-wa { color: #25d366; }
.fc-shr-ms { color: #0084ff; }
.fc-shr-ml { color: #7a8494; }

@media screen and (max-width: 640px) {
    .fc-shr-chans { grid-template-columns: 1fr; }
    .fc-shr-field { flex-direction: column; }
    .fc-shr-field input { padding: 11px 14px; }
    .fc-shr-copy { border-left: 0; border-top: solid 1px #dde3ea; justify-content: center; }
}

/* Note de bas de boite de confirmation (data-bill-email-note) : sert a signaler, au moment de
   l'envoi d'un devis, que le client pourra le signer en ligne — ou a le faire decouvrir a ceux qui
   ne l'ont pas. Detachee du corps par un filet, pour ne pas se confondre avec la demande en cours. */
.fc-cnote {
    margin-top: 18px;
    padding-top: 16px;
    border-top: solid 1px #eef1f5;
    text-align: left;
}
/* invitation simple : une phrase, pour qui a deja l'offre */
.fc-cnote-txt {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #8a939e;
}
.fc-cnote-txt a { color: #20aee3; font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------------------------ *
 * L'apercu anime dans la boite d'envoi : MEME markup que dans les reglages, pose a
 * l'horizontale. Empile, il faisait defiler la boite entiere et repoussait les
 * boutons hors de vue, ce qui coute plus cher que ce que l'argument rapporte.
 * ------------------------------------------------------------------------------ */
/* pastille « Nouveau » de l'accroche, partagee par les reglages et la boite d'envoi */
.fc-sgn-new {
    display: inline-block;
    margin-right: 7px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e8f6fd;
    color: #1c8fc4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    vertical-align: 1px;
}

.fc-cnote--promo .fc-sgn-pitch {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #7a8494;
}
.fc-cnote--promo .fc-sgu {
    display: flex;
    align-items: stretch;
    max-width: none;
    border-radius: 10px;
}
.fc-cnote--promo .fc-sgu-stage {
    flex: 1 1 58%;
    min-width: 0;
    padding: 14px;
}
.fc-cnote--promo .fc-sgu-mini { padding: 11px 12px; }
.fc-cnote--promo .fc-sgu-mini-t { font-size: 11px; }
.fc-cnote--promo .fc-sgu-mini-n { font-size: 10px; }
/* les fausses lignes de texte ne disent rien de plus ici : la signature suffit */
.fc-cnote--promo .fc-sgu-bars { display: none; }
.fc-cnote--promo .fc-sgu-sign { border-top: 0; padding-top: 8px; }
.fc-cnote--promo .fc-sgu-pad { height: 38px; }
/* en pied, la pastille recouvrait la ligne « Signé par votre client » une fois la carte
   resserree : elle se pose donc en haut, comme un tampon sur le document */
.fc-cnote--promo .fc-sgu-chip {
    top: 8px;
    right: 8px;
    bottom: auto;
    font-size: 10px;
    padding: 4px 9px;
    box-shadow: 0 4px 12px rgba(28,154,106,.3);
}
.fc-cnote--promo .fc-sgu-copy {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    border-top: 0;
    border-left: 1px solid #e4e9f0;
}
.fc-cnote--promo .fc-sgu-cta { font-size: 12.5px; padding: 9px 14px; align-self: flex-start; }
.fc-cnote--promo .fc-sgu-plan { margin-bottom: 9px; font-size: 11.5px; line-height: 1.4; }

@media screen and (max-width: 560px) {
    .fc-cnote--promo .fc-sgu { display: block; }
    .fc-cnote--promo .fc-sgu-copy { border-left: 0; border-top: 1px solid #e4e9f0; }
}

/* Reglages > Devis (hors offre Pro) : la meme carte, en ligne. Apercu compact a gauche,
   accroche + offre + bouton a droite ; empilee sur telephone. */
.fc-sgu--row { display: flex; align-items: stretch; max-width: 760px; }
.fc-sgu--row .fc-sgu-stage { flex: 0 0 300px; padding: 16px; }
.fc-sgu--row .fc-sgu-mini { padding: 11px 12px; }
.fc-sgu--row .fc-sgu-bars { display: none; }
.fc-sgu--row .fc-sgu-sign { border-top: 0; padding-top: 8px; }
.fc-sgu--row .fc-sgu-pad { height: 40px; }
.fc-sgu--row .fc-sgu-chip { top: 10px; right: 10px; bottom: auto; font-size: 10px; padding: 4px 9px; box-shadow: 0 4px 12px rgba(28,154,106,.3); }
.fc-sgu--row .fc-sgu-copy { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 18px 22px; border-top: 0; border-left: 1px solid #e4e9f0; }
.fc-sgu--row .fc-sgu-pitch { font-size: 15px; font-weight: 600; color: #2b3540; margin-bottom: 4px; }
.fc-sgu--row .fc-sgu-plan { font-weight: 400; color: #66727f; font-size: 12.5px; margin-bottom: 14px; }
@media screen and (max-width: 640px) {
    .fc-sgu--row { display: block; }
    .fc-sgu--row .fc-sgu-copy { border-left: 0; border-top: 1px solid #e4e9f0; }
}

/* ---------------------------------------------------------------------------
   [reglages] hierarchie et separation entre les reglages
   Les pages de reglages partagent un meme gabarit : une suite de .form-group
   enfants directs d'un <form class="form">. Le titre d'un reglage y a
   exactement le meme poids visuel que le texte d'aide du reglage precedent,
   et rien ne borne un reglage. Ces regles habillent le gabarit existant,
   sans toucher une seule vue.
   [bordure haute et non basse] certains reglages posent le titre dans un
   .form-group.mb-0 puis le controle dans un .row separe (voir Echeance par
   defaut, page Devis). Une bordure basse couperait entre le titre et son
   controle ; une bordure haute retombe toujours entre deux reglages.
   [exclusion] une page qui se donne son propre design ajoute une classe fc-...
   a son <form> et n'est pas touchee (voir .fc-company-form). ATTENTION : ce garde porte sur la
   classe DU FORMULAIRE, donc aucune classe d'etat posee sur le <form> par du javascript ne doit
   commencer par fc-, sous peine de desactiver tout l'habillage au premier changement. D'ou
   [settings-form-dirty] et non [fc-set-dirty].
   --------------------------------------------------------------------------- */
body.settings #embed-content-container form.form:not([class*="fc-"]) > .form-group{
    margin-bottom: 0;
    padding: 22px 0 20px;
    border-top: 1px solid #e9edf1;
}

body.settings #embed-content-container form.form:not([class*="fc-"]) > .form-group:first-child{
    padding-top: 0;
    border-top: 0;
}

/* [un bloc sans controle est un TITRE, pas un reglage]
   Certaines pages posent le titre et l'aide dans un .form-group, puis le ou les controles dans
   les blocs suivants : Devis et Factures avec un .row separe, Periode de facturation avec
   [Jour] et [Mois]. Leur appliquer la regle generale traçait un filet ENTRE un titre et son
   propre champ, et decoupait un seul reglage en trois. Un bloc qui ne contient aucun controle
   ne ferme donc rien, et le bloc suivant lui appartient.
   Remplace l'ancienne rustine sur .form-group.mb-0, qui ne traitait qu'un cas particulier. */
body.settings #embed-content-container form.form:not([class*="fc-"]) > .form-group:not(:has(input, select, textarea)):not(:has(.alert)){
    padding-bottom: 0;
}

body.settings #embed-content-container form.form:not([class*="fc-"]) > .form-group:not(:has(input, select, textarea)):not(:has(.alert)) + .form-group{
    border-top: 0;
    padding-top: 10px;
}

/* [une alerte n'est pas un reglage] elle commente celui qui la precede : ni filet, ni
   espacement de reglage, elle se rattache visuellement au bloc du dessus. */
body.settings #embed-content-container form.form:not([class*="fc-"]) > .form-group:has(.alert){
    border-top: 0;
    padding-top: 0;
}

/* titre d'un reglage */
body.settings #embed-content-container form.form:not([class*="fc-"]) > .form-group > label.col-form-label,
body.settings #embed-content-container form.form:not([class*="fc-"]) > .form-group-checkbox label{
    font-size: 14.5px;
    font-weight: 600;
    color: #2b3542;
    letter-spacing: -.005em;
    margin-bottom: 2px;
}

/* texte d'aide du reglage : la taille et le retrait restent poses en ligne dans les vues, on ne
   reprend ici que la couleur et l'espacement.
   [descendant et non enfant direct] certaines pages imbriquent l'aide dans le .col-12 (voir
   Periode de facturation) : elle gardait alors le .text-muted du theme, #989eab au lieu de
   #98a1ae. Les blocs d'alerte sont exclus, leur texte a sa propre couleur. */
body.settings #embed-content-container form.form:not([class*="fc-"]) > .form-group:not(:has(.alert)) p{
    color: #98a1ae;
    line-height: 1.55;
    margin-bottom: 12px;
}

/* ---------------------------------------------------------------------------
   [reglages] titre de la page, bandeaux de section, barre d'enregistrement
   [gouttiere] .card-body.tab-body a 25px de marge interne laterale : le
   bandeau et la barre la compensent pour affleurer les bords de la carte.
   --------------------------------------------------------------------------- */
body.settings #embed-content-container > .fc-set-title{
    font-size: 19px;
    font-weight: 600;
    color: #2b3542;
    letter-spacing: -.01em;
    margin: 0 0 18px;
    line-height: 1.3;
}

/* bandeau de section : un separateur pleine largeur, jamais un conteneur */
body.settings #embed-content-container .fc-set-band{
    margin: 26px -25px 0;
    padding: 11px 25px;
    /* [teinte] un lavis du bleu de l'application, et non un gris. Le fond de page du theme est
       #f6f9fa : un gris clair s'y confond des que le bandeau affleure les bords de la carte, et
       se lit comme un trou. Le lavis se distingue par la TEINTE et non par la valeur, il reste
       donc aussi clair, sans alourdir une page a trois sections.
       Le libellé est a #16748e et non au bleu de marque #20aee3 : a 11px en capitales il faut
       4.5:1, or #20aee3 comme le #18809f initialement retenu n'y arrivent pas (4.14). #16748e
       donne 4.89. */
    background: #edf6fb;
    border-top: 1px solid #dceaf2;
    border-bottom: 1px solid #dceaf2;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #16748e;
}

body.settings #embed-content-container form.form > .fc-set-band:first-child{
    margin-top: 0;
    border-top: 0;
}

/* le bandeau borne deja le reglage qui suit : pas de second filet */
body.settings #embed-content-container form.form:not([class*="fc-"]) > .fc-set-band + .form-group{
    border-top: 0;
}

/* [reglages] l'enregistrement reste a la fin du formulaire, dans le flux.
   Essaye en sticky puis en fixed, pleine largeur : une bande blanche permanente pesait trop et
   masquait le reglage qui passait derriere. Une barre d'enregistrement affirme d'ailleurs en
   continu quelque chose qui n'est vrai que par moments, puisqu'au repos il n'y a rien a
   enregistrer. Le bouton reprend donc sa place a la fin de la page.
   Le bloc est en flex pour que le message [modifications non enregistrees] se place a cote du
   bouton, et non au-dessus. */
body.settings #embed-content-container form.form:not([class*="fc-"]) > .text-right:last-child{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9edf1;
}

/* etat [modifie] : le message n'apparait qu'une fois quelque chose change */
body.settings #embed-content-container .fc-set-dirty-note{
    font-size: 12.5px;
    font-weight: 500;
    color: #b4741a;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.settings #embed-content-container .fc-set-dirty-note::before{
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b4741a;
    flex: none;
}


/* ---------------------------------------------------------------------------
   [reglages] un reglage a plusieurs champs courts
   Un titre, une aide, puis une rangee de champs porteurs de sous-libelles. Le sous-libelle est
   volontairement plus petit et plus clair que le titre du reglage, pour qu'on voie d'un coup
   d'oeil qui commande qui. Sert des qu'un reglage demande deux valeurs : un jour et un mois,
   un intervalle, une largeur et une hauteur.
   --------------------------------------------------------------------------- */
body.settings #embed-content-container .fc-set-fields{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    max-width: 460px;
}

body.settings #embed-content-container .fc-set-sublabel{
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: #5a6676;
    margin: 0 0 4px;
}

/* [SUIVI DU DOCUMENT] Sous un devis ou une facture en consultation : signature du client (devis),
   remarques internes, envois. Cartes legeres (fin contour, coins arrondis), empilees sur telephone.
   Les etapes d'envoi (.delivery-step) gardent icone, titre, description et date, en plus compact. */
.fc-track { max-width: 1100px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 16px; }
.fc-track-card { background: #fff; border: 1px solid #e6eaf0; border-radius: 12px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(20, 30, 50, .04); min-width: 0; }
.fc-track-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fc-track-title { margin: 0 !important; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #8a95a3; }
.fc-track-muted { color: #6f7a88; font-size: 12.5px; }
.fc-track-empty { margin: 0; font-size: 13px; color: #8a95a3; }
.fc-track-link { font-size: 12.5px; font-weight: 600; color: #0b7fb0; }
.fc-track-link:hover { color: #20aee3; text-decoration: none; }
.fc-track-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #dbe2ea; border-radius: 8px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: #2b3542; background: #fff; white-space: nowrap; }
.fc-track-btn:hover, .fc-track-btn:focus { border-color: #20aee3; color: #0b7fb0; text-decoration: none; }
/* les deux cartes d'une rangee ont la meme hauteur (etirement par defaut de la grille) */
.fc-track-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.fc-track-note { color: #2b3542; line-height: 1.6; font-size: 13.5px; }
.fc-track-note p:last-child { margin-bottom: 0; }
/* remarques en edition : l'editeur prend la carte, sans cadre en double */
.fc-track .admin-notes-editing .tox-tinymce { border: 1px solid #e6eaf0 !important; border-radius: 8px !important; }
.fc-track .admin-notes-editing .mce-tinymce { border: 1px solid #e6eaf0 !important; border-radius: 8px; box-shadow: none !important; overflow: hidden; }

/* signature du client */
.fc-sig-feat { display: grid; grid-template-columns: 240px 1fr auto auto; align-items: center; gap: 24px; }
.fc-sig-box { height: 92px; border: 1px solid #e6eaf0; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 6px; }
.fc-sig-box img { max-height: 78px; max-width: 100%; object-fit: contain; }
.fc-sig-valid { font-size: 13px; font-weight: 600; color: #1f8a5b; }
.fc-sig-valid::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #26b47a; margin-right: 7px; vertical-align: 1px; }
.fc-sig-name { font-weight: 600; color: #2b3542; margin-top: 5px; }
.fc-sig-amount-lbl { font-size: 12px; }
.fc-sig-amount-val { font-size: 18px; font-weight: 600; color: #2b3542; white-space: nowrap; }
.fc-sig-older { margin-top: 16px; padding-top: 12px; border-top: 1px solid #f0f2f5; }
.fc-track-empty + .fc-sig-older { margin-top: 10px; }
.fc-sig-older-title { font-size: 12.5px; font-weight: 600; color: #6a7583; }
.fc-sig-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.fc-sig-table th { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #8a95a3; text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid #e6eaf0; white-space: nowrap; }
.fc-sig-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid #f0f2f5; font-size: 13px; color: #5a6676; vertical-align: middle; }
.fc-sig-table tbody tr:last-child td { border-bottom: 0; }
.fc-sig-table td:last-child, .fc-sig-table th:last-child { padding-right: 0; text-align: right; }
.fc-sig-thumb { width: 96px; height: 38px; border: 1px solid #e6eaf0; border-radius: 6px; background: #f7f9fb; display: flex; align-items: center; justify-content: center; padding: 3px; }
.fc-sig-thumb img { max-width: 100%; max-height: 100%; opacity: .55; }
.fc-sig-oname { color: #2b3542 !important; font-weight: 500; }
.fc-sig-cell-amount { white-space: nowrap; }

/* envois : les etapes existantes, en plus compact */
.mail-delivery-history:has(.delivery-step) .fc-track-empty-mail { display: none; }
.fc-track .delivery-step + .delivery-step { margin-top: 14px; }
.fc-track .delivery-step .circle { width: 26px; height: 26px; line-height: 26px; font-size: 12px; }
.fc-track .delivery-step > div:not(:first-child) { margin-left: 26px; padding-left: 12px; }
.fc-track .delivery-step h5 { font-size: 13.5px; font-weight: 600; margin: 3px 0 2px !important; }
.fc-track .delivery-step .step-note { font-size: 12.5px; color: #5a6676; line-height: 1.45; }
.fc-track .delivery-step .caption { font-size: 12px; color: #8a95a3; margin-top: 2px; }
.fc-track .delivery-step .step-subject { color: #3e4a59; font-weight: 500; }
.fc-track .delivery-step .step-to { color: #3e4a59; font-weight: 500; }

@media (max-width: 767px) {
    .fc-track { margin-top: 18px; }
    .fc-track-card { padding: 16px; }
    .fc-track-head { flex-wrap: wrap; }
    .fc-sig-feat { grid-template-columns: 1fr; gap: 12px; }
    .fc-sig-box { height: 110px; }
    .fc-sig-action { justify-self: start; }
    .fc-track-duo { grid-template-columns: 1fr; }
    .fc-sig-table thead { display: none; }
    .fc-sig-table, .fc-sig-table tbody, .fc-sig-table tr, .fc-sig-table td { display: block; width: 100%; }
    .fc-sig-table tr { padding: 12px 0; border-bottom: 1px solid #eef1f5; }
    .fc-sig-table tbody tr:last-child { border-bottom: 0; }
    .fc-sig-table td { border: 0; padding: 3px 0; text-align: left !important; }
    .fc-sig-table td[data-label]:not(.fc-sig-oname)::before { content: attr(data-label) " : "; color: #9aa6b2; }
    .fc-sig-cell-action { padding-top: 8px !important; }
}

/* ===== Back-office superadmin : repartition des abonnements par forfait (.fc-subs) ===== */
.fc-subs { height: calc(100% - 30px); }
.fc-subs .card-body { display: flex; flex-direction: column; }
.fc-subs-seg { display: inline-flex; border: 1px solid #e9edf2; border-radius: 6px; overflow: hidden; }
.fc-subs-seg button { font-size: 11px; font-weight: 600; background: none; border: 0; padding: 4px 9px; color: #8a95a3; cursor: pointer; }
.fc-subs-seg button[aria-pressed="true"] { background: #2b3542; color: #fff; }
.fc-subs-seg button:focus-visible { outline: 2px solid #008ffb; outline-offset: -2px; }
.fc-subs-legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: 13px; }
.fc-subs-legend li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.fc-subs-dot { width: 10px; height: 10px; border-radius: 50%; }
.fc-subs-c0 { background: #9fb3c8; } .fc-subs-c1 { background: #24d2b5; } .fc-subs-c2 { background: #008ffb; }
.fc-subs-c3 { background: #f6a609; } .fc-subs-c4 { background: #a66cff; }
.fc-subs-n { font-weight: 600; }
.fc-subs-pct { color: #8a95a3; min-width: 36px; text-align: right; }
.fc-subs-empty { color: #8a95a3; font-size: 13px; margin: 40px 0; text-align: center; }
.fc-subs-trials { margin-top: auto; padding-top: 12px; border-top: 1px solid #e9edf2; font-size: 12px; color: #8a95a3; display: flex; justify-content: space-between; }

/* ===== Editeur de facture/devis : fenetre « Mes produits enregistres » =====
   Le theme (style.css) masque le pied de tableau de cette fenetre, et avec lui le bouton « Charger plus » :
   seule la 1re page du catalogue (35 produits) etait accessible. On le reaffiche ; la suite se charge
   avec ses cases a cocher et s'ajoute a la facture comme le reste. */
#itemsModalBody table tfoot { display: table-footer-group; }
#itemsModalBody .loadmore-button-container { text-align: center; padding: 10px 0; }
/* La liste defile dans la fenetre (jusqu'a 200 produits) : le bouton « Ajouter les elements selectionnes »
   reste a l'ecran, l'en-tete du tableau reste visible pendant le defilement. */
#itemsModalBody #items-table-wrapper .table-responsive { max-height: calc(100vh - 260px); overflow-y: auto; }
#itemsModalBody #items-table-wrapper thead th { position: sticky; top: -1px; z-index: 10; background-color: #fff !important; box-shadow: inset 0 -1px 0 #e9edf2; }

/* [ETAPE 2] Livraison : « Pas encore livré » en orange, l'état à traiter (texte + badge, jamais la seule couleur) */
.pickadate-delivery.is-not-delivered { color: #E07B12; font-weight: 600; }
.fc-not-delivered { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; color: #E07B12; background: #fff3e4; white-space: nowrap; }
.datepicker .clear.fc-not-delivered-btn { color: #E07B12; font-weight: 600; }
.fc-delivery-counter { margin: 0 0 12px; font-size: 13px; color: #455a64; }
.fc-delivery-counter a { color: #E07B12; font-weight: 600; cursor: pointer; }
.fc-delivery-counter .fc-muted { color: #90a4ae; margin-left: 6px; }
/* [ETAPE 2] page « À classer » : un tableau, un choix par ligne */
.fc-classer .fc-classer-sub { display: block; font-size: 12px; color: #90a4ae; }
/* [11/11/2026] segment doux, comme .fc-tva-seg des réglages : fond gris, choix actif en pastille blanche */
.fc-classer .fc-seg { display: inline-flex; background: #f2f5f8; border-radius: 6px; padding: 3px; white-space: nowrap; }
.fc-classer .fc-seg button { border: 0; background: none; padding: 5px 13px; border-radius: 4px; font-size: 13px; color: #67757c; cursor: pointer; }
.fc-classer .fc-seg button:focus { outline: 0; }
.fc-classer .fc-seg button:disabled { cursor: default; }
.fc-classer .fc-seg button.active { background: #fff; color: #20aee3; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 500; }
.fc-classer .fc-classer-note { margin-top: 14px; font-size: 13px; color: #78909c; }
.fc-classer .fc-classer-title { font-size: 15px; font-weight: 600; margin: 28px 0 12px; }
.fc-classer .fc-classer-empty { text-align: center; padding: 60px 0; font-size: 16px; font-weight: 600; color: #263238; }
.fc-banner { display: flex; align-items: center; gap: 16px; border-radius: 4px; padding: 12px 18px; margin: 0 0 14px; font-size: 14px; }
.fc-banner.fc-banner-warn { background: #fff7ec; border: 1px solid #f6d7b0; color: #6d4c1f; }
.fc-banner.fc-banner-info { background: #eef8fd; border: 1px solid #c4e6f5; color: #2c4a57; }
.fc-banner .fc-banner-action { margin-left: auto; white-space: nowrap; }

/* [ETAPE 4] cadenas en tête d'une facture encaissée ou déclarée (maquette E4-05) : le constat, la règle en infobulle */
.fc-inv-lockline { display: flex; align-items: center; gap: 10px; clear: both; padding: 10px 14px; margin: 14px 0 4px; border-radius: 6px; background: #f5f7f9; border: 1px solid #e3e8ec; color: #455a64; font-size: 14px; }
.fc-inv-lockline > i.mdi { font-size: 17px; color: #9aa6ad; }
.fc-inv-lockline .fc-inv-lockinfo { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b8c3ca; color: #8a979e; font-size: 11px; font-style: normal; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: help; }
/* éditeur d'une facture verrouillée : champs comptables en lecture seule, sans ajout ni suppression ni déplacement de ligne, sans bascule HT / TTC */
.fc-inv-locked input[name="bill_date"], .fc-inv-locked .js_item_quantity, .fc-inv-locked .js_item_rate_display, .fc-inv-locked .js_item_total_display, .fc-inv-locked tr.billing-line-item select { pointer-events: none; background-color: #f5f7f9; }
.fc-inv-locked tr.billing-line-item select { -webkit-appearance: none; appearance: none; background-image: none; }
.fc-inv-locked .js-billing-line-item-delete, .fc-inv-locked tr.billing-line-item .sl-icon-menu, .fc-inv-locked .invoice-item-actions, .fc-inv-locked #billing-price-mode, .fc-inv-locked .bill-taxes-discounts-container { display: none !important; }

/* [ETAPE 5] avoir lié (maquette E5-01) : désignation, unité et taux figés avec un cadenas, quantité et prix plafonnés */
.fc-credit-locked .x-description, .fc-credit-locked .x-unit, .fc-credit-locked .x-tax { position: relative; }
.fc-credit-locked .js_item_unit[readonly] { background-color: #f5f7f9; color: #6c757d; }
.fc-credit-locked .js_item_description[readonly] { display: none; }
.fc-credit-locked .fc-credit-desc { display: block; width: 100%; height: auto; min-height: 70px; padding-right: 28px; background-color: #f5f7f9; color: #6c757d; overflow-wrap: anywhere; }
.fc-credit-locked .fc-credit-desc p { margin: 0; }
.fc-credit-locked .js_item_tax { pointer-events: none; background-color: #f5f7f9; color: #6c757d; -webkit-appearance: none; appearance: none; background-image: none; }
.fc-credit-lock { position: absolute; right: 14px; top: 12px; font-size: 11px; color: #adb5bd; pointer-events: none; }
.fc-credit-origin { display: block; margin-top: 3px; color: #98a4ad; font-size: 11px; }
.fc-cap-error { color: #e04f5f; font-size: 11px; margin-top: 3px; }
.fc-credit-remaining { color: #6c757d; }

/* [ETAPE 5, lot 5] avoir d'un montant global (maquette E5-02) : bascule, champ et lignes en lecture seule */
.fc-credit-remaining .fc-pm__seg { margin-right: 14px; }
.fc-credit-global-field { display: inline-flex; align-items: center; gap: 8px; }
.fc-credit-global-field .fc-pm__label { margin: 0; }
.fc-credit-global-field input { width: 130px; display: inline-block; }
.fc-credit-cap { color: #98a4ad; font-size: 12px; }
.fc-credit-global .js_item_quantity, .fc-credit-global .js_item_rate_display { pointer-events: none; background-color: #f5f7f9; color: #6c757d; }
.fc-credit-global .js_item_rate_display::placeholder { color: #6c757d; opacity: 1; }
.fc-credit-global .js-billing-line-item-delete, .fc-credit-global tr.billing-line-item .sl-icon-menu { display: none !important; }

/* [ETAPE 6] case Immobilisation de la fenêtre de dépense */
.fc-xm-fixed-asset { margin-top: 4px; }
.fc-xm-fixed-asset-label { margin: 0; font-weight: 500; cursor: pointer; }

/* [ETAPE 7] espace comptable (SPEC §4.7) : barre de premier niveau B2, carte de page, en-tête, onglets, tableaux, filtres */
/* [11/11/2026] le conteneur garde les 25 px du thème au-dessus de la barre, comme sur les côtés (8 px la collaient à l'en-tête) */
.fc-ct-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff; border: 1px solid #e3e8ec; border-radius: 6px; padding: 8px; margin: 0 0 18px; }
.fc-ct-bar > a, .fc-ct-bar > span.off, .fc-ct-more-btn { display: inline-block; padding: 8px 14px; font-size: 14px; font-weight: 600; color: #455a64; border-radius: 5px; white-space: nowrap; }
.fc-ct-bar > a:hover, .fc-ct-more-btn:hover { background: #f2f5f8; color: #263238; }
.fc-ct-bar > a.on, .fc-ct-more-btn.on { background: #20AEE3; color: #fff; }
.fc-ct-bar > a.on:hover, .fc-ct-more-btn.on:hover { background: #1a9ccb; color: #fff; }
.fc-ct-bar > span.off { color: #b0bec5; cursor: default; }
.fc-ct-bar > a em { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: #E07B12; border-radius: 9px; padding: 1px 7px; margin-left: 6px; }
.fc-ct-bar > a.on em { background: #fff; color: #E07B12; }
.fc-ct-more { margin-left: auto; }
.fc-ct-more-btn:after { content: ' \25BE'; opacity: .6; }
.fc-ct-more .dropdown-item.disabled { color: #b0bec5; }
.fc-ct-solo { background: #fff; border: 1px solid #e3e8ec; border-radius: 6px; padding: 18px 24px 24px; }
.fc-ct-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 16px; }
.fc-ct-head h2 { font-size: 17px; font-weight: 700; color: #263238; margin: 0; }
.fc-ct-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #546e7a; }
.fc-ct-sp { flex: 1; }
.fc-ct-tabs { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 14px; font-size: 13px; border-bottom: 1px solid #e3e8ec; }
.fc-ct-tabs a { color: #78909c; padding: 0 2px 8px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fc-ct-tabs a:hover { color: #37474f; }
.fc-ct-tabs a.on { color: #20AEE3; font-weight: 600; border-bottom-color: #20AEE3; }
.fc-ct-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 10px; }
/* [09/11/2026] un seul champ « Rechercher un compte », en graisse normale, la loupe discrète */
.fc-ct-search { display: inline-flex; gap: 8px; align-items: center; width: min(320px, 100%); padding: 7px 12px; border: 1px solid #dfe5ea; border-radius: 4px; background: #fff; margin: 0; }
.fc-ct-search i { color: #90a4ae; font-size: 13px; }
.fc-ct-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 13.5px; font-weight: 400; color: #37474f; background: transparent; }
.fc-ct-search input::placeholder { color: #90a4ae; }
.fc-ct-check { font-size: 12.5px; color: #546e7a; margin: 0 0 0 auto; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.fc-ct-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fc-ct-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #90a4ae; padding: 8px 10px; border-bottom: 1px solid #e3e8ec; white-space: nowrap; }
.fc-ct-table td { padding: 8px 10px; border-bottom: 1px solid #f1f4f6; color: #37474f; vertical-align: middle; }
.fc-ct-table .fc-ct-acc { color: #78909c; font-variant-numeric: tabular-nums; margin-right: 6px; }
.fc-ct-table .fc-ct-mut, .fc-ct-mut { color: #90a4ae; }
.fc-ct-table .fc-ct-actions { text-align: right; white-space: nowrap; }
.fc-ct-table .fc-ct-actions a { color: #20AEE3; font-weight: 500; margin-left: 14px; }
.fc-ct-table tr.is-archived { display: none; }
.fc-ct-table.show-archived tr.is-archived { display: table-row; }
.fc-ct-table tr.is-archived td { color: #b0bec5; }
.fc-ct-table tr.is-archived .fc-ct-acc { color: #cfd8dc; }
.fc-ct-table tr.is-filtered { display: none; }
.fc-ct-locked { color: #b0bec5; margin-left: 14px; }
.fc-ct-err { color: #d84a4a; margin-left: 6px; }
/* [11/11/2026] sur la liste d'origine seulement : select2 recopie les classes sur son cadre, qui rétrécissait à 170 px, flèche dehors */
.fc-ct-table select.fc-ct-select { min-width: 170px; max-width: 320px; display: inline-block; width: auto; }
.fc-ct-table .fc-ct-input { max-width: 180px; display: inline-block; }
.fc-ct-table .fc-ct-input-code { max-width: 120px; text-transform: uppercase; }
.fc-ct-empty { text-align: center; padding: 60px 0 54px; font-size: 16px; font-weight: 600; color: #263238; margin: 0; }
.fc-ct-form-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: start; max-width: 720px; font-size: 14px; color: #37474f; margin-bottom: 16px; }
.fc-ct-form-row > span { color: #67757c; padding-top: 4px; }
.fc-ct-form-row .fc-ct-input { max-width: 180px; }
.fc-ct-modal .form-group { margin-bottom: 12px; }
@media (max-width: 767px) { .fc-ct-form-row { grid-template-columns: 1fr; gap: 4px; } .fc-ct-more { margin-left: 0; } }

/* [ETAPE 7, lot 3] assistant de démarrage : étapes, deux options de même rang, champs, aperçu d'import */
.fc-ct-note { color: #78909c; font-size: 13px; margin: 0 0 14px; }
.fc-ct-step-actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.fc-ct-link-mut { color: #78909c; font-size: 13px; }
.fc-ct-link-mut:hover { color: #455a64; }
.fc-ct-check-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13.5px; color: #37474f; cursor: pointer; }
.fc-ct-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13.5px; color: #67757c; }
.fc-ct-input-xs { width: 60px; display: inline-block; }
.fc-ct-select-sm { width: auto; display: inline-block; }
.fc-ct-banner-tight { margin-top: 10px; flex-wrap: wrap; }
.fc-ct-table-narrow { max-width: 760px; }
.fc-ct-opening-state { margin: 0 0 14px; font-size: 13.5px; }
/* [09/11/2026] démarrage, étape 3 : la banque et la caisse, le reste repris des pièces, l'import en lien */
.fc-ct-help { color: #b0bec5; margin-left: 5px; cursor: help; font-size: 12px; vertical-align: -1px; }
.fc-ct-help:hover { color: #78909c; }
.fc-ct-form-row > span small { display: block; color: #90a4ae; font-size: 12px; margin-top: 1px; }
.fc-ct-alt { margin: 18px 0 0; font-size: 13px; color: #78909c; }
.fc-ct-alt a { color: #2b7fbd; }
.fc-ct-drop { max-width: 720px; }
.fc-ct-subtitle { font-size: 13.5px; font-weight: 700; color: #263238; margin: 22px 0 10px; }
.fc-ct-subtitle:first-child { margin-top: 4px; }
.fc-ct-upload { max-width: 720px; }
.fc-ct-mapping { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 16px; }
.fc-ct-mapping-item { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #78909c; margin: 0; min-width: 150px; }
.fc-ct-mapping-apply { margin-bottom: 1px; }
.fc-ct-table .fc-ct-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-ct-table tfoot td { font-weight: 600; border-top: 1px solid #e3e8ec; border-bottom: 0; }

/* [ETAPE 7] lot 6 : journaux, saisie d'une écriture diverse, dépôt ou retrait d'espèces */
.fc-ct-tabs small { font-size: 11px; color: #90a4ae; margin-left: 3px; letter-spacing: .02em; }
.fc-ct-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; }
.fc-ct-filter label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: #546e7a; }
.fc-ct-input-date { width: 112px; display: inline-block; }
.fc-ct-journal td, .fc-ct-journal th { vertical-align: middle; }
.fc-ct-journal .fc-ct-row-end { text-align: right; white-space: nowrap; color: #90a4ae; }
.fc-ct-journal .fc-ct-row-end a { color: #90a4ae; margin-left: 10px; }
.fc-ct-journal .fc-ct-row-end a:hover { color: #e53935; }
.fc-ct-origin { display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.fc-ct-origin.is-auto { background: #e3f3fb; color: #1e88c7; }
.fc-ct-origin.is-manual { background: #eceff1; color: #546e7a; }
.fc-ct-empty { color: #90a4ae; text-align: center; padding: 26px 0 !important; }
.fc-ct-entry-head { display: grid; grid-template-columns: 110px minmax(180px, 280px) 120px minmax(180px, 280px); gap: 12px 10px; align-items: center; margin: 0 0 16px; max-width: 760px; }
.fc-ct-entry-head span { font-size: 13px; color: #78909c; }
.fc-ct-entry-head .fc-ct-wide { grid-column: 2 / span 3; }
.fc-ct-lines { width: 100%; border-collapse: collapse; }
.fc-ct-lines th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #90a4ae; font-weight: 600; text-align: left; padding: 6px 8px; border-bottom: 1px solid #e3e8ec; }
.fc-ct-lines td { padding: 6px 8px; border-bottom: 1px solid #eef1f3; vertical-align: middle; }
.fc-ct-lines td.fc-ct-num, .fc-ct-lines th.fc-ct-num { text-align: right; }
.fc-ct-lines .fc-ct-amount { text-align: right; font-variant-numeric: tabular-nums; max-width: 150px; margin-left: auto; }
.fc-ct-lines .fc-ct-aux { max-width: 160px; }
.fc-ct-lines .fc-ct-acc { min-width: 240px; }
.fc-ct-lines tfoot td { font-weight: 700; border-bottom: 0; }
.fc-ct-lines .fc-ct-line-del { color: #b0bec5; }
.fc-ct-lines .fc-ct-line-del:hover { color: #e53935; }
.fc-ct-balanced { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 3px; background: #e6f6ec; color: #2e7d32; font-size: 12px; font-weight: 600; }
.fc-ct-gap { margin: 14px 0 0; padding: 12px 16px; border: 1px solid #f5c6c6; background: #fdecec; color: #b71c1c; border-radius: 4px; font-size: 13.5px; }
.fc-ct-gap b { font-weight: 700; }
.fc-ct-lines tfoot .is-off { color: #c62828; }
.fc-ct-entry-tools { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 0; font-size: 13.5px; }
.fc-ct-drop { max-width: 520px; margin-top: 12px; }
.fc-ct-drop .dropzone { min-height: 90px; padding: 14px; border: 1px dashed #b0bec5; border-radius: 4px; background: #fafbfc; }
.fc-ct-files { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: #546e7a; }
.fc-ct-files li { padding: 3px 0; }
.fc-ct-radio-row { display: flex; gap: 22px; margin-bottom: 14px; }
.fc-ct-radio-row label { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13.5px; color: #37474f; cursor: pointer; }
.fc-ct-radio-row input[type="radio"] { -webkit-appearance: radio; appearance: auto; opacity: 1; position: static; width: 16px; height: 16px; margin: 0; }

/* [ETAPE 7] lot 7 : carte en tête, graphique de l'exercice, bascule, états, bandeau de la balance */
.fc-ct-card { display: flex; flex-wrap: wrap; border: 1px solid #e3e8ec; border-radius: 6px; margin: 0 0 16px; background: #fff; }
.fc-ct-card-main { flex: 1 1 460px; min-width: 0; padding: 16px 20px 10px; }
.fc-ct-card-side { flex: 0 1 380px; min-width: 260px; border-left: 1px solid #eef1f3; padding: 12px 20px; display: flex; flex-direction: column; }
.fc-ct-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fc-ct-card-title { font-size: 14px; color: #37474f; }
.fc-ct-card-caption { font-size: 12.5px; color: #90a4ae; white-space: nowrap; }
.fc-ct-card-big { font-size: 28px; font-weight: 700; color: #263238; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.fc-ct-card-big small { font-size: 13px; font-weight: 400; color: #90a4ae; margin-left: 6px; }
.fc-ct-chart { width: 100%; height: 150px; display: block; }
.fc-ct-chart-grid { stroke: #eceff1; stroke-width: 1; }
.fc-ct-chart-axis { stroke: #cfd8dc; stroke-width: 1; }
.fc-ct-chart-scale { fill: #b0bec5; font-size: 11px; }
.fc-ct-chart-month { fill: #b0bec5; font-size: 11px; }
.fc-ct-chart-month.is-current { fill: #37474f; font-weight: 700; }
.fc-ct-chart-bar { fill: #cfe8f5; }
.fc-ct-chart-bar.is-current { fill: #1e9cd7; }
.fc-ct-chart-area { fill: #e3f3fb; }
.fc-ct-chart-line { fill: none; stroke: #1e9cd7; stroke-width: 2.5; stroke-linejoin: round; }
.fc-ct-chart-dot { fill: #1e9cd7; }
.fc-ct-card-row { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef1f3; font-size: 13.5px; color: #37474f; }
.fc-ct-card-row:last-of-type { border-bottom: 0; }
.fc-ct-card-n { color: #1e9cd7; min-width: 18px; font-size: 15px; }
.fc-ct-card-label { flex: 1; }
.fc-ct-card-value { color: #546e7a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fc-ct-card-link { color: #1e9cd7; white-space: nowrap; }
.fc-ct-card-action { margin-top: auto; padding-top: 12px; text-align: right; }
.fc-ct-toggle { display: inline-flex; border: 1px solid #cfd8dc; border-radius: 4px; overflow: hidden; }
.fc-ct-toggle a { padding: 5px 14px; font-size: 13px; color: #546e7a; }
.fc-ct-toggle a.on { background: #1e9cd7; color: #fff; }
.fc-ct-toggle a:not(.on):hover { background: #f5f7f8; }
.fc-ct-state { display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fc-ct-state.is-ok { background: #e6f6ec; color: #2e7d32; }
.fc-ct-state.is-info { background: #e3f3fb; color: #1e88c7; }
.fc-ct-state.is-danger { background: #fdecec; color: #c62828; }
.fc-ct-state.is-muted { background: #eceff1; color: #546e7a; }
.fc-ct-state.is-warn { background: #fff3e0; color: #ef6c00; }
.fc-ct-dim { color: #90a4ae; }
.fc-ct-entries tr.fc-ct-entry-first td { border-top: 1px solid #dfe5e9; }
.fc-ct-letter { font-weight: 700; }
.fc-ct-letter.is-done { color: #2e7d32; }
.fc-ct-letter.is-part { color: #ef6c00; }
.fc-ct-band { border: 1px solid #e3e8ec; border-radius: 6px; padding: 14px 20px; margin: 0 0 16px; background: #fff; }
.fc-ct-band-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fc-ct-band-title { font-size: 14.5px; font-weight: 600; color: #37474f; }
.fc-ct-band-metrics { display: flex; flex-wrap: wrap; gap: 10px 40px; }
.fc-ct-band-metrics div { display: flex; flex-direction: column; gap: 2px; }
.fc-ct-band-metrics span { font-size: 12.5px; color: #90a4ae; }
.fc-ct-band-metrics b { font-size: 20px; color: #263238; font-variant-numeric: tabular-nums; }
.fc-ct-band-metrics b.is-off { color: #c62828; }
.fc-ct-band-metrics b.is-warn { color: #ef6c00; }

/* [ETAPE 7] lot 8 : tableau de bord, À classer, échéanciers, compte de résultat, bilan, historique, À traiter */
.fc-ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .fc-ct-grid { grid-template-columns: 1fr; } }
.fc-ct-grid .fc-ct-card { margin: 0; flex-direction: column; }
.fc-ct-grid .fc-ct-card-main { flex: 1 1 auto; }
.fc-ct-grid .fc-ct-card-side { border-left: 0; border-top: 1px solid #eef1f3; flex: 0 0 auto; min-width: 0; }
.fc-ct-chart-bar.is-negative { fill: #f8d3bd; }
.fc-ct-chart-bar.is-negative.is-current { fill: #ef6c00; }
.fc-ct-cell-account { width: 320px; }
.fc-ct-cell-account .select2-container { width: 100% !important; min-width: 0; }
.fc-ct-card-foot { display: flex; align-items: center; gap: 12px; padding-top: 12px; margin-top: auto; }
.fc-ct-card-row .fc-ct-state { margin-left: 8px; }
.fc-ct-badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: #ef6c00; color: #fff; font-size: 11px; font-weight: 700; text-align: center; vertical-align: middle; }
.fc-ct-bar a.on .fc-ct-badge { background: #fff; color: #ef6c00; }
.fc-ct-disabled { opacity: .55; cursor: not-allowed; pointer-events: auto; }
.fc-ct-section { border: 1px solid #e3e8ec; border-radius: 6px; padding: 14px 20px 10px; margin: 0 0 16px; background: #fff; }
.fc-ct-section h3 { font-size: 14.5px; font-weight: 700; color: #263238; margin: 0 0 10px; }
.fc-ct-section h3 .fc-ct-count { color: #ef6c00; margin-left: 6px; }
.fc-ct-section h3 small { font-weight: 400; color: #90a4ae; font-size: 12.5px; margin-left: 8px; }
.fc-ct-section .fc-ct-table { margin-bottom: 4px; }
.fc-ct-sub { display: block; font-size: 12.5px; color: #90a4ae; margin-top: 2px; }
.fc-ct-seg { display: inline-flex; border: 1px solid #cfd8dc; border-radius: 4px; overflow: hidden; white-space: nowrap; }
.fc-ct-seg label { margin: 0; padding: 5px 12px; font-size: 13px; color: #546e7a; cursor: pointer; border-right: 1px solid #cfd8dc; position: relative; }
.fc-ct-seg label:last-child { border-right: 0; }
.fc-ct-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.fc-ct-seg label.on { background: #1e9cd7; color: #fff; }
.fc-ct-age { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #eceff1; margin: 12px 0 8px; }
.fc-ct-age span { display: block; height: 100%; }
.fc-ct-age .b0 { background: #1e9cd7; } .fc-ct-age .b1 { background: #f5c08a; } .fc-ct-age .b2 { background: #ef6c00; } .fc-ct-age .b3 { background: #c62828; }
.fc-ct-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: #546e7a; }
.fc-ct-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.fc-ct-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .fc-ct-two { grid-template-columns: 1fr; } }
.fc-ct-table tr.fc-ct-group td { font-weight: 700; color: #263238; padding-top: 12px; border-bottom: 1px solid #dfe5e9; }
.fc-ct-table tr.fc-ct-total td { font-weight: 700; border-top: 1px solid #e3e8ec; }
.fc-sit.fc-home-todo { gap: 14px; }

/* [ETAPE 7] lot 9 : compte d'immobilisation avec la case */
.fc-xm-fixed-asset-account { margin-top: 8px; }
.fc-xm-fixed-asset-account .col-form-label { padding: 0 0 4px; font-size: 13px; }
.fc-xm-fixed-asset:has(#expense_fixed_asset:not(:checked)) .fc-xm-fixed-asset-account { display: none; }
/* [11/11/2026] compte de charge du formulaire de dépense : il laisse la place au compte d'immobilisation quand la case est cochée */
.fc-xm-form:has(#expense_fixed_asset:checked) .fc-xm-charge-account { display: none; }
.fc-xm-opt { margin-left: 6px; font-size: 12px; font-weight: 400; color: #9aa4b0; }
/* le thème sort les cases natives de l'écran (left: -9999px) et dessine la case sur le libellé qui SUIT ; ces cases sont
   DANS leur libellé : [11/11/2026] la case elle-même prend le dessin des cases de l'application (20 px, coche blanche sur bleu) */
.fc-ct-check-inline input[type="checkbox"] { -webkit-appearance: none; appearance: none; opacity: 1; position: static; left: auto; width: 20px; height: 20px; margin: 0; flex: 0 0 auto;
    border: 1px solid #b1b8bb; border-radius: 2px; background: #fff center / 14px 14px no-repeat; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.fc-ct-check-inline input[type="checkbox"]:checked { border-color: #03A9F4; background-color: #03A9F4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fc-ct-check-inline input[type="checkbox"]:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(3, 169, 244, .2); }
.fc-ct-check-inline input[type="checkbox"]:disabled { opacity: .5; cursor: default; }
/* dans une ligne de tableau, la case s'aligne sur les champs de la ligne */
.fc-ct-table td > .fc-ct-check-inline { margin-bottom: 0; vertical-align: middle; }

/* [ETAPE 7] lot 10 : clôture de l'exercice */
.fc-ct-checks td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
.fc-ct-checks .fc-ct-check-label { font-weight: 600; color: #263238; width: 230px; }
.fc-ct-checks .fc-ct-check-state { width: 110px; }
.fc-ct-check-link { text-align: right; white-space: nowrap; }
.fc-ct-inline-form { display: inline-flex; align-items: center; gap: 6px; }
/* [08/11/2026] audit 8, point 15 : le marqueur « clôturé chez le cabinet » de l'exercice terminé */
.fc-ct-firm-current { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }

/* [ETAPE 7] lot 11 : exports, page organisée par tâche (revue le 05/11) : export comptable, autres téléchargements */
.fc-ct-xp { padding: 4px 0 0; margin: 0 0 8px; border: 0; background: none; }
.fc-ct-xp + .fc-ct-xp { margin-top: 26px; padding-top: 24px; border-top: 1px solid #eef1f3; }
.fc-ct-xp-head { margin-bottom: 16px; }
.fc-ct-xp-head h3 { margin: 0 0 4px; font-size: 15px; }
.fc-ct-xp-head p { max-width: 760px; margin: 0; font-size: 13px; line-height: 1.5; color: #78909c; }
.fc-ct-xp-next { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 12px 28px; padding: 16px 20px; border-left: 3px solid #1e9cd7; border-radius: 0 6px 6px 0; background: #f5fafd; }
.fc-ct-xp-next.is-open { border-radius: 0 6px 0 0; }
.fc-ct-xp-next.is-blocked { border-left-color: #ef6c00; background: #fff8ef; }
.fc-ct-xp-next.is-idle { grid-template-columns: 1fr; border-left-color: #cfd8dc; background: #f7f9fa; }
.fc-ct-xp-period b, .fc-ct-xp-what b { display: block; font-size: 14.5px; font-weight: 600; color: #263238; }
.fc-ct-xp-period span, .fc-ct-xp-what > span { display: block; margin-top: 2px; font-size: 12.5px; color: #78909c; }
.fc-ct-xp-next.is-blocked .fc-ct-xp-what b { color: #a65300; }
.fc-ct-xp-action { justify-self: end; }
.fc-ct-xp-journals { padding: 12px 20px 12px; border-left: 3px solid #1e9cd7; border-top: 1px solid #e1eff7; border-radius: 0 0 6px 0; background: #f5fafd; }
.fc-ct-xp-journals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; }
.fc-ct-xp-journal { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 0; font-size: 13.5px; color: #37474f; cursor: pointer; }
.fc-ct-xp-journal input[type="checkbox"] { -webkit-appearance: checkbox; appearance: auto; opacity: 1; position: static; left: auto; width: 15px; height: 15px; margin: 0; flex: 0 0 auto; }
.fc-ct-xp-journal span { flex: 1; min-width: 0; } .fc-ct-xp-journal span b { margin-right: 4px; font-weight: 600; }
.fc-ct-xp-journal em { font-style: normal; font-size: 12.5px; color: #90a4ae; white-space: nowrap; }
.fc-ct-xp-journal:has(input:not(:checked)) span { color: #90a4ae; }
.fc-ct-xp-note { margin: 10px 0 0; font-size: 12.5px; color: #90a4ae; }
.fc-ct-xp-warn { margin: 10px 0 0 23px; font-size: 13px; line-height: 1.45; color: #1b6fa6; }
.fc-ct-xp-sub { margin: 22px 0 2px; font-size: 13px; font-weight: 600; color: #546e7a; }
.fc-ct-xp-done-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1fr) 110px minmax(0, 1.2fr) 140px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef1f3; font-size: 13.5px; color: #546e7a; }
.fc-ct-xp-done-row:last-child { border-bottom: 0; }
.fc-ct-xp-done-row > b { font-weight: 600; color: #263238; }
.fc-ct-xp-done-row.is-cancelled, .fc-ct-xp-done-row.is-cancelled > b, .fc-ct-xp-done-row.is-cancelled a { color: #a7b6bf; }
.fc-ct-xp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fc-ct-xp-files { display: flex; flex-wrap: wrap; gap: 4px 16px; } .fc-ct-xp-files a { white-space: nowrap; }
.fc-ct-xp-end { justify-self: end; white-space: nowrap; }
.fc-ct-export-cancel { color: #c62828; font-size: 12.5px; }
.fc-ct-export-cancel:hover { color: #8e0000; }
.fc-ct-xp-empty { margin: 8px 0 12px; font-size: 13px; color: #90a4ae; }
.fc-ct-xp-dl { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; margin: 0; padding: 14px 0; border-top: 1px solid #eef1f3; }
.fc-ct-xp-head + .fc-ct-xp-dl { border-top: 0; padding-top: 0; }
.fc-ct-xp-dl-text b { display: block; font-size: 14px; font-weight: 600; color: #263238; }
.fc-ct-xp-dl-text > span { display: block; margin-top: 2px; font-size: 12.5px; color: #78909c; }
.fc-ct-xp-dl-text .fc-ct-xp-last { color: #90a4ae; }
.fc-ct-xp-dl-fields { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: #546e7a; }
.fc-ct-xp-dl-fields label { display: flex; align-items: center; gap: 8px; margin: 0; }
.fc-ct-xp-dl-fields select { width: auto; }
.fc-ct-xp-dl-action { justify-self: end; }
@media (max-width: 700px) {
  .fc-ct-xp-warn { margin-left: 0; }
  .fc-ct-xp-next, .fc-ct-xp-dl { grid-template-columns: 1fr; gap: 10px; }
  .fc-ct-xp-action, .fc-ct-xp-dl-action { justify-self: start; }
  .fc-ct-xp-journals-grid { grid-template-columns: 1fr; }
  .fc-ct-xp-done-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .fc-ct-xp-done-row > span:nth-of-type(1) { grid-column: 1; grid-row: 2; font-size: 12.5px; }
  .fc-ct-xp-done-row .fc-ct-xp-num { grid-column: 2; grid-row: 1; }
  .fc-ct-xp-done-row .fc-ct-xp-files { grid-column: 1 / -1; grid-row: 3; }
  .fc-ct-xp-done-row .fc-ct-xp-end { grid-column: 1 / -1; grid-row: 4; justify-self: start; }
}
.fc-ct-closing-confirm p { margin: 0 0 12px; font-size: 14px; }
.fc-ct-transition { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fc-ct-transition span { flex: 1 1 320px; }

/* [ESPACE COMPTABLE] un compte sans aucune pièce (décision du 05/11/2026) : la page en aperçu, en faible opacité, et
   par-dessus une carte qui dit d'où viendront les données (pages/compta/parts/demo) */
.fc-ct-demo { position: relative; min-height: 440px; }
/* [09/11/2026] flou : les montants d'exemple ne se lisent pas, rien d'ambigu */
.fc-ct-demo-preview { overflow: hidden; opacity: .45; filter: blur(4px) saturate(.6); pointer-events: none; user-select: none; }
.fc-ct-demo-card { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 32px));
    padding: 24px 26px; border-radius: 12px; background: #fff; box-shadow: 0 14px 40px rgba(31, 45, 61, .16); text-align: center; }
.fc-ct-demo-card b { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 600; color: #2b333c; }
.fc-ct-demo-card p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: #5f6b77; }
.fc-ct-demo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 640px) {
    .fc-ct-demo-card { top: 16px; padding: 20px 18px; }
}

/* [09/11/2026] Accueil : cadre « Situation de l'entreprise » (pages/home/admin/widgets/fourth-row/moduletva) : le chiffre
   d'affaires en tête, puis quatre cases */
.fc-sit { display: grid; gap: 18px; }
.fc-sit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fc-sit-title { margin: 0; }
.fc-sit-link { font-size: 13px; white-space: nowrap; }
.fc-sit-hero { display: grid; gap: 4px; }
.fc-sit-label { color: #8a96a3; font-size: 13px; }
.fc-sit-big { display: inline-flex; align-items: baseline; gap: 5px; color: #2b333c; font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fc-sit-gauge { display: grid; gap: 6px; margin-top: 8px; }
.fc-sit-name { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; color: #8a96a3; font-size: 12.5px; }
.fc-sit-name-what { color: #2b333c; font-weight: 600; }
.fc-sit-name .money-cur { font-size: .85em; font-weight: 400; opacity: 1; }
.fc-sit-bar { position: relative; display: block; height: 12px; border-radius: 6px; background: #eef1f4; overflow: hidden; }
.fc-sit-bar > span { display: block; height: 100%; border-radius: 6px; background: #55a9e0; }
.fc-sit-bar.is-over > span { background: #e46a76; }
.fc-sit-step { position: absolute; top: 0; bottom: 0; left: 80%; width: 2px; margin-left: -1px; background: #7b8794; }
.fc-sit-step-label { margin-left: auto; margin-right: 20%; transform: translateX(50%); white-space: nowrap; }
.fc-sit-big .money-cur { font-size: .5em; margin-left: 0; }
.fc-sit-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; color: #8a96a3; font-size: 12.5px; }
.fc-sit-note .money-cur { font-size: .85em; font-weight: 400; opacity: 1; }
.fc-sit-note .is-over { flex-basis: 100%; color: #e46a76; font-weight: 600; }
.fc-sit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-sit-grid > div { display: grid; gap: 3px; align-content: start; padding: 10px 12px; border-radius: 6px; background: #f6f8fa; }
.fc-sit-grid span { color: #8a96a3; font-size: 12px; }
.fc-sit-grid b { color: #2b333c; font-size: 14px; font-weight: 600; line-height: 1.35; }
.fc-sit-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.fc-sit-todo a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 6px; background: #f6f8fa; color: #2b333c; line-height: 1.35; }
.fc-sit-todo a:hover { background: #edf1f5; color: #2b333c; text-decoration: none; }
.fc-sit-todo b { display: block; font-size: 14px; font-weight: 600; }
.fc-sit-todo small { display: block; margin-top: 2px; color: #8a96a3; font-size: 12.5px; }
.fc-sit-todo a.is-urgent small { color: #ef6c00; font-weight: 600; }
.fc-sit-todo i { color: #b3bcc6; font-size: 10px; }

/* [09/11/2026] Déclaration TVA (1010) : en-tête à une action principale et un menu « Plus » */
.fc-decl-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; }
.fc-decl-head-info { display: grid; gap: 2px; min-width: 0; }
.fc-decl-head-period { font-size: 18px; font-weight: 600; color: #2b333c; }
.fc-decl-head-kind { margin-left: 10px; font-size: 13px; font-weight: 600; color: #b54708; }
.fc-decl-head-state { font-size: 13.5px; color: #67757c; }
.fc-decl-head-actions { display: flex; align-items: center; gap: 10px; }
.fc-decl-more .dropdown-item { font-size: 14px; padding: 8px 16px; color: #2b333c; cursor: pointer; }

/* [09/11/2026] Déclarations de TVA : les échéances et l'historique, chacun sous son titre */
.fc-decl-section { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #2b333c; }

/* [09/11/2026] Tableau de bord comptable, démarrage incomplet : une grande carte au-dessus de l'aperçu estompé */
.fc-ct-demo-card.is-setup { width: min(480px, calc(100% - 32px)); padding: 36px 32px; }
.fc-ct-demo-card.is-setup b { font-size: 21px; }
.fc-ct-demo-card.is-setup p { margin-bottom: 22px; font-size: 15px; }
.fc-ct-demo-card.is-setup .btn { padding: 9px 22px; font-size: 15px; }

/* [09/11/2026] Démarrage de la comptabilité pas à pas : barre des étapes, une étape à l'écran, comptes essentiels */
.fc-ct-wizard-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #2b333c; }
.fc-ct-accounts { display: grid; gap: 10px; max-width: 620px; }
.fc-ct-account-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0; font-weight: 400; }
.fc-ct-account-row > span { color: #455261; }
@media (max-width: 600px) { .fc-ct-account-row { grid-template-columns: 1fr; gap: 4px; } }

/* [09/11/2026] select2 dans le module comptable : la largeur des anciennes listes */
.fc-ct-table .select2-container { min-width: 170px; max-width: 320px; }
.fc-ct-filter .select2-container { min-width: 140px; }
.fc-ct-th-period small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: #b0bec5; margin-top: 2px; }

/* [09/11/2026] Plan comptable : un menu « ⋯ » par ligne, le cadenas à côté du numéro */
#fc-ct-plan .fc-ct-actions { width: 52px; text-align: right; }
/* [11/11/2026] menu « ⋯ » du plan : celui des listes de l'application ; les liens du menu ne prennent pas le style des liens d'action */
.fc-ct-table .fc-ct-actions .dropdown-menu a.dropdown-item { margin-left: 0; color: inherit; font-weight: inherit; }
.fc-ct-plan-lock { margin-left: 8px; font-size: 12px; color: #90a4ae; }

/* [09/11/2026] Soldes de départ : factures à encaisser, dépenses à payer et leur TVA, en résumé non modifiable */
.fc-ct-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.fc-ct-sum > b { font-size: 15px; color: #2b333c; font-variant-numeric: tabular-nums; }
.fc-ct-sum-detail { flex-basis: 100%; }
.fc-ct-sum-detail > summary { display: inline; cursor: pointer; color: #2b7fbd; font-size: 13.5px; }
.fc-ct-sum-detail[open] > summary { display: block; margin-bottom: 8px; }
.fc-ct-sum-note { margin: 0 0 8px; }

/* [10/11/2026] module Banque : la barre et « Mes comptes » en cartes */
.fc-bk-bar { margin-bottom: 14px; }
.fc-bk-bar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.fc-bk-bar-right .btn { margin-right: 4px; }
.fc-bk-bar-right .fc-ct-more { margin-left: 0; }
/* bootstrap impose le bleu au bouton actif en !important (texte invisible sur fond bleu) : il faut le même poids
   et un sélecteur plus précis que le sien */
.fc-bk-bar .fc-bk-bar-right a.btn.btn-outline-info.active { background: #20aee3; border-color: #20aee3; color: #fff !important; }
.fc-bank-filters .fc-bank-filters-q { flex: 0 1 320px; }
.fc-bk-totals { display: flex; gap: 36px; align-items: baseline; margin: 4px 0 18px; flex-wrap: wrap; }
.fc-bk-totals small { display: block; color: #8a99a8; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.fc-bk-totals b { font-size: 22px; color: #3e5569; font-variant-numeric: tabular-nums; }
.fc-bk-totals b.is-warn { color: #e07a2a; }
.fc-bk-totals b.is-ok { color: #1bb89e; }
.fc-bk-totals b.is-date { font-size: 16px; font-weight: 600; }
.fc-bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; margin-bottom: 22px; }
.fc-bk-acc { background: #fff; border: 1px solid #eef0f4; border-radius: 8px; padding: 20px 22px 16px; position: relative; overflow: hidden; }
.fc-bk-acc::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #20aee3; }
.fc-bk-acc.is-warn::before { background: #ff9041; }
.fc-bk-acc-add { border-style: dashed; display: flex; align-items: center; justify-content: center; text-align: center; color: #8a99a8; min-height: 130px; font-size: 13px; }
.fc-bk-acc-add::before { display: none; }
.fc-bk-acc-add:hover { border-color: #20aee3; color: #8a99a8; text-decoration: none; background: rgba(32,174,227,.03); }
.fc-bk-acc-add b { display: block; color: #20aee3; font-size: 15px; margin-bottom: 4px; }
.fc-bk-acc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fc-bk-acc-name { font-size: 16px; font-weight: 600; color: #3e5569; }
.fc-bk-acc-bank { font-size: 12.5px; color: #8a99a8; margin-top: 2px; }
.fc-bk-acc-bank span { color: #a4b1bd; margin-left: 8px; font-variant-numeric: tabular-nums; }
.fc-bk-acc-menu-btn { color: #b0bec5; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.fc-bk-acc-menu-btn:hover { background: #f2f5f8; color: #455a64; text-decoration: none; }
.fc-bk-acc-balance { font-size: 26px; font-weight: 700; color: #3e5569; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.fc-bk-acc-balance small { font-size: 12px; font-weight: 500; color: #8a99a8; margin-left: 8px; }
.fc-bk-acc-state { font-size: 12.5px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: #67757c; }
.fc-bk-acc-state i { width: 8px; height: 8px; border-radius: 50%; background: #cfd8dc; flex: 0 0 auto; }
.fc-bk-acc-state.is-ok i { background: #1bb89e; }
.fc-bk-acc-state.is-warn i { background: #ff9041; }
.fc-bk-acc-state a { color: #2b7fbd; }
.fc-bk-acc-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #f1f4f6; padding-top: 12px; font-size: 13px; }
.fc-bk-acc-foot .is-todo { color: #e07a2a; font-weight: 600; }
.fc-bk-acc-foot .is-ok { color: #1bb89e; font-weight: 600; }
.fc-bk-acc-foot .is-mute { color: #a4b1bd; font-size: 12px; }
.fc-bk-acc-foot .btn { padding: 4px 12px; font-size: 12px; }
.fc-bk-imports .fc-bank-batch:last-child { border-bottom: 0; }

/* [10/11/2026] module Banque : la page « À rapprocher » */
.fc-rc-state { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 2px 0 6px; }
.fc-rc-state b { font-size: 19px; color: #3e5569; font-weight: 600; }
.fc-rc-state span { color: #8a99a8; font-size: 13px; }
.fc-rc-state .fc-rc-bulk { margin-left: auto; align-self: center; }
.fc-rc-bar { max-width: 520px; margin: 8px 0 18px; }
.fc-rc-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid #f1f4f6; }
.fc-rc-filters { display: flex; gap: 4px; }
.fc-rc-filters a { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: #67757c; }
.fc-rc-filters a:hover { color: #455a64; text-decoration: none; }
.fc-rc-filters a.on { background: rgba(32,174,227,.1); color: #20aee3; font-weight: 500; }
.fc-rc-filters a small { color: #a4b1bd; margin-left: 3px; }
.fc-rc-row { display: grid; grid-template-columns: 52px minmax(0, 1.1fr) minmax(0, 1.3fr) 130px 140px; gap: 14px; align-items: center; padding: 11px 16px; border-top: 1px solid #f1f4f6; }
.fc-rc-list .fc-rc-row:first-child { border-top: 0; }
.fc-rc-d { font-size: 11.5px; color: #8a99a8; font-variant-numeric: tabular-nums; }
.fc-rc-l { color: #455261; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-rc-l small { display: block; color: #a4b1bd; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.fc-rc-p { font-size: 12.5px; color: #455261; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-rc-row .fc-bank-amt { text-align: right; font-weight: 600; font-size: 13.5px; }
.fc-rc-act { text-align: right; white-space: nowrap; }
.fc-rc-act .btn { padding: 4px 12px; font-size: 12px; }
.fc-rc-close { color: #8a99a8; font-size: 12px; }
.fc-rc-close:hover { color: #20aee3; text-decoration: none; }
/* une opération ouverte : la liste à gauche, la décision à droite */
.fc-rc-duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.fc-rc-duo > .card { margin-bottom: 0; }
.fc-rc-duo .fc-rc-list { position: relative; max-height: 700px; overflow-y: auto; }
/* la ligne d'une opération qu'on vient de décider s'efface (.is-leaving) pendant que la suivante se charge */
.fc-rc-row.is-compact { grid-template-columns: 44px minmax(0, 1fr) auto; cursor: pointer; max-height: 80px; overflow: hidden; transition: opacity .2s ease, max-height .22s ease, padding .22s ease; }
.fc-rc-row.is-leaving { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-top-color: transparent; }
.fc-rc-row.is-compact:hover { background: #f8fbfc; text-decoration: none; }
.fc-rc-row.is-compact.is-open { background: rgba(32,174,227,.09); box-shadow: inset 3px 0 0 #20aee3; }
.fc-rc-side-top { text-align: right; margin: -6px 0 4px; }
.fc-rc-close i { font-size: 10px; margin-left: 3px; }
/* la décision précédente, confirmée en tête du panneau de la suivante */
.fc-rc-side { overflow: hidden; }
.fc-rc-flash { display: flex; align-items: baseline; gap: 10px; padding: 10px 30px; background: #eef9f6; font-size: 12.5px; color: #5d7480; }
.fc-rc-flash b { color: #12a58e; font-weight: 600; }
.fc-rc-flash span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-rc-flash button { margin-left: auto; background: none; border: 0; padding: 0; color: #20aee3; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.fc-rc-flash button:hover { text-decoration: underline; }
.fc-rc-body { animation: fcRcIn .22s ease; }
@keyframes fcRcIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* la proposition : ce que « Valider » fera, mise en avant au-dessus du segment des autres choix */
.fc-rc-ignore { background: none; border: 0; padding: 0; font-size: 12.5px; color: #8a99a8; cursor: pointer; }
.fc-rc-ignore:hover { color: #ff5c6c; }
.fc-rc-done { margin-top: 18px; }
.fc-rc-done .fc-rc-row { color: #8a99a8; padding: 9px 0; }
.fc-rc-done .fc-rc-row:first-of-type { border-top: 0; }
.fc-rc-done .fc-rc-l, .fc-rc-done .fc-rc-p { color: #8a99a8; }
.fc-rc-done .fc-bank-amt { color: #8a99a8; }
.fc-rc-undo, .fc-rc-undo-lot { background: none; border: 0; padding: 0; color: #20aee3; font-size: 12.5px; cursor: pointer; }
.fc-rc-undo:hover, .fc-rc-undo-lot:hover { text-decoration: underline; }
@media (max-width: 991px) { .fc-rc-row { grid-template-columns: 44px minmax(0, 1fr) 110px; } .fc-rc-p { grid-column: 2; } .fc-rc-act { grid-column: 2 / -1; text-align: left; } .fc-rc-duo { grid-template-columns: minmax(0, 1fr); } .fc-rc-side { order: -1; } }

/* ===================================================================================================================
   [CAISSE] Lot 5 : écran de vente (maquettes « Vente », « Encaissement », « Plein écran »). Préfixe .fc-pos-
   =================================================================================================================== */
.fc-pos { font-family: Montserrat, system-ui, sans-serif; color: #455A64; padding-top: 18px; }
.fc-pos button { font-family: inherit; cursor: pointer; }
.fc-pos button:disabled { opacity: .5; cursor: default; }
/* navigation de la caisse : la barre de la Comptabilité (.fc-ct-bar), les actions de la page à droite */
.fc-pos-nav { margin: 0 0 14px; }
.fc-pos-nav .fc-pos-tools { gap: 8px; }
.fc-pos-nav .fc-pos-btn, .fc-pos-nav .fc-pos-icon { height: 38px; }
.fc-pos-nav .fc-pos-icon { width: 38px; }
.fc-pos-nav .fc-pos-more-pop { top: 44px; }
.fc-pos-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.fc-pos-title h3 { color: #20AEE3; font-size: 22px; font-weight: 500; margin: 0; }
.fc-pos-crumbs { font-size: 12.5px; color: #67757C; text-transform: uppercase; letter-spacing: .02em; }
.fc-pos-crumbs span { margin: 0 6px; }
.fc-pos-crumbs b { font-weight: 500; color: #455A64; }
.fc-pos-session { font-size: 13px; padding: 4px 10px; border-radius: 4px; background: #F2F4F8; color: #67757C; }
.fc-pos-session.is-open { background: #E3F8F4; color: #1BB89E; }
.fc-pos-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.fc-pos-more { position: relative; display: flex; gap: 8px; }
.fc-pos-more-pop { position: absolute; right: 0; top: 50px; z-index: 20; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(38, 50, 56, .18); padding: 6px; min-width: 210px; }
.fc-pos-more-pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 4px; font-size: 14px; color: #455A64; }
.fc-pos-more-pop button:hover { background: #F2F4F8; }
.fc-pos-search { display: flex; align-items: center; gap: 8px; background: #E9EDF2; border-radius: 4px; padding: 0 14px; height: 44px; width: 284px; margin: 0; }
.fc-pos-search i { color: #8A96A3; }
.fc-pos-search input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 14px; color: #455A64; height: 42px; }
.fc-pos-icon { width: 44px; height: 44px; border: 0; border-radius: 4px; background: #E9EDF2; color: #67757C; }
.fc-pos-btn { height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: #E9EDF2; color: #455A64; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.fc-pos-btn:hover { background: #DCE6EF; text-decoration: none; color: #455A64; }
.fc-pos-primary, .fc-pos-primary:hover { background: #20AEE3; color: #fff; }
.fc-pos-primary:hover { background: #1A8DB8; color: #fff; }
.fc-pos-link { border: 0; background: none; color: #20AEE3; font-size: 13px; padding: 0; }
.fc-pos-danger { color: #C2362B; }
/* l'écran de vente tient dans la fenêtre : le catalogue et les lignes du panier défilent chacun de leur côté */
#fc-pos-shell.is-sale { display: flex; flex-direction: column; height: calc(100vh - var(--fc-pos-top, 70px)); padding-bottom: 16px; }
#fc-pos-shell.is-sale .fc-pos-sale { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fc-pos-shell [hidden] { display: none !important; }
.fc-pos-shell { padding-bottom: 24px; }
/* plein écran : la page entière, sans la barre ni le menu du site */
body.fc-pos-full .topbar, body.fc-pos-full .left-sidebar { display: none !important; }
body.fc-pos-full .page-wrapper { margin-left: 0 !important; padding-top: 0 !important; }
.fc-pa-preview { padding: 0 !important; }
.fc-pa-preview iframe { display: block; width: 100%; height: 62vh; border: 0; background: #F4F6F9; }
.fc-pos-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; flex: 1; min-height: 0; }
.fc-pos-left { display: flex; flex-direction: column; min-height: 0; }
.fc-pos-left .fc-pos-grid { flex: 1; min-height: 0; overflow-y: auto; align-content: start; }
.fc-pos-filters { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.fc-pos-filters .fc-pos-search { background: #fff; }
.fc-pos-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-pos-cats button { height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: #fff; color: #455A64; font-size: 14px; }
.fc-pos-cats button.is-on { background: #20AEE3; color: #fff; }
.fc-pos-held { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: #67757C; }
.fc-pos-held button { height: 36px; padding: 0 12px; border: 0; border-radius: 4px; background: #FDEEE3; color: #E8803A; font-size: 13px; }
.fc-pos-held button.is-on { background: #E8803A; color: #fff; }
.fc-pos-held button.is-busy { background: #F2F4F8; color: #99ABB4; }
.fc-pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fc-pos-tile { display: flex; flex-direction: column; text-align: left; background: #fff; border: 1px solid #E9EDF2; border-radius: 4px; padding: 0; overflow: hidden; min-height: 136px; }
.fc-pos-tile:hover { border-color: #20AEE3; }
.fc-pos-tile-img { height: 64px; background-size: cover; background-position: center; }
.fc-pos-tile-initial { display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 500; }
.fc-pos-tile-name { padding: 10px 10px 0; font-size: 13.5px; color: #455A64; line-height: 1.25; }
.fc-pos-tile-price { margin-top: auto; padding: 8px 10px 10px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fc-pos-tile-price b { font-size: 16px; font-weight: 600; color: #455A64; }
.fc-pos-tile-price small { font-size: 11px; color: #8A96A3; }
.fc-pos-stock { margin-left: auto; font-size: 11px; background: #FDEEE3; color: #E8803A; border-radius: 4px; padding: 2px 6px; }
.fc-pos-none { color: #8A96A3; font-size: 13.5px; padding: 18px 4px; }
.fc-pos-empty { display: flex; gap: 10px; padding: 40px 0; }
/* le panier tient toujours dans l'écran : seules ses lignes défilent, les boutons restent visibles */
.fc-pos-cart { background: #fff; border-radius: 4px; display: flex; flex-direction: column; min-height: 0; }
.fc-pos-cart-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid #E9EDF2; }
.fc-pos-cart-label { font-size: 17px; font-weight: 500; }
.fc-pos-order { font-size: 12px; font-weight: 600; background: #E3F4FB; color: #1A8DB8; padding: 3px 8px; border-radius: 4px; }
.fc-pos-cart-head .fc-pos-link { margin-left: auto; }
.fc-pos-lines { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px; }
.fc-pos-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #E9EDF2; }
.fc-pos-line-name { border: 0; background: none; text-align: left; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.fc-pos-line-name b { font-weight: 500; font-size: 14px; color: #455A64; }
.fc-pos-line-name small { font-size: 12px; color: #8A96A3; }
.fc-pos-line-name em { font-size: 12px; color: #20AEE3; }
.fc-pos-qty { display: inline-flex; align-items: center; gap: 8px; }
.fc-pos-qty button { width: 44px; height: 44px; border: 0; border-radius: 4px; background: #E9EDF2; color: #455A64; font-size: 18px; }
.fc-pos-qty span { min-width: 22px; text-align: center; font-size: 15px; color: #455A64; font-weight: 500; }
.fc-pos-line-total { text-align: right; font-size: 14px; font-weight: 500; }
.fc-pos-free { align-self: flex-start; margin: 12px 16px 0; }
.fc-pos-totals { padding: 14px 16px 0; border-top: 1px solid #E9EDF2; margin-top: 12px; font-size: 13px; color: #67757C; }
.fc-pos-totals > div { display: flex; justify-content: space-between; padding: 2px 0; }
.fc-pos-grand { align-items: baseline; padding-top: 8px !important; color: #455A64; font-size: 15px; }
.fc-pos-grand b { font-size: 28px; font-weight: 600; }
.fc-pos-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; padding: 14px 16px 16px; }
.fc-pos-actions .fc-pos-btn { height: 52px; font-size: 15px; }
.fc-pos-modal { position: fixed; inset: 0; background: rgba(38, 50, 56, .45); z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fc-pos-dialog { background: #fff; border-radius: 4px; width: 520px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
.fc-pos-dialog.is-wide { width: 800px; }
.fc-pos-dhead { display: flex; align-items: center; gap: 10px; padding: 20px 20px 16px; border-bottom: 1px solid #E9EDF2; font-size: 17px; }
.fc-pos-dhead b { font-weight: 500; }
.fc-pos-x { margin-left: auto; border: 0; background: none; font-size: 22px; color: #8A96A3; }
.fc-pos-dbody { padding: 18px 20px; }
.fc-pos-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fc-pos-dfoot { padding: 0 20px 20px; display: flex; justify-content: flex-end; }
.fc-pos-field { display: block; margin-bottom: 12px; }
.fc-pos-field span { display: block; font-size: 12.5px; color: #67757C; margin-bottom: 4px; }
.fc-pos-field input, .fc-pos-field select { width: 100%; height: 44px; border: 1px solid #DCE6EF; border-radius: 4px; padding: 0 12px; font-size: 15px; color: #455A64; }
.fc-pos-pay { display: grid; grid-template-columns: minmax(0, 1fr) 290px; }
.fc-pos-pay-left { padding: 18px 20px 20px; }
.fc-pos-pay-right { background: #F7F9FB; padding: 18px 20px 20px; display: flex; flex-direction: column; border-left: 1px solid #E9EDF2; }
.fc-pos-methods, .fc-pos-quick, .fc-pos-others { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.fc-pos-others { grid-template-columns: repeat(3, 1fr); }
.fc-pos-methods button, .fc-pos-quick button, .fc-pos-others button { height: 48px; border: 0; border-radius: 4px; background: #E9EDF2; color: #455A64; font-size: 14px; }
.fc-pos-quick button { height: 44px; font-size: 13px; }
.fc-pos-methods button.is-on { background: #20AEE3; color: #fff; }
.fc-pos-quick button.is-on, .fc-pos-others button.is-on { background: #E3F4FB; color: #1A8DB8; box-shadow: inset 0 0 0 1px #20AEE3; }
.fc-pos-received { display: flex; justify-content: space-between; align-items: center; border: 1px solid #20AEE3; border-radius: 4px; padding: 0 16px; height: 58px; margin-bottom: 12px; }
.fc-pos-received span { font-size: 13px; color: #67757C; }
.fc-pos-received b { font-size: 26px; font-weight: 500; }
.fc-pos-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.fc-pos-keys button { height: 52px; border: 1px solid #E9EDF2; border-radius: 4px; background: #fff; font-size: 19px; color: #455A64; }
.fc-pos-keys button:active { background: #E3F4FB; }
.fc-pos-sum { display: flex; justify-content: space-between; font-size: 13px; color: #67757C; margin-bottom: 8px; }
.fc-pos-change, .fc-pos-due { border-radius: 4px; padding: 12px 14px; margin: 6px 0 12px; }
.fc-pos-change { background: #E3F8F4; color: #1B9A7E; }
.fc-pos-due { background: #FDEEE3; color: #C46A2A; }
.fc-pos-change small, .fc-pos-due small { display: block; font-size: 12.5px; }
.fc-pos-change b, .fc-pos-due b { font-size: 30px; font-weight: 600; }
.fc-pos-validate { margin-top: auto; height: 56px; width: 100%; font-size: 15px; }
.fc-pos-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #455A64; color: #fff; padding: 12px 18px; border-radius: 4px; font-size: 14px; z-index: 1060; max-width: calc(100vw - 32px); }
.fc-pos-toast.is-error { background: #C2362B; }
.fc-pos-toast.is-ok { background: #1B9A7E; }
@media (max-width: 1100px) { .fc-pos-body { grid-template-columns: minmax(0, 1fr) 320px; } .fc-pos-search { width: 200px; } }

/* [CAISSE] Lot 5 : ticket et Z imprimés (maquettes « Ticket client », « Ticket Z »), 80 mm, 58 mm ou A4. Préfixe .fc-pt- */
.fc-pt-body { margin: 0; background: #E9EDF2; font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace; color: #111; }
.fc-pt { background: #fff; margin: 20px auto; padding: 18px 16px; font-size: 12px; line-height: 1.5; }
.fc-pt-80 .fc-pt { width: 80mm; }
.fc-pt-58 .fc-pt { width: 58mm; font-size: 10.5px; padding: 12px 8px; }
.fc-pt-a4 .fc-pt { width: 120mm; font-size: 13px; padding: 28px 24px; }
.fc-pt-company { text-align: center; margin-bottom: 8px; }
.fc-pt-company b { font-size: 1.2em; display: block; }
.fc-pt-rule { border-top: 1px dashed #111; margin: 8px 0; }
.fc-pt-center { text-align: center; }
.fc-pt-strong { font-weight: 700; }
.fc-pt-order { text-align: center; font-size: 34px; font-weight: 700; line-height: 1.1; }
.fc-pt-row { display: flex; justify-content: space-between; gap: 8px; }
.fc-pt-row span:last-child { white-space: nowrap; text-align: right; }
.fc-pt-note { padding-left: 1.4em; }
.fc-pt-total { font-weight: 700; font-size: 1.2em; }
.fc-pt-qr { display: flex; justify-content: center; margin: 6px 0 4px; }
.fc-pt-actions { text-align: center; margin: 0 0 24px; }
.fc-pt-actions button { font-family: Montserrat, system-ui, sans-serif; height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: #20AEE3; color: #fff; font-size: 14px; cursor: pointer; }
@media print {
    .fc-pt-body { background: #fff; }
    .fc-pt { margin: 0; box-shadow: none; }
    .fc-pt-actions { display: none; }
    @page { margin: 4mm; }
}

/* [CAISSE] Lot 5 : clôture, réglages, espèces */
.fc-pos-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 100%; background: #fff; z-index: 1055; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, .15); }
.fc-pos-dialog.fc-pos-drawer { height: 100vh; max-height: none; border-radius: 0; margin: 0; }
.fc-pos-drawer .fc-pos-dbody { flex: 1; overflow-y: auto; }
.fc-pos-drawer .fc-pos-dfoot { border-top: 1px solid #E9EDF2; padding-top: 16px; gap: 8px; }
.fc-pos-seg { display: inline-flex; background: #E9EDF2; border-radius: 4px; padding: 3px; margin-bottom: 4px; }
.fc-pos-seg button { height: 38px; padding: 0 18px; border: 0; border-radius: 4px; background: transparent; color: #67757C; font-size: 14px; }
.fc-pos-seg button.is-on { background: #fff; color: #20AEE3; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.fc-pos-hint { font-size: 12.5px; color: #8A96A3; margin: 4px 0 16px; }
.fc-pos-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fc-pos-check { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 4px 0 16px; }
.fc-pos-check label { margin: 0; font-size: 14px; color: #455A64; }
.fc-pos-modal .select2-container .select2-selection--single { height: 44px; border-color: #DCE6EF; padding-top: 0; padding-bottom: 0; }
.fc-pos-modal .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; font-size: 15px; padding-top: 0; padding-bottom: 0; margin: 0; }
.fc-pos-modal .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.fc-pos-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.fc-pos-chips span { background: #E9EDF2; border-radius: 4px; padding: 6px 10px; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.fc-pos-chips span button { border: 0; background: none; color: #8A96A3; padding: 0; font-size: 15px; line-height: 1; }
.fc-pos-registers { border: 1px solid #E9EDF2; border-radius: 4px; margin-bottom: 8px; }
.fc-pos-registers > div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #E9EDF2; font-size: 14px; }
.fc-pos-registers > div:last-child { border-bottom: 0; }
.fc-pos-registers small { margin-left: auto; color: #1BB89E; font-size: 12.5px; }
.fc-pos-registers small.is-off { color: #8A96A3; }
.fc-pos-close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.fc-pos-close-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #E9EDF2; padding-top: 14px; font-size: 14px; }
.fc-pos-close-total b { font-size: 22px; font-weight: 600; }
.fc-pos-warn { display: inline-block; background: #FDEEE3; color: #C46A2A; border-radius: 4px; padding: 4px 8px; font-size: 12.5px; }
.fc-pos-table { width: 100%; font-size: 14px; margin-bottom: 14px; }
.fc-pos-table th { color: #20AEE3; font-weight: 500; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #E9EDF2; text-align: right; }
.fc-pos-table th:first-child, .fc-pos-table td:first-child { text-align: left; }
.fc-pos-table td { padding: 8px 0; text-align: right; border-bottom: 1px solid #F2F4F8; }
.fc-pos-table input { width: 140px; height: 40px; border: 1px solid #DCE6EF; border-radius: 4px; padding: 0 10px; text-align: right; font-size: 14px; }
.fc-pos-gap-neg { color: #C2362B; font-weight: 600; }
.fc-pos-gap-pos { color: #1B9A7E; font-weight: 600; }
.fc-pos-z { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.fc-pos-z b { font-size: 16px; font-weight: 500; }
.fc-pos-cash-now { display: flex; justify-content: space-between; font-size: 13px; color: #67757C; margin-bottom: 4px; }
.fc-pos-cash-now b { color: #455A64; font-weight: 500; }
.fc-pos-off { color: #E8803A; margin-left: 6px; }
.fc-pos-line-total s { display: block; font-size: 11.5px; color: #8A96A3; font-weight: 400; }
.fc-pos-disc span:last-child { color: #E8803A; }
.fc-pos-field input.is-focus, .fc-pos input.is-focus { border-color: #20AEE3 !important; box-shadow: 0 0 0 1px #20AEE3; }
.fc-pos-scroll { max-height: 264px; overflow-y: auto; }

/* [CAISSE] Lot 5 : écrans de suivi (Tickets, Clôtures, Statistiques). Préfixe .fc-pos- */
.fc-pos-tabs { display: flex; gap: 4px; background: #E9EDF2; border-radius: 4px; padding: 3px; }
.fc-pos-tabs a { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 4px; color: #67757C; font-size: 13.5px; }
.fc-pos-tabs a:hover { color: #455A64; text-decoration: none; }
.fc-pos-tabs a.is-on { background: #fff; color: #20AEE3; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.fc-pos-select { height: 44px; border: 1px solid #DCE6EF; border-radius: 4px; padding: 0 10px; font-size: 13.5px; color: #455A64; background: #fff; font-family: inherit; }
.fc-pos-icon-link { display: inline-flex; align-items: center; justify-content: center; }
.fc-pos-card { background: #fff; border-radius: 4px; padding: 8px 24px 16px; }
.fc-pos-list { width: 100%; font-size: 13.5px; }
.fc-pos-list th { color: #20AEE3; font-weight: 500; padding: 16px 8px 12px; border-bottom: 1px solid #E9EDF2; white-space: nowrap; }
.fc-pos-list td { padding: 10px 8px; border-bottom: 1px solid #F2F4F8; vertical-align: middle; }
.fc-pos-list td b { font-weight: 500; }
.fc-pos-list .r, .fc-pos-table .r { text-align: right; }
.fc-pos-acts { white-space: nowrap; }
.fc-pos-acts .fc-pos-icon { width: 36px; height: 36px; background: transparent; color: #20AEE3; font-size: 16px; }
.fc-pos-acts .fc-pos-icon:hover { background: #E3F4FB; }
.fc-pos-badge { display: inline-block; font-size: 12px; border-radius: 4px; padding: 3px 8px; background: #F2F4F8; color: #67757C; }
.fc-pos-badge.is-ok { background: #E3F8F4; color: #1B9A7E; }
.fc-pos-badge.is-off { background: #FDE7E9; color: #C2362B; }
.fc-pos-badge.is-ret { background: #FDEEE3; color: #C46A2A; }
.fc-pos-pop { position: absolute; z-index: 1040; background: #fff; border-radius: 4px; box-shadow: 0 6px 24px rgba(0, 0, 0, .15); width: 220px; padding: 6px 0; font-family: Montserrat, system-ui, sans-serif; }
.fc-pos-pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 16px; font-size: 13.5px; color: #455A64; }
.fc-pos-pop button:hover { background: #F2F4F8; }
.fc-pos-pop span { display: block; padding: 10px 16px; color: #8A96A3; font-size: 13px; }
/* pages Tickets et Clôtures : composants du site (tableau, filtres, fenêtre modale) */
.fc-pos-admin .fc-pa-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.fc-pos-admin .fc-pa-filters .form-control { height: 38px; width: auto; }
.fc-pos-admin .fc-pa-nosort, .fc-pos-admin .fc-pa-nosort:hover { cursor: default; text-decoration: none; }
.fc-pos-admin .fc-pa-search { width: 190px !important; }
.fc-pos-admin .fc-pa-date .form-control { width: 124px; }
.fc-pos-admin .fc-pa-filters .select2-container .select2-selection--single { height: 38px; padding-top: 0; padding-bottom: 0; }
.fc-pos-admin .fc-pa-filters .select2-container .select2-selection--single .select2-selection__rendered { line-height: 36px; padding-top: 0; padding-bottom: 0; }
.fc-pos-admin .fc-pa-filters .select2-container .select2-selection--single .select2-selection__arrow { height: 36px; }
.fc-pos-admin .fc-pa-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #E9EDF2; padding-top: 14px; margin: 6px 0 12px; }
.fc-pos-admin .fc-pa-total b { font-size: 22px; font-weight: 600; color: #263238; }
.fc-pos-admin .fc-pa-qty { width: 90px; }
.fc-pos-admin .fc-pa-lines td { vertical-align: middle; }
.fc-pos-pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding-top: 12px; font-size: 13px; color: #67757C; }
.fc-pos-danger-btn, .fc-pos-danger-btn:hover { background: #C2362B; color: #fff; }
.fc-pos-stats-top { padding: 20px 24px; margin-bottom: 16px; }
.fc-pos-kpis { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 18px; }
.fc-pos-kpis small { display: block; font-size: 13px; color: #67757C; }
.fc-pos-kpis b { font-size: 26px; font-weight: 500; }
.fc-pos-bars { display: flex; align-items: flex-end; gap: 10px; min-height: 210px; border-bottom: 1px solid #E9EDF2; padding: 0 8px; overflow-x: auto; }
.fc-pos-bar { flex: 1; min-width: 34px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fc-pos-bar i { display: block; width: 100%; max-width: 64px; background: #A9DDF1; border-radius: 2px 2px 0 0; }
.fc-pos-bar i.is-last { background: #20AEE3; }
.fc-pos-bar small { font-size: 11px; color: #67757C; }
.fc-pos-bar span { font-size: 11.5px; color: #67757C; padding: 6px 0; white-space: nowrap; }
.fc-pos-stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fc-pos-stats-grid .fc-pos-card { padding: 18px 20px; }
.fc-pos-stats-grid h4 { font-size: 15px; font-weight: 500; color: #455A64; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #E9EDF2; }
.fc-pos-stats-grid .fc-pos-sum { gap: 10px; font-size: 13.5px; color: #455A64; }
.fc-pos-stats-grid .fc-pos-sum small { color: #8A96A3; }
.fc-pos-meter { margin-bottom: 10px; }
.fc-pos-meter .fc-pos-sum { margin-bottom: 4px; }
.fc-pos-meter i { display: block; height: 8px; background: #E9EDF2; border-radius: 4px; overflow: hidden; }
.fc-pos-meter i b { display: block; height: 100%; background: #20AEE3; border-radius: 4px; }
.fc-pos-hours { display: flex; align-items: flex-end; gap: 4px; height: 64px; }
.fc-pos-hours i { flex: 1; background: #A9DDF1; border-radius: 2px 2px 0 0; }
.fc-pos-hours i.is-peak { background: #20AEE3; }
.fc-pos-hours-legend { display: flex; justify-content: space-between; font-size: 11px; color: #8A96A3; margin-top: 4px; }
.fc-pos-table td input { width: 90px; }
@media (max-width: 1100px) { .fc-pos-stats-grid { grid-template-columns: 1fr; } }
.fc-pos-home { display: block; text-decoration: none !important; color: #455A64; font-family: Montserrat, system-ui, sans-serif; }
.fc-pos-home .card-body { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 16px 24px; }
.fc-pos-home-title { font-size: 15px; font-weight: 500; color: #20AEE3; min-width: 130px; }
.fc-pos-home small { display: block; font-size: 12px; color: #8A96A3; }
.fc-pos-home b { font-size: 18px; font-weight: 500; color: #455A64; }
.fc-pos-home-state { margin-left: auto; font-size: 13px; padding: 4px 10px; border-radius: 4px; background: #F2F4F8; color: #67757C; }
.fc-pos-home-state.is-open { background: #E3F8F4; color: #1BB89E; }
/* caisse : pas de cadre bleu du navigateur après un clic ou un appui ; il reste pour la navigation au clavier */
.fc-pos button:focus, .fc-pos a:focus { outline: 0; box-shadow: none; }
.fc-pos button:focus-visible, .fc-pos a:focus-visible { outline: 2px solid #20AEE3; outline-offset: 2px; }
.fc-pos button:focus:not(:focus-visible), .fc-pos a:focus:not(:focus-visible) { outline: 0; }
/* catalogue des modules : trois cartes par ligne, plus compactes (11/11/2026) */
.fc-modp { max-width: 1280px; }
.fc-modp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fc-modp-shot { height: 168px; }
.fc-modp-win { top: 18px; left: 20px; transform: scale(.6); }
.fc-modp-body { padding: 14px 18px 2px; }
.fc-modp-body h4 { font-size: 15.5px; }
.fc-modp-body p { font-size: 13px; line-height: 1.5; }
.fc-modp-foot { padding: 12px 18px 14px; gap: 8px; flex-wrap: wrap; }
.fc-modp-foot .btn { padding: 5px 12px; font-size: 13px; }
@media (max-width: 1250px) { .fc-modp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .fc-modp-grid { grid-template-columns: minmax(0, 1fr); } }
/* icône du menu dessinée en SVG (Caisse) : même gabarit et même couleur que les icônes de police voisines */
.sidebar-nav > ul > li > a i.fc-menu-svg { line-height: 1; }
.sidebar-nav > ul > li > a i.fc-menu-svg svg { display: inline-block; vertical-align: middle; }
/* catalogue des modules : mots-clés de la carte */
.fc-modp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fc-modp-tags span { font-size: 12.5px; line-height: 1.3; color: #6f8191; background: #f4f7fa; border-radius: 99px; padding: 4px 11px; white-space: nowrap; }
.fc-modp-body { padding-bottom: 10px; }
/* annonce des modules du tableau de bord : une colonne par module disponible, les mots-clés du catalogue */
.fc-modh-list { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.fc-modh-item { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; }
.fc-modh-thumb { height: 96px; }
.fc-modh-thumb > div { transform: scale(.44); }
.fc-modh-item h5 { margin-bottom: 6px; }
.fc-modh-item .fc-modp-tags { margin: 0 0 8px; gap: 5px; }
.fc-modh-item .fc-modp-tags span { font-size: 11.5px; padding: 3px 9px; }

/* Remise par ligne (editeur de facture et de devis) : colonne affichee a la demande */
.invoice-table .bill_col_discount { display: none; }
.invoice-table.fc-ld-on .bill_col_discount { display: table-cell; width: 150px; min-width: 150px; }
.fc-ld { display: flex; }
.fc-ld .js_item_discount_value { flex: 1 1 auto; min-width: 0; text-align: right; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fc-ld .js_item_discount_mode { flex: 0 0 62px; width: 62px; padding-left: 6px; padding-right: 2px; border-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Banque, liste « Opérations » : pagination aux couleurs du thème, détachée du tableau */
.fc-bank-pages .pagination { margin: 18px 0 0; }
.fc-bank-pages .page-link { color: #455a64; }
.fc-bank-pages .page-item.active .page-link { background-color: #20aee3; border-color: #20aee3; color: #fff; }
