/* pet-history-layout-r7-20260919 */

/* Reserve the first row for identity; daily records start on the next row. */
.pet-window .top-area > .toolbar {
    height: 30px;
    gap: 6px;
    overflow: hidden;
}
.pet-window .toolbar > .btn,
.pet-window .toolbar > label,
.pet-window .toolbar > .pet-number {
    flex: 0 0 auto;
}
.pet-window .toolbar > .current-staff-badge {
    flex: 0 1 auto;
    min-width: 0 !important;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pet-window .top-area > .daily-panel {
    top: 34px;
    bottom: 5px;
    height: auto;
}
.pet-window .daily-panel > .daily-table-wrap {
    height: calc(100% - 48px);
    min-height: 0;
}

/* The header, editable record and feedback are separate, non-overlapping rows. */
#historySaveForm.history-current {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
#historySaveForm > .history-current-head {
    flex: 0 0 auto;
    height: auto;
    min-height: 24px;
    white-space: normal;
    line-height: 22px;
}
#historySaveForm > textarea.history-text {
    flex: 1 1 0;
    height: auto;
    min-height: 60px;
    overflow: auto;
}
#historySaveForm > #historyMessage {
    display: block;
    flex: 0 0 auto;
    max-height: 58px;
    margin: 0;
    padding: 3px 7px;
    border: 1px solid #8ca1af;
    border-top: 0;
    background: #f3faf3;
    color: #28744b;
    font-size: 12px;
    line-height: 18px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    overflow: auto;
}
#historySaveForm > #historyMessage:empty {
    display: none;
}
#historySaveForm > #historyMessage.error {
    background: #fff2f2;
    color: #a00020;
}
