/* Observacions del dia: el distintiu 💬 del xip i el seu globus, i els avisos petits sota les
   files de pacient del dosificador i del full de producció. Groc clar: informen, no aturen res. */

/* ---------------------------------------------------------------- distintiu i globus */

.fo-pc-obs-host { position: relative; display: inline-flex; }

.fo-pc-obs-badge {
    display: inline-flex; align-items: center; gap: 3px;
    height: 22px; padding: 0 7px 0 5px;
    border: 1px solid #d4a017; border-radius: 11px;
    background: #fff6cc; color: #7a5c00;
    font: inherit; line-height: 1; cursor: pointer;
}
.fo-pc-obs-badge i { font-size: 13px; }
.fo-pc-obs-count { font-size: 16px; font-weight: 800; }
.fo-pc-obs-badge-empty { border-style: dashed; background: #fff; opacity: .75; }
.fo-pc-obs-badge-empty .fo-pc-obs-count { font-size: 14px; }
.fo-pc-obs-badge:focus-visible { outline: 2px solid #40b6bd; outline-offset: 1px; }

.fo-pc-obs-pop {
    position: absolute; z-index: 40; top: calc(100% + 6px); left: -8px;
    display: none; width: 340px; padding: 8px 10px;
    background: #fff; border: 1px solid #d4a017; border-radius: 4px;
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .45);
    color: #212529; font-size: 14px; font-weight: 400; text-align: left; white-space: normal;
}
.fo-pc-obs-host:hover .fo-pc-obs-pop,
.fo-pc-obs-host:focus-within .fo-pc-obs-pop,
.fo-pc-obs-pinned .fo-pc-obs-pop { display: block; }

.fo-pc-obs-head { display: block; margin-bottom: 4px; color: #5c4a0a; }
.fo-pc-obs-group {
    display: block; margin: 6px 0 2px;
    font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #6c757d;
}
.fo-pc-obs-list { list-style: none; margin: 0; padding: 0; }
.fo-pc-obs-item { display: flex; align-items: flex-start; gap: 6px; padding: 3px 0; border-bottom: 1px dotted #dee2e6; }
.fo-pc-obs-item:last-child { border-bottom: 0; }
.fo-pc-obs-who { flex: 0 0 auto; max-width: 40%; overflow-wrap: break-word; }
.fo-pc-obs-text { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.fo-pc-obs-by { display: block; color: #6c757d; font-size: 11.5px; }

.fo-pc-obs-form { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #dee2e6; }
.fo-pc-obs-form-foot { display: flex; justify-content: flex-end; }

/* ---------------------------------------------------------------- avisos sota les files */

.fo-pc-callout-stack { display: flex; flex-direction: column; gap: 4px; }
.fo-pc-warn.fo-pc-callout-sm { margin: 0; padding: 3px 8px; font-size: 0.88rem; align-items: baseline; flex-wrap: wrap; }
.fo-pc-callout-text { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.fo-pc-callout-when { color: #7a8f93; font-size: 0.82rem; }

/* La fila del pacient i la dels seus avisos es llegeixen com una sola cosa. */
.fo-pc-pat tr.fo-pc-row-with-notes > td { border-bottom-color: transparent; }
.fo-pc-pat tr.fo-pc-notes-row > td { padding-top: 0; padding-left: 36px; }
