/* Feeding timer and log (/ejeler/emdirmek/) - only what hub.css does not give.
   Colours come from hub.css variables only, so dark mode follows. Big,
   one-handed targets: the two side buttons are the largest thing on the page. */

.fd-h1 { margin-bottom: 8px; }

/* child bar */
.fd-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.fd-child-none { display: block; background: var(--band); border-radius: 18px; padding: 10px 14px 12px; }
.fd-child-none .small { margin: 0 0 8px; }
.fd-child-l { font-size: 13px; font-weight: 800; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.fd-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 800; font-size: 15px; cursor: pointer;
}
.fd-chip[aria-pressed="true"] { border-color: var(--terracotta-d); background: var(--sel-bg); }
.fd-chip-add { border-style: dashed; color: var(--ink-mid); }
.fd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--terracotta); flex: none; }
.fd-form { margin: 12px 0; }
.fd-form .h2, .fd-formh { margin: 0 0 12px; font-size: 18px; }
.fd-unassigned { margin: 0 0 14px; padding: 14px 16px; border-radius: 20px; }
.fd-unassigned .btnrow { margin-top: 10px; }

/* timer card */
.fd-timer { padding: 16px; border-radius: 26px; }
.fd-pick { margin: 0 0 12px; font-size: 20px; font-weight: 800; text-align: center; letter-spacing: -.01em; }
.fd-pick::first-letter { text-transform: uppercase; }
.fd-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fd-side {
  min-height: 150px; padding: 12px 8px; border-radius: 28px; border: 3px solid var(--line);
  background: var(--band); color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.fd-side b { font-size: 32px; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
.fd-side .fd-sub { font-size: 14px; font-weight: 800; color: var(--ink-soft); min-height: 1.3em; text-align: center; }
.fd-side.fd-last { border-color: var(--terracotta-d); }
.fd-side[aria-pressed="true"] { background: var(--terracotta-d); border-color: var(--terracotta-d); color: var(--solid-ink); }
.fd-side[aria-pressed="true"] .fd-sub { color: var(--solid-ink); }
.fd-side:active { transform: scale(.985); }
.fd-clocks { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 22px; margin: 2px 0 6px; }
.fd-clock { text-align: center; }
.fd-clock span { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.fd-clock b { display: block; font-size: 52px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
/* the per-breast clock: about half the total at every width (the media
   queries below size .fd-clock b, so this selector must outrank it) */
.fd-clock.fd-clock-s b { font-size: 28px; color: var(--ink-mid); }
.fd-started { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.fd-stop {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 72px; margin-top: 12px;
  border: 0; border-radius: 22px; background: var(--solid); color: var(--solid-ink);
  font-size: 22px; font-weight: 800; cursor: pointer; touch-action: manipulation;
}
.fd-mistake { display: block; margin: 6px auto 0; }
.fd-confirm { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--red-bg); border: 1px solid var(--red-line); color: var(--red-ink); }
.fd-confirm p { margin: 0; font-weight: 800; }
.fd-confirm .btnrow { margin-top: 10px; }
.btn2.fd-danger { background: var(--red); border-color: var(--red); color: var(--solid-ink); }
.fd-forgot { margin: 0 0 14px; padding: 14px 16px; border-radius: 20px; }
.fd-forgot-h { margin: 0; font-weight: 800; color: var(--ink); }
.fd-forgot .btnrow { margin-top: 10px; }
.fd-endat { margin-top: 14px; }
.fd-endat .field { margin-bottom: 8px; }
.fd-endat .err:empty, .fd-form .err:empty { display: none; }
.fd-status { min-height: 1.4em; margin: 10px 2px 0; font-size: 14px; font-weight: 700; color: var(--ink-mid); }

/* last feed / last side / 24 h */
.fd-kpis { margin-top: 8px; }
.fd-kpis .kpi .fd-kl { margin: 0 0 4px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.fd-kpis .kpi b { font-variant-numeric: tabular-nums; }
.fd-kpis .kpi span { line-height: 1.3; }
@media (max-width: 759px) { .fd-kpis .fd-klast { grid-column: 1 / -1; } }
.fd-fewer { margin: 12px 0; padding: 16px 18px; border-radius: 20px; }

/* adding entries */
.fd-addrow { margin-top: 14px; }
.fd-addrow .btn2 { flex: 1 1 150px; }
.fd-addrow .btn2[aria-expanded="true"] { border-color: var(--terracotta-d); background: var(--sel-bg); }
textarea.inp.fd-note { min-height: 96px; padding: 12px 14px; font-size: 17px; font-weight: 600; resize: vertical; line-height: 1.4; }
input.inp.fd-note { font-size: 17px; font-weight: 600; }
input[type="datetime-local"].inp, input[type="date"].inp { font-size: 17px; }
.fd-parts { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.fd-legend { font-size: 14px; font-weight: 800; color: var(--ink-mid); margin-bottom: 6px; padding: 0; }
.fd-part { display: grid; grid-template-columns: 1fr 120px; gap: 8px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fd-partn { grid-column: 1 / -1; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.fd-part .seg-pick { min-width: 0; }
.fd-min .inp { padding-right: 50px; }
.fd-partrun { font-size: 14px; font-weight: 800; color: var(--terracotta-d); text-align: center; }
.fd-partdel { grid-column: 1 / -1; justify-self: start; }
.fd-partadd { margin-top: 6px; width: 100%; }
@media (max-width: 340px) { .fd-part { grid-template-columns: 1fr; } }
@media (max-width: 360px) {
  .fd-side { min-height: 136px; }
  .fd-side b { font-size: 27px; }
  .fd-clock b { font-size: 46px; }
  .fd-clock.fd-clock-s b { font-size: 25px; }
  .fd-clocks { gap: 6px 16px; }
}

/* the log */
.fd-day { font-size: 14px; font-weight: 800; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; margin: 18px 0 6px; }
.fd-entries { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.fd-entry { padding: 12px 14px; border-top: 1px solid var(--line); }
.fd-entry:first-child { border-top: 0; }
.fd-entry .fd-form { margin: 0; border: 0; padding: 4px 0; }
.fd-emain { display: flex; gap: 12px; align-items: flex-start; }
.fd-etime { flex: none; min-width: 96px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.fd-ebody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.fd-ebody span { color: var(--ink-mid); }
.fd-ebody .fd-enote { color: var(--ink-soft); font-style: italic; overflow-wrap: anywhere; }
.fd-e-breast .fd-ebody b { color: var(--terracotta-d); }
.fd-eacts { display: flex; gap: 8px; margin-top: 8px; justify-content: flex-end; }
.fd-eacts .btn2 { min-width: 96px; padding: 0 14px; font-size: 14px; }
.fd-more { width: 100%; margin-top: 12px; }

/* the summary card for the doctor */
.fd-pc h3 { margin-bottom: 4px; }
.fd-pcmeta { margin: 2px 0 0; font-size: 14px; color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.fd-pcsub { margin: 16px 0 6px; font-size: 14px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft); }
.fd-pcsum { margin: 0; padding-left: 20px; font-size: 15px; }
.fd-pcsum li { margin: 2px 0; }
.fd-pc .tablewrap { margin: 6px 0; }
.fd-pctable td { padding: 7px 10px; font-size: 13.5px; }
.fd-pctable td.num { width: 1%; text-align: left; }
.fd-pc7 { min-width: 520px; }
.fd-pc7 th, .fd-pc7 td { padding: 8px 9px; font-size: 13.5px; }
.fd-pc7 thead th { white-space: normal; line-height: 1.2; }
.fd-pc7 tbody th { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fd-pc7 tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.fd-pc7 thead tr > :first-child { z-index: 2; background: var(--band); }
.fd-pc .small { margin-top: 6px; }
.fd-pc .brandline img { width: 20px; height: 20px; border-radius: 50%; }

/* data, guidance, off-ramp */
.fd-data .fd-msg:empty { display: none; }
.fd-clear { display: block; margin-top: 8px; }
.fd-guide details.fold > summary { font-size: 16px; }
.fd-gbody p { margin: 0 0 10px; font-size: 15.5px; color: var(--ink-mid); line-height: 1.5; }
/* the desktop column is 1000 px wide (data-wide, for the tables): prose keeps a readable line */
.fd-gbody p, .fd-cues, .fd-fewer p, [data-page="feeding"] .lead { max-width: 72ch; }
.fd-gbody p:last-child { margin-bottom: 0; }
.fd-cues { margin: 0 0 10px; padding-left: 20px; font-size: 15.5px; color: var(--ink-mid); }
.fd-cues li { margin: 4px 0; }
.fd-band { border-top: 1px solid var(--line); padding: 12px 0 4px; }
.fd-band:first-child { border-top: 0; padding-top: 0; }
.fd-band h3 { margin: 0 0 6px; font-size: 16px; }
.fd-band-on { background: var(--sel-bg); border-radius: 14px; padding: 12px 12px 6px; margin: 4px -12px; border-top-color: transparent; }
.fd-ours { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: var(--terracotta-d); color: var(--solid-ink); font-size: 12.5px; font-weight: 800; }
.fd-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 800; color: var(--terracotta-d); text-underline-offset: 3px; }
.fd-rfcheck { margin: 10px 0 0; }
.res .fd-rfcheck { margin-top: 10px; }
.fd-rfcheck .fd-link { min-height: 48px; vertical-align: middle; }
.redcard .fd-rfcheck .fd-link { color: var(--red); }
.fd-rfnote { margin: 4px 0 0; font-weight: 700; }
.fd-srcmore { margin: 0; padding: 0 16px 12px; }

@media (min-width: 760px) {
  .fd-side { min-height: 180px; }
  .fd-side b { font-size: 38px; }
  .fd-clock b { font-size: 64px; }
  .fd-clock.fd-clock-s b { font-size: 34px; }
  .fd-timer { padding: 22px 24px; }
  .fd-entry { padding: 12px 18px; }
  .fd-eacts { margin-top: 0; }
  .fd-entry { display: flex; align-items: center; gap: 12px; }
  .fd-entry .fd-emain { flex: 1; }
  .fd-entry > .fd-form, .fd-entry > .fd-confirm { flex: 1; }
}

@media print {
  .fd-pc { border: 0; padding: 0; margin: 0; }
  .fd-pc .tablewrap { overflow: visible; border-color: #999; }
  .fd-pc7 { min-width: 0; }
  .fd-pc7 tr > :first-child { position: static; background: #fff; }
  .fd-pc7 thead th, .fd-pc7 thead tr > :first-child { position: static; background: #eee; color: #000; }
}
