/* Moisan Pro : une surface de travail calme, avec des repères plutôt que des cadres. */
@media screen {
  :root { --ink:#eaf0f5; --muted:#a9b6c4; --line:#34414e; --blue:#a5cbee; --navy:#24537c; background:#131c26; color:var(--ink); }
  body,.workspace { background:#131c26; color:var(--ink); }
  .sidebar { background:#101821; border-right:1px solid #273340; padding:26px 14px; }
  .brand { letter-spacing:.3px; font-size:17px; }
  .brand b { color:#a8bed0; }
  .workspace-label { color:#8799ac; font-size:9px; margin-top:38px; }
  .sidebar .nav { position:relative; color:#adbdcd; border-radius:6px; background:transparent; margin-bottom:6px; min-height:42px; }
  .sidebar .nav.active { background:#203346; color:#fff; }
  .sidebar .nav.active::before { content:''; position:absolute; left:0; top:12px; bottom:12px; width:3px; background:#80b7e4; border-radius:2px; }
  .nav>span:last-child { background:#2a3b4e; color:#bccddd; }
  .sidebar-bottom { border-color:#2d3946; }
  .topbar { background:#131c26; border:0; min-height:62px; }
  #breadcrumb,#breadcrumb span { color:#a0b1c2; }
  #main { padding-top:16px; max-width:1360px; }
  .page-heading { margin-bottom:24px; }
  .page-heading h1 { font-size:25px; font-weight:600; letter-spacing:-.5px; }
  .eyebrow { color:#9bb9d3; font-weight:500; letter-spacing:1.2px; }
  .subtitle { color:#b2bfcc; line-height:1.55; }
  .panel { border:0; background:#1b2733; border-radius:10px; }
  .panel-header { border-color:#35414e; padding:17px 20px; }
  .panel-header h2 { font-size:15px; font-weight:550; }
  .panel-header p { color:#abbac8; }
  .stats { border-top:1px solid #34414e; border-bottom:1px solid #34414e; gap:0; margin-bottom:24px; }
  .stat { border:0; border-radius:0; background:transparent; padding:16px 20px; position:relative; }
  .stat+.stat { border-left:1px solid #34414e; }
  .stat b { font-size:25px; font-weight:500; color:#edf3f8; }
  .stat small,.stat-top { color:#b3c2d0; }
  .stat-icon { background:transparent!important; color:#a1c5e3!important; font-size:16px; }
  .stat.approved b { color:#97d4b8; }
  .list-tools { background:transparent; border-color:#35414e; padding:12px 20px; }
  .filter { color:#b5c4d2; }
  .filter.active { background:#2c4358; color:white; }
  table th { background:#1b2733; color:#b2c3d2; font-size:10px; letter-spacing:.5px; }
  table td { color:#e5edf4; border-color:#34414e; }
  tbody tr:hover,.order-row:hover { background:#213344; }
  td small,.order-id { color:#acbccb; }
  .client-name { color:#f0f5fa; font-weight:550; }
  .client-icon { background:transparent; color:#8fb7d7; }
  .button,.button.small { background:#a8cceb; color:#102235; border:1px solid transparent; font-weight:550; border-radius:6px; }
  .button:hover { background:#c2dff5; color:#102235; }
  .button.secondary,.button.ghost { background:transparent; color:#d6e6f3; border-color:#526779; }
  .button.secondary:hover,.button.ghost:hover { background:#2b4052; color:white; }
  .button.ghost { border-color:transparent; }
  .button.danger { background:transparent; color:#ffc5bf; border:1px solid #a46662; }
  .button.green { color:#dff7e9; background:#245b45; }
  .badge { background:#344352; color:#e5edf4; }
  .badge.approved { background:#234b3b; color:#c2ebd6; }
  .badge.review { background:#51452a; color:#f4e0b3; }
  .badge.active { background:#254661; color:#d3e9fb; }
  .badge.demo { background:#493d5b; color:#dfd0ed; }
  .form-banner { background:transparent; padding:12px 20px; border-bottom:1px solid #34414e; }
  .form-banner img { width:22px; height:22px; }
  .form-banner strong { display:none; }
  .form-banner small { color:#a9bdcf; margin:0; font-size:12px; }
  .tabs { background:transparent; border-color:#34414e; gap:8px; padding:0 16px; }
  .tab { padding:13px 10px; border:0; border-radius:0; border-bottom:2px solid transparent; color:#b0c1d0; }
  .tab.active { border-bottom-color:#a1c7e5; background:transparent; color:#fff; }
  .tab-body { padding:20px; }
  .section-title h2,.visit-section h2 { font-size:17px; font-weight:550; color:#edf3f8; }
  .field>span { color:#bccad6; font-weight:400; }
  .field input,.field textarea,.field select,.search input,.view-switch select,.price-input,.qty-input input,.stepper input,.labor-hours { background:#17212c; color:#f1f6fb; border-color:#536577; border-radius:6px; }
  .field input:disabled,.field textarea:disabled,.field select:disabled { background:#1c2936; color:#c3d0dd; border-color:#394a5a; opacity:1; }
  select option { background:#1b2733; color:#eef5fa; }
  .field input::placeholder,.field textarea::placeholder { color:#9faebb; }
  .field small,.note,.inline-note,.history time { color:#b0c0cf; }
  .visit-section,.section-divider { border-color:#34414e; }
  .section-divider { background:#34414e; }
  .right-panel { background:#1b2733; border:0; border-radius:8px; }
  .tab-body .right-panel { background:transparent; border:0; border-top:1px solid #3c4c5a; border-radius:0; padding:16px 0; }
  .quote-summary { padding:18px; }
  .summary-line,.summary-line strong { color:#c7d8e6; }
  .summary-total strong { color:#fff; }
  .info-strip,.local-warning { background:#1e3446; border:0; border-left:2px solid #6f9aba; border-radius:0 6px 6px 0; color:#d5e5f1; }
  .info-strip b { color:#e3edf5; }
  .timer-card,.profit-card,.head-card { background:#17222d; border:0; border-radius:8px; }
  .calculation-box { background:#12202b; color:#dbe9f3; border-radius:6px; }
  .save-footer { background:#17222c; border-color:#34414e; }
  .photo-placeholder { border-color:#4b6071; border-style:dashed; background:transparent; border-radius:8px; color:#d6e7f4; }
  .photo-card,.quote-photo,.quote-photo-caption { background:#17232f; border-color:#34414e; border-radius:8px; }
  .installation-tab { background:transparent; border:0; border-bottom:2px solid #445666; border-radius:0; padding:9px 12px; }
  .installation-tab.active { background:#233b4e; border-color:#a2c9e8; }
  .system-selector { border-color:#3b4b5b; }
  .material-card,.supply-card,.supply-order-link { border-color:#34414e; }
  .material-card h3 { font-weight:550; }
  .material-numbers dt { color:#b5c7d6; }
  .material-numbers dd { color:#f0f6fa; font-variant-numeric:tabular-nums; }
  .article-details,.ui-details { color:#becddb; }
  .article-details summary,.ui-details summary { color:#b4d7ef; }
  .material-card p { color:#c4d3df; }
  .history li { color:#cedde8; }
  .app-tools>summary { border-color:#526779; color:#d6e6f3; border-radius:6px; }
  .app-tools-content,dialog { background:#1b2936; color:#eaf3fa; border-color:#536779; border-radius:10px; }
  .modal-header,.modal-footer { border-color:#394d5e; }
  .modal-header h2 { font-weight:550; font-size:18px; }
  .empty h2 { font-size:17px; font-weight:550; color:#e5f0f8; }
  .empty p,.inline-empty { color:#b8c8d6; }
  .empty-mark { background:#263c4f; color:#bad4e9; }
  .agenda-row,.next-action { border-color:#34414e; }
  .agenda-row p,.next-action p { color:#b4c4d3; }
  footer { border-color:#2c3a47; color:#a4b6c6; }
  .capping-profile-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:20px; margin:16px 0; align-items:center; }
  #capping-profile { max-width:360px; color:#b8d6ea; }
  #capping-profile svg { width:100%; height:auto; }
  .color-options { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; }
  .color-option { display:flex; align-items:center; gap:8px; padding:9px 11px; color:#d5e2ed; background:transparent; border:1px solid #526779; border-radius:6px; min-height:38px; }
  .color-option span { width:18px; height:18px; border-radius:50%; border:1px solid #b3c2cd; }
  .color-option.selected { border-color:#b1d8f2; background:#29465b; color:white; }
  .color-option .swatch-Blanc { background:#eee; }
  .color-option .swatch-Gris { background:#85898c; }
  .color-option .swatch-Brun { background:#805e45; }
  .color-option .swatch-Noir { background:#252525; }
  .planning-toolbar { padding:16px 20px; border-bottom:1px solid #34414e; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
  .planning-toolbar .field { margin:0; }
  .planning-toolbar .buttons { align-items:flex-end; }
  .planning-days { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .planning-day { padding:16px 20px; border-bottom:1px solid #34414e; min-width:0; }
  .planning-day:nth-child(odd) { border-right:1px solid #34414e; }
  .planning-day header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
  .planning-day h2 { font-size:14px; font-weight:550; color:#d8e6f1; }
  .planning-day.today h2 { color:#b9dfff; }
  .planning-day.today { box-shadow:inset 3px 0 #89b7d9; }
  .planning-empty { color:#a6b8c7; font-size:12px; padding:12px 0; }
  .appointment { display:grid; grid-template-columns:84px minmax(0,1fr); gap:12px; padding:14px 0; border-top:1px solid #34414e; }
  .appointment-time { font-size:12px; color:#d0e3f1; font-variant-numeric:tabular-nums; }
  .appointment h3 { font-size:14px; margin:5px 0; overflow-wrap:anywhere; }
  .appointment p,.appointment small { color:#bfd0df; font-size:12px; overflow-wrap:anywhere; }
  .appointment .buttons { margin-top:10px; }
  .appointment-kind { font-size:10px; color:#b5d5ed; text-transform:uppercase; letter-spacing:.8px; }
  .appointment.cancelled { opacity:.7; }
  .upcoming-panel { margin-bottom:24px; }
  .upcoming-list { padding:4px 20px; }
  .upcoming-row { display:flex; gap:20px; align-items:center; padding:14px 0; border-bottom:1px solid #34414e; }
  .upcoming-row:last-child { border:0; }
  .upcoming-row time { font-size:12px; color:#b1cce0; min-width:160px; }
  .upcoming-row>div { flex:1; }
  .upcoming-row strong { display:block; font-weight:500; }
  .upcoming-row small { display:block; margin-top:4px; color:#bccdda; }
}
@media screen and (max-width:760px) {
  .capping-profile-layout,.planning-days { grid-template-columns:1fr; }
  .planning-day:nth-child(odd) { border-right:0; }
  .appointment { grid-template-columns:76px minmax(0,1fr); gap:10px; }
}
@media screen and (max-width:640px) {
  .sidebar { padding:10px 8px 6px; gap:4px; grid-template-columns:repeat(5,minmax(0,1fr)); }
  .sidebar .brand { font-size:15px; padding-bottom:8px; }
  .sidebar .nav { min-height:48px; margin:0; font-size:10px; padding:6px 3px; border-radius:5px; }
  .sidebar .nav.active::before { left:15px; right:15px; top:auto; bottom:1px; width:auto; height:2px; }
  .page-heading h1 { font-size:22px; }
  #main { padding:16px 12px 24px; }
  .topbar { min-height:52px; padding:6px 12px; }
  .stats { margin-bottom:18px; }
  .stat { padding:13px 12px; }
  .stat:nth-child(3) { border-left:0; }
  .stat:nth-child(n+3) { border-top:1px solid #34414e; }
  .stat b { font-size:23px; }
  .panel-header,.tab-body { padding:16px; }
  .form-banner { padding:10px 16px; }
  .tabs { padding:0 8px; gap:3px; }
  .tab { font-size:12px; padding:12px 10px; }
  .button,.button.small,.color-option { min-height:44px; }
  .planning-toolbar,.planning-day { padding:14px 16px; }
  .planning-toolbar .buttons { width:100%; }
  .planning-toolbar .field { flex:1; min-width:110px; }
  .planning-toolbar input { width:100%; }
  .capping-profile-layout { gap:12px; }
  .upcoming-row { flex-wrap:wrap; gap:10px; }
  .upcoming-row time { width:100%; }
  .capping-profile-layout .three-fields { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
  .capping-profile-layout .three-fields input { padding:10px 7px; }
}
/* Quantities remain editable at zero; arrows move by one, fractions may be typed. */
.quote-lines tr.optional-line,.quote-lines tr.optional-line td{background:transparent;opacity:1;color:inherit}
.quantity-control{display:inline-flex;align-items:center;max-width:100%;gap:2px}.quantity-control input{min-width:0;width:78px!important}.quantity-button{width:30px;min-height:36px;border:1px solid var(--line);border-radius:5px;background:transparent;color:inherit;cursor:pointer;flex:none}
.quantity-number{-moz-appearance:textfield}.quantity-number::-webkit-inner-spin-button,.quantity-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.address-links{display:flex;flex-direction:column;gap:4px;margin-top:6px;font-size:13px;overflow-wrap:anywhere}.address-primary{color:inherit;text-decoration:underline;text-underline-offset:3px}.map-alternative{font-size:11px;color:var(--muted,#aebdce)}
@media(max-width:700px){.quantity-button{width:36px;min-height:44px}.quantity-control input{width:70px!important}.address-primary,.map-alternative{padding:8px 0}}

/* v0.19 — ménage */
.next-action{background:transparent;color:inherit;border-color:var(--line)}
.next-action:hover{background:rgba(255,255,255,.05)}
.next-action b{color:inherit}
.client-qbo-actions{margin-top:18px}
@media(min-width:1200px){
  .detail-layout,.quote-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;max-width:1240px;align-items:start}
  .detail-aside{display:block;margin-top:0;position:sticky;top:24px}
  .detail-aside .right-panel{margin:0 0 16px}
}
.visit-section [data-qaction="pick-customer"]{margin-bottom:14px}
.preview-tax-table{display:block;padding:14px 18px}
.preview-tax-row{display:flex;justify-content:space-between;gap:16px;padding:5px 0;font-size:14px}
.preview-tax-row.total{border-top:1px solid rgba(0,0,0,.15);margin-top:6px;padding-top:10px;font-size:16px;font-weight:700}
.preview-tax-row.after-grant{color:#1f6f52}
.summary-total.after-grant strong{color:#7fd1a8}
.tax-choice{margin-top:16px}
.tax-choice .field{max-width:none}.tax-choice input#q-tax-note{max-width:none;width:100%}
.qr-box{display:flex;justify-content:center;margin:16px 0}
.qr-box svg{width:220px;height:220px;border-radius:8px}
.mfa-secret{font-family:ui-monospace,Menlo,monospace;letter-spacing:1px;overflow-wrap:anywhere}
.mfa-steps{padding-left:18px;margin:14px 0 0}
.recovery-codes{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}
.recovery-codes code{font-family:ui-monospace,Menlo,monospace;font-size:16px;letter-spacing:1px}
