/* TaxTami fiscalisation section — extends the lesson theme (green #1a5038/#2c724f, accent #c97a37). */
.fx-fact{border-bottom:1px dotted #2c724f;cursor:help}
.fx-unverified{background:#fef3c7;color:#92400e;padding:0 4px;border-radius:3px;font-size:.9em}
.fx-widget{margin:16px 0;padding:20px;border:1px solid #c5ddd0;background:#f4f8f6;border-radius:10px}
.fx-q{font-size:1.1rem;font-weight:600;color:#1a5038;margin-bottom:12px}
.fx-opts{display:flex;flex-wrap:wrap;gap:10px}
.fx-btn{display:inline-block;padding:9px 16px;border:1px solid #2c724f;background:#fff;color:#1a5038;border-radius:6px;font-weight:600;cursor:pointer;text-decoration:none;line-height:1.3}
.fx-btn:hover{background:#2c724f;color:#fff}
.fx-primary{background:#2c724f;color:#fff}.fx-primary:hover{background:#1a5038}
.fx-ghost{border-color:#9ca3af;color:#374151}
.fx-trail{font-size:.85rem;color:#4b5563;margin:0 0 12px 18px}
.fx-verdict{border-left:4px solid #c97a37;background:#fff;padding:14px 18px;margin:12px 0;border-radius:0 8px 8px 0}
.fx-note{font-size:.88rem;color:#4b5563;margin:8px 0}
.fx-field{border:0;margin:0 0 14px;padding:0}.fx-field legend{font-weight:600;color:#1a5038;font-size:1rem;margin-bottom:6px}
.fx-radio{display:block;margin:4px 0;font-weight:400;cursor:pointer}
.fx-bars{display:grid;grid-template-columns:80px 1fr 30px;gap:6px 10px;align-items:center;margin:10px 0}
.fx-bars i{display:block;height:10px;background:#2c724f;border-radius:5px;max-width:100%}
.fx-sources li{margin-bottom:8px}
.fx-pagefoot{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;font-size:.85rem;color:#4b5563;border-top:1px solid #e5e7eb;margin-top:24px;padding-top:12px}
.sbx-banner{background:#1a5038;color:#fff;padding:8px 14px;border-radius:6px;font-size:.85rem;font-weight:600;margin-bottom:12px}
.sbx-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:10px}
.sbx-skew{font-weight:600;color:#92400e;margin:0;cursor:pointer}
.sbx-status{margin:8px 0 14px;font-size:.95rem}.sbx-redtxt{color:#b91c1c;font-weight:600}
.sbx-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:767px){.sbx-grid{grid-template-columns:1fr}}
.sbx-grid h4,.sbx-anatomy h4{font-size:1rem;color:#1a5038;margin:0 0 8px}
.sbx-chain{display:flex;flex-direction:column;gap:6px;max-height:320px;overflow:auto}
.sbx-link{display:grid;grid-template-columns:40px 60px 1fr;gap:2px 8px;text-align:left;border:1px solid #d1d5db;border-left-width:6px;background:#fff;padding:6px 10px;border-radius:6px;cursor:pointer;font-size:.85rem}
.sbx-link small{grid-column:2/4;color:#6b7280;font-family:monospace}
.sbx-green{border-left-color:#16a34a}.sbx-yellow{border-left-color:#ca8a04}.sbx-red{border-left-color:#dc2626}.sbx-grey{border-left-color:#6b7280}
.sbx-log{max-height:320px;overflow:auto;font-size:.85rem}
.sbx-l{padding:6px 8px;border-bottom:1px solid #e5e7eb}.sbx-ok{color:#166534}.sbx-warn{color:#92400e}.sbx-error{color:#b91c1c}.sbx-info{color:#374151}
.sbx-count{display:inline-block;margin-left:4px;padding:0 6px;border-radius:999px;background:#fee2e2;font-size:.75rem;font-weight:700}
.sbx-l details summary{cursor:pointer;font-size:.8rem;color:#1a5038}
.sbx-err{border:1px solid #e5e7eb;border-left:6px solid;padding:8px 12px;margin:8px 0;border-radius:6px;background:#fff;color:#1f2937}
.sbx-err p{margin:4px 0;font-size:.88rem}
.sbx-receipt{display:grid;grid-template-columns:260px 1fr;gap:20px;margin-top:18px}@media(max-width:767px){.sbx-receipt{grid-template-columns:1fr}}
.sbx-paper{position:relative;background:#fff;border:1px dashed #9ca3af;padding:14px;font-family:monospace;font-size:.8rem;overflow:hidden}
.sbx-paper b,.sbx-paper small{display:block;text-align:center}.sbx-paper small{color:#4b5563;margin:4px 0}
.sbx-paper table{width:100%;margin:8px 0}.sbx-paper td:last-child{text-align:right}.sbx-total td{font-weight:700;border-top:1px solid #000}
.sbx-qr{width:120px;margin:8px auto 0}
.sbx-watermark{position:absolute;top:40%;left:-10%;width:120%;text-align:center;transform:rotate(-30deg);font-size:2.6rem;font-weight:800;color:rgba(220,38,38,.18);pointer-events:none}
.sbx-code{display:block;word-break:break-all;background:#f3f4f6;padding:8px;border-radius:6px;font-size:.78rem}
.sbx-anatomy dl{display:grid;grid-template-columns:140px 1fr;gap:4px 10px;font-size:.82rem}.sbx-anatomy dd{margin:0;word-break:break-all}
.sbx-err.sbx-green{border-left-color:#16a34a}.sbx-err.sbx-yellow{border-left-color:#ca8a04}.sbx-err.sbx-red{border-left-color:#dc2626}.sbx-err.sbx-grey{border-left-color:#6b7280}
/* phase 2: situations row, queued receipts, selection */
.sbx-situations{padding:8px 10px;background:#f9fafb;border:1px dashed #d1d5db;border-radius:8px}
.sbx-sitlabel{font-weight:700;color:#1a5038;font-size:.9rem}
.sbx-situations .sbx-skew{color:#374151;font-weight:500}
.sbx-queuetxt{color:#92400e;font-weight:600}
.sbx-link.sbx-queued{border-left-color:#9ca3af;border-style:dashed;background:#f9fafb}.sbx-link i{color:#6b7280;font-size:.78rem}
.sbx-err.sbx-queued{border-left-color:#9ca3af;border-left-style:dashed}
.sbx-link.sbx-sel{outline:2px solid #2c724f;outline-offset:1px}
.sbx-ref{display:block;margin:6px 0;padding:4px 6px;background:#f3f4f6;border-radius:4px}
/* error guide */
.fx-errhead{margin:18px 0 4px;color:#1a5038}
.fx-errgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.fx-errcard{margin:0;scroll-margin-top:90px}.fx-errcard:target{box-shadow:0 0 0 3px #f7b731}
.fx-tag{display:inline-block;margin-left:8px;padding:0 8px;border-radius:999px;background:#e9f1ed;color:#1a5038;font-size:.72rem;font-weight:600;vertical-align:middle}
/* checklist */
.fx-checklist h4{margin:16px 0 6px;color:#1a5038}
.fx-ticks{list-style:none;padding:0;margin:0}
.fx-ticks li{padding:8px 0;border-bottom:1px solid #e5e7eb}
.fx-ticks label{display:flex;gap:10px;align-items:flex-start;font-weight:500;margin:0;cursor:pointer}
.fx-ticks input{margin-top:4px;flex:none;width:18px;height:18px;accent-color:#2c724f}
.fx-ticks small{display:block;margin:2px 0 0 28px;color:#6b7280;font-size:.78rem}
@media print{
  .dom-sidebar,.main-header,.main-footer,.lesson-nav,.fx-opts,.fx-field,header,footer{display:none!important}
  details.lesson-details{display:block}details.lesson-details>.section-content{display:block!important}
  .fx-ticks input{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
/* readiness self-assessment */
.fx-ready-items h4{margin:18px 0 6px;color:#1a5038}
.fx-ready-item{border:1px solid #e5e7eb;border-radius:8px;padding:8px 12px;margin:6px 0;background:#fff}
.fx-ready-item.is-key{border-left:4px solid #2c724f}
.fx-ready-item legend{font-weight:500;font-size:.95rem;padding:0 4px;float:left;width:100%;margin-bottom:6px}
.fx-seg{clear:both;display:flex;flex-wrap:wrap;gap:6px}
.fx-seg label{display:inline-flex;align-items:center;gap:6px;margin:0;padding:4px 10px;border:1px solid #d1d5db;border-radius:999px;font-size:.88rem;cursor:pointer;font-weight:500}
.fx-seg label:has(input:checked){background:#e9f1ed;border-color:#2c724f;color:#1a5038}
.fx-seg input{accent-color:#2c724f}
.fx-ready-score strong{font-size:1.25rem;color:#1a5038}
.fx-ready-critical{color:#b91c1c}
.fx-ready-actions li{margin:6px 0}.fx-ready-actions li.is-critical strong{color:#b91c1c}
.fx-ready-actions small{display:block;color:#6b7280;font-size:.8rem}
@media print{.fx-ready-items,.fx-field{display:none!important}}
