/* =====================================================================
   /maths/numeration/nombres_decimaux/lire_ecrire_decomposer_fractions_decimales/fiches/fiches.css
   ===================================================================== */

.fd-fiches-panel {
    position: sticky;
    top: 20px;
}

.fd-fiches-preview {
    overflow-x: auto;
    background: #eef1f4;
    padding: 1rem;
    border-radius: .5rem;
}

.fd-sheet {
    width: 794px;
    min-height: 1123px;
    margin: 0 auto;
    padding: 34px 38px 42px;
    background: #fff;
    color: #1f2933;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.12);
    font-family: Arial, Helvetica, sans-serif;
}

.fd-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #adb5bd;
}

.fd-sheet-header h2 {
    margin: 0;
    font-size: 1.45rem;
}

.fd-sheet-subtitle {
    margin-top: .2rem;
    color: #6c757d;
    font-size: .9rem;
}

.fd-student-meta {
    display: flex;
    gap: .55rem;
    align-items: center;
    margin-bottom: 10px;
    font-size: .92rem;
}

.fd-sheet-section {
    margin-bottom: 10px;
    padding: 9px 11px 10px;
    border: 1px solid #c8ced4;
    border-radius: 6px;
}

.fd-sheet-section h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
}

.fd-grid {
    display: grid;
    gap: 8px 14px;
}

.fd-grid--2 {
    grid-template-columns: 1fr 1fr;
}

/* Les cellules d'une grille CSS ont par défaut une largeur minimale liée
   à leur contenu. min-width:0 permet aux réponses longues de revenir à la
   ligne au lieu de déborder dans la colonne voisine. */
.fd-grid--2 > * {
    min-width: 0;
}

.fd-readwrite-content {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.fd-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.fd-item {
    display: flex;
    gap: 6px;
    align-items: center;
    min-height: 34px;
}

.fd-item--math {
    justify-content: flex-start;
    line-height: 2.1;
}

.fd-item--wide {
    min-height: 43px;
}

.fd-item-label {
    flex: 0 0 auto;
    font-weight: 700;
}

.fd-answer-line {
    display: inline-block;
    min-width: 150px;
    border-bottom: 1px solid #495057;
    vertical-align: middle;
}

.fd-answer-line--fraction {
    min-width: 75px;
}

.fd-correction {
    margin-top: 2px;
    font-weight: 700;
}

.fd-correction--answer-only {
    margin-top: 0;
    color: #1d6b35;
}

.fd-empty-frac .frac-num {
    min-height: 1em;
}

.fd-empty-frac--wide {
    min-width: 2.8em;
}

.fd-small-blank {
    display: inline-block;
    width: 1.3em;
    border-bottom: 1px solid currentColor;
    vertical-align: middle;
}

.fd-line-block {
    margin-top: 3px;
}

.fd-line-block + .fd-line-block {
    margin-top: 6px;
}

.fd-line-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    font-size: .86rem;
    line-height: 1.55;
    margin-bottom: 0;
}

.fd-line-label,
.fd-line-targets-inline {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.fd-line-target {
    white-space: nowrap;
}

.fd-line-svg-wrap {
    height: 61px;
}

.fd-number-line-svg {
    display: block;
    width: 100%;
    height: 61px;
    overflow: visible;
}


.fd-sheet--correction .fd-sheet-section {
    border-color: #9ab6a0;
}

.fd-sheet--correction .fd-correction {
    color: #1d6b35;
}

.fd-sheet .math-value {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    position: relative;
    top: -0.10em;
    white-space: nowrap;
}

.fd-sheet .math-op {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 991.98px) {
    .fd-fiches-panel {
        position: static;
    }
}
