/* ===== Chambres froides (maquette d06), relevé des températures (d20), poste de scan (d07) ===== */

.cf-resume { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cf-resume strong { color: var(--texte); font-weight: 600; }
.cf-long, .cf-long strong { color: #B45309 !important; }
.cf-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cf-cherche .inp { width: 220px; }
.cf-astuce { margin: -8px 0 0; font-size: 13px; color: #A1A1AA; display: flex; align-items: center; gap: 8px; }

.cf-corps { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cf-plan { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cf-frigo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-frigo-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 2px 2px; }
.cf-frigo-nom { font-size: 14px; font-weight: 600; }
.cf-frigo-info { display: flex; gap: 10px; font-size: 12px; color: var(--texte-3); }
.cf-temp-alerte { color: #B42318; font-weight: 600; }
.cf-tiroirs { display: flex; flex-direction: column; gap: 4px; }

.cf-tir {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; box-sizing: border-box;
    border: 1px solid #EEF6F3; border-radius: 8px; background: #EEF6F3; color: var(--texte); text-decoration: none;
    transition: outline-color .12s, transform .1s, opacity .12s, background .12s;
}
.cf-tir:hover { color: var(--texte); filter: brightness(.98); }
.cf-tir-n { width: 14px; font-size: 12px; color: #A1A1AA; flex: none; }
.cf-tir-titre { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-occupe .cf-tir-titre { font-weight: 500; }
.cf-occupe[draggable="true"] { cursor: grab; }
.cf-libre { background: #fff; border-color: #EDEDED; }
.cf-libre .cf-tir-titre, .cf-hs .cf-tir-titre { color: #A1A1AA; }
.cf-reserve { background: #FFF8EB; border-color: #FFF8EB; }
.cf-hs { background: var(--fond-doux); border-color: var(--fond-doux); }
.cf-tir-j { font-size: 12px; color: var(--texte-3); flex: none; }
.cf-tir-j.long { color: #B45309; font-weight: 600; }
.cf-tir.sel { outline: 2px solid var(--vert); outline-offset: 2px; }
.cf-tir.trouve { outline: 2px solid #D97706; outline-offset: 2px; }
.cf-tir.estompe, .cf-ligne.estompe { opacity: .35; }
.cf-ligne.trouve td { background: #FFF8EB; }

/* glisser-déposer */
.glisse .cf-tir { outline: none; }
.glisse .cf-tir.source { opacity: .45; }
.glisse .cf-libre:not(.source) { background: #F4F9F7; border: 1px dashed #8CC3AF; }
.glisse .cf-occupe:not(.source) { border: 1px dashed #C6E0D6; }
.glisse .cf-reserve, .glisse .cf-hs { opacity: .4; }
.glisse .cf-tir.survol { transform: scale(1.02); border-style: solid; }
.glisse .cf-libre.survol { background: #DDEFE8; border-color: var(--vert); }
.glisse .cf-occupe.survol { background: #FFF4E0; border-color: #D97706; }

/* panneau du tiroir */
.cf-panneau { flex: 1 1 280px; max-width: 100%; position: sticky; top: 16px; }
.cf-pan-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 16px 16px 12px; }
.cf-pan-tete div { display: flex; flex-direction: column; gap: 2px; }
.cf-pan-tete strong { font-size: 16px; font-weight: 600; }
.cf-pan-code { font-size: 11px; color: #A1A1AA; letter-spacing: .04em; }
.cf-pan-tete .st { font-size: 13px; }
.st-n::before { background: #A1A1AA; }
.cf-pan-corps { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px; }
.cf-occupant { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; background: #F4F9F7; font-size: 13px; color: var(--texte-2); }
.cf-occupant strong { font-size: 15px; font-weight: 600; color: var(--texte); margin-bottom: 2px; }
.cf-seg { display: flex; }
.cf-seg a { flex: 1; justify-content: center; }
.cf-form { display: flex; flex-direction: column; gap: 12px; }
.cf-form .inp, .cf-form select { height: 40px; }
.cf-form .btn { height: 40px; }
.cf-liens { display: flex; gap: 16px; justify-content: center; }
.cf-lien { font: inherit; font-size: 13px; padding: 0; border: none; background: none; color: var(--vert); cursor: pointer; }
.cf-lien:hover { text-decoration: underline; }
.cf-note { margin: 0; font-size: 13px; color: var(--texte-3); }
.sep { height: 1px; background: #F0F0F0; }
.cf-mvts-tete { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.cf-mvts-tete a { font-weight: 400; text-decoration: none; }
.cf-mvts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cf-mvt { display: flex; gap: 12px; font-size: 13px; }
.cf-mvt-pt { width: 8px; height: 8px; border-radius: 50%; background: var(--vert); margin-top: 5px; flex: none; }
.cf-mvt-pt.warn { background: #D97706; }
.cf-mvt-pt.danger { background: #D92D20; }
.cf-mvt > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cf-mvt-tete { display: flex; flex-direction: column; }
.cf-mvt-tete strong { font-weight: 500; }
.cf-mvt-tete span, .cf-mvt-qui { font-size: 12px; color: #A1A1AA; }
.cf-mvt-det { color: var(--texte-2); }
.cf-mvt-diff { display: flex; gap: 6px; font-size: 12px; color: var(--texte-3); flex-wrap: wrap; }
.cf-mvt-diff s { color: #A1A1AA; }
.cf-etiq { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.cf-etiq a { text-decoration: none; }
.cb { display: block; flex: none; }

/* ===== Fenêtres modales (relevés, poste de scan) ===== */
.cf-voile { position: fixed; inset: 0; z-index: 50; background: rgba(24, 24, 27, .35); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; box-sizing: border-box; }
.cf-modale { width: 560px; max-width: 100%; box-shadow: 0 24px 60px rgba(24, 24, 27, .25); }
.cf-modale .ph { font-size: 16px; min-height: 60px; }
.cf-releves { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; }
.cf-releves p { margin: 0 0 6px; font-size: 14px; color: var(--texte-2); line-height: 1.45; }
.cf-rel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cf-rel-nom { width: 70px; font-size: 14px; font-weight: 600; }
.cf-rel-der { flex: 1; font-size: 13px; color: #A1A1AA; min-width: 160px; }
.cf-rel-hors { font-size: 12px; }
.cf-rel-saisie { position: relative; width: 84px; }
.cf-rel-saisie .inp { height: 38px; text-align: right; padding-right: 30px; }
.cf-rel-saisie .inp.hors { border-color: #D92D20; }
.cf-rel-saisie span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--texte-3); pointer-events: none; }
.cf-btn-large { height: 40px; margin-top: 6px; }

/* ===== Étiquette imprimable ===== */
.cf-etiquette-page { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 48px 16px; }
.cf-etiquette { display: inline-flex; flex-direction: column; gap: 6px; padding: 16px 20px; border: 1px dashed #D4D4D8; border-radius: 8px; }
.cf-etiquette strong { font-size: 15px; }
@media print {
    .cf-etiquette-actions { display: none; }
    .cf-etiquette { border: none; }
}

/* ===== Poste de scan ===== */
.sc-page { display: flex; justify-content: center; }
.sc-modale { width: 760px; max-width: 100%; }
.sc-corps { display: flex; flex-direction: column; gap: 16px; padding: 16px 20px 20px; }
.sc-modes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sc-aide { font-size: 13px; color: var(--texte-3); }
.sc-lecture { display: flex; gap: 8px; }
.sc-lecture .inp { flex: 1; height: 48px; font-size: 17px; }
.sc-lecture .btn { height: 48px; padding: 0 18px; }
.sc-err { margin: 0; font-size: 13px; }
.sc-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sc-slot { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; min-height: 150px; box-sizing: border-box; background: #FAFAFA; border: 1px dashed #D4D4D8; }
.sc-slot.lu { background: #fff; border: 1px solid var(--vert); box-shadow: 0 0 0 3px rgba(31, 111, 92, .1); }
.sc-slot.off { background: #FAFAFA; border-color: #EAEAEA; opacity: .55; }
.sc-slot-tete { display: flex; justify-content: space-between; font-size: 12px; color: var(--texte-3); margin-bottom: 4px; }
.sc-slot-code { font-size: 12px; color: var(--texte-2); }
.sc-slot-titre { font-size: 16px; font-weight: 600; }
.sc-slot-sous { font-size: 13px; color: var(--texte-3); }
.sc-slot-attente { margin: auto 0; font-size: 13px; color: #A1A1AA; text-align: center; }
.sc-bandeau { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; }
.sc-bandeau > span { flex: 1 1 260px; font-size: 14px; }
.sc-bandeau form { display: flex; gap: 8px; }
.sc-idle { background: #FAFAFA; border: 1px solid #F0F0F0; color: #3F3F46; }
.sc-ok { background: #EEF6F3; border: 1px solid #C6E0D6; color: var(--vert-encre); }
.sc-warn { background: #FFF8EB; border: 1px solid #F3D9A4; color: #7C4A03; }
.sc-err-b { background: #FEF3F2; border: 1px solid #FECDCA; color: #912018; }
.sc-auto { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #3F3F46; }
.sc-auto input { width: 16px; height: 16px; accent-color: var(--vert); }
.cb-grand { width: auto; height: 96px; } /* étiquette de tiroir : modules de 2 px */
