/* ManuTrack Factures — Verdant Operational UI adaptation
   Front-end only. Preserves ManuTrack navy identity while adopting
   Verdant typography, geometry, elevation, density and ergonomics.
   2026-09-25 */

:root{
  --fact-bg:#f6f8f9;
  --fact-surface:#ffffff;
  --fact-surface-soft:#f8fafb;
  --fact-ink:#17364a;
  --fact-muted:#687d8b;
  --fact-subtle:#8797a2;
  --fact-line:#e1e8ec;
  --fact-line-strong:#d1dde3;
  --fact-navy-950:#071f31;
  --fact-navy-900:#0b263d;
  --fact-navy-800:#12364f;
  --fact-navy-700:#194967;
  --fact-accent:#2d7598;
  --fact-success:#16775a;
  --fact-danger:#a83d50;
  --fact-warning:#946617;
  --fact-info:#315eaf;
  --fact-radius-card:13px;
  --fact-radius-control:10px;
  --fact-shadow:0 1px 2px rgba(18,42,64,.035),0 6px 18px rgba(18,42,64,.035);
  --fact-shadow-raised:0 14px 38px rgba(18,42,64,.075);
  --fact-focus:0 0 0 3px rgba(76,143,190,.12);
}

html{
  -webkit-text-size-adjust:100%;
  font-size:14.5px;
  scroll-behavior:smooth;
}
body.factures-app,
.authbody-v2{
  font-family:"Segoe UI Variable Text","Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.factures-app{
  background:var(--fact-bg);
  color:var(--fact-ink);
}
.factures-app h1,.factures-app h2,.factures-app h3,.factures-app h4,
.authbody-v2 h1,.authbody-v2 h2,.authbody-v2 h3{
  font-family:"Segoe UI Variable Display","Inter","SF Pro Display","Segoe UI",sans-serif;
}
.skip-link{
  position:fixed;
  left:12px;
  top:-60px;
  z-index:1000;
  padding:10px 14px;
  border-radius:9px;
  background:#fff;
  color:var(--fact-navy-900);
  box-shadow:var(--fact-shadow-raised);
}
.skip-link:focus{top:10px}

/* ===== Application shell ===== */
.factures-app .shell{
  grid-template-columns:260px minmax(0,1fr);
}
.factures-app .sidebar{
  padding:18px 12px 14px;
  background:linear-gradient(180deg,#0a2940 0%,#0b2f49 58%,#09283e 100%);
  border-right:1px solid rgba(255,255,255,.055);
  scrollbar-width:none;
}
.factures-app .sidebar::-webkit-scrollbar{width:0;height:0}
.factures-app .brand{
  gap:7px;
  padding:2px 7px 13px;
}
.factures-app .brand>span{
  height:52px;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.98);
  box-shadow:none;
}
.factures-app .brand img{
  max-width:174px;
  object-fit:contain;
}
.factures-app .brand small{
  font-size:.66rem;
  font-weight:700;
  letter-spacing:.14em;
  color:#8eafc1;
}
.factures-app .sidebar nav{
  gap:2px;
  margin-top:13px;
}
.factures-app .sidebar nav a{
  position:relative;
  min-height:42px;
  padding:0 11px;
  gap:10px;
  border:1px solid transparent;
  border-radius:9px;
  color:rgba(235,244,248,.86);
  font-size:.9rem;
  font-weight:590;
  transition:background .14s ease,border-color .14s ease,color .14s ease;
}
.factures-app .sidebar nav a:hover{
  background:rgba(255,255,255,.055);
  border-color:rgba(255,255,255,.045);
  color:#fff;
}
.factures-app .sidebar nav a.on{
  background:rgba(255,255,255,.105);
  border-color:rgba(255,255,255,.055);
  color:#fff;
  box-shadow:inset 2px 0 0 #82bdd6;
}
.factures-app .navicon{
  width:18px;
  height:18px;
  stroke-width:1.75;
  opacity:.9;
}
.factures-app .sideuser{
  padding:13px 8px 4px;
  border-top-color:rgba(255,255,255,.10);
}
.factures-app .sideuser strong{
  font-size:.82rem;
  font-weight:660;
}
.factures-app .sideuser small{
  font-size:.76rem;
  color:#8fa9ba;
}
.factures-app .sideuser button{
  min-height:40px;
  width:100%;
  margin-top:8px;
  padding:0 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:9px;
  background:rgba(255,255,255,.035);
  color:#c6d6df;
  font-size:.79rem;
  font-weight:620;
}
.factures-app .main{min-width:0}
.factures-app .app-header{
  height:70px;
  padding:0 24px;
  gap:12px;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--fact-line);
  box-shadow:0 1px 0 rgba(18,42,64,.018);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.factures-app .headtitle small{
  font-size:.68rem;
  font-weight:700;
  color:#80939f;
  letter-spacing:.12em;
}
.factures-app .headtitle h1{
  margin:2px 0 0;
  font-size:1.48rem;
  line-height:1.12;
  font-weight:710;
  letter-spacing:-.033em;
  color:#153a50;
}
.factures-app .langswitch{
  display:flex;
  align-items:center;
  gap:4px;
}
.factures-app .langswitch form{margin:0}
.factures-app .langswitch button{
  min-width:44px;
  height:44px;
  padding:0 9px;
  border:1px solid var(--fact-line-strong);
  border-radius:9px;
  background:#fff;
  color:#496474;
  font-size:.77rem;
  font-weight:650;
}
.factures-app .langswitch button.active,
.factures-app .langswitch button:disabled{
  background:#edf4f7;
  color:#1d526d;
  border-color:#cbdce4;
}
.factures-app .main>main{
  width:100%;
  max-width:1760px;
  margin:0 auto;
  padding:30px 30px 48px;
}

/* ===== Typography and common surfaces ===== */
.factures-app .kicker{
  font-size:.69rem;
  font-weight:700;
  letter-spacing:.12em;
  color:#557b98;
}
.factures-app .card{
  border:1px solid var(--fact-line);
  border-radius:var(--fact-radius-card);
  background:#fff;
  box-shadow:var(--fact-shadow);
}
.factures-app .hero{
  padding:20px 22px;
  margin-bottom:16px;
  gap:20px;
}
.factures-app .hero.compact{
  padding:18px 20px;
}
.factures-app .hero h2,
.factures-app .detailhero h2,
.factures-app .invoicehero h2{
  margin:4px 0 5px;
  font-size:1.72rem;
  line-height:1.14;
  font-weight:700;
  letter-spacing:-.035em;
  color:#173b51;
}
.factures-app .hero p,
.factures-app .detailhero p,
.factures-app .invoicehero p{
  font-size:.86rem;
  line-height:1.58;
  color:#6f8390;
}
.factures-app .panel>header{
  min-height:64px;
  padding:14px 17px;
  gap:12px;
  border-bottom:1px solid var(--fact-line);
}
.factures-app .panel h3{
  font-size:1.02rem;
  font-weight:680;
  letter-spacing:-.014em;
  color:#183c52;
}
.factures-app .panel>header a{
  font-size:.79rem;
  font-weight:650;
  color:#356987;
}
.factures-app .empty{
  padding:24px 18px;
  color:#7c8e99;
  font-size:.82rem;
}
.factures-app .flash{
  padding:11px 13px;
  border:1px solid #dce8ef;
  border-radius:10px;
  margin-bottom:14px;
  font-size:.83rem;
  box-shadow:none;
}

/* ===== Buttons ===== */
.factures-app .newbtn,
.factures-app .primary,
.factures-app .secondary,
.factures-app .danger,
.authbody-v2 .primary,
.authbody-v2 .secondary{
  min-height:44px;
  padding:9px 14px;
  border-radius:10px;
  font-size:.88rem;
  font-weight:650;
  line-height:1.2;
  box-shadow:none;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .08s ease;
}
.factures-app .newbtn,
.factures-app .primary,
.authbody-v2 .primary{
  background:var(--fact-navy-800);
  border:1px solid var(--fact-navy-800);
  color:#fff;
}
.factures-app .newbtn:hover,
.factures-app .primary:hover,
.authbody-v2 .primary:hover{
  background:#0d3048;
  border-color:#0d3048;
}
.factures-app .secondary,
.authbody-v2 .secondary{
  background:#fff;
  border:1px solid var(--fact-line-strong);
  color:#35586b;
}
.factures-app .secondary:hover{
  background:#f7fafb;
  border-color:#bfd0d8;
}
.factures-app .danger{
  background:#fff;
  border:1px solid #e4bcc5;
  color:#9d3b4e;
}
.factures-app .danger:hover{
  background:#fff5f6;
  border-color:#dba9b4;
}
.factures-app button:active,
.factures-app a.primary:active,
.factures-app a.secondary:active,
.factures-app a.newbtn:active{transform:translateY(1px)}
.factures-app .compact{min-height:42px}

/* ===== Forms ===== */
.factures-app .filters input,
.factures-app .filters select,
.factures-app .field input,
.factures-app .field select,
.factures-app .field textarea,
.factures-app .assignform input,
.factures-app .assignform select,
.factures-app .actionpanel input,
.factures-app .actionpanel select,
.factures-app .settingscard input,
.factures-app .settingscard select,
.factures-app .settingscard textarea{
  min-height:46px;
  padding:10px 12px;
  border:1px solid #ccd9e0;
  border-radius:10px;
  background:#fff;
  color:#2f4d5f;
  font-size:.88rem;
  box-shadow:none;
}
.factures-app textarea{min-height:92px}
.factures-app .field label,
.factures-app .settingscard label{
  font-size:.79rem;
  font-weight:650;
  color:#4b6472;
}
.factures-app .field small,
.factures-app .configuration-note,
.factures-app .formcard small{
  font-size:.76rem;
  line-height:1.48;
  color:#748895;
}
.factures-app input:focus,
.factures-app select:focus,
.factures-app textarea:focus{
  border-color:#679bb7!important;
  box-shadow:var(--fact-focus)!important;
  outline:none!important;
}
.factures-app .formcard,
.factures-app .invoiceform{
  max-width:1180px;
  border-radius:13px;
}
.factures-app .formcard>header,
.factures-app .invoiceform>header{
  padding:17px 19px;
  gap:12px;
}
.factures-app .formcard h2,
.factures-app .invoiceform h2{
  margin:3px 0 0;
  font-size:1.43rem;
  font-weight:690;
  letter-spacing:-.025em;
}
.factures-app .formcard form,
.factures-app .invoiceform>form{
  padding:18px;
}
.factures-app .formgrid{gap:14px 16px}
.factures-app .formcard footer,
.factures-app .invoiceform footer{
  gap:9px;
  margin-top:18px;
  padding-top:16px;
}

/* ===== Dashboard ===== */
.factures-app .dashboard-hero{
  align-items:flex-start;
}
.factures-app .dashboard-hero>div{
  max-width:820px;
}
.factures-app .kpis{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.factures-app .kpis article{
  min-height:108px;
  padding:17px 18px;
  border:1px solid var(--fact-line);
  border-radius:13px;
  background:#fff;
  box-shadow:var(--fact-shadow);
}
.factures-app .kpis small{
  font-size:.77rem;
  font-weight:650;
  letter-spacing:.04em;
  color:#6e818d;
}
.factures-app .kpis strong{
  margin-top:5px;
  font-size:1.9rem;
  line-height:1;
  font-weight:710;
  letter-spacing:-.04em;
  color:#173b51;
  font-variant-numeric:tabular-nums;
}
.factures-app .finance-overview,
.factures-app .action-required{
  margin-bottom:16px;
}
.factures-app .finance-currency-grid{gap:12px}
.factures-app .finance-currency-card{
  border:1px solid var(--fact-line);
  border-radius:12px;
  box-shadow:none;
  background:#fff;
}
.factures-app .currency-head strong{
  font-weight:700;
  letter-spacing:.02em;
}
.factures-app .finance-metrics b,
.factures-app .moneycards strong,
.factures-app .action-number{
  font-variant-numeric:tabular-nums;
}
.factures-app .action-grid{
  gap:10px;
  padding:12px;
}
.factures-app .action-grid>a{
  min-height:86px;
  padding:13px 14px;
  border:1px solid var(--fact-line);
  border-radius:11px;
  background:#fff;
  box-shadow:none;
}
.factures-app .action-grid>a:hover{
  background:#f8fbfc;
  border-color:#c6d8e0;
}
.factures-app .action-number{
  font-size:1.55rem;
  font-weight:710;
  letter-spacing:-.035em;
}
.factures-app .action-grid small{
  font-size:.76rem;
  line-height:1.4;
}
.factures-app .dashgrid{
  gap:16px;
}
.factures-app .recent{margin-top:16px}

/* ===== Tables and statuses ===== */
.factures-app .table{
  overflow-x:auto;
}
.factures-app .thead{
  padding:10px 14px;
  background:#fafcfd;
  border-bottom:1px solid var(--fact-line);
  color:#71838f;
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.045em;
}
.factures-app .trow{
  padding:11px 14px;
  border-bottom:1px solid #e9eef1;
  font-size:.85rem;
}
.factures-app .trow:hover{background:#fbfdfd}
.factures-app .trow strong{font-weight:670}
.factures-app .status{
  padding:4px 8px;
  border-radius:999px;
  font-size:.69rem;
  font-weight:700;
  letter-spacing:.01em;
  text-transform:none;
}
.factures-app .status.active,
.factures-app .status.paid{
  background:#e8f5ee;
  color:#176548;
}
.factures-app .status.suspended,
.factures-app .status.overdue{
  background:#fcebed;
  color:#9a3347;
}
.factures-app .status.draft{
  background:#f0f2f3;
  color:#66747e;
}
.factures-app .status.sent,
.factures-app .status.partial{
  background:#eaf1fb;
  color:#345e9b;
}

/* Mobile-card tables already use data-label; normalize them to Verdant geometry. */
@media(max-width:700px){
  .factures-app .tablet-card-table{
    overflow:visible;
    background:transparent;
    box-shadow:none;
    border:0;
  }
  .factures-app .tablet-card-table .thead{display:none!important}
  .factures-app .tablet-card-table .trow{
    display:grid!important;
    grid-template-columns:1fr!important;
    min-width:0!important;
    gap:0!important;
    margin-bottom:11px;
    padding:7px 12px;
    border:1px solid var(--fact-line);
    border-radius:12px;
    background:#fff;
    box-shadow:var(--fact-shadow);
  }
  .factures-app .tablet-card-table .trow>*{
    display:grid;
    grid-template-columns:minmax(92px,38%) minmax(0,1fr);
    gap:12px;
    align-items:start;
    width:100%;
    padding:8px 0;
    border-bottom:1px solid #edf1f3;
    text-align:left!important;
    overflow-wrap:anywhere;
  }
  .factures-app .tablet-card-table .trow>*:last-child{border-bottom:0}
  .factures-app .tablet-card-table .trow>*::before{
    content:attr(data-label);
    color:#71838f;
    font-size:.71rem;
    font-weight:700;
    line-height:1.35;
  }
  .factures-app .tablet-card-table .status{
    display:inline-flex;
    width:max-content;
  }
}

/* ===== Invoice registry ===== */
.factures-app .advanced-invoice-filters{
  grid-template-columns:minmax(220px,1.35fr) repeat(3,minmax(135px,.7fr)) minmax(135px,.7fr) minmax(135px,.7fr) auto auto;
  gap:8px;
  padding:11px;
  margin-bottom:14px;
  border-radius:13px;
}
.factures-app .advanced-invoice-filters button{
  min-height:46px;
  padding:0 13px;
  border-radius:10px;
  font-size:.82rem;
  font-weight:650;
}
.factures-app .invoice-table{
  border-radius:13px;
}
.factures-app .invoice-row strong small{
  font-size:.72rem!important;
  font-weight:600!important;
  color:#7a8c98!important;
}

/* ===== Invoice form ===== */
.factures-app .invoiceform-v2>header{
  align-items:flex-start;
}
.factures-app .pricing-key{
  min-width:300px;
  padding:10px 12px;
  gap:5px;
  border:1px solid var(--fact-line);
  border-radius:10px;
  background:#f8fafb;
  box-shadow:none;
}
.factures-app .pricing-key span{
  font-size:.75rem;
  line-height:1.42;
}
.factures-app .pricing-key b{font-weight:680}
.factures-app .invoice-meta-grid{gap:14px 16px}
.factures-app .lines{
  margin-top:18px;
  padding-top:17px;
  border-top-color:var(--fact-line);
}
.factures-app .linehead{
  gap:14px;
  margin-bottom:12px;
}
.factures-app .linehead h3{
  margin:2px 0 0;
  font-size:1.08rem;
  font-weight:680;
}
.factures-app .linehead p{
  margin:4px 0 0;
  max-width:780px;
  font-size:.77rem;
  color:#748895;
  line-height:1.45;
}
.factures-app .line-row{
  gap:9px;
  padding:12px;
  margin-bottom:9px;
  border:1px solid var(--fact-line);
  border-radius:11px;
  background:#fbfcfd;
}
.factures-app .line-row .delete{
  align-content:end;
}

/* ===== Invoice detail workspace ===== */
.factures-app .invoicehero,
.factures-app .detailhero{
  padding:18px 20px;
  margin-bottom:16px;
  border-radius:13px;
}
.factures-app .invoicegrid{
  grid-template-columns:minmax(0,1.55fr) minmax(300px,.45fr);
  gap:16px;
  margin-bottom:16px;
}
.factures-app .invoicepaper{
  padding:20px;
}
.factures-app .billto>span{
  font-size:.7rem;
  font-weight:700;
  color:#758792;
  letter-spacing:.05em;
}
.factures-app .billto h3{
  margin:4px 0;
  font-size:1.05rem;
  font-weight:680;
}
.factures-app .billto p{
  font-size:.8rem;
  color:#6f8390;
}
.factures-app .totals>div{
  font-size:.81rem;
  font-variant-numeric:tabular-nums;
}
.factures-app .totals .grand,
.factures-app .totals .balance{
  font-size:.95rem;
  font-weight:700;
}
.factures-app .sidepanels{
  gap:12px;
}
.factures-app .premium-sidecard,
.factures-app .actionpanel{
  padding:15px;
  border-radius:12px;
  box-shadow:var(--fact-shadow);
}
.factures-app .premium-sidecard-head,
.factures-app .actionpanel h3{
  font-weight:680;
}
.factures-app .communication-action-stack{
  gap:8px;
}
.factures-app .premium-action-btn,
.factures-app .side-action-btn{
  min-height:44px;
  border-radius:9px;
  font-size:.8rem;
  font-weight:650;
}
.factures-app .alertcard{
  grid-template-columns:40px 1fr auto;
  gap:12px;
  padding:13px 15px;
  margin-bottom:16px;
  border-radius:12px;
  box-shadow:none;
}
.factures-app .alertcard>span{
  width:40px;
  height:40px;
  border-radius:9px;
}
.factures-app .alertcard h3{font-weight:680}
.factures-app .comms{
  padding:7px 14px;
}
.factures-app .comms>div{
  min-height:52px;
  padding:9px 0;
}
.factures-app .channel{
  width:46px;
  border-radius:8px;
  font-size:.7rem;
  font-weight:700;
}

/* Recurrence dialogs */
.factures-app .recurrence-dialog{
  width:min(560px,calc(100vw - 28px));
  border:1px solid var(--fact-line);
  border-radius:16px;
  box-shadow:0 20px 58px rgba(11,38,61,.18);
}
.factures-app .recurrence-dialog::backdrop{
  background:rgba(7,24,36,.42);
  backdrop-filter:blur(2px);
}
.factures-app .recurrence-dialog-head h3{
  font-weight:690;
  letter-spacing:-.02em;
}
.factures-app .recurrence-dialog-actions .danger,
.factures-app .recurrence-dialog-actions button{
  min-height:44px;
}

/* ===== Clients, services, reports, settings ===== */
.factures-app .clientcard,
.factures-app .servicecard,
.factures-app .compliance-card,
.factures-app .settingscard{
  border-radius:12px;
  box-shadow:var(--fact-shadow);
}
.factures-app .clientcard h3,
.factures-app .servicecard h3,
.factures-app .compmain h3,
.factures-app .settingscard h3{
  font-weight:680;
}
.factures-app .avatar,
.factures-app .serviceicon{
  border-radius:10px;
}
.factures-app .services-hero{
  border-radius:13px;
  box-shadow:var(--fact-shadow);
}
.factures-app .services-hero-copy h2{
  font-weight:700;
  letter-spacing:-.03em;
}
.factures-app .services-hero-visual{
  opacity:.78;
}
.factures-app .servicegrid-premium{
  gap:14px;
}
.factures-app .servicecard-premium{
  border-radius:13px;
  box-shadow:var(--fact-shadow);
}
.factures-app .servicecard-premium:hover{
  transform:none;
  border-color:#c8d8e0;
  box-shadow:0 8px 24px rgba(18,42,64,.055);
}
.factures-app .service-card-copy h3{
  font-weight:680;
  letter-spacing:-.015em;
}
.factures-app .frequency-pill,
.factures-app .vehicle-chip{
  font-weight:650;
}
.factures-app .report-months article{
  border-radius:11px;
  box-shadow:none;
}
.factures-app .method-list>div{
  min-height:48px;
}
.factures-app .settingsgrid{gap:16px}

/* ===== Pagination and small controls ===== */
.factures-app .pagination a,
.factures-app .pagination span{
  min-width:44px;
  height:44px;
  border-radius:9px;
  font-size:.8rem;
  font-weight:650;
}
.factures-app .mini-icon,
.factures-app .service-search-clear{
  min-width:44px;
  min-height:44px;
}

/* ===== Authentication ===== */
.authbody-v2{
  margin:0;
  min-height:100svh;
  padding:0;
  background:#f7f9fa;
  color:var(--fact-ink);
}
.auth-shell-v2{
  display:grid;
  grid-template-columns:minmax(520px,54%) minmax(420px,46%);
  min-height:100svh;
}
.auth-visual-v2{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:54px clamp(52px,6vw,92px) 46px;
  color:#fff;
  background:
    radial-gradient(circle at 14% 18%,rgba(92,174,211,.14),transparent 27%),
    radial-gradient(circle at 82% 72%,rgba(42,115,152,.16),transparent 30%),
    linear-gradient(148deg,#071f31 0%,#0b334d 56%,#12506d 100%);
}
.auth-visual-v2::after{
  content:"";
  position:absolute;
  width:460px;
  height:460px;
  right:-190px;
  bottom:-170px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:50%;
  box-shadow:0 0 0 80px rgba(255,255,255,.025),0 0 0 160px rgba(255,255,255,.018);
}
.auth-brand-v2{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:14px;
}
.auth-brand-v2 img{
  width:156px;
  max-height:64px;
  object-fit:contain;
  padding:7px 10px;
  border-radius:10px;
  background:#fff;
}
.auth-brand-v2 span{
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.14em;
  color:#b8cfda;
}
.auth-visual-copy-v2{
  position:relative;
  z-index:1;
  max-width:610px;
}
.auth-visual-copy-v2 .kicker{
  color:#9cc5d7;
}
.auth-visual-copy-v2 h2{
  margin:13px 0 17px;
  font-size:clamp(2.55rem,4.7vw,3.65rem);
  line-height:1.02;
  font-weight:710;
  letter-spacing:-.05em;
}
.auth-visual-copy-v2 p{
  max-width:570px;
  margin:0;
  color:#d2e0e6;
  font-size:1rem;
  line-height:1.65;
}
.auth-points-v2{
  position:relative;
  z-index:1;
  display:grid;
  gap:9px;
  margin-top:28px;
}
.auth-points-v2 span{
  display:flex;
  align-items:center;
  gap:9px;
  color:#d8e5ea;
  font-size:.82rem;
  font-weight:580;
}
.auth-points-v2 span::before{
  content:"";
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#76b7d2;
  box-shadow:0 0 0 4px rgba(118,183,210,.10);
}
.auth-panel-v2{
  display:grid;
  place-items:center;
  min-width:0;
  padding:64px 44px;
  background:
    radial-gradient(circle at 80% 20%,rgba(49,94,175,.035),transparent 28%),
    #f8fafb;
}
.authbody-v2 .authcard{
  width:min(430px,100%);
  padding:31px 30px 27px;
  border:1px solid #dfe7eb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 20px 58px rgba(18,42,64,.075),0 2px 8px rgba(18,42,64,.03);
}
.authbody-v2 .authlogo{
  justify-items:start;
  margin-bottom:19px;
}
.authbody-v2 .authlogo img{
  width:178px;
  max-width:70%;
}
.authbody-v2 .authlogo span{
  font-size:.69rem;
  font-weight:700;
  letter-spacing:.13em;
  color:#738b99;
}
.authbody-v2 .authcard h1{
  margin:5px 0 6px;
  font-size:1.7rem;
  line-height:1.12;
  font-weight:700;
  letter-spacing:-.035em;
  color:#153a50;
}
.authbody-v2 .authcard>p{
  margin:0 0 18px;
  font-size:.88rem;
  line-height:1.55;
  color:#6d818e;
}
.authbody-v2 .authform p{
  display:grid;
  gap:6px;
  margin:0 0 13px;
}
.authbody-v2 .authform label{
  font-size:.79rem;
  font-weight:650;
  color:#4c6472;
}
.authbody-v2 .authcard input,
.authbody-v2 .authcard select{
  width:100%;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #ccd9e0;
  border-radius:10px;
  background:#fff;
  color:#2f4d5f;
  font-size:1rem;
  outline:none;
}
.authbody-v2 .authcard input:focus,
.authbody-v2 .authcard select:focus{
  border-color:#679bb7;
  box-shadow:var(--fact-focus);
}
.authbody-v2 .authcard .primary{
  width:100%;
  min-height:48px;
  margin-top:6px;
}
.authbody-v2 .auth-langswitch{
  display:flex;
  justify-content:flex-end;
  gap:4px;
  margin-bottom:16px;
}
.authbody-v2 .auth-langswitch form{margin:0}
.authbody-v2 .auth-langswitch button{
  min-width:44px;
  height:44px;
  border:1px solid var(--fact-line-strong);
  border-radius:9px;
  background:#fff;
  color:#496474;
  font-size:.78rem;
  font-weight:650;
}
.authbody-v2 .auth-langswitch button.active,
.authbody-v2 .auth-langswitch button:disabled{
  background:#edf4f7;
  color:#1d526d;
}

/* ===== Accessibility ===== */
.factures-app a:focus-visible,
.factures-app button:focus-visible,
.factures-app input:focus-visible,
.factures-app select:focus-visible,
.factures-app textarea:focus-visible,
.authbody-v2 a:focus-visible,
.authbody-v2 button:focus-visible,
.authbody-v2 input:focus-visible,
.authbody-v2 select:focus-visible{
  outline:3px solid rgba(76,143,190,.24)!important;
  outline-offset:2px;
}

/* ===== Responsive architecture ===== */
@media(max-width:1180px){
  .factures-app .advanced-invoice-filters{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .factures-app .advanced-invoice-filters>input:first-child{
    grid-column:span 2;
  }
}
@media(max-width:1024px){
  .factures-app .shell{grid-template-columns:1fr}
  .factures-app .sidebar{
    position:fixed;
    top:0;
    bottom:0;
    left:-285px;
    width:270px;
    height:100svh;
    z-index:50;
    box-shadow:12px 0 36px rgba(4,18,30,.20);
    transition:left .18s ease;
  }
  .factures-app.navopen .sidebar{left:0}
  .factures-app.navopen #veil,
  .navopen #veil{
    display:block;
    position:fixed;
    inset:0;
    z-index:45;
    background:rgba(7,23,36,.48);
    backdrop-filter:blur(1px);
  }
  .factures-app .app-header{
    height:68px;
    padding:0 16px;
  }
  .factures-app .app-header>#menu{
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    flex:0 0 44px;
  }
  .factures-app .mobile-logo{
    display:flex;
    width:92px;
    height:40px;
    padding:5px 7px;
    border:1px solid var(--fact-line);
    border-radius:8px;
  }
  .factures-app .headtitle small{display:none}
  .factures-app .main>main{
    max-width:none;
    padding:24px 18px 48px;
  }
  .factures-app .dashgrid,
  .factures-app .detailgrid,
  .factures-app .settingsgrid,
  .factures-app .invoicegrid{
    grid-template-columns:1fr;
  }
  .factures-app .servicegrid{grid-template-columns:1fr}
  .factures-app .invoiceform-v2>header{
    flex-direction:column;
  }
  .factures-app .pricing-key{
    width:100%;
    min-width:0;
  }
  .factures-app .invoicegrid .sidepanels{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:820px){
  .factures-app .main>main{padding:18px 14px 42px}
  .factures-app .hero,
  .factures-app .detailhero,
  .factures-app .invoicehero{
    align-items:flex-start;
    flex-direction:column;
    padding:17px 16px;
  }
  .factures-app .hero h2,
  .factures-app .detailhero h2,
  .factures-app .invoicehero h2{
    font-size:1.5rem;
  }
  .factures-app .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .factures-app .advanced-invoice-filters{
    grid-template-columns:1fr 1fr;
  }
  .factures-app .advanced-invoice-filters>input:first-child{
    grid-column:1/-1;
  }
  .factures-app .invoicegrid .sidepanels{
    grid-template-columns:1fr;
  }
}
@media(max-width:700px){
  .factures-app .app-header{
    height:64px;
    padding:0 10px;
    gap:7px;
  }
  .factures-app .headtitle{display:none}
  .factures-app .langswitch{margin-left:auto}
  .factures-app .newbtn{
    width:44px;
    padding:0;
  }
  .factures-app .newbtn>span:not(.plus){display:none}
  .factures-app .main>main{padding:14px 10px 36px}
  .factures-app .kpis{grid-template-columns:1fr 1fr}
  .factures-app .formgrid{grid-template-columns:1fr}
  .factures-app .field.span2{grid-column:auto}
  .factures-app .advanced-invoice-filters{grid-template-columns:1fr}
  .factures-app .advanced-invoice-filters>input:first-child{grid-column:auto}
  .factures-app .line-row{grid-template-columns:1fr}
  .factures-app .line-row .delete{grid-column:auto}
  .factures-app .formcard footer,
  .factures-app .invoiceform footer{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .factures-app .detailgrid dl>div{grid-template-columns:100px minmax(0,1fr)}
  .factures-app .actions{width:100%}
  .factures-app .actions>.primary,
  .factures-app .actions>.secondary{flex:1 1 100%}
  .factures-app .service-searchbar{grid-template-columns:1fr}
}
@media(max-width:480px){
  .factures-app .main>main{padding-left:9px;padding-right:9px}
  .factures-app .kpis{grid-template-columns:1fr}
  .factures-app .formcard footer,
  .factures-app .invoiceform footer{grid-template-columns:1fr}
  .factures-app .moneycards{grid-template-columns:1fr}
  .factures-app .totals>div{grid-template-columns:minmax(95px,1fr) minmax(100px,1fr)}
}
@media(max-width:980px){
  .auth-shell-v2{grid-template-columns:1fr}
  .auth-visual-v2{display:none}
  .auth-panel-v2{
    min-height:100svh;
    padding:70px 22px 34px;
  }
}
@media(max-width:480px){
  .auth-panel-v2{padding:48px 14px 24px}
  .authbody-v2 .authcard{
    padding:25px 20px 22px;
    border-radius:16px;
    box-shadow:0 12px 36px rgba(18,42,64,.06);
  }
}
@media(pointer:coarse){
  .factures-app .langswitch button,
  .factures-app .pagination a,
  .factures-app .pagination span,
  .factures-app .recurrence-dialog-actions button,
  .factures-app .sideuser button,
  .factures-app .mini-icon,
  .factures-app .service-search-clear{
    min-width:44px;
    min-height:44px;
  }
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{
    scroll-behavior:auto!important;
    transition:none!important;
    animation:none!important;
  }
}


/* ============================================================
   Factures — Verdant page refinement pass 2 — 2026-09-25
   Page-specific visual hierarchy and workflow ergonomics.
   Front-end only.
   ============================================================ */

/* ---------- Dashboard ---------- */
.factures-app .dashboard-hero{
  min-height:118px;
  padding:20px 22px;
  align-items:center;
}
.factures-app .dashboard-hero h2{
  max-width:760px;
}
.factures-app .dashboard-hero .primary{
  flex:0 0 auto;
  min-width:164px;
}
.factures-app .finance-overview{
  overflow:hidden;
}
.factures-app .finance-overview .finance-currency-grid{
  padding:12px;
}
.factures-app .finance-currency-card{
  padding:14px;
}
.factures-app .currency-head{
  padding-bottom:10px;
  margin-bottom:10px;
  border-bottom:1px solid #edf1f3;
}
.factures-app .currency-head span{
  padding:4px 8px;
  border-radius:999px;
  background:#edf7f2;
  color:#277052;
  font-size:.71rem;
  font-weight:700;
}
.factures-app .finance-metrics{
  gap:9px;
}
.factures-app .finance-metrics>div{
  padding:9px 10px;
  border-radius:9px;
  background:#fafcfd;
}
.factures-app .finance-metrics small{
  font-size:.7rem;
  font-weight:650;
  color:#738692;
}
.factures-app .finance-metrics b{
  margin-top:4px;
  font-size:1rem;
  font-weight:690;
  letter-spacing:-.02em;
  color:#183e54;
}
.factures-app .action-required{
  border-color:#eadfcb;
  background:#fffdf9;
}
.factures-app .action-required>header{
  background:#fffaf1;
  border-bottom-color:#efe4d2;
}
.factures-app .action-required .kicker{
  color:#8b651e;
}
.factures-app .action-grid>a{
  position:relative;
}
.factures-app .action-grid>a:nth-child(3),
.factures-app .action-grid>a:nth-child(4){
  border-color:#efd4d9;
  background:#fffafb;
}
.factures-app .risklist{
  padding:4px 12px 12px;
}
.factures-app .risklist>a{
  min-height:58px;
  padding:10px 8px;
  border-bottom:1px solid #edf1f3;
}
.factures-app .risklist>a:last-child{border-bottom:0}
.factures-app .risklist strong{font-weight:670}
.factures-app .risklist small{
  margin-top:3px;
  font-size:.74rem;
  color:#778a96;
}
.factures-app .risklist b{
  font-size:.84rem;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}

/* ---------- Invoice registry ---------- */
.factures-app .invoice-registry-hero{
  align-items:center;
}
.factures-app .invoice-registry-hero>div:first-child{
  max-width:720px;
}
.factures-app .invoice-registry-hero .actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(150px,1fr));
  gap:8px;
  min-width:min(620px,48vw);
}
.factures-app .invoice-registry-hero .actions>a{
  min-height:52px;
  justify-content:center;
  text-align:center;
  line-height:1.25;
}
.factures-app .invoice-registry-hero .actions>.secondary{
  color:#476474;
  background:#fbfcfd;
}
.factures-app .invoice-registry-filters{
  position:relative;
  background:#fff;
  border-color:var(--fact-line);
  box-shadow:var(--fact-shadow);
}
.factures-app .invoice-registry-filters::before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:2px;
  border-radius:2px;
  background:#7fa8bb;
}
.factures-app .invoice-registry-filters input,
.factures-app .invoice-registry-filters select{
  background:#fbfcfd;
}
.factures-app .invoice-registry-filters button:not(.secondary){
  border:1px solid var(--fact-navy-800);
  background:var(--fact-navy-800);
  color:#fff;
}
.factures-app .invoice-registry-filters .export-filter-btn{
  background:#fff;
}
.factures-app .invoice-table{
  overflow:hidden;
}
.factures-app .invoice-table .thead,
.factures-app .invoice-table .trow{
  grid-template-columns:1.05fr 1.4fr .8fr .8fr .85fr .85fr .8fr;
}
.factures-app .invoice-table .trow{
  min-height:58px;
  align-items:center;
}
.factures-app .invoice-type-meta{
  display:block;
  margin-top:3px;
  font-size:.7rem!important;
  font-weight:600!important;
  color:#80919c!important;
  line-height:1.25;
}
.factures-app .invoice-table .trow>span:nth-child(5),
.factures-app .invoice-table .trow>span:nth-child(6){
  font-variant-numeric:tabular-nums;
}

/* ---------- Invoice creation workspace ---------- */
.factures-app .invoiceform-v2{
  max-width:1320px;
  margin-inline:auto;
  overflow:visible;
}
.factures-app .invoiceform-v2>header{
  min-height:112px;
  padding:19px 20px;
  background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);
  border-bottom:1px solid var(--fact-line);
}
.factures-app .invoiceform-v2>header>div:first-child{
  max-width:760px;
}
.factures-app .invoiceform-v2>header p{
  max-width:720px;
  margin-top:5px;
  font-size:.8rem;
  line-height:1.48;
  color:#718590;
}
.factures-app .invoice-meta-grid{
  padding:2px;
}
.factures-app .invoice-meta-grid>.field{
  padding:11px 12px;
  border:1px solid #edf1f3;
  border-radius:10px;
  background:#fbfcfd;
}
.factures-app .invoice-meta-grid>.field:focus-within{
  border-color:#c6dce5;
  background:#fff;
}
.factures-app .invoice-meta-grid>.field small{
  margin-top:3px;
  padding:0 2px;
}
.factures-app .invoice-meta-grid>.field small strong{
  color:#35596c;
  font-weight:680;
}
.factures-app .pricing-key{
  align-self:flex-start;
  min-width:285px;
  max-width:340px;
}
.factures-app .pricing-key span+span{
  padding-top:6px;
  margin-top:4px;
  border-top:1px solid #e7edef;
}
.factures-app .lines{
  background:#fff;
}
.factures-app .linehead{
  align-items:center;
  padding:3px 1px 0;
}
.factures-app .linehead .secondary{
  flex:0 0 auto;
}
.factures-app #lineRows{
  display:grid;
  gap:10px;
}
.factures-app .line-row{
  grid-template-columns:minmax(150px,.9fr) minmax(260px,1.6fr) minmax(90px,.45fr) minmax(110px,.55fr) 72px;
  margin:0;
  padding:13px;
  background:#fff;
  box-shadow:0 1px 2px rgba(18,42,64,.02);
}
.factures-app .line-row:hover{
  border-color:#cedde4;
}
.factures-app .line-row .field{
  min-width:0;
}
.factures-app .line-row .field label{
  min-height:18px;
}
.factures-app .line-row .delete{
  justify-items:center;
}
.factures-app .line-row .delete input[type="checkbox"]{
  width:20px;
  height:20px;
  min-height:20px;
}
.factures-app .live-total-card{
  display:grid;
  grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);
  gap:18px;
  align-items:center;
  margin-top:18px;
  padding:16px 18px;
  border:1px solid #d9e5ea;
  border-radius:12px;
  background:#f8fbfc;
}
.factures-app .live-total-title{
  display:grid;
  gap:3px;
}
.factures-app .live-total-title span{
  font-size:.7rem;
  font-weight:700;
  letter-spacing:.08em;
  color:#768995;
  text-transform:uppercase;
}
.factures-app .live-total-title strong{
  font-size:1rem;
  font-weight:680;
  color:#24485c;
}
.factures-app .live-total-lines{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.factures-app .live-total-lines>div{
  min-width:0;
  padding:10px 11px;
  border:1px solid #e3eaee;
  border-radius:9px;
  background:#fff;
}
.factures-app .live-total-lines span{
  display:block;
  font-size:.69rem;
  color:#758792;
}
.factures-app .live-total-lines b{
  display:block;
  margin-top:4px;
  font-size:.92rem;
  font-weight:690;
  color:#24475a;
  font-variant-numeric:tabular-nums;
}
.factures-app .live-total-lines .live-grand{
  border-color:#c8dce4;
  background:#eef6f9;
}
.factures-app .live-total-lines .live-grand b{
  color:#123e57;
  font-size:1.03rem;
}
.factures-app .invoice-form-footer-v2{
  position:sticky;
  bottom:10px;
  z-index:8;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  margin:18px -2px -2px;
  padding:11px 12px;
  border:1px solid #dce6ea;
  border-radius:11px;
  background:rgba(255,255,255,.96);
  box-shadow:0 10px 26px rgba(18,42,64,.08);
  backdrop-filter:blur(10px);
}
.factures-app .invoice-form-footer-v2 .primary{
  min-width:130px;
}

/* ---------- Invoice detail / billing workspace ---------- */
.factures-app .invoice-detail-premium6{
  display:grid;
  gap:16px;
}
.factures-app .invoice-detail-premium6 .invoicehero-v6{
  margin:0;
  min-height:118px;
  align-items:center;
  background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);
}
.factures-app .invoice-detail-premium6 .invoice-title-row{
  gap:10px;
}
.factures-app .invoice-detail-premium6 .invoice-doc-mark{
  width:42px;
  height:42px;
  border-radius:10px;
}
.factures-app .invoice-detail-premium6 .invoicehero-meta{
  gap:7px 14px;
  margin-top:8px;
}
.factures-app .invoice-detail-premium6 .invoicehero-meta span{
  font-size:.75rem;
  color:#718590;
}
.factures-app .invoicehero-actionbox{
  min-width:280px;
  padding:12px;
  border:1px solid var(--fact-line);
  border-radius:11px;
  background:#f8fafb;
}
.factures-app .invoicehero-actionbox>.status{
  margin-bottom:9px;
}
.factures-app .invoicehero-button-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.factures-app .invoicehero-button-grid .premium-action-btn{
  min-height:42px;
  padding:8px 10px;
  border:1px solid #d4e0e5;
  border-radius:9px;
  background:#fff;
  color:#36586b;
  box-shadow:none;
}
.factures-app .invoicehero-button-grid .premium-action-btn:hover{
  background:#f5f9fa;
}
.factures-app .payment-complete-trigger{
  grid-column:1/-1;
  width:100%;
  background:#16775a!important;
  color:#fff!important;
  border-color:#16775a!important;
}
.factures-app .payment-complete-trigger:hover{
  background:#116448!important;
  border-color:#116448!important;
}
.factures-app .invoice-cancel-trigger{
  grid-column:1/-1;
  width:100%;
  color:#9a3d4e!important;
  background:#fff!important;
  border-color:#e5bec6!important;
}
.factures-app .recurrence-card{
  margin:0;
  border-color:#d9e5e9;
  box-shadow:none;
}
.factures-app .recurrence-card-icon{
  width:40px;
  height:40px;
  border-radius:10px;
}
.factures-app .recurrence-card-copy h3{
  font-size:1.02rem;
  font-weight:680;
}
.factures-app .recurrence-meta{
  gap:8px;
}
.factures-app .recurrence-actions{
  gap:7px;
}
.factures-app .recurrence-actions>*{
  min-height:40px;
}
@media(min-width:1025px){
  .factures-app .invoicegrid-v6 .sidepanels{
    position:sticky;
    top:86px;
    align-self:start;
  }
}
.factures-app .invoicepaper-v6{
  padding:20px;
  overflow:hidden;
}
.factures-app .client-summary-v6{
  padding:15px;
  margin-bottom:18px;
  border:1px solid #e1e9ed;
  border-radius:11px;
  background:#fafcfd;
}
.factures-app .client-summary-title h3{
  font-size:1.08rem;
}
.factures-app .client-contact-grid{
  gap:8px 16px;
}
.factures-app .client-contact-grid>div{
  min-width:0;
}
.factures-app .invoice-section-heading{
  margin:18px 0 9px;
}
.factures-app .invoice-section-heading h3{
  font-size:1rem;
  font-weight:680;
}
.factures-app .linesview-v6{
  border:1px solid var(--fact-line);
  border-radius:10px;
}
.factures-app .invoice-financials-v6{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--fact-line);
}
.factures-app .financial-note{
  padding:11px 12px;
  border-radius:9px;
  background:#f8fafb;
}
.factures-app .totals-v6{
  min-width:280px;
}
.factures-app .totals-v6>div{
  padding:7px 0;
}
.factures-app .totals-v6 .grand{
  margin-top:4px;
  padding-top:10px;
  border-top:1px solid #d8e3e8;
}
.factures-app .totals-v6 .balance{
  margin-top:5px;
  padding:10px 11px;
  border-radius:9px;
  background:#eef5f8;
  color:#133e56;
}
.factures-app .premium-sidecard{
  overflow:hidden;
}
.factures-app .premium-sidecard-head{
  min-height:56px;
  padding-bottom:11px;
  margin-bottom:11px;
  border-bottom:1px solid #e9eef1;
}
.factures-app .premium-sidecard-head h3{
  margin-top:3px;
  font-size:1rem;
}
.factures-app .sidecard-icon{
  width:36px;
  height:36px;
  border-radius:9px;
}
.factures-app .communication-action-stack form,
.factures-app .communication-action-stack .side-action-btn{
  width:100%;
}
.factures-app .side-action-btn{
  width:100%;
  justify-content:flex-start;
}
.factures-app .reminder-count-v6{
  margin-top:10px;
  padding:10px 11px;
  border-radius:9px;
  background:#f8fafb;
}
.factures-app .payment-balance-v6{
  margin-bottom:12px;
  padding:12px;
  border:1px solid #dbe6e9;
  border-radius:10px;
  background:#f5faf8;
}
.factures-app .payment-balance-v6 strong{
  font-size:1.18rem;
  letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
}
.factures-app .payment-panel-v6 .primary{
  width:100%;
}
.factures-app .payment-history-card,
.factures-app .audit-inline-card,
.factures-app .communication-panel-v6{
  margin:0;
}
.factures-app .communication-panel-v6>h3{
  padding:14px 16px 9px;
  font-size:1rem;
  font-weight:680;
}
.factures-app .payment-confirm-dialog{
  width:min(470px,calc(100% - 28px));
  padding:0;
  border:1px solid var(--fact-line);
  border-radius:16px;
  box-shadow:0 20px 58px rgba(11,38,61,.20);
}
.factures-app .payment-confirm-dialog::backdrop{
  background:rgba(7,24,36,.42);
  backdrop-filter:blur(2px);
}
.factures-app .payment-confirm-form{
  padding:22px;
}
.factures-app .payment-confirm-title{
  margin:5px 0 8px;
  color:#183e54;
  font-size:1.2rem;
  font-weight:690;
  letter-spacing:-.02em;
}
.factures-app .payment-confirm-copy{
  margin:0 0 16px;
  color:#748696;
  font-size:.83rem;
  line-height:1.5;
}
.factures-app .payment-dialog-field{
  margin-bottom:12px;
}
.factures-app .payment-dialog-field-last{
  margin-bottom:18px;
}
.factures-app .payment-dialog-actions{
  display:flex;
  gap:9px;
  justify-content:flex-end;
}
.factures-app .payment-confirm-submit{
  background:#16775a!important;
  border-color:#16775a!important;
}
.factures-app .payment-confirm-submit:hover{
  background:#116448!important;
  border-color:#116448!important;
}

/* ---------- Clients ---------- */
.factures-app .clients-hero-v2{
  min-height:100px;
  align-items:center;
}
.factures-app .client-filters-v2{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(150px,.35fr) auto;
  gap:8px;
  padding:11px;
  margin-bottom:14px;
  border-radius:13px;
}
.factures-app .client-filters-v2 button{
  min-height:46px;
  padding:0 16px;
  border-radius:10px;
  background:var(--fact-navy-800);
  color:#fff;
  border:1px solid var(--fact-navy-800);
  font-weight:650;
}
.factures-app .clients-grid-v2{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:12px;
}
.factures-app .clients-grid-v2 .clientcard{
  min-height:104px;
  padding:14px;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
}
.factures-app .clients-grid-v2 .clientcard:hover{
  transform:none;
  border-color:#c8d8e0;
  background:#fbfdfd;
}
.factures-app .clients-grid-v2 .avatar{
  width:46px;
  height:46px;
  font-size:1rem;
}
.factures-app .clients-grid-v2 h3{
  font-size:.96rem;
  font-weight:680;
}
.factures-app .clients-grid-v2 p{
  margin-top:3px;
  font-size:.76rem;
  line-height:1.4;
  color:#748793;
}
.factures-app .clients-grid-v2 small{
  margin-top:5px;
  font-size:.71rem;
}
.factures-app .clientright{
  align-self:stretch;
  justify-content:space-between;
}
.factures-app .client-detail-hero-v2{
  min-height:112px;
  align-items:center;
}
.factures-app .client-detail-hero-v2>div:first-child{
  max-width:780px;
}
.factures-app .client-detail-hero-v2 .actions{
  gap:7px;
}
.factures-app .client-detail-grid-v2{
  gap:16px;
}
.factures-app .client-detail-grid-v2 .panel{
  overflow:hidden;
}
.factures-app .client-detail-grid-v2 dl{
  padding:10px 16px 15px;
}
.factures-app .client-detail-grid-v2 dl>div{
  min-height:42px;
  padding:8px 0;
  border-bottom:1px solid #edf1f3;
}
.factures-app .client-detail-grid-v2 dl>div:last-child{
  border-bottom:0;
}
.factures-app .assigned{
  padding:8px 14px 14px;
}
.factures-app .assigned>div{
  min-height:58px;
  padding:10px 0;
  border-bottom:1px solid #edf1f3;
}
.factures-app .assigned>div:last-child{border-bottom:0}

/* ---------- Services ---------- */
.factures-app .services-hero{
  min-height:148px;
  grid-template-columns:minmax(0,1fr) 190px auto;
  padding:20px 22px;
}
.factures-app .services-hero-copy{
  max-width:720px;
}
.factures-app .services-hero-copy p{
  max-width:660px;
  font-size:.82rem;
  line-height:1.5;
}
.factures-app .services-hero-meta{
  margin-top:12px;
}
.factures-app .services-hero-visual{
  transform:scale(.88);
  transform-origin:center;
  opacity:.56;
}
.factures-app .service-searchbar{
  padding:10px;
  margin-bottom:16px;
  border-radius:13px;
}
.factures-app .service-search-control{
  min-height:46px;
  border-radius:10px;
}
.factures-app .services-section-head{
  margin:0 0 11px;
}
.factures-app .services-section-head h3{
  font-size:1.06rem;
  font-weight:680;
}
.factures-app .services-section-head small{
  font-size:.74rem;
  color:#758895;
}
.factures-app .servicegrid-premium{
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
}
.factures-app .servicecard-premium{
  min-height:205px;
  overflow:hidden;
}
.factures-app .service-card-main{
  padding:17px;
}
.factures-app .serviceicon-premium{
  width:42px;
  height:42px;
  flex-basis:42px;
  border-radius:10px;
}
.factures-app .service-title-row{
  align-items:flex-start;
  gap:10px;
}
.factures-app .service-title-row h3{
  font-size:1rem;
}
.factures-app .service-card-copy>p{
  margin-top:6px;
  font-size:.76rem;
  line-height:1.47;
}
.factures-app .service-card-foot{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #edf1f3;
}
.factures-app .service-price-panel{
  min-width:175px;
  padding:13px 14px;
  background:#f7fafb;
  border-left:1px solid #e1e8ec;
}
.factures-app .service-price-row small{
  font-size:.68rem;
  color:#768995;
}
.factures-app .service-price-row strong{
  margin-top:3px;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
}
.factures-app .vehicle-chip{
  min-width:40px;
  min-height:32px;
  border-radius:8px;
}

/* ---------- Reports ---------- */
.factures-app .reports-hero-v2{
  min-height:104px;
}
.factures-app .reports-overview-v2{
  margin-bottom:16px;
}
.factures-app .reports-overview-v2 .finance-currency-grid{
  padding:12px;
}
.factures-app .reports-grid-v2{
  grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);
  margin-bottom:16px;
}
.factures-app .report-months{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:12px;
}
.factures-app .report-months article{
  padding:11px;
  border:1px solid var(--fact-line);
  background:#fff;
}
.factures-app .report-months article>strong{
  font-size:.78rem;
  font-weight:690;
  color:#38596b;
}
.factures-app .report-months article>div{
  margin-top:8px;
}
.factures-app .report-months small{
  font-size:.67rem;
  color:#7a8c97;
}
.factures-app .report-months span{
  font-size:.78rem;
  font-weight:650;
  font-variant-numeric:tabular-nums;
}
.factures-app .method-list{
  padding:8px 14px 14px;
}
.factures-app .method-list>div{
  padding:9px 0;
  border-bottom:1px solid #edf1f3;
}
.factures-app .method-list>div:last-child{border-bottom:0}
.factures-app .method-list strong{
  font-weight:650;
}
.factures-app .method-list span{
  font-variant-numeric:tabular-nums;
}
.factures-app .reports-ageing-v2{
  overflow:hidden;
}

/* ---------- Compliance ---------- */
.factures-app .compliance-hero-v2{
  min-height:108px;
}
.factures-app .compliance-list{
  display:grid;
  gap:10px;
}
.factures-app .compliance-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  min-height:108px;
  padding:14px 15px;
}
.factures-app .compliance-card:hover{
  border-color:#ccdbe2;
}
.factures-app .riskbig{
  width:44px;
  height:44px;
  border-radius:10px;
  display:grid;
  place-items:center;
}
.factures-app .compmain h3{
  font-size:.98rem;
}
.factures-app .compmain p{
  margin-top:3px;
  font-size:.76rem;
  line-height:1.45;
  color:#758895;
}
.factures-app .chips{
  gap:6px;
  margin-top:8px;
}
.factures-app .chips span{
  padding:4px 7px;
  border-radius:999px;
  font-size:.67rem;
  font-weight:650;
}
.factures-app .compactions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:7px;
}
.factures-app .compactions>*{
  min-height:40px;
}

/* ---------- Quotes / Audit / Users / Settings ---------- */
.factures-app .quotes-hero-v2,
.factures-app .audit-hero-v2,
.factures-app .users-hero-v2,
.factures-app .settings-hero-v2{
  min-height:100px;
}
.factures-app .quotes-filters-v2,
.factures-app .audit-filters-v2{
  gap:8px;
  padding:10px;
  margin-bottom:14px;
  border-radius:13px;
}
.factures-app .quotes-filters-v2 button,
.factures-app .audit-filters-v2 button{
  min-height:46px;
  border-radius:10px;
  font-weight:650;
}
.factures-app .quote-table,
.factures-app .audit-table{
  overflow:hidden;
  border-radius:13px;
}
.factures-app .users-grid-v2{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:12px;
}
.factures-app .users-grid-v2 .clientcard{
  min-height:96px;
  padding:14px;
}
.factures-app .role-badge{
  border-radius:999px;
  font-size:.69rem;
  font-weight:700;
}
.factures-app .settings-grid-v2{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.factures-app .settings-grid-v2 .settingscard{
  padding:17px;
}
.factures-app .settings-head{
  min-height:36px;
  padding-bottom:10px;
  margin-bottom:11px;
  border-bottom:1px solid #edf1f3;
}
.factures-app .settings-head h3,
.factures-app .settingscard>h3{
  font-size:1rem;
}
.factures-app .config-state{
  padding:4px 8px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:700;
}
.factures-app .settingscard form p{
  margin:0 0 11px;
}
.factures-app .settingscard .muted{
  font-size:.74rem;
  line-height:1.5;
}

/* ---------- Authentication second-pass polish ---------- */
.authbody-v2 .authcard{
  border-color:#dce6ea;
}
.authbody-v2 .authcard .kicker{
  color:#54768b;
}
.authbody-v2 .auth-logo,
.authbody-v2 .authlogo{
  gap:8px;
}
.authbody-v2 .auth-points-v2{
  max-width:520px;
}
.authbody-v2 .auth-points-v2 span{
  min-height:28px;
}
.authbody-v2 .auth-panel-v2::before{
  content:"";
  position:fixed;
  width:220px;
  height:220px;
  right:-80px;
  top:-80px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(63,123,153,.045),transparent 68%);
  pointer-events:none;
}

/* ---------- Responsive page refinements ---------- */
@media(max-width:1180px){
  .factures-app .invoice-registry-hero{
    flex-direction:column;
    align-items:stretch;
  }
  .factures-app .invoice-registry-hero .actions{
    min-width:0;
    width:100%;
  }
  .factures-app .reports-grid-v2{
    grid-template-columns:1fr;
  }
  .factures-app .report-months{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media(max-width:1024px){
  .factures-app .invoice-form-footer-v2{
    bottom:8px;
  }
  .factures-app .invoicehero-actionbox{
    min-width:0;
  }
  .factures-app .services-hero{
    grid-template-columns:minmax(0,1fr) 150px;
  }
  .factures-app .services-new-btn{
    grid-column:1/-1;
    width:max-content;
  }
  .factures-app .servicegrid-premium{
    grid-template-columns:1fr;
  }
  .factures-app .settings-grid-v2{
    grid-template-columns:1fr;
  }
}

@media(max-width:820px){
  .factures-app .dashboard-hero{
    min-height:0;
  }
  .factures-app .dashboard-hero .primary{
    width:100%;
  }
  .factures-app .finance-metrics{
    grid-template-columns:1fr 1fr;
  }
  .factures-app .invoice-registry-hero .actions{
    grid-template-columns:1fr;
  }
  .factures-app .invoice-meta-grid>.field{
    padding:10px;
  }
  .factures-app .line-row{
    grid-template-columns:1fr 1fr;
  }
  .factures-app .line-row .desc{
    grid-column:1/-1;
  }
  .factures-app .line-row .delete{
    justify-items:start;
  }
  .factures-app .live-total-card{
    grid-template-columns:1fr;
  }
  .factures-app .live-total-lines{
    grid-template-columns:1fr 1fr;
  }
  .factures-app .invoice-detail-premium6 .invoicehero-v6{
    align-items:stretch;
  }
  .factures-app .invoicehero-actionbox{
    width:100%;
  }
  .factures-app .clients-grid-v2{
    grid-template-columns:1fr 1fr;
  }
  .factures-app .client-detail-hero-v2{
    align-items:flex-start;
  }
  .factures-app .client-detail-hero-v2 .actions{
    width:100%;
  }
  .factures-app .services-hero{
    grid-template-columns:1fr;
  }
  .factures-app .services-hero-visual{
    display:none;
  }
  .factures-app .services-new-btn{
    width:100%;
  }
  .factures-app .report-months{
    grid-template-columns:1fr 1fr 1fr;
  }
  .factures-app .compliance-card{
    grid-template-columns:44px minmax(0,1fr);
  }
  .factures-app .compactions{
    grid-column:1/-1;
    justify-content:flex-start;
    padding-left:58px;
  }
}

@media(max-width:700px){
  .factures-app .finance-metrics{
    grid-template-columns:1fr;
  }
  .factures-app .invoice-registry-filters{
    padding-left:13px;
  }
  .factures-app .invoice-form-footer-v2{
    position:static;
    display:grid;
    grid-template-columns:1fr 1fr;
    margin-top:16px;
    box-shadow:none;
  }
  .factures-app .invoice-form-footer-v2>*{
    width:100%;
  }
  .factures-app .payment-dialog-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .factures-app .payment-dialog-actions>*{
    width:100%;
  }
  .factures-app .clients-grid-v2{
    grid-template-columns:1fr;
  }
  .factures-app .client-filters-v2{
    grid-template-columns:1fr;
  }
  .factures-app .client-detail-hero-v2 .actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .factures-app .servicecard-premium{
    display:block;
  }
  .factures-app .service-price-panel{
    min-width:0;
    border-left:0;
    border-top:1px solid #e1e8ec;
  }
  .factures-app .report-months{
    grid-template-columns:1fr 1fr;
  }
  .factures-app .compliance-card{
    grid-template-columns:40px minmax(0,1fr);
    align-items:start;
  }
  .factures-app .compactions{
    padding-left:54px;
  }
}

@media(max-width:520px){
  .factures-app .invoice-registry-hero .actions>a{
    width:100%;
  }
  .factures-app .line-row{
    grid-template-columns:1fr;
    padding:11px;
  }
  .factures-app .line-row .desc{
    grid-column:auto;
  }
  .factures-app .live-total-lines{
    grid-template-columns:1fr;
  }
  .factures-app .invoice-form-footer-v2{
    grid-template-columns:1fr;
  }
  .factures-app .invoicehero-button-grid{
    grid-template-columns:1fr;
  }
  .factures-app .payment-complete-trigger,
  .factures-app .invoice-cancel-trigger{
    grid-column:auto;
  }
  .factures-app .payment-dialog-actions{
    grid-template-columns:1fr;
  }
  .factures-app .client-detail-hero-v2 .actions{
    grid-template-columns:1fr;
  }
  .factures-app .report-months{
    grid-template-columns:1fr;
  }
  .factures-app .compliance-card{
    grid-template-columns:1fr;
  }
  .factures-app .riskbig{
    width:40px;
    height:40px;
  }
  .factures-app .compactions{
    grid-column:auto;
    padding-left:0;
  }
  .factures-app .compactions>*{
    width:100%;
  }
}

@media(max-width:700px){
  .factures-app .invoice-table.tablet-card-table,
  .factures-app .quote-table.tablet-card-table,
  .factures-app .audit-table.tablet-card-table{
    overflow:visible;
  }
}
