/* The pilot's pictures and reports (gallery.js, picviewer.js, composer.js) and their measurements
   and reply link in the inbox (inbox.js). */
.foto-flash { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); max-width: calc(100% - 24px); background: rgba(0, 0, 0, .75); color: #fff; padding: 5px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; text-align: center; pointer-events: none; z-index: 5; }
.dv-main .foto-flash { bottom: 250px; }

.galleri { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 240px; overflow: auto; }
.galleri-billede { position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; padding: 0; border: 1px solid #36414d; border-radius: 6px; background: #000; cursor: pointer; overflow: hidden; }
.galleri-billede img { display: block; width: 100%; height: 100%; object-fit: cover; }
.galleri-billede:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.galleri-maerke { position: absolute; right: 3px; bottom: 3px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; font-weight: 600; padding: 0 5px; border-radius: 5px; }

.melding-billeder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.melding-billeder:empty { display: none; }
.melding-billeder + .hint { margin: 4px 0 8px; }
.melding-mere { margin: 0 0 8px; }
.melding-mere summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 4px 0; }
.melding-mere[open] summary { margin-bottom: 6px; }
.melding-mere .rum-felt input { width: 100%; }
.melding-svar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 8px; border-left: 3px solid #4fa3ff; background: #1b2129; border-radius: 6px; font-size: 13px; overflow-wrap: anywhere; }
#melding-fremdrift:empty { display: none; }

.bl-visning { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 12px; background: rgba(0, 0, 0, .85); overflow: auto; }
.bl-boks { width: min(100%, calc(62vh * 1.25), 900px); display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.bl-billede { position: relative; line-height: 0; }
.bl-billede img { display: block; width: 100%; height: auto; border-radius: 6px; cursor: crosshair; }
.bl-punkter { position: absolute; inset: 0; pointer-events: none; line-height: 1.3; }
.bl-punkt { position: absolute; transform: translate(-6px, -50%); padding-left: 16px; white-space: nowrap; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 0 3px #000, 0 0 2px #000; font-variant-numeric: tabular-nums; }
.bl-punkt::before { content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -6px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #000; }
.bl-punkt.flip { transform: translate(calc(-100% + 6px), -50%); padding: 0 16px 0 0; }
.bl-punkt.flip::before { left: auto; right: 0; }
.bl-punkt b { margin-right: 4px; }
.bl-boks .hint { margin: 0; }
.bl-knapper, .bl-bund { display: flex; flex-wrap: wrap; gap: 6px; }
.bl-bund { justify-content: flex-end; }
.bl-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bl-liste:empty { display: none; }
.bl-liste li { display: flex; align-items: center; gap: 8px; }
.bl-liste input { flex: 1; min-width: 0; background: #222a33; color: var(--txt); border: 1px solid #36414d; border-radius: 6px; padding: 5px 7px; font: inherit; }
.bl-liste b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bl-tekst { display: grid; gap: 2px; margin: 0; font-size: 12px; color: var(--muted); }
.bl-tekst span:first-child { color: var(--txt); }

.mld-maal { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.mld-maal li { display: inline-flex; gap: 6px; align-items: baseline; padding: 2px 8px; border: 1px solid #36414d; border-radius: 999px; font-size: 12px; background: #222a33; overflow-wrap: anywhere; }
.mld-maal span { color: var(--muted); }
.mld-maal b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mld-svar { display: block; margin: 0 0 6px; padding: 3px 8px; border: 0; border-left: 3px solid #4fa3ff; border-radius: 4px; background: #222a33; color: var(--txt); font: inherit; font-size: 12px; text-align: left; overflow-wrap: anywhere; }
button.mld-svar { cursor: pointer; }
button.mld-svar:hover { background: #2a333d; }
.mld-fremhaevet { animation: mld-fremhaev 1.6s ease-out; }
@keyframes mld-fremhaev { from { box-shadow: 0 0 0 3px #4fa3ff; } to { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .mld-fremhaevet { animation: none; outline: 2px solid #4fa3ff; } }
