/* NOMVEX Business v2 — "Mon espace": the live workspace (app.js, unchanged) dressed in the v2 look.
   Every rule is scoped to #espace / #preview, so the start page is untouched. The workspace DOM keeps the
   ids and button labels app.js and the release checks rely on. */
.bz-espace{padding:26px 0 40px}
.bz-espace .ws-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:6px}
.bz-espace .ws-head h1{font-size:clamp(30px,4vw,48px);margin:8px 0 6px}
/* #ws-h1 is an h2 (one h1 per page) drawn exactly like the h1 it was. */
.bz-espace .ws-head #ws-h1{font-size:clamp(30px,4vw,48px);line-height:1.04;letter-spacing:-.025em;font-weight:650;margin:8px 0 6px}
.bz-espace .ws-lead{color:var(--muted);margin:0;max-width:760px}
.bz-espace .ws-lead+.ws-lead{margin-top:4px;font-size:14.5px}
.bz-espace .ws-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:16px 0 4px}
.ws-tools a.account-link{display:inline-flex;align-items:center;min-height:42px;padding:8px 16px;border-radius:999px;background:var(--navy);color:#fff;font-weight:700;font-size:14.5px;box-shadow:inset 0 1px 0 #ffffff44,0 4px 0 var(--navyd)}
.ws-tools a.account-link:hover{background:var(--navyd)}
.bz-espace .ws-lang{font-size:13px;color:var(--muted);margin:6px 0 0}
#status{margin:14px 0;padding:12px 14px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;min-height:48px}
#status[data-error=true]{border-left-color:var(--late);color:var(--late);background:var(--latebg)}
.bz-espace .toolbar,.bz-espace .tabs,.bz-espace .section-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bz-espace .toolbar{margin:16px 0}
.bz-espace .toolbar label{flex:1 1 260px}
.bz-espace .tabs{margin-bottom:14px}
.bz-espace .section-head{justify-content:space-between}
.bz-espace .section-head span{color:var(--muted);font-size:14px}
.bz-espace h2{font-size:clamp(22px,2.4vw,28px);margin:22px 0 12px}
.bz-espace h3{font-size:18px;margin:0 0 10px}
.bz-espace h4{margin:14px 0 6px}
.bz-espace label{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.bz-espace section>section,.bz-espace #organization-form{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;margin:14px 0;box-shadow:0 5px 0 var(--drop)}
.bz-espace .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px}
.bz-espace article.card{margin:0;background:#fff}
.bz-espace .cards>p{margin:0;color:var(--muted)}
.bz-espace p{overflow-wrap:anywhere}
.bz-espace input,.bz-espace select,.bz-espace textarea{max-width:100%;min-width:0}
.bz-espace textarea{min-height:85px;resize:vertical}
.bz-espace input[type=checkbox]{width:auto;min-height:0;accent-color:var(--accent)}
.bz-espace button:not(.btn),#preview button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 16px;margin:4px 6px 4px 0;border-radius:999px;border:1.5px solid var(--accent);background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:14.5px;cursor:pointer}
.bz-espace button:not(.btn):hover,#preview button:hover{background:var(--acc-deep);border-color:var(--acc-deep)}
.bz-espace .tabs button:not(.btn),.bz-espace .actions button:not(.btn),.bz-espace .toolbar button:not(.btn){background:#fff;color:var(--acc-deep)}
.bz-espace .tabs button:not(.btn):hover,.bz-espace .actions button:not(.btn):hover,.bz-espace .toolbar button:not(.btn):hover{background:var(--accent-soft)}
.bz-espace button:disabled,#preview button:disabled{opacity:.5;cursor:default}
.bz-espace form>button{margin:8px 8px 8px 0}
.bz-espace .table-scroll{overflow:auto;max-width:100%}
.bz-espace table,#preview table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.bz-espace td,.bz-espace th,#preview td,#preview th{text-align:start;border-bottom:1px solid var(--line);padding:7px 8px;font-size:14px}
.bz-espace td input{min-width:75px}.bz-espace td:first-child input{min-width:180px}
.bz-espace .actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}
.bz-espace .badge{text-transform:none;letter-spacing:0;font-size:12.5px}
.bz-espace .total{font-size:24px;font-weight:750;margin:6px 0}
.bz-espace .hash,#preview .hash{font-family:ui-monospace,Consolas,monospace;font-size:11px;overflow-wrap:anywhere;color:var(--muted)}
.bz-espace .task{display:flex;flex-direction:row;align-items:center;gap:10px;font-weight:500}
.bz-espace small,.bz-espace .notice{color:var(--muted)}
.bz-espace .notice{margin-top:28px;font-size:14px}
.bz-espace details{margin:12px 0}.bz-espace summary{cursor:pointer;font-weight:650}
.bz-espace pre{white-space:pre-wrap;overflow-wrap:anywhere}
.bz-me{display:contents}
.workspace-profile-entry.btn{min-height:46px}
.bz-cta .workspace-profile-entry.btn.sm,.ws-tools .workspace-profile-entry.btn.sm{min-height:46px;padding:12px 20px;font-size:16px}
#preview{width:min(960px,96vw);max-height:90vh;border:1px solid var(--line);border-radius:16px;padding:22px;color:var(--ink)}
#preview::backdrop{background:#14263c66}
#print-document{white-space:pre-wrap}#print-document table{white-space:normal}
body:has(dialog#preview[open]){overflow:hidden}
@media(max-width:640px){
  .bz-espace{padding:16px 0 28px}
  .bz-espace section>section,.bz-espace #organization-form{padding:14px}
  .bz-espace .cards{grid-template-columns:minmax(0,1fr)}
  .bz-espace .tabs button:not(.btn),.bz-espace .toolbar button:not(.btn){flex:1 1 auto}
}
/* Printing from the workspace preview prints only that document (app.js calls window.print()). */
@media print{
  html.ws-printing body>*{display:none!important}
  html.ws-printing body>dialog#preview[open]{display:block!important;position:static;border:0;padding:0;max-height:none;width:100%;overflow:visible}
  html.ws-printing #preview>button{display:none!important}
  html.ws-printing #preview tr{break-inside:avoid}html.ws-printing #preview table{font-size:10pt}
}
