/* THC Care 0.11.0: Keeper's Log, health section styles. Colours only through the --kl-* variables (logs.css), so
   Dark and High contrast carry through. Phone first: one column, the lab rows editor stacks, nothing floats. */

.thc-care-logs__hl-logrow { gap: .4rem; }

/* Right now */
.thc-care-logs__hl-now { background: var(--kl-raised); border: 1px solid var(--kl-border); border-left: 4px solid var(--kl-leaf); border-radius: var(--kl-radius); margin: 0 0 .6rem; padding: .75rem .9rem; }
.thc-care-logs__hl-now .thc-care-logs__h3 { margin-bottom: .35rem; }
.thc-care-logs__hl-nowlist, .thc-care-logs__hl-medlist { display: grid; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.thc-care-logs__hl-nowitem, .thc-care-logs__hl-medline { display: grid; gap: .4rem; margin: 0; min-width: 0; }
.thc-care-logs__hl-medlist { background: var(--kl-raised); border: 1px solid var(--kl-border); border-radius: var(--kl-radius); padding: .75rem .9rem; }
.thc-care-logs__hl-medline { display: block; }
.thc-care-logs__hl-key { font-weight: 600; }

/* forms */
.thc-care-logs__hl-form .thc-care-logs__note { margin: 0; }
.thc-care-logs__hl-fixed { margin: 0; }
.thc-care-logs__hl-formmsg { background: var(--kl-flag-bg); border: 1.5px solid var(--kl-flag-line); border-radius: var(--kl-radius); font-weight: 600; margin: 0; padding: .6rem .9rem; }
.thc-care-logs__hl-signs { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .thc-care-logs__hl-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.thc-care-logs__hl-signs .thc-care-logs__check { align-items: flex-start; display: flex; padding: .6rem 0; }
.thc-care-logs__hl-signs .thc-care-logs__check input { flex: none; margin-top: .15em; }
.thc-care-logs__hl-form > .thc-care-logs__check { align-items: flex-start; display: flex; padding: .6rem 0; }
.thc-care-logs__hl-form > .thc-care-logs__check input { flex: none; margin-top: .15em; }

/* lab rows editor: stacked on a phone, one line per row on a wide screen */
.thc-care-logs__hl-rowsbox { display: grid; gap: .5rem; min-width: 0; }
.thc-care-logs__hl-rowshead { font-weight: 600; margin: 0; }
.thc-care-logs__hl-labrows { display: grid; gap: .6rem; min-width: 0; }
.thc-care-logs__hl-labrow { border: 1px solid var(--kl-border); border-radius: var(--kl-radius); display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr); margin: 0; min-width: 0; padding: .5rem .75rem .75rem; }
.thc-care-logs__hl-rowlegend { font-size: .92rem; font-weight: 600; padding: 0 .3rem; }
.thc-care-logs__hl-labrow .thc-care-logs__btn { justify-self: start; }
@media (min-width: 760px) {
  .thc-care-logs__hl-labrow { align-items: end; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.6fr) auto; }
  .thc-care-logs__hl-labrow .thc-care-logs__field label { font-size: .88rem; }
}

/* timeline entries */
.thc-care-logs__hl-entry { grid-template-columns: minmax(0, 1fr); }
.thc-care-logs__hl-entry > .thc-care-logs__form { margin: 0; }
.thc-care-logs__hl-head { align-items: center; display: flex; flex-wrap: wrap; gap: .3rem .4rem; margin-bottom: .3rem; }
.thc-care-logs__hl-badge { font-weight: 600; }
.thc-care-logs__hl-badge--pin { background: var(--kl-deep); border-color: var(--kl-deep); color: var(--kl-on-leaf); }
.thc-care-logs__hl-lead { font-weight: 600; }
.thc-care-logs__hl-words { white-space: pre-wrap; }
.thc-care-logs__hl-line { margin-top: .1rem; }
.thc-care-logs__hl-tablewrap { margin-top: .4rem; max-width: 100%; min-width: 0; }
.thc-care-logs__hl-table { border-collapse: collapse; font-size: .92rem; table-layout: fixed; width: 100%; }
.thc-care-logs__hl-table th, .thc-care-logs__hl-table td { border: 1px solid var(--kl-border); overflow-wrap: anywhere; padding: .3rem .4rem; text-align: left; vertical-align: top; word-break: break-word; }
.thc-care-logs__hl-table th { background: var(--kl-muted); font-weight: 600; }
.thc-care-logs__hl-ics p, .thc-care-logs__hl-finish p { margin: 0; }
.thc-care-logs__hl-enc { margin-bottom: .1rem; overflow-wrap: anywhere; }

/* the reminder offered after a medication is saved, and the offer to pause it once the medication is finished */
.thc-care-logs__hl-offer { border-color: var(--kl-flag-line); }
.thc-care-logs__hl-offer p, .thc-care-logs__hl-pause p { margin: 0; overflow-wrap: anywhere; }
.thc-care-logs__hl-offer-head { font-weight: 600; }
