

/* Start:/local/components/mcomplex/feed.calculator/templates/.default/style.css?179083062739801*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&display=swap");

:root {
  --bg: #f3f4f7;
  --bg-2: #e8eaee;
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --ink: #3d3f4a;
  --muted: #6b6e7a;
  --line: #d5d7de;
  --green: #fe9441;
  --green-deep: #d67528;
  --green-soft: #fff1e4;
  --gold: #ffc040;
  --gold-soft: #fff6dc;
  --warn: #c45c28;
  --warn-soft: #fff1e4;
  --ok: #565864;
  --shadow: 0 10px 28px rgba(86, 88, 100, 0.1);
  --radius: 12px;
  --mono: "Montserrat", system-ui, sans-serif;
  --graphite: #565864;
  --yellow: #ffc040;
  --orange: #fe9441;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(255, 192, 64, 0.18) 0%, transparent 55%),
    radial-gradient(800px 360px at 100% 0%, rgba(254, 148, 65, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #f7f8fa 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--mono);
}

body {
  font-size: 15px;
  line-height: 1.45;
  padding-left: 148px;
  padding-right: 148px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 100%);
  z-index: 40;
}

.app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 18px 48px;
}

.print-watermark { display: none; }

.top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.top__brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top__logo-link {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}
.top__logo-link:hover .top__logo { opacity: 0.88; }
.top__logo-link:focus-visible {
  outline: 2px solid var(--yellow, #FFC040);
  outline-offset: 3px;
}

.top__logo {
  width: 80px;
  height: auto;
  display: block;
  overflow: visible;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 26px; font-weight: 800; color: var(--graphite); }
h2 { font-size: 20px; font-weight: 700; color: var(--graphite); }
.top__brand p,
.panel__head p,
.hint,
.foot { color: var(--muted); }
.top__brand p { margin: 2px 0 0; font-size: 13px; }

.dock {
  position: fixed;
  top: 20px;
  right: 16px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 124px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.dock .btn {
  width: 100%;
  text-align: center;
}

.reset-dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 460px;
  width: calc(100% - 32px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  font: inherit;
}

.reset-dialog::backdrop {
  background: rgba(86, 88, 100, 0.45);
}

.reset-dialog h3 { margin-bottom: 8px; }
.reset-dialog p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.reset-dialog ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.reset-dialog li { margin: 4px 0; }
.reset-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.top__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.field--inline input,
.cell input,
.crop input,
.herd input {
  font: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  width: 100%;
  min-width: 0;
}

.herd input,
.panel__tools--herd input,
.crop__grid input[type="number"],
.cuts input[type="number"] {
  text-align: right;
}

.herd input {
  font-size: 15px;
}

.field--inline input {
  width: 92px;
}

.field--total input,
.panel__tools--herd .field--inline input {
  width: 140px;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 12px;
}

input[type="number"] {
  -webkit-user-drag: none;
}

input:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
  border-color: var(--orange);
}

.btn {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--graphite);
}
.btn--ghost:hover { background: var(--gold-soft); border-color: var(--yellow); }
.btn--solid {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn--solid:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn--tiny {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 8px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  position: static;
  margin: 0 0 16px;
}

.kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.kpi b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  color: var(--graphite);
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi em { font-style: normal; color: var(--gold); font-size: 12px; }

.layout { display: grid; gap: 16px; min-width: 0; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.panel__titles { flex: 1; min-width: 0; }
.panel__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel__print-logo { display: none; }
.panel__titles h2 { display: inline; }
.panel__head p {
  margin: 4px 0 0;
  max-width: 920px;
  font-size: 13px;
  line-height: 1.4;
}
.panel__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}
.panel[data-block="herd"] .panel__head {
  align-items: flex-start;
  flex-wrap: wrap;
}
.panel[data-block="herd"] .panel__titles {
  flex: 1 1 240px;
}
.panel__tools--herd {
  margin: 0 0 0 auto;
  flex: 0 1 auto;
  justify-content: flex-end;
}
.panel__tools--herd .field {
  font-size: 12px;
}

.fold {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
}

.fold::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--ink);
  clip-path: polygon(12% 32%, 88% 32%, 50% 78%);
}

.panel.is-folded .fold::before {
  clip-path: polygon(32% 12%, 78% 50%, 32% 88%);
}
.panel.is-folded .panel__body { display: none; }
.panel.is-folded .panel__head { margin-bottom: 0; }
.fold:hover { border-color: var(--orange); background: var(--gold-soft); }

.herd {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.herd__card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}

.herd__card h3 {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.herd__note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.herd__stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.herd__stats b { color: var(--ink); font-variant-numeric: tabular-nums; }

.table-wrap { overflow: auto; }

.ration {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 920px;
}

.ration th, .ration td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ration thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  z-index: 1;
}

.ration th:first-child, .ration td:first-child {
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: var(--paper);
}

.ration-th-crop {
  white-space: nowrap;
}
.ration-add {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--graphite);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.ration-add:hover {
  border-color: var(--orange);
  background: var(--gold-soft);
  color: var(--orange);
}
.ration-add:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 1px;
}

.ration .crop-h {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.ration .crop-h:hover .crop-h__name,
.ration .crop-h:focus-visible .crop-h__name {
  color: var(--orange);
  text-decoration: underline;
}

.ration .crop-h:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.ration .crop-h__name {
  flex: 1 1 8em;
  min-width: 0;
  text-align: left;
}

.ration .swatch {
  width: 22px;
  height: 6px;
  border-radius: 99px;
  flex: 0 0 auto;
}

.ration input {
  width: 78px;
  text-align: right;
  margin: 0 auto;
  display: block;
}
.ration .total input {
  font-weight: 800;
}
.ration__num {
  display: block;
  width: 78px;
  margin: 0 auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ration tfoot td { font-weight: 800; background: var(--paper-2); }
.ration tfoot td:not(:first-child) { text-align: center; }
.ration tfoot td:first-child { background: var(--paper-2); }
.ration .total { font-weight: 800; }
.ration .warn-dmi { color: var(--warn); }
.ration thead th:last-child,
.ration tbody td:last-child,
.ration tfoot td:last-child {
  text-align: right;
  padding-right: 12px;
}

.hint { font-size: 13px; margin: 10px 0 0; }

.crops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.crops-print { display: none; }

.crop {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  border-top: 5px solid var(--c, var(--green));
}

.crop__title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.crop__title h3,
.crop__name { font-size: 16px; font-weight: 800; flex: 1; min-width: 0; }
.crop__name {
  width: auto;
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 8px;
}
.crop__title span { font-size: 12px; color: var(--muted); font-weight: 600; }

.crop__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.crop__on {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.crop__on input { width: auto; margin: 0; accent-color: var(--graphite); }

.crop__on:has(input:checked) {
  background: var(--graphite);
  color: #fff;
  border-color: var(--graphite);
}

.crop__on:has(input:checked) input { accent-color: var(--yellow); }

.crop--off {
  background: #eceef2;
  filter: grayscale(0.45);
  border-color: #c5c7cf;
}

.crop--off .crop__on {
  background: #eceef2;
  color: var(--muted);
  border-color: #c5c7cf;
}

.crop__off-msg {
  margin: 0 0 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 12px;
  font-weight: 700;
}

.crop--new {
  outline: 3px solid var(--orange);
  box-shadow: 0 0 0 8px rgba(254, 148, 65, 0.18);
  animation: crop-pulse 1.1s ease-in-out 3;
}

.crop--off-flash {
  outline: 3px solid var(--warn);
  box-shadow: 0 0 0 8px rgba(196, 92, 40, 0.16);
}

@keyframes crop-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(254, 148, 65, 0.18); }
  50% { box-shadow: 0 0 0 14px rgba(255, 192, 64, 0.12); }
}

.btn--danger {
  background: var(--warn-soft);
  color: var(--warn);
  border-color: #f0c9a8;
  white-space: nowrap;
}

.crop__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.crop label span { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.crop .wide { grid-column: 1 / -1; }
.crop .note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.crop--buy { background: #fff8ef; }

.crop--off,
.crop--buy.crop--off {
  background: #eceef2;
  filter: grayscale(0.45);
  border-color: #c5c7cf;
  border-top-color: #9a9ba3;
}

input[readonly] {
  background: var(--paper-2);
  color: var(--muted);
}

.cuts {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 8px;
  display: grid;
  gap: 8px;
  background: var(--paper-2);
}

.cuts__row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr 36px;
  gap: 8px;
  align-items: end;
}

.cuts__row strong {
  font-size: 12px;
  padding-bottom: 8px;
}

.cuts__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.cuts-out {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}

.cuts-out span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.result {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--paper-2);
  border-left: 6px solid var(--c, var(--green));
}

.result h3 {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px;
}

.result dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 0;
  font-size: 13px;
}

.result dt { color: var(--muted); }
.result dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.result dd small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.result dd small.neg { color: var(--warn); }

.bar-wrap { margin: 10px 0 8px; }

.bar__split {
  --thumb: 18px;
  --fill: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--share-n, 0) / 100);
  --track: linear-gradient(
    to right,
    var(--c, var(--green)) 0 var(--fill),
    #eef0f4 var(--fill) 100%
  );
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 8px 0 2px;
  background: var(--track);
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(86, 88, 100, 0.16);
  outline: none;
  cursor: pointer;
}

.bar__split::-webkit-slider-runnable-track {
  height: 18px;
  border-radius: 8px;
  background: transparent;
}

.bar__split::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--graphite);
  box-shadow: 0 1px 3px rgba(86, 88, 100, 0.28);
  cursor: pointer;
}

.bar__split::-moz-range-track {
  height: 18px;
  border-radius: 8px;
  background: #eef0f4;
}

.bar__split::-moz-range-progress {
  height: 18px;
  border-radius: 8px 0 0 8px;
  background: var(--c, var(--green));
}

.bar__split::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--graphite);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.bar__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.bar__legend {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.bar__leg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.bar__leg-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.bar__leg-text b {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.bar__leg-text em {
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
}

.lg {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: none;
  margin-top: 2px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.lg--pile {
  background: #eef0f4;
}

.result--buy { opacity: 0.96; background: #fff8ef; }
.result__note { margin: 10px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; }

.check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}

.check input { width: auto; margin: 0; }

.tag-basal,
.tag-conc,
.tag-buy {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tag-basal { background: var(--gold-soft); color: var(--graphite); }
.tag-conc { background: var(--green-soft); color: var(--orange); }
.tag-buy { background: var(--paper-2); color: var(--muted); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}

.badge--ok { background: var(--gold-soft); color: var(--graphite); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--mute { background: var(--paper-2); color: var(--muted); }

.breakdown { margin-top: 16px; overflow: auto; }
.breakdown h3 { margin: 0 0 8px; }
.breakdown table + h3 { margin-top: 22px; }
.breakdown-heads { display: block; font-weight: 600; color: var(--muted); }
.breakdown table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}
.breakdown th, .breakdown td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.breakdown thead th { font-size: 12px; color: var(--muted); text-align: center; }
.breakdown th:first-child,
.breakdown td:first-child,
.breakdown tbody th,
.breakdown tfoot th { text-align: left; }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fff;
}

.foot { margin-top: 18px; font-size: 13px; }
.foot summary { cursor: pointer; font-weight: 700; color: var(--graphite); }
.foot__body p { max-width: 980px; }
.foot__legal {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.foot__legal a { color: var(--graphite); font-weight: 700; }

.ration-m,
.breakdown-m,
.card-fold { display: none; }

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.card-head h3,
.card-head h4 {
  flex: 1;
  min-width: 0;
}

@media screen and (max-width: 1280px) {
  body { padding-left: 16px; padding-right: 148px; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .herd { grid-template-columns: repeat(4, 1fr); }
  .crops, .results { grid-template-columns: 1fr 1fr; }
  .panel__head { flex-wrap: wrap; }
}

@media screen and (max-width: 1100px) {
  .herd { grid-template-columns: repeat(3, 1fr); }
  .panel__tools--herd { margin-left: 0; width: 100%; justify-content: flex-start; }
}

@media screen and (max-width: 760px) {
  html, body { overflow-x: clip; max-width: 100%; }
  body {
    padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .app {
    padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
    min-width: 0;
  }
  .layout, .panel, .panel__body { max-width: 100%; min-width: 0; }
  .top { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .top__brand { align-items: flex-start; gap: 10px; }
  .top__logo { width: 56px; }
  h1 { font-size: 20px; line-height: 1.2; }
  .top__brand p { font-size: 12px; }
  h2 { font-size: 18px; }

  .dock {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: var(--paper);
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 24px rgba(86, 88, 100, 0.12);
  }
  .dock .btn {
    width: auto;
    flex: 1 1 calc(33.33% - 6px);
    min-height: 44px;
    padding: 10px 8px;
    font-size: 13px;
    touch-action: manipulation;
  }

  .panel { padding: 14px 12px; }
  .panel__head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .panel[data-block="herd"] .panel__titles,
  .panel__titles { flex: 1 1 auto; }
  .panel__head p { max-width: none; }
  .panel__tools--herd {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .panel__tools--herd .field--inline input,
  .field--total input,
  .panel[data-block="herd"] .panel__tools--herd .field--inline input {
    width: 100%;
    font-size: 16px;
    padding: 10px 8px;
  }
  .panel[data-block="crops"] .panel__head .btn { width: 100%; min-height: 44px; }

  .fold { width: 44px; height: 44px; }

  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px 8px; }
  .kpi b { font-size: 17px; white-space: normal; }
  .herd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crops, .results { grid-template-columns: 1fr; }

  .table-wrap--ration { display: none; }
  .ration-m {
    display: grid;
    gap: 12px;
  }
  .card-fold {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 10px;
    cursor: pointer;
    place-items: center;
    padding: 0;
    touch-action: manipulation;
  }
  .card-fold::before {
    content: "";
    width: 12px;
    height: 12px;
    background: var(--ink);
    clip-path: polygon(12% 32%, 88% 32%, 50% 78%);
  }
  [data-card].is-folded > .card-head .card-fold::before,
  [data-card].is-folded > .crop__title .card-fold::before {
    clip-path: polygon(32% 12%, 78% 50%, 32% 88%);
  }
  .card-fold:hover { border-color: var(--orange); background: var(--gold-soft); }

  .ration-m__group {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: var(--paper-2);
  }
  .ration-m__group h3 { font-size: 16px; }
  .ration-m__group .card-head p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
  }
  .ration-m__group.is-folded .ration-m__body { display: none; }
  .ration-m__body { margin-top: 8px; }
  .ration-m__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
  }
  .ration-m__row:last-of-type { border-bottom: 0; }
  .ration-m__crop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: inherit;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
  }
  .ration-m__crop em { font-style: normal; }
  .ration-m__crop:hover em,
  .ration-m__crop:focus-visible em {
    color: var(--orange);
    text-decoration: underline;
  }
  .ration-m__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
  }
  .ration-m__bar .ration-add {
    width: 36px;
    height: 36px;
    margin-left: 0;
  }
  .crop {
    scroll-margin-top: 12px;
    scroll-margin-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  }
  .ration-m__row input {
    width: 88px;
    flex: 0 0 auto;
    font-size: 16px;
    text-align: right;
    padding: 8px 10px;
  }
  .ration-m__row--total {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    font-weight: 800;
  }
  .ration-m__basal {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
  }
  .ration-m__basal b { color: var(--ink); font-variant-numeric: tabular-nums; }

  .crop__title { flex-wrap: wrap; align-items: center; }
  .crop__actions { flex-wrap: wrap; justify-content: flex-end; }
  .crop__grid { grid-template-columns: 1fr; }
  .crop.is-folded .crop__grid,
  .crop.is-folded .crop__off-msg { display: none; }
  .result.is-folded .result__body { display: none; }
  .cuts__row {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas:
      "title title title"
      "dm yield btn";
  }
  .cuts__row strong {
    grid-area: title;
    padding-bottom: 0;
  }
  .cuts__foot { flex-wrap: wrap; }

  .breakdown {
    overflow: visible;
    max-width: 100%;
  }
  .breakdown > h3,
  .breakdown > table { display: none; }
  .breakdown-m {
    display: grid;
    gap: 12px;
    margin-top: 12px;
  }
  .breakdown-m__table,
  .breakdown-m__group {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: var(--paper-2);
  }
  .breakdown-m__table { background: #fff; }
  .breakdown-m__table h3 { font-size: 15px; }
  .breakdown-m__table .card-head p,
  .breakdown-m__group .card-head p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
  }
  .breakdown-m__group h4 { font-size: 15px; }
  .breakdown-m__table.is-folded .breakdown-m__groups { display: none; }
  .breakdown-m__group.is-folded .breakdown-m__rows { display: none; }
  .breakdown-m__groups {
    display: grid;
    gap: 10px;
    margin-top: 10px;
  }
  .breakdown-m__rows { margin-top: 8px; }
  .breakdown-m__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
  }
  .breakdown-m__row b { font-variant-numeric: tabular-nums; }
  .breakdown-m__row--total {
    border-bottom: 0;
    font-weight: 800;
    padding-top: 10px;
  }
  .result dl { grid-template-columns: 1fr; }
  .result dd { text-align: left; }

  .reset-dialog { width: calc(100% - 24px); padding: 16px; }
  .reset-dialog__actions { flex-direction: column-reverse; }
  .reset-dialog__actions .btn { width: 100%; min-height: 44px; }

  .foot__legal { line-height: 1.55; }

  input[type="number"],
  input[type="text"],
  .crop__name {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .herd { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .panel__tools--herd { grid-template-columns: 1fr; }
  .dock .btn { flex-basis: calc(50% - 6px); }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
  @page {
    @top-left { content: none; }
    @top-center { content: none; }
    @top-right { content: none; }
    @bottom-left {
      content: "https://m-complex.org";
      font-size: 8pt;
      color: #565864;
    }
    @bottom-center { content: none; }
    @bottom-right {
      content: counter(page);
      font-size: 8pt;
      color: #565864;
    }
  }
  html, body {
    background: #fff;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0 !important;
    margin: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body::before { display: none; }
  .print-watermark {
    display: block;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 140mm;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    z-index: 1000;
    pointer-events: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .app, .layout {
    max-width: none !important;
    width: 100%;
    padding: 0 !important;
    margin: 0;
  }
  .top { margin-bottom: 8px; }
  h1 { font-size: 18px; }
  .top__logo-link, .top__logo { display: none; }
  .top__brand p { font-size: 11px; }
  .panel__print-logo {
    display: block;
    width: 36px;
    height: auto;
    flex: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .top__tools, .dock, .btn, .hint, .foot, .fold, .bar__split, .bar__scale,
  .crop__on, .crop__actions, .check, .crop .note, .ration-m, .breakdown-m, .card-fold, .ration-add { display: none !important; }
  .result.is-folded .result__body { display: block !important; }
  .kpis {
    position: static;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 8px;
    width: 100%;
  }
  .kpi { padding: 5px 6px; min-width: 0; }
  .kpi b { font-size: 13px; }
  .kpi em { font-size: 8px; }
  .panel,
  .kpi,
  .crop,
  .result,
  .herd__card { box-shadow: none; }
  .panel {
    border: none !important;
    border-top: none !important;
    border-radius: 0;
    background: transparent;
    padding: 0 0 12px;
    margin: 0;
    overflow: visible;
    break-inside: auto;
    page-break-inside: auto;
    break-before: page;
    page-break-before: always;
  }
  .panel:first-of-type {
    break-before: auto;
    page-break-before: auto;
  }
  .panel__head {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    break-after: avoid;
    page-break-after: avoid;
  }
  .panel.is-folded .panel__body { display: block !important; }
  .herd { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .crops { display: none !important; }
  .results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }
  .crop, .result, .herd__card, .kpi {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .crop__grid, .result dl, .cuts, .cuts__row { min-width: 0; }
  .cuts {
    gap: 6px;
    padding: 6px 8px;
  }
  .cuts__row {
    grid-template-columns: 5.5em max-content max-content;
    column-gap: 28px;
    row-gap: 4px;
    align-items: baseline;
  }
  .cuts__row strong {
    padding-bottom: 0;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .cuts__row > span,
  .cuts__row > .btn { display: none !important; }
  .table-wrap, .breakdown { overflow: visible !important; max-width: 100%; width: 100%; }
  .ration { overflow: visible !important; max-width: 100%; }
  .top,
  .foot,
  .panel,
  .panel .panel__body,
  .panel .table-wrap {
    width: 273mm;
    max-width: 273mm;
    box-sizing: border-box;
  }
  .crops-print {
    display: table;
    width: 273mm !important;
    max-width: 273mm !important;
    min-width: 0 !important;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 9px;
  }
  .crops-print-col-name { width: 16%; }
  .crops-print-col-flag { width: 5%; }
  .crops-print-col-num { width: 5.4%; }
  .crops-print-col-capkg { width: 12%; }
  .crops-print-col-cuts { width: 10%; }
  .crops-print th,
  .crops-print td {
    border: 0.4pt solid #b8bac2;
    padding: 3px 4px;
    text-align: right;
    vertical-align: middle;
    overflow: hidden;
    word-break: break-word;
  }
  .crops-print thead th {
    font-size: 8px;
    font-weight: 700;
    text-align: center;
    background: var(--paper-2);
    line-height: 1.15;
    vertical-align: bottom;
  }
  .crops-print-unit {
    display: block;
    font-size: 7px;
    font-weight: 600;
    margin-top: 1px;
  }
  .crops-print th:first-child,
  .crops-print td:first-child,
  .crops-print tbody th {
    text-align: left;
    font-weight: 700;
  }
  .crops-print td:nth-child(10),
  .crops-print th:nth-child(10) {
    white-space: nowrap;
    overflow: hidden;
  }
  .crops-print tr.is-off td,
  .crops-print tr.is-off th {
    color: var(--muted);
  }
  .result {
    padding: 5px 7px;
    border-radius: 8px;
    border-left-width: 4px;
  }
  .result h3 {
    font-size: 10px;
    margin-bottom: 3px;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    line-height: 1.2;
  }
  .result .badge { font-size: 7px; padding: 1px 4px; }
  .result dl {
    font-size: 8.5px;
    line-height: 1.25;
    gap: 0 6px;
  }
  .result dd small,
  .result__note,
  .bar-wrap,
  .cuts-out { display: none !important; }
  .bar__legend {
    display: flex;
    flex-direction: column;
    margin-top: 3px;
    font-size: 7.5px;
    line-height: 1.2;
    gap: 2px;
  }
  .bar__leg {
    align-items: center;
  }
  .bar__leg-text {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 4px;
  }
  .bar__leg-text b,
  .bar__leg-text em {
    display: inline;
    font-size: 7.5px;
    white-space: nowrap;
  }
  .lg {
    width: 8px;
    height: 8px;
    margin-top: 1px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .lg--trench {
    background: var(--c, var(--green)) !important;
  }
  .panel[data-block="plan"] .panel__head p {
    display: none;
  }
  .breakdown {
    break-before: page;
    page-break-before: always;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .breakdown h3 {
    break-before: auto !important;
    page-break-before: auto !important;
    break-after: avoid;
    page-break-after: avoid;
    font-size: 11px;
    margin: 0 0 3px;
  }
  .breakdown table + h3 { margin-top: 8px; }
  .breakdown table {
    border-collapse: collapse !important;
    table-layout: fixed !important;
  }
  .breakdown th,
  .breakdown td {
    border: 0.4pt solid #b8bac2;
    vertical-align: middle;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    box-sizing: border-box;
    max-width: 0;
    font-size: 8.5px;
    line-height: 1.2;
    padding: 2px 3px;
  }
  .breakdown thead th {
    font-size: 7.5px;
    line-height: 1.15;
    font-weight: 700;
    text-align: center;
    white-space: normal;
  }
  .breakdown th:first-child,
  .breakdown td:first-child,
  .breakdown tbody th,
  .breakdown tfoot th {
    text-align: left;
    font-weight: 700;
    width: 16%;
    max-width: none;
  }
  .breakdown-heads {
    display: block;
    font-size: 7px;
    font-weight: 600;
    color: var(--muted);
  }
  .ration, .breakdown table { min-width: 0 !important; width: 100% !important; max-width: 100% !important; font-size: 11px; table-layout: fixed !important; }
  .ration {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    box-sizing: border-box;
  }
  .ration-col-crop { width: 22%; }
  .ration-col-g { width: 9.4%; }
  .ration-col-farm { width: 12.2%; }
  .ration th, .ration td, .breakdown th, .breakdown td { padding: 5px 5px; white-space: normal; }
  .ration th, .ration td {
    border: 0.4pt solid #b8bac2;
    vertical-align: middle;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    box-sizing: border-box;
    max-width: 0;
  }
  .ration thead th,
  .ration th:first-child,
  .ration td:first-child {
    position: static !important;
  }
  .ration thead th {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    white-space: normal !important;
  }
  .ration th:first-child, .ration td:first-child {
    white-space: normal;
    text-align: left !important;
    overflow-wrap: break-word;
  }
  .ration tbody td:not(:first-child),
  .ration tfoot td:not(:first-child) {
    text-align: right;
  }
  .ration th:last-child {
    white-space: normal !important;
  }
  .ration td:last-child {
    white-space: nowrap;
    overflow: hidden;
  }
  .ration input {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 11px;
  }
  .ration input,
  .ration .ration__num {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    text-align: right !important;
    font-size: 11px;
    appearance: textfield;
    -moz-appearance: textfield;
  }
  .ration input[type="number"]::-webkit-inner-spin-button,
  .ration input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
  }
  .ration .crop-h {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 5px;
    font-size: 11px;
    line-height: 1.25;
    max-width: none;
    text-align: left;
    cursor: default;
    box-shadow: none;
  }
  .ration .crop-h__name {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 11px;
    font-weight: 700;
  }
  .ration .swatch {
    width: 12px;
    height: 5px;
    flex: none;
    margin: 4px 0 0;
  }
  .ration .tag-basal,
  .ration .tag-conc,
  .ration .tag-buy {
    display: inline;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
    margin: 0 0 0 5px;
    vertical-align: middle;
    border-radius: 3px;
  }
  input {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .herd__card .field {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    font-size: 11px;
  }
  .herd input {
    width: auto !important;
    max-width: none !important;
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1.1;
    text-align: left !important;
    appearance: textfield;
    -moz-appearance: textfield;
  }
  .crop__grid label,
  .cuts__row label {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
  }
  .crop label span,
  .cuts label span {
    display: inline;
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1.2;
    flex: 0 1 auto;
  }
  .crop__grid input[type="number"],
  .cuts input[type="number"],
  .crop input[type="number"] {
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    flex: 0 0 auto;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1.2;
    text-align: left !important;
    white-space: nowrap;
    appearance: textfield;
    -moz-appearance: textfield;
  }
  .herd input[type="number"]::-webkit-inner-spin-button,
  .herd input[type="number"]::-webkit-outer-spin-button,
  .crop input[type="number"]::-webkit-inner-spin-button,
  .crop input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
  }
  .panel__tools--herd {
    gap: 28px;
  }
  .panel__tools--herd .field--inline input {
    width: auto !important;
    max-width: none !important;
    text-align: right;
    appearance: textfield;
    -moz-appearance: textfield;
  }
  .panel__tools--herd #days { width: 3.4ch !important; }
  .panel__tools--herd #reserve { width: 3.2ch !important; }
  .panel__tools--herd #total-heads { width: 7ch !important; }
  .panel__tools--herd input[type="number"]::-webkit-inner-spin-button,
  .panel__tools--herd input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
  }
}

/* End */
/* /local/components/mcomplex/feed.calculator/templates/.default/style.css?179083062739801 */
