/* Fishing calculator + loot odds.
 *
 * #flo-scoped. Same three constraints from css/tool-theme.css as the composter widget: toggles
 * carry "tab" to escape the (1,2,1) generic button rule and take its .active state; containers
 * are -nav/-seg, never -tabs/-chips, because those substrings style wrappers too; and nothing is
 * called a result or an output, which that sheet turns into monospace boxes.
 */

#flo { display: block; }
#flo [hidden] { display: none !important; }

#flo .flo-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
#flo .flo-tab,
#flo .flo-seg-tab {
  padding: 7px 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}
#flo .flo-seg-tab { font-size: 13px; padding: 6px 11px; }
#flo .flo-seg { display: flex; flex-wrap: wrap; gap: 6px; }
#flo .flo-sub { margin-bottom: 18px; }

#flo .flo-loading { margin: 0 0 16px; font-size: 14px; opacity: .75; }

#flo .flo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: start;
}
#flo .flo-grid3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 16px; }
#flo .flo-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#flo .flo-field { display: block; min-width: 0; }
#flo .flo-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .75;
}
#flo input[type="number"],
#flo select { width: 100%; padding: 9px 11px; font-size: 15px; }
#flo .flo-hint { margin: 0; font-size: 13px; line-height: 1.55; }
#flo .flo-mobhint { margin: 0 0 4px; max-width: 76ch; }

/* Category bars ----------------------------------------------------------- */
#flo .flo-bars { display: flex; flex-direction: column; gap: 10px; }
#flo .flo-bar { display: block; }
#flo .flo-barhead { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 700; }
#flo .flo-barhead span:last-child { font-variant-numeric: tabular-nums; }
#flo .flo-track { height: 8px; margin-top: 5px; border-radius: 4px; background: rgba(127, 127, 127, .18); overflow: hidden; }
#flo .flo-fill { display: block; height: 100%; border-radius: 4px; background: #10b981; }
#flo .flo-fill-junk { background: #8a8f98; }
#flo .flo-fill-treasure { background: #d69e2e; }

/* The picked row ---------------------------------------------------------- */
#flo .flo-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
#flo .flo-pick .mc-sprite { transform: scale(2.25); margin: 4px 16px 4px 12px; }
#flo .flo-pickname { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
#flo .flo-picksub { display: block; margin-top: 2px; font-size: 13px; opacity: .75; }

/* Stat tiles -------------------------------------------------------------- */
#flo .flo-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#flo .flo-stat { min-width: 0; padding: 11px 13px; border-radius: 10px; background: rgba(127, 127, 127, .10); }
#flo .flo-statlabel {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .72;
}
#flo .flo-statvalue { display: block; margin-top: 3px; font-size: 20px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
#flo .flo-statsub { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.4; opacity: .68; }

#flo .flo-math {
  margin: 0;
  padding: 9px 12px;
  border-left: 3px solid var(--grass, #10b981);
  font-size: 13.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Tables ------------------------------------------------------------------ */
#flo .flo-tablewrap { overflow-x: auto; margin-top: 22px; }
#flo .flo-table { width: 100%; font-size: 14px; }
#flo .flo-table th,
#flo .flo-table td { padding: 8px 10px; white-space: nowrap; vertical-align: middle; }
#flo .flo-table .flo-num { text-align: right; font-variant-numeric: tabular-nums; }
#flo .flo-table td.flo-itemcell { white-space: normal; min-width: 170px; }
#flo .flo-table td.flo-notecell { white-space: normal; min-width: 200px; font-size: 12.5px; line-height: 1.45; opacity: .85; }
#flo .flo-itemname { font-weight: 700; }
#flo .flo-itemsub { display: block; font-size: 12px; opacity: .72; }
#flo .flo-sprites { display: block; margin-top: 3px; }
#flo .flo-sprites .mc-sprite { margin: -4px 6px -4px 3px; }
#flo #flo-barter tbody tr { cursor: pointer; }
#flo .flo-table tbody tr.flo-sel td { background: rgba(16, 185, 129, .13); }
#flo .flo-table tr.flo-sitrow td { font-style: normal; }
#flo .flo-table tr.flo-head td {
  padding-top: 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .7;
  background: transparent;
}
#flo .flo-cat { font-size: 12px; font-weight: 800; }

#flo .flo-fishtable { margin-top: 18px; }
#flo .flo-fishtable h3 { margin: 0 0 4px; font-size: 16px; }
#flo .flo-fishtable p { margin: 0 0 8px; font-size: 13px; opacity: .8; }
#flo .flo-fishtable .flo-tablewrap { margin-top: 6px; }

#flo .flo-empty { margin: 14px 0 0; font-size: 14px; line-height: 1.6; }
#flo .flo-pools { margin-top: 16px; }
#flo .flo-pools p { margin: 0 0 6px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
#flo .flo-poolsh { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }

#flo .flo-help { margin-top: 26px; max-width: 76ch; font-size: 14.5px; line-height: 1.65; }
#flo .flo-help p { margin: 0 0 12px; }
