/* HMG Cue Sheet · app-specific styles (the shared shell is hmg-app.css). */

/* sources: music on/off */
.toggle { position: relative; display: inline-block; width: 40px; height: 23px; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; background: #333; border-radius: 12px; transition: background .15s; cursor: pointer; }
.toggle span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--cream); transition: transform .15s; }
.toggle input:checked + span { background: var(--grad-red); box-shadow: 0 0 12px rgba(237, 28, 36, .4); }
.toggle input:checked + span::after { transform: translateX(17px); }
.toggle input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
.grid tr.off td { opacity: .5; }
.tag.none { color: var(--muted); }

/* cue editor */
.cues input[type=text], .cues textarea, .cues select { width: 100%; padding: 6px 8px; font-size: 13.5px; }
.cues textarea { resize: vertical; min-height: 40px; font-size: 13px; }
.cues .title-cell { min-width: 240px; }
.cues .title-cell > input[data-f="title"] { font-weight: bold; color: var(--cream); }
.cues .sub-inputs { display: flex; gap: 6px; margin-top: 6px; }
.cues .sub-inputs input { font-size: 12px; padding: 4px 7px; }
.cues .note-in { margin-top: 6px; font-size: 12px; padding: 4px 7px; }
.cues .credits { min-width: 200px; }
.cues .use { width: 96px; }
.cues .use select { min-width: 84px; }
.cues .src { color: var(--muted); font-size: 11px; margin-top: 5px; word-break: break-all; }
.cues tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .012); }
.issues { list-style: none; margin: 0; padding: 0; font-size: 12px; min-width: 150px; }
.issues li { color: var(--warn); }
.issues li::before { content: "▲ "; font-size: 9px; }
.issues .ok { color: var(--ok); font-family: var(--label); letter-spacing: 1px; text-transform: uppercase; }
.issues .ok::before { content: "✓ "; font-size: 11px; }

.totals { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tot { display: grid; padding: 8px 14px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); min-width: 110px; }
.tot b { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--cream); font-weight: normal; }
.tot span { font-family: var(--label); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.tot.warn { border-color: rgba(255, 176, 32, .4); } .tot.warn b { color: var(--warn); }
.tot.ok { border-color: rgba(61, 220, 132, .35); } .tot.ok b { color: var(--ok); }
.totals .hint { flex: 1; min-width: 260px; }
#export-warn { margin: 0 0 14px; }
#export-warn:empty { display: none; }

@media print { @page { size: letter landscape; margin: 10mm 10mm 14mm; } }
@media (max-width: 720px) {
  .cues .title-cell { min-width: 200px; }
  .head-tools.settings { width: 100%; }
}
