/* provet-history-photo-r1-20261021 */
.medical-photo-controls[hidden]{display:none!important}
.medical-photo-controls{display:flex;align-items:center;gap:5px;min-height:29px;flex:0 0 auto;padding:3px 4px;border:1px solid #8ca1af;border-top:0;background:#f3faf3;box-sizing:border-box}
.medical-photo-controls button{height:23px;flex:0 0 auto;padding:1px 6px;font:inherit;font-size:12px}
.medical-photo-status{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#28744b}
.medical-photo-status.error{color:#a00020}
/* PROVET-PET-SPEECH-LAYOUT:20261028-r1
 * Speech editor: 186px -> 148.8px (-20%); give 37.2px to the history list.
 * Keep the speech slot bottom at 327px and the prescription area unchanged. */
.pet-window .history-right>.history-med-pane{height:137.2px!important}
.pet-window .history-right>.history-speech-slot{top:145.2px!important;height:181.8px!important}
.pet-window .history-work .history-speech-slot>#speechHistoryPanel{
 position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;
 display:grid!important;grid-template-columns:auto auto auto auto minmax(0,1fr);grid-template-rows:24px minmax(0,1fr);
 gap:3px 4px;padding:3px!important;margin:0!important;box-sizing:border-box;overflow:hidden
}
.pet-window .history-speech-slot .speech-history-title,
.pet-window .history-speech-slot .speech-controls{display:contents!important}
.pet-window .history-speech-slot .speech-history-title>span{grid-column:1;grid-row:1;font-size:11px;line-height:24px;white-space:nowrap}
.pet-window .history-speech-slot #speechToggle{grid-column:2;grid-row:1}
.pet-window .history-speech-slot #speechClear{grid-column:3;grid-row:1}
.pet-window .history-speech-slot #appendSpeechToHistory{grid-column:4;grid-row:1}
.pet-window .history-speech-slot #speechStatus{grid-column:5;grid-row:1;min-width:0;min-height:0;height:24px;margin:0;padding:2px 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;font-size:11px;line-height:19px}
.pet-window .history-speech-slot #speechToggle,
.pet-window .history-speech-slot #speechClear,
.pet-window .history-speech-slot #appendSpeechToHistory{position:static;width:auto!important;min-width:0;min-height:0;height:24px!important;padding:1px 5px!important;margin:0;font-size:11px;line-height:19px}
.pet-window .history-speech-slot .speech-editor-wrap{
 position:relative!important;inset:auto!important;grid-column:1/-1;grid-row:2;
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0
}
.pet-window .history-speech-slot #speechTranscript{display:block;width:100%!important;height:100%!important;min-height:0!important;box-sizing:border-box;resize:none}
.pet-window .history-speech-slot .speech-help{display:none}

/* Compact record text without shrinking speech controls or other tables. */
.pet-window .history-med-table td,
.pet-window #historySaveForm > #medHis { font-size:11px; line-height:17px; }

/* PROVET-MICROPHONE-CHECK:20261029-r4 */
.pet-window .history-work .history-speech-slot>#speechHistoryPanel{
 grid-template-columns:auto auto auto auto auto minmax(0,1fr)
}
.pet-window .history-speech-slot #speechMicCheck{
 grid-column:5;grid-row:1;position:static;width:auto!important;min-width:0;min-height:0;
 height:24px!important;padding:1px 5px!important;margin:0;font-size:11px;line-height:19px;white-space:nowrap
}
.pet-window .history-speech-slot #speechStatus{grid-column:6;grid-row:1}
.pet-window .history-speech-slot #speechMicResult[hidden]{display:none!important}
.pet-window .history-speech-slot .speech-editor-wrap.has-mic-result{
 display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(38px,1fr) auto;gap:3px
}
.pet-window .history-speech-slot .has-mic-result #speechTranscript{grid-column:1;grid-row:1}
.pet-window .history-speech-slot .has-mic-result #speechInterim{display:none}
.pet-window .history-speech-slot #speechMicResult{
 grid-column:1;grid-row:2;min-height:0;max-height:108px;overflow:auto;box-sizing:border-box;
 padding:4px 6px;border:1px solid #b7cbd6;border-radius:2px;background:#f4f9fc;color:#234353;
 font-size:12px;line-height:17px;white-space:normal;overflow-wrap:anywhere
}
.pet-window .history-speech-slot #speechMicResult p{margin:0 0 3px}
.pet-window .history-speech-slot #speechMicResult p:last-child{margin-bottom:0}
.pet-window .history-speech-slot #speechMicResult .speech-mic-outcome{font-weight:600}
.pet-window .history-speech-slot #speechMicResult a{color:#185d8b;text-decoration:underline}
