@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
.app-context {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.app-title {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}
.app-context #breadcrumb {
  font-size: 12px;
  line-height: 1.4;
}
.top {
  padding-top: max(10px, env(safe-area-inset-top)) !important;
  padding-left: max(12px, env(safe-area-inset-left)) !important;
  padding-right: max(12px, env(safe-area-inset-right)) !important;
}
main {
  padding-bottom: max(50px, env(safe-area-inset-bottom)) !important;
}
.app-install-help {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.app-install-help li {
  margin: 8px 0;
}
:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --paper: #fff;
  --ink: #202c24;
  --muted: #56645a;
  --line: #dfe6dc;
  --green: #2c6547;
  --pale: #e7f0df;
  --dark: #17291f;
  font:
    15px 'DM Sans',
    system-ui,
    sans-serif;
}

#egg-rate-header { padding: 0 clamp(12px, 3vw, 40px) 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.egg-rate-table-wrap { border: 1.5px solid var(--green); border-radius: 10px; overflow: hidden; }
.egg-rate-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.egg-rate-table th, .egg-rate-table td { text-align: center; vertical-align: top; border: 0; border-right: 1px solid #b8cbbd; padding: 9px 4px; }
.egg-rate-table th:last-child, .egg-rate-table td:last-child { border-right: 0; }
.egg-rate-table th { background: #edf3e8; color: var(--green); font-weight: 750; font-size: 14px; border-bottom: 1px solid #b8cbbd; }
.egg-rate-table .egg-rate-value { border: 0; background: transparent; color: var(--green); padding: 0; margin: 0; min-height: 28px; font-size: 23px; font-weight: 750; line-height: 1.25; }
.egg-rate-timestamp { display: block; width: fit-content; max-width: 100%; margin: 5px auto 0; padding: 4px 6px; border-radius: 5px; font-size: 11px; line-height: 1.4; color: white; background: var(--green); white-space: nowrap; }
.egg-rate-next-day { display: block; margin: 2px auto 0; color: var(--green); font-size: 12px; font-weight: 750; line-height: 1.3; }
.egg-rate-history { min-width: 540px; }
.egg-rate-history tbody tr + tr td { border-top: 1px solid #b8cbbd; }
.egg-rate-change-label { color: var(--green); font-size: 11px; font-weight: 750; margin-bottom: 4px; }
.egg-rate-regular { margin-top: 12px; padding-top: 10px; border-top: 1px solid #b8cbbd; }
.egg-rate-regular .egg-rate-value { font-size: 20px; }
.egg-rate-change-flash { animation: egg-rate-change-colors 3.2s ease-in-out infinite; }
#dialog .egg-rate-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: end; }
.egg-rate-settings-grid .form-field { min-width: 0; }
.egg-rate-settings-grid input { width: 100%; min-width: 0; min-height: 44px; }
@keyframes egg-rate-change-colors { 0%,100% { background: #e4f2e7; } 25% { background: #fff0ca; } 50% { background: #eee3ff; } 75% { background: #ffe3e8; } }
@media (prefers-reduced-motion: reduce) { .egg-rate-change-flash { animation: none; background: #fff0ca; } }
@media (max-width: 400px) {
  .egg-rate-table th { font-size: 13px; }
  .egg-rate-table .egg-rate-value { font-size: 21px; }
  .egg-rate-timestamp { font-size: 9px; padding: 4px; letter-spacing: -.15px; }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #a6741d;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
.skip {
  position: fixed;
  top: -60px;
}
.skip:focus {
  top: 8px;
  z-index: 5;
  background: white;
  padding: 10px;
}
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}
aside {
  background: var(--dark);
  color: #f1f5ee;
  padding: 27px 15px;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 7px;
  font:
    800 24px 'DM Sans',
    system-ui,
    sans-serif;
}
.mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  background: #bad59b;
  color: #203527;
  border-radius: 11px;
  font-size: 24px;
}
.side-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #b1c1b5;
  margin: 0 10px 10px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav button {
  padding: 10px;
  color: #dfebe0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav button:hover,
.nav button[aria-current='page'] {
  background: #354d3d;
  color: white;
}
.nav button span {
  width: 20px;
  text-align: center;
  color: #bdd6af;
}
.profile {
  margin-top: auto;
}
.profile button {
  width: 100%;
  text-align: left;
  background: #243c2d;
  color: white;
  border: 1px solid #496251;
  border-radius: 9px;
  padding: 11px;
}
.profile small {
  display: block;
  color: #c3d5c7;
  margin-bottom: 3px;
}
.top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 10px clamp(16px, 4vw, 45px);
  background: var(--paper);
}
#breadcrumb {
  color: var(--muted);
  flex: 1;
}
.search,
.quiet {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  min-height: 42px;
}
.avatar {
  background: var(--pale);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-weight: 700;
  flex: none;
}
.mobile {
  display: none;
}
main {
  max-width: 1340px;
  margin: auto;
  padding: 30px clamp(16px, 4vw, 45px) 50px;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
}
h1 {
  font-size: clamp(27px, 4vw, 39px);
  letter-spacing: -0.045em;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.55;
  margin: 6px 0;
  color: var(--muted);
}
.heading,
.section-head,
.actions,
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.date-line {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.primary {
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  border-radius: 9px;
  padding: 10px 15px;
  min-height: 42px;
  font-weight: 700;
}
.primary:hover {
  background: #214f38;
}
.hero {
  margin: 24px 0;
  background: #e7efdc;
  border: 1px solid #d7e4cb;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr minmax(150px, 34%);
  overflow: hidden;
  min-height: 182px;
}
.hero-copy {
  padding: 24px 27px;
  align-self: center;
}
.hero-copy h2 {
  font-size: clamp(22px, 3vw, 31px);
}
.hero-copy p {
  max-width: 390px;
  margin: 7px 0 15px;
}
.pasture {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #e7efdc 10%, #d9e7c9 70%);
}
.pasture:before,
.pasture:after {
  content: '';
  position: absolute;
  inset: 46% -30% -60% -60%;
  border-radius: 50%;
  transform: rotate(-17deg);
  background: repeating-radial-gradient(ellipse at 70% 85%, #a9c394 0 12px, #b9d0a6 13px 23px);
}
.pasture:after {
  inset: 55% -60% -62% 25%;
  transform: rotate(18deg);
  background: repeating-radial-gradient(ellipse at 40% 87%, #89af80 0 10px, #9dbd8e 11px 21px);
}
.sun {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  right: 25%;
  top: 15%;
  background: #f5d890;
}
.stats,
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.card,
.stat,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px;
}
.stat strong {
  display: block;
  font-size: 27px;
  margin: 8px 0 0;
}
.stat span,
.subtle {
  color: var(--muted);
  font-size: 13px;
}
.section-head {
  margin: 25px 0 10px;
}
.card {
  text-align: left;
  color: var(--ink);
  display: grid;
  gap: 7px;
  min-height: 100px;
}
.card:hover {
  border-color: #87ab84;
  background: #fcfefb;
}
.card .glyph {
  color: var(--green);
  font-size: 21px;
}
.card p {
  font-size: 13px;
  margin: 0;
}
.panel {
  margin-top: 12px;
}
.panel .row + .row {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}
.modal-body {
  display: grid;
  gap: 13px;
}
dialog {
  width: min(540px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  color: var(--ink);
  box-shadow: 0 15px 65px #14231a44;
}
dialog::backdrop {
  background: #15261baa;
}
dialog h2 {
  margin-bottom: 10px;
}
.actions {
  justify-content: flex-end;
  margin-top: 12px;
}
label {
  display: grid;
  gap: 5px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #aebeb0;
  border-radius: 8px;
  padding: 10px;
  min-height: 44px;
  background: white;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 75px;
}
.error {
  color: #9a3221;
}
.list {
  display: grid;
  gap: 6px;
}
.list button {
  text-align: left;
}
.tag {
  border-radius: 99px;
  padding: 4px 9px;
  background: var(--pale);
  color: #295839;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
  background: var(--dark);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  z-index: 6;
}
#toast:empty {
  display: none;
}
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.record-title {
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 192px minmax(0, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reference-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.reference-links a:hover {
  border-color: var(--green);
  background: var(--pale);
}
.nav summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.nav summary::-webkit-details-marker {
  display: none;
}
.nav summary::after {
  content: '›';
  margin-left: auto;
  color: #bdd6af;
}
.nav details[open] > summary::after {
  transform: rotate(90deg);
}
.nav summary:hover,
.nav summary:focus-visible {
  background: #354d3d;
}
.nav summary span {
  width: 20px;
  text-align: center;
  color: #bdd6af;
  flex: none;
}
.submenu {
  display: grid;
  gap: 2px;
  margin: 2px 0 5px 12px;
  padding-left: 7px;
  border-left: 1px solid #496251;
}
.submenu button {
  font-size: 13px;
  line-height: 1.35;
  width: 100%;
}
.submenu summary {
  font-size: 13px;
}
.page-parent {
  margin-bottom: 16px;
}
.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 10px;
}
.layout-section {
  border-top: 3px solid #a9c394;
  min-height: 78px;
  align-content: center;
}
.layout-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.layout-labels li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--bg);
}
.follow-up-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.follow-up-table th,
.follow-up-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.follow-up-table tbody tr:last-child td {
  border-bottom: 0;
}
.mobile-cell-label {
  display: none;
}
.form-grid,
.cards,
.layout-grid,
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}
.form-field input[type='checkbox'] {
  width: 22px;
  min-height: 22px;
  justify-self: start;
}
.contact-picker {
  justify-self: start;
  max-width: 100%;
  min-height: 44px;
}
.form-field[hidden],
.workflow-section[hidden],
.party-tds-defaults[hidden] {
  display: none;
}
.party-tds-defaults {
  margin-top: 12px;
}
.party-role-control {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.party-role-summary {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.party-role-control button {
  flex: none;
}
.party-role-options {
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.party-role-options legend {
  color: var(--muted);
  padding: 0;
  margin-bottom: 8px;
}
.party-role-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 4px 6px;
}
.party-role-options input {
  width: 20px;
  min-height: 20px;
  flex: none;
}
.party-contact-table {
  margin-top: 12px;
}
.closing-controls {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.egg-closing {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 12px 0;
  padding: 12px;
}
.egg-closing legend {
  font-weight: 600;
  padding: 0 5px;
}
.daily-total,
output {
  font-weight: 600;
}
#scan-fill-dialog {
  width: min(1080px, calc(100% - 20px));
  max-height: calc(var(--visible-height, 100dvh) - 20px);
}
.scan-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.scan-heading h2 {
  margin: 0;
}
.scan-review-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 16px 0;
}
.scan-review-columns section,
.scan-field {
  min-width: 0;
}
.scan-sources {
  justify-content: flex-start;
}
.scan-page {
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}
.scan-page img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #f5f5f5;
}
.scan-page p {
  overflow-wrap: anywhere;
  font-size: 13px;
}
.scan-field {
  margin: 10px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.scan-select-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.scan-select-label input {
  width: 20px;
  min-height: 20px;
  flex: none;
}
.scan-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  padding: 12px;
}
.scan-row .scan-select-label {
  margin-top: 10px;
}
.scan-text textarea {
  margin: 8px 0;
  min-height: 140px;
}
.scan-apply {
  position: sticky;
  bottom: -15px;
  background: var(--paper);
  padding: 12px 0;
  margin-top: 15px;
}
.scan-saved-rows {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.scan-saved-rows dl {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
#scan-progress {
  margin: 10px 0;
}
@media (min-width: 760px) {
  .scan-review-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  #scan-fill-open {
    padding: 8px;
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  #cloud-sign-in {
    padding: 8px;
    font-size: 13px;
  }
}
.party-contact-table td {
  overflow-wrap: anywhere;
}
.party-scan [hidden] {
  display: none;
}
.party-scan .actions {
  justify-content: flex-start;
  margin: 0 0 12px;
}
.party-scan-status,
.party-scan-review {
  color: var(--muted);
  font-size: 13px;
}
.party-scan-review details {
  margin: 8px 0;
}
.party-scan-review pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  dialog[data-layer='party-roles'] {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    margin: 0;
    border-radius: 16px 16px 0 0;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
}
.workflow-section h4 {
  font-size: 13px;
  margin: 8px 0;
  color: var(--muted);
}
.workflow-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  overflow-wrap: anywhere;
}
.workflow-section .form-grid {
  margin-top: 6px;
}
.field-wide {
  grid-column: 1/-1;
}
.weekday,
.field-error,
.save-status {
  font-size: 13px;
}
.weekday,
.save-status {
  color: var(--muted);
}
.field-error,
.error-row {
  color: #8e3022;
}
.field-error:empty {
  display: none;
}
.error-row {
  background: #fff0ec;
  border: 1px solid #e8b2a7;
  border-radius: 9px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.testing-notice {
  margin: 8px clamp(16px, 4vw, 45px);
  padding: 8px 12px;
  background: #fff1cb;
  color: #554014;
  border-radius: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.home-calendar {
  max-width: 420px;
  margin: 14px 0;
}
.home-calendar > label {
  font-size: 12px;
  margin-bottom: 5px;
}
.home-date-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
}
.home-report-calendar .home-date-row {
  grid-template-columns: 44px minmax(0, 1fr) 44px 60px;
}
.home-report-calendar .purchase-date-range {
  height: 60px;
  min-height: 60px;
}
.home-report-dates {
  max-width: 680px;
}
.recipe-report-dates {
  max-width: 680px;
}
.home-range-caption {
  margin: -6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.home-date-row button {
  padding: 6px;
  min-height: 44px;
  font-size: 24px;
}
.home-date-row input {
  min-width: 0;
}
.home-calendar > label,
.home-calendar > .weekday {
  margin-left: 52px;
}
.home-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 8px;
}
.home-page-heading {
  align-items: center;
  gap: 12px;
}
.home-page-heading .stock-difference-title-action {
  margin: 0 0 0 auto;
  min-height: 42px;
  padding: 7px 11px;
  line-height: 1.15;
  white-space: nowrap;
}
.home-view-bar h2 {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.home-view-actions {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.home-view-actions button {
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.home-units,
.home-swipe,
.home-source {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.home-units {
  margin: 7px 0;
}
.home-swipe {
  margin: 0 0 8px;
}
.home-source {
  margin: 8px 0 12px;
}
.home-table-scroll {
  max-width: 100%;
  max-height: 420px;
  min-width: 0;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}
.home-compact-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.home-compact-table th,
.home-compact-table td {
  height: 52px;
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.home-compact-table thead th {
  font-size: 12px;
  line-height: 1.4;
  background: var(--pale);
  color: #52674e;
  position: sticky;
  top: 0;
  z-index: 1;
}
.home-compact-table th:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: white;
  z-index: 2;
  border-right: 1px solid var(--line);
}
.home-compact-table thead th:first-child {
  background: var(--pale);
  z-index: 3;
}
.home-compact-table .home-total-row > * {
  background: var(--pale);
  color: var(--ink);
  font-weight: 800;
  border-top: 2px solid var(--app-color, #2c6547);
}
.home-compact-table .home-total-row > th:first-child {
  background: var(--pale);
}
.home-compact-table th:nth-child(2) {
  width: 115px;
}
.home-compact-table th small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #946b28;
  margin-top: 3px;
}
.home-compact-table tr:last-child > * {
  border-bottom: 0;
}
.home-extra summary {
  min-height: 30px;
  cursor: pointer;
  font-size: 13px;
}
.home-flock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.home-flock-row > * {
  overflow-wrap: anywhere;
}
.home-extra h3 {
  margin-top: 14px;
}
.top #avatar {
  border: 1px solid var(--line);
  padding: 0;
  width: 44px;
  height: 44px;
  min-height: 44px;
  flex: none;
}
.account-caption {
  font-size: 12px;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
}
.account-options {
  display: grid;
  gap: 6px;
}
.account-options button {
  text-align: left;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
dialog[data-layer='account-menu'],
dialog[data-layer='account-settings'] {
  position: fixed;
  inset: var(--account-menu-top, 70px) 12px auto auto;
  margin: 0;
  width: min(280px, calc(100% - 24px));
  padding: 14px;
  max-height: calc(var(--visible-height, 100dvh) - var(--account-menu-top, 70px) - 12px);
  overflow-y: auto;
}
dialog[data-layer='account-menu'] h2,
dialog[data-layer='account-settings'] h2 {
  font-size: 18px;
}
dialog[data-layer='account-menu']::backdrop,
dialog[data-layer='account-settings']::backdrop {
  background: #15261b22;
}
@media (max-width: 760px) {
  .home-compact-table thead th {
    font-size: 11px;
  }
}
@media (max-width: 520px) {
  .home-view-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    width: 100%;
  }
  .home-view-actions button {
    min-width: 0;
  }
  .home-calendar {
    max-width: none;
  }
}
.day-sheet-toolbar {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.day-sheet-toolbar h3 {
  overflow-wrap: anywhere;
}
.day-sheet-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.day-sheet-table th,
.day-sheet-table td {
  padding: 12px 6px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
  vertical-align: top;
  text-align: center;
}
.day-sheet-table th:first-child {
  width: 155px;
  text-align: left;
}
.day-sheet-table thead,
.day-sheet-section {
  background: var(--pale);
}
.day-sheet-section th {
  text-align: left;
}
.day-sheet-mobile {
  display: none;
}
.day-sheet-metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.day-sheet-metric span,
.day-sheet-metric strong {
  overflow-wrap: anywhere;
}
.day-sheet-subtitle {
  margin-top: 18px;
  padding: 8px;
  background: var(--pale);
  border-radius: 6px;
}
@media (max-width: 760px) {
  .day-sheet-desktop {
    display: none;
  }
  .day-sheet-mobile {
    display: grid;
    gap: 12px;
  }
  .day-sheet-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
  .day-sheet-mobile .panel {
    margin-top: 0;
  }
}
.error-row button {
  margin-left: 10px;
}
.page-error {
  margin: 12px clamp(16px, 4vw, 45px) 0;
}
dialog {
  max-height: calc(var(--visible-height, 100dvh) - 24px);
  overflow-y: auto;
  scroll-padding-block: 12px;
}
@media (max-width: 420px) {
  .form-grid,
  .cards,
  .layout-grid,
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .follow-up-table table,
  .follow-up-table tbody {
    display: block;
  }
  .follow-up-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .follow-up-table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 8px;
  }
  .follow-up-table tr:last-child {
    margin-bottom: 0;
  }
  .follow-up-table td {
    border: 0;
  }
  .mobile-cell-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
  }
}
@media (max-width: 640px) {
  .shell {
    display: block;
  }
  aside {
    display: none;
    position: fixed;
    inset: var(--mobile-nav-top, 70px) auto 0 0;
    width: min(270px, 90vw);
    height: auto;
    z-index: 20;
    box-shadow: 0 12px 30px #15261b55;
  }
  aside.open {
    display: flex;
  }
  .top {
    min-height: 58px;
    gap: 8px;
  }
  .mobile {
    display: block;
    border: 0;
    background: transparent;
    min-height: 40px;
    width: 34px;
    font-size: 19px;
  }
  .search span {
    display: none;
  }
  .search {
    font-size: 21px;
    padding: 3px 12px;
  }
  .hero {
    grid-template-columns: 1fr minmax(58px, 20%);
    margin: 16px 0;
  }
  .hero-copy {
    padding: 17px;
  }
  .sun {
    width: 32px;
    height: 32px;
  }
  .stat {
    padding: 10px;
  }
  .stat strong {
    font-size: 21px;
  }
  .stat span {
    font-size: 12px;
  }
  .cards,
  .stats {
    gap: 8px;
  }
  .card {
    padding: 12px;
  }
  main {
    padding-top: 17px;
  }
  dialog {
    padding: 15px;
  }
}

@media (max-width: 640px) {
  .top {
    flex-wrap: nowrap;
  }
  #breadcrumb {
    flex: 1;
    min-width: 0;
    flex-basis: auto;
    overflow-wrap: anywhere;
  }
}

button,
[role='button'] {
  transition:
    box-shadow 0.12s ease,
    filter 0.12s ease;
}
button:active,
[role='button']:active,
.button-received {
  box-shadow:
    inset 0 0 0 2px #2b8052,
    inset 0 0 0 100vmax #2b80521c !important;
  filter: brightness(0.93);
}
@media (prefers-reduced-motion: reduce) {
  button,
  [role='button'] {
    transition: none;
  }
}

.home-value-entry {
  min-height: 44px;
  min-width: 48px;
  padding: 5px 7px;
  border: 0;
  border-radius: 7px;
  background: #edf4e8;
  color: #215834;
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
}
.quick-context {
  padding: 9px 12px;
  background: #f0f5eb;
  border-radius: 8px;
  margin: 8px 0 12px;
}
.quick-entry-close {
  float: right;
  font-size: 22px;
  min-width: 44px;
  min-height: 44px;
}
.quick-entry-body {
  min-width: 0;
}
.quick-egg {
  margin: 0 0 10px;
}
.quick-result {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.quick-entry-footer {
  position: sticky;
  bottom: -20px;
  background: var(--bg);
  padding: 12px 0 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 1;
}
.quick-entry-footer button {
  min-width: 0;
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.quick-entry-footer button:only-child {
  grid-column: 1/-1;
}
@media (max-width: 640px) {
  .quick-entry-footer {
    bottom: -15px;
  }
}

.quick-entry-footer.quick-feed-footer {
  grid-template-columns: minmax(64px, 0.55fr) minmax(0, 1.45fr);
}

.home-compact-table .home-flock-age {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 145px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 3px;
  color: var(--muted);
}

.scan-corner-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  box-sizing: border-box;
  padding: 16px;
}
.scan-corner-dialog h2 {
  font-size: 1.25rem;
}
.scan-corner-dialog p {
  overflow-wrap: anywhere;
}
.scan-corner-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 12px auto;
  line-height: 0;
}
.scan-corner-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 55dvh;
  object-fit: fill;
}
.scan-corner-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  overflow: visible;
}
.scan-corner-stage circle {
  cursor: grab;
}
.scan-corner-stage circle:focus {
  stroke: #f6b900;
  stroke-width: 9;
  outline: none;
}
.scan-corner-dialog .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scan-corner-dialog button {
  min-height: 44px;
  flex: 1 1 120px;
}
.scan-upright-preview {
  display: block;
  width: 100%;
  max-height: 55dvh;
  object-fit: contain;
  background: #f5f5f5;
  margin: 12px 0;
}
.contact-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}
.contact-input-row > input {
  width: 100%;
  min-width: 0;
}
.contact-input-row > .contact-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 8px;
  margin: 0;
  justify-self: stretch;
}
.purchase-scan-value > output {
  display: block;
  min-height: 28px;
  padding: 4px 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}
/* Scanned purchases: compact two-column facts, with full-width mobile contact rows. */
.purchase-scan-form {
  max-width: 960px;
  margin-inline: auto;
}
.purchase-scan-form .workflow-section {
  padding: 16px;
  margin-top: 14px;
  border-radius: 12px;
}
.purchase-scan-form .workflow-section > h3 {
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.purchase-scan-form .form-grid {
  gap: 0 16px;
}
.purchase-scan-form .form-field {
  padding: 11px 0;
  border-bottom: 1px solid #e8eee5;
}
.purchase-scan-form .purchase-scan-value > span {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}
.purchase-scan-form .purchase-scan-value > output {
  font-size: 15px;
  line-height: 1.45;
  min-height: 26px;
  padding: 2px 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.purchase-scan-form .contact-field {
  grid-column: 1/-1;
  padding-block: 12px;
}
.purchase-scan-form .contact-input-row {
  max-width: 460px;
}
.purchase-scan-form .scan-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.purchase-scan-form .scan-sources button {
  width: 100%;
  height: 100%;
  white-space: normal;
  font-size: 13px;
  line-height: 1.35;
  padding: 10px 8px;
  min-height: 48px;
  background: var(--pale);
  border-color: #ccdcbc;
  color: var(--green);
  font-weight: 600;
}
.purchase-scan-form .workflow-section > p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 12px;
}
.purchase-scan-form .form-field > label {
  font-size: 12px;
  color: var(--muted);
}
.purchase-scan-form .field-error:empty {
  display: none;
}
.purchase-scan-form .field-navigation {
  justify-content: flex-end;
}
.purchase-scan-form select {
  font-size: 13px;
}
@media (max-width: 380px) {
  .purchase-scan-form .workflow-section {
    padding: 12px;
  }
  .purchase-scan-form .scan-sources {
    grid-template-columns: 1fr 1fr;
  }
  .purchase-scan-form .scan-sources button:last-child {
    grid-column: 1/-1;
  }
  .purchase-scan-form .form-grid {
    column-gap: 12px;
  }
}
.purchase-scan-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.purchase-scan-form .form-field:has(> select) {
  grid-column: 1/-1;
}
.workflow-section > h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
.purchase-scan-form .workflow-section > h2 {
  font-size: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.layout-section > h2 {
  font-size: 16px;
}
.current-production-report > h2 {
  font-size: 16px;
}
.recipe-report-card h3 {
  overflow-wrap: anywhere;
  margin-bottom: 10px;
}
.recipe-report-card table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
.recipe-report-card caption {
  text-align: left;
  font-weight: 600;
  padding: 8px 0;
}
.recipe-report-card th,
.recipe-report-card td {
  text-align: left;
  padding: 9px 5px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  vertical-align: top;
}
.recipe-report-card th:last-child,
.recipe-report-card td:last-child {
  text-align: right;
  width: 38%;
}
.recipe-report-card dl {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.recipe-plan-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 14px 0;
}
.recipe-plan-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.recipe-plan-table caption {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
}
.recipe-plan-table th,
.recipe-plan-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.recipe-plan-table thead {
  background: var(--pale);
}
.recipe-ingredient-list {
  margin-top: 12px;
  min-width: 0;
}
.recipe-ingredient-list .row span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
dialog.feed-recipe-report {
  width: min(960px, calc(100% - 24px));
}
.feed-recipe-report #dialog-title {
  display: inline-block;
  margin: 0;
  max-width: 50%;
  font-size: 21px;
  vertical-align: middle;
}
.feed-recipe-toolbar {
  float: right;
  max-width: 100%;
  margin: 0 0 12px 12px;
}
.feed-recipe-days {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.feed-recipe-days label {
  font-size: 13px;
  white-space: nowrap;
}
.feed-recipe-days input {
  text-align: center;
}
.feed-recipe-days span {
  font-size: 13px;
}
.feed-recipe-report > p {
  clear: both;
}
.feed-recipe-report .recipe-plan-table small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.feed-recipe-report #recipe-days-error {
  clear: both;
}
.feed-recipe-report #recipe-days-status:empty {
  display: none;
}
@media (max-width: 440px) {
  .feed-recipe-report #dialog-title {
    max-width: 100%;
  }
  .feed-recipe-toolbar {
    float: none;
    margin: 10px 0 12px auto;
    display: flex;
    justify-content: flex-end;
  }
  .feed-recipe-days {
    margin-left: auto;
  }
}
.feed-recipe-report .recipe-plan-table {
  min-width: 0;
  width: 100%;
}
.feed-recipe-report .recipe-plan-table th,
.feed-recipe-report .recipe-plan-table td {
  padding: 9px 5px;
}
.feed-recipe-report #recipe-days-status {
  display: block;
  clear: both;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
#feed-recipe-report-page {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}
.feed-recipe-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.feed-recipe-page-heading h1 {
  font-size: clamp(24px, 4vw, 32px);
}
.feed-recipe-page-heading .feed-recipe-days {
  margin-left: auto;
  flex: none;
}
#feed-recipe-report-page .recipe-plan-table {
  min-width: 0;
  width: 100%;
}
#feed-recipe-report-page .recipe-plan-table small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
#feed-recipe-report-page #recipe-days-status {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
#feed-recipe-report-page .recipe-plan-scroll {
  background: white;
}
#feed-recipe-report-page > .actions {
  justify-content: flex-end;
}
@media (max-width: 520px) {
  .feed-recipe-page-heading .feed-recipe-days {
    justify-content: flex-end;
  }
}
.farm-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 18px;
}
.farm-workspace-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 7px;
  min-height: 48px;
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.farm-workspace-tabs button[aria-selected='true'] {
  background: var(--green);
  border-color: var(--green);
  color: white;
  font-weight: 700;
}
.recipe-plan-table tr[data-recipe-shed] {
  cursor: pointer;
}
.recipe-plan-table tr[data-recipe-shed]:hover,
.recipe-plan-table tr[data-recipe-shed]:focus-visible {
  background: var(--pale);
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.recipe-plan-table [data-action='allot-shed'] {
  min-height: 44px;
  padding: 4px 6px;
  width: 100%;
  font-size: inherit;
  overflow-wrap: anywhere;
  background: transparent;
  border-color: transparent;
  color: var(--green);
  text-align: left;
}
.recipe-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.recipe-summary-heading > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.recipe-summary-heading > button {
  flex: none;
  margin-left: auto;
  min-height: 44px;
  max-width: 48%;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  padding: 8px 10px;
}
.recipe-inner-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.recipe-inner-tabs button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 13px;
}
.recipe-inner-tabs button[aria-selected='true'] {
  background: var(--pale);
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.recipe-catalog-heading {
  margin: 16px 0 12px;
}
.recipe-catalog-heading h2 {
  font-size: 20px;
}
.recipe-add-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: 10px 0 12px;
}
.recipe-add-actions > [data-action='recipe-add-ingredient'] {
  margin-left: auto;
  min-width: 72px;
  min-height: 44px;
}
.recipe-item-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.recipe-item-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 8px;
}
.recipe-item-options input[type='checkbox'] {
  width: 22px;
  min-height: 22px;
  flex: none;
}
.recipe-quantity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 130px) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.recipe-quantity-row > span {
  overflow-wrap: anywhere;
}
.recipe-quantity-row label {
  font-size: 12px;
}
.recipe-add-actions {
  flex-wrap: wrap;
}
.recipe-add-actions > button {
  margin-left: 0;
}
.recipe-add-actions > button:first-child {
  margin-left: auto;
}
@media (max-width: 380px) {
  .recipe-quantity-row {
    grid-template-columns: minmax(0, 1fr) minmax(80px, 110px);
    gap: 8px;
  }
  .recipe-quantity-row > button {
    grid-column: 2;
    justify-self: end;
  }
}

#workflow-form[data-module='List of Recipes'] .recipe-details-section {
  background: #edf4e8;
  border: 1px solid #b8cdb2;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 22px;
}
#workflow-form[data-module='List of Recipes'] .recipe-details-section .form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: start;
}
#workflow-form[data-module='List of Recipes'] .recipe-details-section label {
  font-size: 12px;
  line-height: 1.4;
}
#workflow-form[data-module='List of Recipes'] .recipe-details-section input,
#workflow-form[data-module='List of Recipes'] .recipe-details-section select {
  min-width: 0;
  font-size: 13px;
  min-height: 46px;
}

.recipe-name-control {
  position: relative;
  min-width: 0;
}
.party-company-suggestions {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 4px;
  background: white;
}
.party-company-suggestions[hidden] {
  display: none;
}
.party-company-suggestions button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.party-company-suggestions button small {
  display: block;
  font-weight: 400;
}
.party-company-suggestions button[aria-selected='true'] {
  background: var(--pale);
  color: var(--green);
}
.recipe-name-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 25;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: white;
  border: 1px solid #9eb69a;
  border-radius: 8px;
  box-shadow: 0 6px 18px #20352722;
  padding: 4px;
}
.recipe-name-suggestions[hidden] {
  display: none;
}
.recipe-name-suggestions button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 8px;
  text-align: left;
  border: 0;
  border-radius: 5px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.recipe-name-suggestions button:hover,
.recipe-name-suggestions button[aria-selected='true'] {
  background: var(--pale);
  color: var(--green);
}

.item-packages {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 18px;
}
.item-packages legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 5px;
}
.item-package-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(65px, 0.8fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}
.item-package-row label {
  font-size: 12px;
  line-height: 1.4;
}
.item-package-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 23px;
}
.item-package-actions button {
  min-height: 44px;
  white-space: normal;
  font-size: 12px;
  padding: 8px;
}
.item-package-actions [data-action='item-remove-package'] {
  padding: 8px;
  min-width: 32px;
}
@media (max-width: 380px) {
  .item-packages {
    padding: 10px;
  }
  .item-package-row {
    gap: 6px;
    grid-template-columns: minmax(60px, 1fr) minmax(58px, 0.8fr) auto;
  }
  .item-package-row input,
  .item-package-row select {
    padding: 8px 5px;
    font-size: 12px;
  }
  .item-package-actions {
    gap: 2px;
    max-width: 100px;
  }
  .item-package-actions button {
    padding: 7px 4px;
  }
}

.home-value-entry .home-value-number,
.home-value-display .home-value-number {
  display: block;
}
.home-compact-table .home-value-closed {
  display: block;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 5px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.home-value-display {
  display: block;
}
.home-compact-table .home-value-entry {
  height: auto;
  min-height: 44px;
}

.home-compact-table {
  min-width: 840px;
}
.home-compact-table th:first-child {
  width: 130px;
}
.home-compact-table th:nth-child(n + 2):nth-child(-n + 7) {
  width: 85px;
  text-align: center;
}
.home-compact-table th:nth-child(8),
.home-compact-table th:nth-child(9) {
  width: 100px;
}
.home-compact-table .home-egg-cell {
  text-align: center;
}
.home-egg-cell .home-value-entry {
  width: 100%;
  min-width: 0;
  padding: 5px 2px;
  font-size: 12px;
}
.home-egg-cell .home-value-number {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .home-compact-table {
    min-width: 760px;
  }
  .home-compact-table th:first-child {
    width: 110px;
  }
  .home-compact-table th:nth-child(n + 2):nth-child(-n + 7) {
    width: 80px;
  }
  .home-compact-table th:nth-child(8),
  .home-compact-table th:nth-child(9) {
    width: 85px;
  }
  .home-compact-table th,
  .home-compact-table td {
    padding: 9px 5px;
  }
}

.home-compact-table .home-cumulative-mortality {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--green);
  margin-top: 3px;
}

.home-compact-table .home-flock-breed,
#feed-recipe-report-page .home-flock-breed {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.home-compact-table .home-shed-status {
  display: block;
  margin-top: 4px;
}

/* Shared section boundaries use the Farm Book brand color. */
.panel,
.card,
.stat,
.hero,
fieldset,
.home-table-scroll,
.recipe-plan-scroll,
.access-login-card,
.access-user-row,
.permission-group,
.scan-page {
  border-color: var(--green) !important;
}

.stock-closed-date,
.stock-closed-time {
  display: block;
  line-height: 1.35;
}

/* Compact recipe stock horizon beside the report title. */
.feed-recipe-page-heading {
  flex-wrap: nowrap;
  gap: 6px;
}
.feed-recipe-page-heading h1 {
  flex: 1 1 auto;
  min-width: 0;
}
.feed-recipe-days {
  gap: 5px;
}
.feed-recipe-days input {
  box-sizing: content-box;
  width: 4ch;
  min-height: 0;
  height: auto;
  line-height: 1.25;
  padding: 4px;
  background: var(--green);
  color: white;
  border-color: var(--green);
  appearance: textfield;
  -moz-appearance: textfield;
}
.feed-recipe-days input::-webkit-inner-spin-button,
.feed-recipe-days input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
@media (max-width: 520px) {
  .feed-recipe-page-heading h1 {
    flex-basis: auto;
    font-size: 20px;
  }
  .feed-recipe-page-heading .feed-recipe-days {
    width: auto;
    margin-left: auto;
  }
  .feed-recipe-page-heading .feed-recipe-days label,
  .feed-recipe-page-heading .feed-recipe-days span {
    font-size: 12px;
  }
}

/* Keep mortality and its cumulative total together above the saved time. */
.home-count-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
.home-compact-table .home-count-summary .home-value-number,
.home-compact-table .home-count-summary .home-cumulative-mortality {
  display: inline;
  margin-top: 0;
}
.home-count-separator {
  display: inline;
}

/* Readable age beneath the breed in every report shed column. */
.home-compact-table .home-flock-age,
#feed-recipe-report-page .recipe-plan-table .home-flock-age {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

/* Consistent centered home reports and stacked allotted-recipe details. */
#farm-view-panel .home-compact-table th,
#farm-view-panel .home-compact-table td,
#feed-recipe-report-page .recipe-plan-table th,
#feed-recipe-report-page .recipe-plan-table td {
  text-align: center;
  vertical-align: middle;
}
.home-compact-table .home-flock-age {
  margin-left: auto;
  margin-right: auto;
}
#feed-recipe-report-page .recipe-allotted-name {
  font-size: 14px;
  font-weight: 700;
}
#feed-recipe-report-page .recipe-plan-table [data-action='allot-shed'] {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}
#feed-recipe-report-page .recipe-plan-table .recipe-allotted-type {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

/* Keep recipe identity compact while the entire shed row stays tappable. */
#feed-recipe-report-page .recipe-plan-table [data-action='allot-shed'] {
  min-height: 0;
  padding: 0;
  line-height: 1.25;
}
#feed-recipe-report-page .recipe-allotted-name {
  line-height: 1.25;
}
#feed-recipe-report-page .recipe-plan-table .recipe-allotted-type {
  margin-top: 1px;
  line-height: 1.25;
}

/* Keep each recipe and its own totals together, with numeric totals at the right. */
#feed-recipe-report-page .recipe-plan-table[aria-label='Feed Production'] th:first-child {
  text-align: left;
  width: 44%;
}
#feed-recipe-report-page .recipe-plan-table[aria-label='Feed Production'] th:not(:first-child),
#feed-recipe-report-page .recipe-plan-table[aria-label='Feed Production'] td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#feed-recipe-report-page .recipe-plan-table[aria-label='Feed Production'] tbody td {
  white-space: nowrap;
}

.recipe-summary-identity {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
#feed-recipe-report-page .recipe-plan-table .recipe-batch-total {
  margin: 0 0 0 auto;
  font-size: 11px;
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
}

.recipe-details-total-row,
.recipe-card-identity {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.recipe-editor-total,
.recipe-card-total {
  margin-left: auto;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}
.recipe-details-total-row {
  margin-bottom: 12px;
}

.recipe-running-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--pale);
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-weight: 700;
}
.recipe-running-total {
  white-space: nowrap;
  text-align: right;
}

.recipe-ingredients-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.recipe-ingredients-heading .recipe-add-actions {
  width: auto;
  margin: 0 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
}
.recipe-ingredients-heading .recipe-add-actions button {
  margin: 0;
}
@media (max-width: 520px) {
  .recipe-ingredients-heading {
    gap: 8px;
  }
  .recipe-ingredients-heading .recipe-add-actions {
    gap: 6px;
  }
  .recipe-ingredients-heading .recipe-add-actions button {
    font-size: 12px;
    padding: 8px;
    min-height: 44px;
  }
}

.recipe-usage-range {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.recipe-card-identity .recipe-usage-range {
  margin-left: auto;
}
.recipe-choice-row {
  display: grid;
  gap: 3px;
}
.recipe-choice-row button {
  width: 100%;
  white-space: normal;
}
.recipe-summary-identity .recipe-usage-range {
  flex-basis: 100%;
  order: 3;
}
.recipe-usage-range:only-child {
  display: block;
}

.allot-recipe-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.allot-recipe-picker-row select {
  flex: 1 1 220px;
  min-width: 0;
}
.allot-dialog-recipe-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}
.allot-dialog-recipe-actions button {
  min-height: 44px;
  white-space: normal;
}
@media (max-width: 420px) {
  .allot-recipe-picker-row select {
    flex-basis: 100%;
  }
  .allot-dialog-recipe-actions {
    width: 100%;
  }
}

.allot-recipe-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.allot-recipe-label-row label {
  min-width: 0;
  line-height: 1.3;
}
.allot-recipe-label-row .allot-dialog-recipe-actions {
  width: auto;
  flex: none;
  margin-left: auto;
  gap: 6px;
  flex-wrap: nowrap;
}
.allot-recipe-label-row .allot-dialog-recipe-actions button {
  border: 1px solid var(--green);
  color: var(--green);
  background: white;
  min-height: 44px;
  padding: 8px 10px;
}
@media (max-width: 420px) {
  .allot-recipe-label-row {
    gap: 5px;
  }
  .allot-recipe-label-row label {
    font-size: 12px;
  }
  .allot-recipe-label-row .allot-dialog-recipe-actions {
    gap: 4px;
  }
  .allot-recipe-label-row .allot-dialog-recipe-actions button {
    font-size: 12px;
    padding: 7px;
  }
}

.home-view-bar {
  flex-wrap: nowrap;
}
.home-view-bar h2 {
  flex: 1 1 auto;
  min-width: 0;
  flex-basis: auto;
}
.home-view-bar .home-stock-checks {
  margin-left: auto;
  flex: none;
  border-color: var(--green);
  color: var(--green);
  min-height: 44px;
}
@media (max-width: 520px) {
  .home-view-bar h2 {
    flex-basis: auto;
  }
  .home-view-bar .home-stock-checks {
    font-size: 13px;
    padding: 8px 10px;
  }
}

.allot-recipe-label-row .allot-dialog-recipe-actions button {
  font-weight: 700;
}

/* Shared outline treatment for white button surfaces across all modules. */
:is(
  button.quiet,
  a.quiet,
  button.search,
  button.card,
  .farm-workspace-tabs button:not([aria-selected='true']),
  .recipe-inner-tabs button:not([aria-selected='true']),
  .recipe-name-suggestions button,
  .smooth-date > button,
  .recipe-plan-table [data-action='allot-shed']
) {
  border: 1px solid var(--green) !important;
  font-weight: 700 !important;
}

.stock-check-table-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--green);
  border-radius: 8px;
}
.stock-check-differences {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.stock-check-differences th,
.stock-check-differences td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.stock-check-differences thead {
  background: var(--pale);
}
.stock-notice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

#app-calendar {
  width: min(390px, calc(100% - 20px));
  border-color: var(--green);
  padding: 14px;
  scroll-padding: 12px;
}
#app-calendar h2 {
  font-size: 20px;
  margin-bottom: 2px;
}
.app-calendar-field {
  font-size: 13px;
}
.app-calendar-selection {
  font-weight: 700;
  color: var(--green);
  margin: 8px 0;
}
.app-calendar-navigation {
  display: grid;
  gap: 4px;
  align-items: center;
  margin: 10px 0;
}
.app-calendar-navigation > button {
  padding: 0;
  min-width: 0;
  min-height: 44px;
  font-size: 24px;
}
.app-calendar-month-year {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.app-calendar-month-year select {
  flex: 1;
  min-width: 0;
  width: 0;
  padding: 6px 2px;
  font-size: 13px;
  font-weight: 700;
}
.app-calendar-month-year input {
  flex: none;
  width: 6ch;
  padding: 6px 2px;
  min-width: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  appearance: textfield;
  -moz-appearance: textfield;
}
.app-calendar-year::-webkit-inner-spin-button,
.app-calendar-year::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.app-calendar-grid {
  width: 100%;
  table-layout: fixed;
  border-spacing: 2px;
  border-collapse: separate;
}
.app-calendar-grid th {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0;
  text-align: center;
}
.app-calendar-grid td {
  padding: 0;
  text-align: center;
}
.app-calendar-grid .calendar-day {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  font-size: 13px;
  border-radius: 6px;
}
.app-calendar-grid .calendar-day[aria-current='date'] {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.app-calendar-month-grid button {
  padding: 6px 2px;
  font-size: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.app-calendar-error {
  color: #9a3221;
  font-size: 13px;
}
.app-calendar-error:empty {
  display: none;
}
.app-calendar-footer {
  position: sticky;
  background: white;
  padding: 10px 0 2px;
  margin-top: 8px;
  z-index: 1;
}
.app-calendar-footer button {
  min-height: 44px;
}

#app-calendar {
  background: var(--bg);
  border: 1px solid var(--green);
  box-shadow: 0 16px 55px #17291f44;
}
#app-calendar h2 {
  color: var(--green);
}
.app-calendar-selection {
  background: var(--pale);
  border: 1px solid #bdd3b8;
  border-radius: 9px;
  padding: 9px 10px;
}
.app-calendar-navigation {
  background: var(--pale);
  border: 1px solid #bdd3b8;
  border-radius: 10px;
  padding: 5px;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
}
.app-calendar-month-year .app-calendar-title {
  width: 100%;
  min-width: 0;
  padding: 5px 2px;
  min-height: 44px;
  color: var(--green);
  font-size: 14px;
  white-space: normal;
}
.app-calendar-navigation > button {
  color: var(--green);
}
.app-calendar-grid th {
  color: var(--green);
}
.app-calendar-grid .calendar-day {
  background: white;
  color: var(--ink);
}
#app-calendar .calendar-selected {
  background: var(--green);
  color: white;
}
.app-calendar-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.app-calendar-year-grid button {
  padding: 7px;
  min-height: 44px;
  min-width: 0;
  color: var(--green);
}
#app-calendar .calendar-current-year {
  background: var(--pale);
  color: var(--green);
}
.app-calendar-year-jump {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0;
}
.app-calendar-year-jump input {
  width: 7ch;
  min-width: 0;
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.app-calendar-year-jump button {
  min-height: 44px;
}
.app-calendar-month-grid button {
  min-height: 44px;
  color: var(--green);
}
.app-calendar-footer {
  background: var(--bg);
  border-top: 1px solid #bdd3b8;
}

.smooth-date > [data-date-entry] {
  cursor: pointer;
}
.app-calendar-footer {
  bottom: 0;
}

.recipe-catalog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 8px;
  text-align: left;
}
.recipe-catalog-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.recipe-catalog-row strong {
  flex-shrink: 0;
}

.material-ledger-item {
  border: 1px solid var(--green);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.material-ledger-item summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--pale);
  color: var(--green);
  cursor: pointer;
  font-weight: 700;
}
.material-ledger-item summary strong {
  white-space: nowrap;
}
.material-ledger-item .table-wrap {
  overflow: auto;
}
.material-ledger-item table {
  min-width: 700px;
  width: 100%;
}
.material-ledger-item td,
.material-ledger-item th {
  text-align: right;
}
.material-ledger-item td:nth-child(-n + 2),
.material-ledger-item th:nth-child(-n + 2) {
  text-align: left;
}
.material-ledger-item td small {
  display: block;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.material-ledger > .form-field {
  margin-top: 14px;
}

.egg-sales-controls {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.egg-sales-controls > .panel {
  border: 1px solid var(--green);
}
.egg-sale-context {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.egg-grade-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.egg-grade-heading h2 {
  margin: 0;
}
.egg-grade-heading h2 small {
  display: block;
  font-size: 13px;
}
.egg-type-stock {
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex: 1;
}
.egg-weight-control > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.egg-weight-control output {
  display: block;
  color: var(--green);
  margin: 8px 0;
  font-weight: 700;
}
.egg-weight-range {
  width: 100%;
  touch-action: manipulation;
}
.egg-party-picker {
  display: flex;
  gap: 8px;
  align-items: center;
}
.egg-party-picker select {
  min-width: 0;
  flex: 1;
}
.egg-party-picker button {
  flex-shrink: 0;
}
.egg-buyer-summary p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}
.egg-sales-controls .panel h2 {
  font-size: 18px;
}
#egg-sold-preview {
  display: block;
  font-weight: 700;
  color: var(--green);
  margin-top: 12px;
}

.egg-included-sheds {
  padding: 12px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.egg-included-sheds h3 {
  width: 100%;
  margin: 0 0 4px;
}
.egg-included-sheds button {
  font-size: 12px;
}
.egg-grade-heading > [data-action='egg-add-shed'] {
  align-self: center;
}

.egg-loading-vehicles {
  border: 1px solid var(--green);
}
.egg-loading-vehicles .table-wrap {
  overflow: auto;
}
.egg-loading-vehicles th {
  text-align: left;
}
.egg-loading-vehicles h2 {
  margin: 0;
}
.egg-loading-vehicles .heading {
  gap: 12px;
  flex-wrap: wrap;
}

.egg-weight-entry {
  display: flex;
  align-items: center;
  gap: 8px;
}
.egg-weight-entry input {
  flex: 1;
  min-width: 0;
}
.egg-weight-entry button {
  flex-shrink: 0;
  font-size: 12px;
}

.egg-buyer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.egg-buyer-heading h2,
.egg-buyer-heading h3 {
  margin: 0;
  min-width: 0;
}
.egg-buyer-heading button {
  margin-left: auto;
  flex-shrink: 0;
}

.egg-loading-vehicles table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.egg-loading-vehicles th,
.egg-loading-vehicles td {
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 8px 4px;
}
.egg-loading-vehicles td button {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 8px 5px;
}

.egg-loading-vehicles tr[data-egg-loading-row] {
  cursor: pointer;
}
.egg-loading-vehicles tr[data-egg-loading-row]:hover,
.egg-loading-vehicles tr[data-egg-loading-row]:focus-visible,
.egg-loading-vehicles tr.selected {
  background: var(--pale, #e7efdf);
}
.egg-loading-vehicles tr[data-egg-loading-row]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

/* Egg Sales uses compact two-column rows, including phone widths. */
.egg-broker-select-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}
.egg-broker-select-row > * {
  min-width: 0;
}
#egg-broker-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
  padding-bottom: 8px;
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.egg-buyer-body,
.egg-sales-controls .form-grid,
.egg-grade-heading,
.egg-weight-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.egg-buyer-body > * {
  min-width: 0;
}
.egg-selected-party-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  border: 2px solid var(--green);
  background: var(--pale);
  border-radius: 12px;
  padding: 12px;
}
.egg-selected-party-row > strong {
  color: #fff;
  background: var(--green);
  margin: -12px -12px 0;
  padding: 10px 12px;
  border-radius: 9px 9px 0 0;
}
.egg-selected-party-row p {
  color: var(--green);
}
#egg-sale-through,
.purchase-order-through {
  width: auto;
  min-width: 90px;
  max-width: 130px;
}
.egg-selected-party-row p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.egg-selected-party-row p span {
  display: inline;
}
.egg-buyer-summary p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.egg-buyer-summary p span {
  display: block;
  width: 100%;
}
.egg-sales-controls :is(input, select, button) {
  min-width: 0;
  max-width: 100%;
}
.egg-sales-controls button {
  white-space: normal;
  overflow-wrap: anywhere;
}
.egg-sales-controls .form-grid label {
  overflow-wrap: anywhere;
}
.egg-grade-heading > .primary {
  margin-left: 0;
}
.egg-grade-heading > button {
  width: 100%;
}
.egg-type-stock {
  min-width: 0;
  margin: 0;
}
.egg-type-stock strong {
  overflow-wrap: anywhere;
}
.egg-weight-control {
  margin: 16px 0;
}
.egg-weight-control > button {
  width: 100%;
  align-self: start;
}
.egg-weight-control > .form-field,
.egg-weight-control > small {
  grid-column: 1/-1;
}
.egg-weight-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.egg-load-shed,
.egg-load-quantity {
  display: block;
  overflow-wrap: anywhere;
}
.egg-load-shed {
  font-weight: 700;
}
.egg-load-quantity {
  margin-top: 4px;
}
@media (max-width: 380px) {
  .egg-sales-controls > .panel {
    padding: 12px;
  }
  .egg-sales-controls .panel h2 {
    font-size: 16px;
  }
  .egg-sales-controls :is(input, select) {
    padding: 9px 7px;
  }
  .egg-sales-controls button {
    padding: 9px 7px;
  }
  .egg-grade-heading,
  .egg-buyer-body,
  .egg-sales-controls .form-grid {
    gap: 8px;
  }
}

.egg-grade-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.egg-grade-actions > button {
  width: 100%;
  min-width: 0;
}
.egg-grade-sales > h2 {
  margin-bottom: 12px;
}
.egg-grade-shed {
  align-self: center;
  overflow-wrap: anywhere;
}

.egg-grade-shed {
  grid-column: 1/-1;
}
.egg-type-stock {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.egg-type-stock label {
  grid-column: 1/-1;
  width: auto;
  text-align: left;
}
.egg-type-stock select {
  width: 100%;
  max-width: none;
}
.egg-type-stock strong {
  min-width: 0;
  white-space: nowrap;
  text-align: center;
}

.egg-loading-vehicles th {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  line-height: 1.3;
  vertical-align: middle;
}
.egg-sales-controls :is(h2, label) {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}
@media (max-width: 420px) {
  .egg-loading-vehicles th {
    font-size: 13px;
    padding: 8px 4px;
  }
  .egg-loading-vehicles th:first-child {
    width: 40%;
  }
  .egg-loading-vehicles th:nth-child(2) {
    width: 25%;
  }
  .egg-loading-vehicles th:nth-child(3) {
    width: 35%;
  }
}

.egg-minus-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.egg-sales-controls .egg-minus-value input {
  width: calc(2ch + 22px);
  flex: none;
  text-align: center;
  padding-inline: 10px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.egg-minus-value input::-webkit-inner-spin-button,
.egg-minus-value input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.egg-minus-value span {
  white-space: nowrap;
}

.egg-loading-vehicles > .heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.egg-loading-vehicles > .heading h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.egg-loading-vehicles > .heading [data-action='egg-drafts-open'] {
  order: 3;
  flex-basis: 100%;
  width: 100%;
}

#dialog[data-layer='egg-sold'] .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#dialog[data-layer='egg-sold'] .form-field {
  min-width: 0;
}
#dialog[data-layer='egg-sold'] label {
  white-space: normal;
  overflow-wrap: break-word;
}

.party-role-control {
  display: block;
  margin: 12px 0;
}
.party-role-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 600;
}
.party-role-heading button {
  margin-left: auto;
}
.party-role-summary {
  display: block;
}
.party-balance-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 5px;
}
.party-balance-heading label {
  margin: 0;
  flex: 1;
  min-width: 0;
}
.party-balance-heading select {
  width: auto;
  max-width: 155px;
  min-width: 95px;
  flex: none;
}
.party-opening-grid .form-field {
  min-width: 0;
}

.party-email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.party-email-row input {
  flex: 1;
  min-width: 0;
}
.party-email-row button {
  margin-left: auto;
  flex: none;
}
.party-opening-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.party-opening-heading h3 {
  margin: 0;
  min-width: 0;
}
.party-opening-heading select {
  width: auto;
  max-width: 155px;
  min-width: 95px;
}
.party-tds-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.party-tds-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.party-tds-checkbox input {
  width: 20px;
  min-height: 20px;
  flex: none;
}
.party-tds-row .form-field {
  min-width: 0;
}
.party-contact-table[hidden] {
  display: none;
}

.party-email-field {
  grid-column: 1/-1;
}
.party-tds-checkbox span {
  min-width: 0;
  overflow-wrap: break-word;
}

.party-opening-heading {
  justify-content: flex-start;
  column-gap: 8px;
}
.party-opening-heading select {
  margin-left: 0;
}

.party-contact-entry-field {
  grid-column: 1/-1;
}
.party-contact-entry-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.party-contact-entry-row > .contact-input-row {
  flex: 1;
  min-width: 0;
}
.party-contact-entry-row > .contact-input-row input {
  min-width: 0;
}
.party-contact-entry-row > [data-action='add-party-contact'] {
  margin-left: auto;
  flex: none;
}
@media (max-width: 380px) {
  .party-contact-entry-row {
    gap: 6px;
  }
  .party-contact-entry-row > [data-action='add-party-contact'] {
    font-size: 12px;
    padding: 9px 8px;
  }
  .party-contact-entry-row .contact-input-row {
    gap: 5px;
  }
  .party-contact-entry-row .contact-picker {
    padding: 8px;
    min-width: 40px;
    width: 40px;
  }
}

.party-tools-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-bottom: 8px;
}
.party-tools-row .party-role-heading {
  margin: 0;
  flex-shrink: 0;
}
.party-tools-row .party-role-heading button {
  margin-left: 0;
}
.party-scan .party-scan-actions {
  margin: 0 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}
.party-scan-actions button {
  white-space: normal;
}
.party-role-control {
  margin-top: 4px;
}
@media (max-width: 600px) {
  .party-tools-row {
    gap: 6px;
  }
  .party-tools-row .party-role-heading {
    display: grid;
    gap: 4px;
    min-width: 0;
  }
  .party-scan .party-scan-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    flex: 1;
    gap: 4px;
    min-width: 0;
  }
  .party-tools-row button {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    min-width: 0;
    min-height: 44px;
    padding: 7px 4px;
  }
  .party-tools-row .party-role-heading button {
    width: 100%;
  }
  .party-tools-row .party-role-heading span {
    font-size: 12px;
    line-height: 1.2;
    overflow-wrap: break-word;
  }
}

.party-tools-row > #party-scan-choice {
  margin-left: auto;
  flex: none;
  width: 125px;
  max-width: 42%;
  min-width: 85px;
  min-height: 44px;
  color: var(--green);
  font-weight: 700;
  border-color: var(--green);
}
@media (max-width: 600px) {
  .party-tools-row .party-role-heading {
    flex: 0 1 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    width: 145px;
    max-width: 58%;
  }
  .party-tools-row > #party-scan-choice {
    width: 105px;
    padding: 8px 6px;
    font-size: 13px;
  }
}

.party-opening-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}
.party-opening-grid > * {
  min-width: 0;
}
.party-opening-grid .smooth-date {
  min-width: 0;
}
.party-opening-grid .smooth-date > [data-date-entry] {
  min-width: 0;
}
@media (max-width: 380px) {
  .party-opening-grid {
    gap: 8px;
  }
  .party-opening-grid .smooth-date [data-date-entry] {
    font-size: 12px;
    padding-inline: 3px;
  }
  .party-opening-grid .smooth-date > button {
    min-width: 30px;
    padding-inline: 4px;
  }
}

.party-opening-left .party-opening-heading {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.party-opening-left .party-opening-heading h3 {
  font-size: 14px;
  line-height: 1.3;
}
.party-opening-left .party-opening-heading select {
  max-width: 100%;
  width: auto;
  min-width: 0;
}
.party-opening-grid #party-opening-amount,
.party-opening-grid .smooth-date {
  height: 60px;
  min-height: 60px;
}
.party-opening-grid > .form-field {
  align-self: end;
}
@media (max-width: 600px) {
  .party-opening-left .party-opening-heading select {
    width: 100%;
    font-size: 12px;
    padding-inline: 6px;
  }
  .party-opening-left .party-opening-heading h3 {
    width: 100%;
  }
}

.inline-party-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.inline-party-entry > input,
.inline-party-entry > .contact-input-row {
  flex: 1;
  min-width: 0;
}
.inline-party-entry > button {
  flex: none;
}

#workflow-form[data-module='New Party'] .field-navigation {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
#workflow-form[data-module='New Party'] .field-navigation button {
  white-space: normal;
  min-width: 0;
  padding-inline: 10px;
  line-height: 1.3;
}

.firebase-usage-panel .heading {
  gap: 10px;
  flex-wrap: wrap;
}
.firebase-usage-panel h2 {
  font-size: 18px;
  margin: 0;
}
.firebase-usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.firebase-usage-grid > div {
  min-width: 0;
  border: 1px solid var(--green, #2b654b);
  border-radius: 8px;
  padding: 8px;
  overflow-wrap: anywhere;
}
.firebase-usage-grid p {
  margin: 4px 0;
  font-weight: 700;
}
.firebase-usage-note {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.database-switch-modes {
  border: 1px solid var(--green, #2b654b);
  border-radius: 10px;
  padding: 12px;
}
.database-switch-modes label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
}
.database-switch-modes input[type='radio'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: none;
  accent-color: var(--green, #2b654b);
}

.server-usage-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.server-usage-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.server-usage-columns > section {
  min-width: 0;
}
.server-usage-columns h2 {
  margin: 0 0 10px;
}
.server-usage-columns .firebase-usage-grid small {
  display: block;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .server-usage-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

.farm-workspace-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  max-width: 100%;
  gap: 8px;
  padding-bottom: 5px;
  scrollbar-width: thin;
}
.farm-workspace-tabs > [role='tab'] {
  flex: 0 0 auto !important;
  min-width: 96px;
  white-space: nowrap;
}
.farm-subtabs > [role='tab'] {
  min-width: 110px;
}
.server-usage-controls {
  display: flex;
}
.server-usage-controls label {
  display: block;
  font-size: 12px;
  font-weight: 700;
}
.server-date-row {
  display: grid;
}
.server-date-row small {
  display: block;
  font-weight: 400;
}
.server-download {
  position: relative;
}
.server-export-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 5;
  background: white;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 5px;
  min-width: 90px;
}
.server-export-menu button {
  display: block;
  width: 100%;
  text-align: left;
}
.server-period {
  font-size: 12px;
  padding: 10px;
  background: var(--pale);
  border-radius: 8px;
}
.server-comparison-wrap {
  border: 1px solid var(--green);
  border-radius: 10px;
  overflow: hidden;
}
.server-comparison {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.server-comparison th,
.server-comparison td {
  padding: 12px 8px;
  text-align: center;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
}
.server-comparison thead {
  background: var(--pale);
}
.server-comparison th:first-child {
  width: 28%;
  text-align: left;
}
.server-comparison tbody th {
  font-size: 12px;
}
.server-comparison strong {
  display: block;
  font-size: 16px;
}
.server-comparison small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 4px;
}
.server-comparison tfoot td {
  text-align: left;
  background: #f3f6ef;
}
.server-comparison .usage-additional {
  color: #8a5a14;
  font-weight: 700;
}
@media (max-width: 420px) {
  .server-comparison th,
  .server-comparison td {
    padding: 10px 5px;
  }
  .server-usage-controls > button,
  .server-download > button {
    font-size: 12px;
    padding: 8px;
  }
  .server-date-row {
    grid-template-columns: 25px 96px 25px;
  }
}

#app-calendar.server-report-calendar {
  width: min(306px, calc(100vw - 24px)) !important;
  padding: 12px;
}
#app-calendar.server-report-calendar .app-calendar-navigation {
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  gap: 4px;
}
#app-calendar.server-report-calendar .app-calendar-month-year {
  font-size: 12px;
  min-width: 0;
  padding-inline: 3px;
}
#app-calendar.server-report-calendar .app-calendar-grid {
  gap: 2px;
}
#app-calendar.server-report-calendar .app-calendar-grid button {
  min-width: 0;
  padding-inline: 2px;
}

.top .active-server-button {
  flex: none;
  font-size: 12px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--green);
  font-weight: 700;
}
.top .active-server-button[hidden] {
  display: none;
}
.server-download > [data-export-toggle],
.server-usage-controls > [data-usage-refresh] {
  font-weight: 700;
  border: 1px solid var(--green);
  background: white;
  color: var(--ink);
  border-radius: 8px;
}

/* Compact Server Usage toolbar: one row, including narrow phones. */
.server-usage-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 72px;
  align-items: end;
  gap: 4px;
  flex-wrap: nowrap;
}
.server-usage-controls > div:first-child {
  min-width: 0;
}
.server-date-row {
  width: 100%;
  max-width: 190px;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  gap: 2px;
}
.server-date-row button {
  min-width: 0;
  min-height: 44px;
  padding: 4px 0;
  font-size: 11px;
}
.server-date-row small {
  font-size: 10px;
}
.server-download {
  margin-left: 0;
  min-width: 0;
}
.server-download > [data-export-toggle],
.server-usage-controls > [data-usage-refresh] {
  width: 72px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 3px;
  font-size: 11px;
  white-space: nowrap;
}
.server-usage-controls {
  max-width: 350px;
}

.purchase-report-filters > div {
  min-width: 0;
}
.purchase-report {
  overflow: hidden;
}
.purchase-report > .heading {
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
}
.purchase-report > .heading h2 {
  margin: 0;
  color: var(--green);
}
.purchase-report-tabs {
  margin-top: 12px;
}
.purchase-report .purchase-report-filters {
  align-items: end;
  gap: 12px;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid var(--green);
  border-radius: 12px;
  background: var(--pale);
}
.purchase-report .purchase-report-filters .form-field > label {
  min-height: 1.2em;
}
.purchase-report .purchase-report-filters > .form-field > :is(input, select) {
  background: #fff;
}
.purchase-report .purchase-report-totals {
  gap: 10px;
  margin: 12px 0 16px;
}
.purchase-report .purchase-report-totals > div {
  border: 1px solid var(--green);
  border-radius: 12px;
  background: #fff;
  padding: 10px 14px;
}
.purchase-report .purchase-report-totals small {
  color: var(--muted);
  font-weight: 700;
}
.purchase-report .purchase-report-totals strong {
  margin-top: 4px;
  color: var(--green);
}
.purchase-report .table-wrap {
  overflow-x: auto;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: #fff;
}
.purchase-report table {
  min-width: 640px;
  margin: 0;
}
.purchase-report .purchase-summary-table thead {
  background: var(--pale);
}
.purchase-report .purchase-summary-table th {
  color: var(--green);
  font-weight: 700;
  white-space: normal;
}
.purchase-report .purchase-summary-table td {
  vertical-align: middle;
  line-height: 1.4;
}
.purchase-report .purchase-summary-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--pale) 45%, white);
}
.purchase-report .purchase-summary-table tbody tr:hover {
  background: var(--pale);
}
.purchase-report td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.purchase-report td button {
  text-align: left;
  white-space: normal;
  max-width: 220px;
}
.purchase-report tr[data-purchase-record] {
  cursor: pointer;
}
.purchase-report tr[data-purchase-record]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.purchase-report-totals {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.purchase-report-totals > div {
  background: var(--pale);
  border-radius: 8px;
  padding: 10px 14px;
  flex: 1;
  min-width: 120px;
}
.purchase-report-totals strong,
.purchase-report-totals small {
  display: block;
}

/* Feed production plan and actual production share the Recipe Report. */
.feed-production-table {
  min-width: 760px;
  table-layout: fixed;
}
.feed-production-table th,
.feed-production-table td {
  text-align: center;
  overflow-wrap: anywhere;
  padding: 9px 5px;
}
.feed-production-table th:first-child {
  width: 174px;
}
.feed-production-table .feed-plan-identity {
  line-height: 1.25;
}
.feed-plan-identity strong,
.feed-plan-identity small {
  display: block;
}
.feed-plan-identity small {
  margin-top: 2px;
}
.feed-production-table input {
  box-sizing: content-box;
  width: 3ch;
  min-width: 0;
  max-width: none;
  height: 30px;
  min-height: 30px;
  padding: 5px;
  text-align: center;
  font-size: 16px;
}
.feed-production-table input::-webkit-inner-spin-button {
  appearance: none;
}
.feed-production-table button {
  min-width: 44px;
  min-height: 44px;
  padding: 5px;
}
.feed-production-table caption {
  font-weight: 700;
  text-align: left;
  font-size: 1.15rem;
  padding: 10px 0;
}
#feed-production-planner > .actions {
  justify-content: flex-end;
}
@media (max-width: 440px) {
  .feed-production-table th:first-child {
    width: 145px;
  }
  .feed-production-table {
    min-width: 690px;
  }
}

#feed-recipe-report-page .recipe-plan-table.feed-production-table {
  min-width: 760px;
}
#feed-recipe-report-page .recipe-plan-table.feed-production-table th:first-child {
  width: 174px;
  text-align: center;
}
#feed-recipe-report-page .recipe-plan-table.feed-production-table th,
#feed-recipe-report-page .recipe-plan-table.feed-production-table td {
  text-align: center;
  white-space: normal;
}
#feed-recipe-report-page .feed-plan-identity small {
  margin-top: 2px;
}
@media (max-width: 440px) {
  #feed-recipe-report-page .recipe-plan-table.feed-production-table {
    min-width: 690px;
  }
  #feed-recipe-report-page .recipe-plan-table.feed-production-table th:first-child {
    width: 145px;
  }
}

.feed-production-date {
  max-width: 200px;
  margin: 12px 0;
}

#dialog[data-layer^='feed-'] {
  overflow-x: hidden;
}
#dialog .feed-produced-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
#dialog .feed-produced-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
#dialog .feed-produced-table th,
#dialog .feed-produced-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 9px 4px;
  text-align: center;
}
#dialog .feed-produced-table input {
  box-sizing: content-box;
  width: 3ch;
  min-width: 0;
  min-height: 36px;
  padding: 5px;
  text-align: center;
  font-size: 16px;
}
#dialog[data-layer^='feed-'] .table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

[data-feed-plan-action]:not(.primary) {
  background: white;
  color: var(--green);
  border: 1px solid var(--green);
  font-weight: 700;
  border-radius: 9px;
  padding: 9px 12px;
  min-height: 44px;
}
#feed-production-planner [data-feed-plan-action='farm'] {
  padding: 5px;
  min-width: 44px;
}

/* Stock Checks: compact date, same height as Shed, Date label retained. */
#stock-check-picker .form-grid {
  align-items: end;
}
#stock-check-picker .smooth-date,
#stock-check-picker select {
  height: 44px;
  min-height: 44px;
}
#stock-check-picker .smooth-date {
  grid-template-rows: 24px 18px;
}
#stock-check-picker .smooth-date > input[data-date-entry] {
  height: 24px;
  min-height: 0;
  line-height: 20px;
  padding: 2px 5px 0;
}
#stock-check-picker .smooth-date > .date-weekday {
  height: 18px;
  min-height: 0;
  line-height: 16px;
  padding: 0 4px 2px;
}
#stock-check-picker .smooth-date > button {
  height: 42px;
  min-height: 0;
}

#dialog .feed-produced-table th:first-child {
  width: 37%;
}
#dialog .feed-produced-table th,
#dialog .feed-produced-table td {
  font-variant-numeric: tabular-nums;
}
#dialog .feed-produced-table [data-feed-pending] {
  font-weight: 700;
  color: var(--green);
}

/* Keep page ends and dialog actions reachable above the mobile keyboard. */
html {
  scroll-padding-bottom: calc(16px + var(--keyboard-inset, 0px));
}
main {
  padding-bottom: calc(max(50px, env(safe-area-inset-bottom)) + var(--keyboard-inset, 0px)) !important;
}
html[data-keyboard-open] dialog[open] {
  top: calc(var(--visual-top, 0px) + 8px) !important;
  bottom: auto !important;
  margin-block: 0 !important;
  max-height: calc(var(--visible-height, 100dvh) - 16px);
  scroll-padding-block: 14px;
}
html[data-keyboard-open] :is(input, textarea, button, select) {
  scroll-margin-block: 12px;
}

html[data-keyboard-open] .access-login:not([hidden]) {
  align-items: start;
  min-height: var(--visible-height, 100dvh);
  padding-bottom: calc(20px + var(--keyboard-inset, 0px));
}

/* Hold the active surface steady while the keyboard hides during a tap. */
dialog.keyboard-aware[open] {
  top: calc(var(--visual-top, 0px) + 8px) !important;
  bottom: auto !important;
  margin-block: 0 !important;
  max-height: calc(var(--visible-height, 100dvh) - 16px);
  scroll-padding-block: 14px;
}
.access-login.keyboard-aware:not([hidden]) {
  align-items: start;
  min-height: var(--visible-height, 100dvh);
  padding-bottom: calc(20px + var(--keyboard-inset, 0px));
}

.egg-loading-vehicles td small {
  display: block;
  line-height: 1.3;
  color: var(--muted);
  margin-top: 4px;
}
.egg-loading-vehicles [data-egg-draft-row] {
  cursor: pointer;
}

#egg-dirty-balance,
#egg-sold-preview {
  display: block;
  margin-top: 0.5rem;
  font-weight: 700;
  color: var(--green, #2b654b);
}

.egg-count-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.egg-count-components {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.45rem;
}
.egg-count-components > div {
  min-width: 0;
}
.egg-count-components input {
  width: 100%;
  min-width: 0;
}
.egg-count-components label {
  display: block;
  font-size: 0.85em;
  margin-bottom: 0.2rem;
}
.egg-count-field {
  min-width: 0;
}

@media (max-width: 600px) {
  .form-grid > .egg-count-field {
    grid-column: 1/-1;
  }
}

#purchase-report-search::placeholder {
  color: var(--muted, #68776b);
  opacity: 0.7;
}

/* Report date selector: single day by default, optional range alongside. */
.purchase-date-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}
.purchase-date-controls.is-range {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}
.purchase-date-range {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
}
.purchase-date-range[aria-pressed='true'] {
  background: var(--green, #2b654b);
  color: white;
}
.purchase-date-controls .form-field {
  min-width: 0;
}
.purchase-report-filters > .purchase-date-controls {
  grid-column: 1/-1;
}

/* Keep the date field and adjacent range icon at equal height. */
.purchase-date-controls {
  --report-date-height: 60px;
}
.purchase-date-controls .smooth-date,
.purchase-date-controls > .purchase-date-range {
  height: var(--report-date-height);
  min-height: var(--report-date-height);
  box-sizing: border-box;
}
.purchase-date-controls .smooth-date {
  grid-template-rows: 34px 24px;
}

/* One calendar-field size throughout Farm Book, including compact workflows. */
body .smooth-date {
  height: 60px !important;
  min-height: 60px !important;
  grid-template-rows: 34px 24px !important;
  box-sizing: border-box;
}
body .smooth-date > input[data-date-entry] {
  height: 34px !important;
  min-height: 0 !important;
  line-height: 22px !important;
  padding-top: 6px !important;
}
body .smooth-date > .date-weekday {
  height: 24px !important;
  min-height: 0 !important;
  line-height: 18px !important;
  padding-bottom: 6px !important;
}
body .smooth-date > button {
  height: 58px !important;
  min-height: 58px !important;
  box-sizing: border-box;
  align-self: stretch;
}
body .smooth-date:has(input[type='month']) {
  grid-template-rows: 58px !important;
}
body .smooth-date:has(input[type='month']) > input[data-date-entry] {
  height: 58px !important;
  padding-block: 12px !important;
}
.home-date-row > .quiet,
.server-date-row > button {
  height: 60px;
  min-height: 60px;
}

/* Egg Purchase filters: route and search first, date below. */
.egg-purchase-report .purchase-report-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.egg-purchase-report .purchase-report-filters > .form-field {
  grid-row: 1;
  min-width: 0;
}
.egg-purchase-report .purchase-report-filters > .purchase-date-controls {
  grid-row: 2;
  grid-column: 1/-1;
}

.stock-difference-list {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.stock-difference-list th,
.stock-difference-list td {
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
  padding: 8px 6px;
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  text-align: center;
  vertical-align: middle;
}
.stock-difference-list thead th {
  border-bottom: 2px solid var(--green);
  background: var(--pale);
  color: var(--green);
  font-weight: 750;
}
.stock-difference-list th:last-child,
.stock-difference-list td:last-child {
  border-right: 0;
}
.stock-difference-list tbody tr:last-child td {
  border-bottom: 0;
}
.stock-difference-notices {
  border: 2px solid var(--green);
  border-radius: 12px;
  overflow: hidden;
}
.stock-difference-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
}
.stock-difference-table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.stock-difference-table-tools .quiet,
.stock-difference-pager button {
  min-height: 32px;
  padding: 4px 9px;
}
.stock-difference-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 10px;
  border-top: 1px solid var(--green);
  color: var(--muted);
  font-size: 13px;
}
.stock-difference-pager > div {
  display: flex;
  gap: 8px;
}
.stock-difference-pager button {
  min-width: 36px;
  font-size: 18px;
  line-height: 1;
}
.stock-difference-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}
.stock-difference-count {
  flex: 0 0 auto;
  min-width: 38px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--green);
  text-align: center;
  font-size: 14px;
  font-weight: 750;
}
.stock-difference-stack,
.stock-difference-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stock-difference-stack small {
  color: var(--muted);
  font-size: 0.88em;
}
.stock-difference-result > strong {
  font-variant-numeric: tabular-nums;
}
.stock-difference-kind {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 7px;
  background: #a33b2c;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}
.stock-difference-kind.is-excess {
  background: var(--green);
}
dialog[data-layer='stock-notices'] > #dialog-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.stock-difference-list th:nth-child(1) { width: 12%; }
.stock-difference-list th:nth-child(2) { width: 21%; }
.stock-difference-list th:nth-child(3) { width: 24%; }
.stock-difference-list th:nth-child(4) { width: 25%; }
.stock-difference-list th:nth-child(5) { width: 18%; }
.stock-difference-list td button {
  min-height: 32px;
  padding: 4px 7px;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .stock-difference-table-heading { padding: 8px 10px; font-size: 18px; }
  .stock-difference-table-tools { gap: 5px; }
  .stock-difference-table-tools .quiet { min-height: 30px; padding: 3px 7px; font-size: 12px; }
  .stock-difference-pager { gap: 8px; padding: 7px 5px; font-size: 12px; }
  .stock-difference-pager > div { gap: 5px; }
  .stock-difference-list th,
  .stock-difference-list td { padding: 7px 3px; font-size: 12px; }
  .stock-difference-list th:nth-child(1) { width: 12%; }
  .stock-difference-list th:nth-child(2) { width: 20%; }
  .stock-difference-list th:nth-child(3) { width: 23%; }
  .stock-difference-list th:nth-child(4) { width: 25%; }
  .stock-difference-list th:nth-child(5) { width: 20%; }
  .stock-difference-kind { padding: 2px 6px; font-size: 10px; }
  .stock-difference-list td button { min-height: 30px; padding: 3px 5px; font-size: 10px; }
}
.stock-difference-list tr[data-stock-notice-row] {
  cursor: pointer;
}
.stock-difference-list tr[data-stock-notice-row]:focus-visible {
  outline: 3px solid #a6741d;
  outline-offset: -3px;
}

.vehicle-reminders {
  min-width: 0;
}
.vehicle-reminders table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.vehicle-reminders th,
.vehicle-reminders td {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  padding: 7px;
  vertical-align: top;
}
.vehicle-reminders th:nth-child(1) {
  width: 25%;
}
.vehicle-reminders th:nth-child(2) {
  width: 30%;
}
.vehicle-reminders th:nth-child(3) {
  width: 20%;
}
.vehicle-reminders th:nth-child(4) {
  width: 25%;
}
.vehicle-reminders td button {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
  padding: 6px;
}
.stock-check-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.stock-check-context dt {
  font-weight: 700;
}
.stock-check-context dd {
  margin: 4px 0 0;
  font-size: 1.125rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.stock-check-context small {
  display: block;
  font-size: 0.875rem;
}
.closing-production-head,
.closing-count-columns,
.closing-sales-route:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.closing-production-head {
  padding: 0 13px;
  text-align: center;
  font-weight: 800;
  color: var(--green);
  margin: 12px 0 8px;
}
.closing-production-row .form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  margin: 0;
}
.closing-production-row input {
  min-width: 0;
  text-align: center;
  padding: 8px 5px;
}
.closing-production-row .closing-production-value {
  margin: 0;
  text-align: center;
  font-weight: 800;
  color: var(--green);
  overflow-wrap: anywhere;
}
.closing-shortage-label {
  display: block;
  font-size: 0.8rem;
  color: #985b17;
  margin-top: 4px;
  font-weight: 700;
}
.closing-sales-route {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 10px;
}
.closing-sales-route > span {
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.closing-sales-route button {
  justify-self: center;
  padding: 8px 12px;
}
.closing-sales-flash {
  animation: closing-sales-pulse 1s ease-in-out infinite;
}
.closing-yellow-star {
  color: #e4b400;
  white-space: nowrap;
}
@keyframes closing-sales-pulse {
  0%,
  100% {
    color: #2c6547;
    opacity: 1;
  }
  50% {
    color: #985b17;
    opacity: 0.65;
  }
}
@media (prefers-reduced-motion: reduce) {
  .closing-sales-flash {
    animation: none;
  }
}

.egg-selected-party-row p .egg-selected-party-phone {
  color: #fff;
  background: var(--green);
  border-radius: 4px;
  padding: 1px 4px;
}

.purchase-order-list .egg-buyer-heading {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.purchase-order-list .egg-buyer-heading h3 {
  font-size: 18px;
}
.purchase-order-list .egg-buyer-body {
  margin-bottom: 12px;
}

/* Shared phone-first driver editor for sales and purchases. */
.driver-phone-box,
.driver-name-box {
  display: flex;
  align-items: center;
  border: 1px solid #a8bda9;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.driver-phone-box input,
.driver-name-box input {
  border: 0;
  min-width: 0;
  flex: 1;
  width: 100%;
}
.driver-phone-box [data-driver-inline-name] {
  max-width: 45%;
  padding: 8px;
  color: var(--green);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.driver-name-box button {
  margin: 4px;
  padding: 6px 9px;
  font-size: 13px;
  flex-shrink: 0;
}
.driver-contact-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}
.driver-suggestions {
  border: 1px solid #a8bda9;
  border-radius: 8px;
  overflow: hidden;
}
.driver-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--pale);
  color: var(--green);
  border: 0;
  border-radius: 0;
  padding: 10px;
}
.driver-detail-section {
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 14px;
  margin: 16px 0;
}
.driver-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.driver-detail-heading label,
.driver-detail-heading h3 {
  margin: 0;
  font-weight: 700;
  color: var(--green);
  font-size: 18px;
}
.driver-detail-heading button {
  padding: 2px 8px;
  font-size: 13px;
}
.driver-number-heading {
  justify-content: flex-start;
}
.driver-detail-heading .driver-number-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 6px;
  font-size: 13px;
  line-height: 20px;
}
.driver-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.driver-number-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  width: 100%;
}
.driver-number-grid label {
  display: flex;
  align-items: flex-end;
  min-height: 38px;
  line-height: 19px;
  margin-bottom: 8px;
}
.driver-number-grid input {
  height: 46px;
  min-width: 0;
  width: 100%;
}

.vehicle-add-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.vehicle-linked-parties {
  margin-top: 8px;
  color: var(--green);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.driver-phone-box [data-driver-inline-name]:empty {
  display: none;
}
.driver-detail-heading .driver-number-add {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  border-radius: 5px;
  font-weight: 700;
}
.egg-selected-party-row p .egg-selected-party-phone {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
}
@media (max-width: 600px) {
  .driver-phone-box {
    flex-direction: column;
    align-items: stretch;
  }
  .driver-phone-box [data-driver-inline-name] {
    max-width: none;
    padding: 4px 8px 8px;
    font-size: 14px;
  }
  .egg-sales-controls .form-field:has(> input[name='Vehicle number']) > label,
  .egg-sales-controls .driver-contact-field > label {
    min-height: 38px;
    display: flex;
    align-items: flex-end;
    line-height: 19px;
  }
}

.egg-loading-vehicles tbody tr + tr > td {
  border-top: 1px solid var(--green);
}
.loading-row-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}
.loading-row-actions button {
  font-size: 12px;
  padding: 5px 8px;
}

.egg-loading-vehicles th:first-child {
  width: 18%;
}
.egg-loading-vehicles th:nth-child(2) {
  width: 25%;
}
.egg-loading-vehicles th:nth-child(3) {
  width: 20%;
}
.egg-loading-vehicles th:nth-child(4) {
  width: 20%;
}
.egg-loading-vehicles th:nth-child(5) {
  width: 17%;
}
.loading-cancel-cell .loading-row-actions {
  margin-top: 0;
  justify-content: flex-end;
}
.loading-cancel-cell button {
  font-size: 12px;
  padding: 5px 3px;
}

.buyer-choice-section {
  border: 2px solid var(--green);
  border-radius: 12px;
  background: var(--pale);
  padding: 14px;
  margin: 16px 0;
}
.buyer-choice-section .form-field {
  min-width: 0;
  margin: 0;
}
.buyer-choice-section label {
  display: block;
  color: var(--green);
  font-weight: 700;
  margin: 0 0 8px;
}
.buyer-choice-section select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  background: #fff;
  border: 1px solid #a8bda9;
  border-radius: 8px;
}
.buyer-choice-section #egg-broker-contact {
  font-size: 14px;
  color: var(--green);
  padding-bottom: 8px;
}

/* Reusable business-form section treatment; tables retain their report layout. */
#dialog > .form-grid,
#dialog > form > .form-grid,
#dialog > .form-field,
#dialog > form > .form-field,
#dialog > .list,
#workflow-form .workflow-section:has(.form-field):not(:has(table)),
.access-credential-panel,
.permission-group,
.setup-shed,
.setup-fields:not(.setup-shed .setup-fields),
.business-details {
  border: 2px solid var(--green);
  border-radius: 12px;
  background: var(--pale);
  padding: 14px;
  margin: 14px 0;
  min-width: 0;
}
#dialog :is(.form-field, .form-grid) > label,
#dialog > .form-field label,
#dialog > form > .form-field label,
.workflow-section:has(.form-field) :is(h2, h3, label),
.access-credential-panel :is(h2, h3, label),
.permission-group legend,
.setup-shed :is(legend, h3, h4),
.setup-field > label,
.business-details > dt {
  color: var(--green);
  font-weight: 700;
}
.business-details {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px 14px;
}
.business-details > :is(dt, dd) {
  min-width: 0;
  overflow-wrap: anywhere;
}
#dialog :is(.form-grid, .form-field) :is(input, select, textarea),
.workflow-section :is(input, select, textarea) {
  background-color: #fff;
}
.access-review dl {
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 14px;
  background: var(--pale);
}
.access-review dt {
  color: var(--green);
  font-weight: 700;
}

.access-permission-dialog .permission-group,
.business-setup-panel .setup-shed,
.business-setup-panel .setup-review-shed {
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 14px;
  background: var(--pale);
}
.access-permission-dialog .permission-group > summary {
  color: var(--green);
  font-weight: 700;
}
.business-details > dd {
  color: var(--green);
}

/* Align entry surfaces within each visual two-column row, including composite controls. */
.entry-paired-grid {
  align-items: start !important;
}
.paired-entry-label {
  min-height: var(--paired-label-height) !important;
  box-sizing: border-box;
}
.paired-entry-control {
  height: var(--paired-entry-height) !important;
  min-height: var(--paired-entry-height) !important;
  box-sizing: border-box;
}
.contact-input-row.paired-entry-control > :is(input, button),
.inline-party-entry.paired-entry-control > :is(input, select, button) {
  height: 100%;
  min-height: 0;
  align-self: stretch;
}
:where(.form-grid, .access-fields, .setup-fields, .driver-number-grid, .egg-count-components)
  :is(
    input:not([type='hidden']):not([type='checkbox']):not([type='radio']):not([aria-hidden='true']),
    select
  ) {
  min-height: 44px;
  box-sizing: border-box;
}

.business-change-review td {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

#workflow-form[data-module='Line Margin'] .form-grid,
#purchase-transport-form .route-setup-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.party-egg-route [role='listbox'] {
  max-height: 240px;
  overflow-y: auto;
  border: 2px solid var(--primary, #2d684b);
  border-radius: 10px;
  background: white;
}
.party-egg-route [role='option'] {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #dce4d7;
  border-radius: 0;
  text-align: left;
  white-space: normal;
}
.egg-line-party-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.egg-line-party-heading output {
  color: #2d684b;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.egg-selected-party-row > strong:has(.egg-party-route-inline) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.egg-party-route-inline {
  overflow-wrap: anywhere;
}
.app-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#initial-farm-setup {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

/* Keep each report's search beside its preceding filter, including on mobile. */
.purchase-report .purchase-report-filters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}
.purchase-report .purchase-report-filters > .purchase-date-controls {
  min-width: 0;
}
.purchase-report .purchase-report-filters > .form-field {
  align-self: end;
  min-width: 0;
}
.purchase-report .purchase-report-filters > .form-field > :is(input, select) {
  width: 100%;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
  margin-bottom: 0;
}
.transaction-detail-date {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  text-align: right;
  margin-bottom: 16px;
  color: var(--green, #2d684b);
}
.transaction-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 16px;
  border: 2px solid var(--green, #2d684b);
  border-radius: 12px;
  background: #eef4e9;
}
.transaction-summary-grid > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}
.transaction-summary-grid dt { font-weight: 700; }
.transaction-summary-grid dd { margin: 0; }
.transaction-summary-grid :is(dt, dd) { overflow-wrap: anywhere; }
.transaction-stock-table { min-width: 650px; }
.transaction-report-detail { min-width: 0; max-width: 100%; }
.transaction-report-detail .table-wrap { max-width: 100%; overflow-x: auto; }
.transaction-stock-table td { white-space: pre-line; }
.purchase-report .purchase-summary-table { min-width: 460px; }
.purchase-summary-table,
.transaction-stock-table {
  border-collapse: collapse;
  border: 1px solid var(--green, #2d684b);
}
:is(.purchase-summary-table, .transaction-stock-table) :is(th, td) {
  border: 1px solid var(--green, #2d684b);
}
@media (max-width: 420px) {
  .transaction-summary-grid { gap: 12px 8px; padding: 10px; font-size: 12px; }
  .transaction-summary-grid > div { gap: 4px; }
  .purchase-report .purchase-report-filters { padding: 10px; gap: 8px; }
  .purchase-report .purchase-report-totals > div { min-width: 100%; }
}
.route-setup-fields > .form-field:has(input[name='Route name']),
#workflow-form[data-module='Egg Routes'] .form-field:has(> input[name='Route name']) {
  grid-column: 1/-1;
}

/* Add Shed egg-type choices: compact checkboxes beside their labels. */
#egg-add-shed-types { display:grid; gap:8px; margin:14px 0; padding:12px; border:1px solid var(--green, #2d684b); border-radius:12px; }
#egg-add-shed-types label { display:flex; align-items:center; gap:10px; min-height:44px; margin:0; padding:4px; cursor:pointer; }
#egg-add-shed-types input[type="checkbox"] { appearance:auto; flex:0 0 22px; width:22px; height:22px; min-height:22px; margin:0; padding:0; accent-color:#2d684b; }
#egg-add-shed-types label span { flex:1; line-height:1.4; }

.smooth-date.has-date-shifts {grid-template-columns:32px minmax(0,1fr) 36px 32px;}
.smooth-date.has-date-shifts>input[data-date-entry], .smooth-date.has-date-shifts>.date-weekday {grid-column:2;}
.smooth-date.has-date-shifts>button:not(.date-shift) {grid-column:3;min-width:36px;}
.smooth-date.has-date-shifts>button.date-shift {grid-row:1/3;grid-column:1;min-width:32px;width:32px;min-height:44px;padding:2px;border:0;border-right:1px solid var(--line);}
.smooth-date.has-date-shifts>button.date-shift[data-date-shift="1"] {grid-column:4;border-right:0;border-left:1px solid var(--line);}
.smooth-date.has-date-shifts>button.date-shift {display:grid !important;place-items:center;visibility:visible !important;opacity:1 !important;color:var(--green,#2d684b);font-size:24px;line-height:1;z-index:1;}

.egg-type-sales-row { padding:12px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; margin:0; }
.egg-type-sales-row .egg-grade-heading {margin:0;}
.egg-type-sales-row:last-of-type {border-bottom:0;}
