:root {
  --ink: #17251f;
  --muted: #708078;
  --green-950: #102d25;
  --green-900: #17382d;
  --green-800: #204b3c;
  --green-700: #2e684f;
  --green-600: #3d7a5d;
  --green-100: #dcece2;
  --green-50: #edf6f0;
  --cream: #f7f4ec;
  --card: #fff;
  --line: #e6e9e5;
  --amber: #e8ad3b;
  --amber-soft: #fbf0d4;
  --red: #c85d56;
  --red-soft: #fae8e6;
  --blue: #4c78a8;
  --shadow: 0 12px 36px rgba(21, 51, 41, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f4f6f3; font-family: "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 258px; padding: 28px 20px 18px; background: var(--green-950); color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: #f3dd9f; }
.brand-mark svg { width: 40px; height: 40px; stroke: none; }
.brand-mark .shell { fill: #fffaf0; }.brand-mark .leaf { fill: #3e7b59; }.brand-mark .stem { stroke: #235b43; stroke-width: 1.5; fill: none; }
.brand strong { display: block; font: 800 19px/1 "Manrope", sans-serif; letter-spacing: -.5px; }
.brand span { display: block; margin-top: 5px; color: #a9beb4; font-size: 8px; font-weight: 700; letter-spacing: 3.5px; }
.nav-label { margin: 0 10px 10px; color: #738f83; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }
.nav-item { position: relative; width: 100%; height: 47px; padding: 0 12px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 12px; color: #9fb4ab; background: transparent; font-weight: 500; cursor: pointer; text-align: left; transition: .18s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: #285344; box-shadow: inset 3px 0 #ebc55d; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item em { margin-left: auto; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #f5dea0; background: #3e5e51; font-size: 10px; font-style: normal; }
.farm-card { margin-top: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.05); }
.farm-photo { height: 75px; overflow: hidden; }.farm-photo svg { width: 100%; height: 100%; display: block; stroke: none; }
.farm-card-copy { padding: 12px 0 13px 13px; display: inline-flex; flex-direction: column; }
.farm-card-copy span { color: #859d93; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; }
.farm-card-copy strong { margin-top: 3px; font-size: 13px; }
.farm-card > button, .user-card > button { float: right; border: 0; color: #93a99f; background: none; cursor: pointer; }
.farm-card > button { padding: 20px 12px; }.farm-card button svg, .user-card button svg { width: 18px; }
.reset-button { margin: 10px 2px 0; padding: 9px; display: flex; align-items: center; gap: 8px; border: 0; color: #829b90; background: none; font-size: 11px; cursor: pointer; }
.reset-button:hover { color: #fff; }.reset-button svg { width: 15px; }
.user-card { margin-top: 5px; padding: 14px 6px 0; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }
.avatar { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #e6b954, #bb742d); font-size: 11px; font-weight: 700; border: 0; }
.user-card div:nth-child(2) { min-width: 0; }.user-card strong, .user-card span { display: block; white-space: nowrap; }
.user-card strong { font-size: 12px; }.user-card span { margin-top: 3px; color: #779185; font-size: 10px; }.user-card button { margin-left: auto; }

.main { min-height: 100vh; margin-left: 258px; }
.topbar { position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4e8e3; background: rgba(249,250,248,.9); backdrop-filter: blur(16px); }
.menu-button, .mobile-brand { display: none !important; }
.search-box { width: min(370px, 35vw); height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 11px; color: #87918c; background: #eef1ed; transition: .2s; }
.search-box:focus-within { border-color: #8eae9c; background: #fff; box-shadow: 0 0 0 3px rgba(61,122,93,.1); }
.search-box svg { width: 17px; }.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #8e9993; }.search-box kbd { padding: 3px 6px; border: 1px solid #d7dcd8; border-radius: 5px; color: #9ba49f; background: #f8f9f7; font: 10px "DM Sans"; }
.top-actions { display: flex; align-items: center; gap: 12px; }.weather { padding-right: 17px; display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--line); }
.weather svg { width: 22px; height: 22px; color: #e4a92c; }.weather span { display: flex; flex-direction: column; }.weather strong { font-size: 12px; }.weather small { color: var(--muted); font-size: 9px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; transition: .18s; }
.icon-button:hover { border-color: #b9c9c0; background: var(--green-50); }.icon-button svg { width: 18px; }
.notification-button { position: relative; }.notification-button i { position: absolute; right: 8px; top: 7px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.avatar.small { width: 39px; height: 39px; border-radius: 11px; cursor: pointer; }

.page-content { max-width: 1540px; margin: 0 auto; padding: 30px 34px 60px; }
.page-heading { margin-bottom: 26px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--green-600); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.page-heading h1 { margin: 0; font: 800 clamp(26px, 2.4vw, 36px)/1.18 "Manrope", sans-serif; letter-spacing: -1.1px; }
.page-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; gap: 9px; }
.primary-btn, .secondary-btn { min-height: 42px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s; }
.primary-btn { border: 1px solid var(--green-800); color: #fff; background: var(--green-800); box-shadow: 0 7px 16px rgba(32,75,60,.16); }.primary-btn:hover { background: var(--green-950); transform: translateY(-1px); }
.secondary-btn { border: 1px solid #dce2dd; color: var(--ink); background: #fff; }.secondary-btn:hover { border-color: #b8c7bf; background: var(--green-50); }
.primary-btn svg, .secondary-btn svg { width: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.stat-card { position: relative; min-height: 148px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 4px 18px rgba(32,55,46,.03); }
.stat-card.featured { color: #fff; border-color: var(--green-900); background: var(--green-900); }.stat-card.featured::after { content: ""; position: absolute; width: 145px; height: 145px; right: -58px; top: -57px; border: 25px solid rgba(255,255,255,.035); border-radius: 50%; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }.stat-label { color: var(--muted); font-size: 11px; font-weight: 600; }.featured .stat-label { color: #a9c3b7; }
.stat-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: var(--green-700); background: var(--green-50); }.featured .stat-icon { color: #f4cf68; background: rgba(255,255,255,.1); }.stat-icon svg { width: 17px; }
.stat-value { margin-top: 13px; font: 800 27px/1 "Manrope"; letter-spacing: -.8px; }.stat-value small { margin-left: 3px; color: var(--muted); font: 500 11px "DM Sans"; letter-spacing: 0; }.featured .stat-value small { color: #a9c3b7; }
.stat-meta { margin-top: 12px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.stat-meta strong { color: var(--green-600); }.featured .stat-meta { color: #a9c3b7; }.featured .stat-meta strong { color: #f4cf68; }
.mini-progress { height: 5px; margin-top: 11px; overflow: hidden; border-radius: 10px; background: #e9ede9; }.featured .mini-progress { background: rgba(255,255,255,.11); }.mini-progress i { height: 100%; display: block; border-radius: inherit; background: var(--green-600); }.featured .mini-progress i { background: #eac35c; }

.dashboard-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .72fr); gap: 16px; }
.dashboard-grid > *, .bottom-grid > * { min-width: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 4px 18px rgba(32,55,46,.025); }
.card-head { padding: 19px 20px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-head h2 { margin: 0; font: 700 15px "Manrope"; letter-spacing: -.2px; }.card-head p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.link-btn { display: flex; align-items: center; gap: 3px; border: 0; color: var(--green-600); background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }.link-btn svg { width: 14px; }
.segmented { padding: 3px; display: flex; border-radius: 9px; background: #f1f3f0; }.segmented button { padding: 6px 9px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 600; cursor: pointer; }.segmented button.active { color: var(--green-900); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.chart-wrap { padding: 4px 20px 18px; }.chart-summary { display: flex; align-items: baseline; gap: 8px; }.chart-summary strong { font: 800 23px "Manrope"; }.chart-summary span { color: var(--muted); font-size: 10px; }
.bar-chart { position: relative; height: 180px; margin-top: 15px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; border-bottom: 1px solid #e8ebe7; }
.bar-chart::before, .bar-chart::after { content: ""; position: absolute; left: 0; right: 0; border-top: 1px dashed #e8ebe7; }.bar-chart::before { top: 33%; }.bar-chart::after { top: 66%; }
.bar-col { z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }.bar-col i { position: relative; width: min(31px, 70%); min-height: 5px; border-radius: 7px 7px 2px 2px; background: #b8d1c0; transition: .3s; }.bar-col.active i { background: var(--green-600); box-shadow: 0 6px 12px rgba(61,122,93,.18); }
.bar-col i:hover::after { content: attr(data-value); position: absolute; left: 50%; top: -28px; transform: translateX(-50%); padding: 4px 6px; border-radius: 5px; color: #fff; background: var(--ink); font-size: 9px; font-style: normal; }.bar-col span { height: 15px; color: var(--muted); font-size: 9px; }
.task-card .card-head { border-bottom: 1px solid var(--line); }.task-list { padding: 2px 14px 14px; }
.task-item { padding: 13px 6px; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid #eef0ed; cursor: pointer; }.task-item:last-child { border: 0; }.task-check { width: 19px; height: 19px; margin-top: 1px; flex: 0 0 auto; display: grid; place-items: center; border: 1.5px solid #cdd6d0; border-radius: 6px; color: #fff; background: #fff; }.task-check svg { width: 12px; opacity: 0; }.task-item.done .task-check { border-color: var(--green-600); background: var(--green-600); }.task-item.done svg { opacity: 1; }.task-item.done strong { color: #8c9691; text-decoration: line-through; }
.task-copy { min-width: 0; flex: 1; }.task-copy strong { display: block; font-size: 11px; }.task-copy span { margin-top: 4px; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; }.task-copy svg { width: 12px; }.task-tag { padding: 3px 6px; border-radius: 5px; color: #9a6b0f; background: var(--amber-soft); font-size: 8px; font-style: normal; font-weight: 700; }

.bottom-grid { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; }
.flock-list { padding: 0 20px 14px; }.flock-row { padding: 13px 0; display: grid; grid-template-columns: 40px minmax(110px,1fr) minmax(90px,.7fr) 70px; align-items: center; gap: 12px; border-top: 1px solid #eef0ed; }
.flock-symbol { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--green-600); background: var(--green-50); }.flock-symbol svg { width: 18px; }.flock-name strong, .flock-name span { display: block; }.flock-name strong { font-size: 11px; }.flock-name span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.lay-rate span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; }.lay-rate strong { display: block; margin-top: 2px; font-size: 12px; }.status { justify-self: end; padding: 5px 8px; border-radius: 8px; font-size: 8px; font-weight: 700; }.status.healthy, .status.delivered, .status.in-stock { color: #357355; background: var(--green-50); }.status.watch, .status.pending, .status.low { color: #95640b; background: var(--amber-soft); }.status.processing { color: #446a99; background: #eaf0f8; }.status.cancelled { color: #a44e48; background: var(--red-soft); }
.orders-table-wrap { overflow-x: auto; }.orders-table { width: 100%; border-collapse: collapse; white-space: nowrap; }.orders-table th { padding: 10px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #8a9690; background: #fafbf9; font-size: 8px; letter-spacing: .5px; text-align: left; text-transform: uppercase; }.orders-table td { padding: 14px 18px; border-bottom: 1px solid #eef0ed; font-size: 10px; }.orders-table tr:last-child td { border-bottom: 0; }.customer { display: flex; align-items: center; gap: 8px; }.customer-avatar { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--green-800); background: var(--green-50); font-size: 8px; font-weight: 700; }.customer strong, .customer span { display: block; }.customer strong { font-size: 10px; }.customer span { margin-top: 2px; color: var(--muted); font-size: 8px; }

.quick-actions { margin-bottom: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.quick-action { padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; transition: .18s; }.quick-action:hover { border-color: #abc1b5; box-shadow: var(--shadow); transform: translateY(-2px); }.quick-action > span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--green-700); background: var(--green-50); }.quick-action svg { width: 18px; }.quick-action strong, .quick-action small { display: block; }.quick-action strong { font-size: 11px; }.quick-action small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.table-card { overflow: hidden; }.large-table { width: 100%; border-collapse: collapse; }.large-table th { padding: 12px 18px; color: #819087; background: #f8faf7; font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .6px; }.large-table td { padding: 15px 18px; border-top: 1px solid var(--line); font-size: 11px; }.large-table td strong { font-size: 11px; }.large-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.row-action { width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }.row-action:hover { background: var(--green-50); }.row-action svg { width: 16px; }
.filter-row { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }.filter-tabs { padding: 4px; display: flex; gap: 2px; border-radius: 11px; background: #e9ede8; }.filter-tabs button { padding: 8px 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 10px; font-weight: 600; cursor: pointer; }.filter-tabs button.active { color: var(--green-900); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

.flock-grid, .inventory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }.flock-detail-card, .inventory-card { padding: 19px; }.detail-card-top { display: flex; align-items: flex-start; justify-content: space-between; }.big-symbol { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: var(--green-700); background: var(--green-50); }.big-symbol svg { width: 23px; height: 23px; }.flock-detail-card h3, .inventory-card h3 { margin: 15px 0 2px; font: 700 14px "Manrope"; }.flock-detail-card > p, .inventory-card > p { margin: 0; color: var(--muted); font-size: 10px; }.card-numbers { margin-top: 17px; padding-top: 15px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }.card-numbers span { color: var(--muted); font-size: 8px; text-transform: uppercase; }.card-numbers strong { display: block; margin-top: 3px; font-size: 14px; }.health-line { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }.health-line i { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #58a478; }
.stock-progress { height: 8px; margin: 15px 0 8px; overflow: hidden; border-radius: 8px; background: #edf0ec; }.stock-progress i { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }.stock-progress i.low { background: var(--amber); }.stock-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }.inventory-card .secondary-btn { width: 100%; margin-top: 16px; min-height: 36px; }
.insight-strip { margin-bottom: 16px; padding: 16px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid #ebd9ad; border-radius: 14px; background: #fffaf0; }.insight-strip > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #9a6b0f; background: var(--amber-soft); }.insight-strip strong { display: block; font-size: 11px; }.insight-strip p { margin: 3px 0 0; color: #806e4c; font-size: 10px; }.insight-strip .secondary-btn { margin-left: auto; white-space: nowrap; }

.modal-layer { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }.modal-layer.open { display: flex; }.modal-shade { position: absolute; inset: 0; background: rgba(10,26,21,.52); backdrop-filter: blur(4px); animation: fadeIn .18s ease; }.modal { position: relative; z-index: 1; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px rgba(11,30,23,.3); animation: rise .22s ease; }.modal-head { padding: 21px 22px 17px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); }.modal-head h2 { margin: 0; font: 800 20px "Manrope"; letter-spacing: -.5px; }.modal-head .eyebrow { margin-bottom: 4px; }.form { padding: 20px 22px 22px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.field { display: grid; gap: 6px; }.field.full { grid-column: 1 / -1; }.field label { color: #526159; font-size: 10px; font-weight: 700; }.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #dce2de; border-radius: 10px; outline: none; color: var(--ink); background: #fbfcfb; font-size: 12px; transition: .15s; }.field textarea { min-height: 78px; resize: vertical; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 3px rgba(61,122,93,.09); }.form-actions { margin-top: 19px; padding-top: 16px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.toast { position: fixed; z-index: 120; right: 25px; bottom: 25px; padding: 12px 17px; display: flex; align-items: center; gap: 9px; pointer-events: none; border-radius: 12px; color: #fff; background: var(--green-950); box-shadow: 0 13px 35px rgba(16,45,37,.28); font-size: 11px; transform: translateY(80px); opacity: 0; transition: .25s ease; }.toast.show { transform: translateY(0); opacity: 1; }.toast svg { width: 16px; color: #f3cf66; }
.empty-state { padding: 45px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.completion-pill { padding: 6px 9px; border-radius: 8px; color: var(--green-700); background: var(--green-50); font-size: 9px; font-weight: 700; white-space: nowrap; }
.batch-progress-list { padding: 0 20px 16px; }
.batch-progress-row { min-height: 62px; display: flex; align-items: center; gap: 11px; border-top: 1px solid #eef0ed; }
.batch-letter { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--green-700); font: 800 12px "Manrope"; }
.batch-letter.large { width: 47px; height: 47px; border-radius: 14px; font-size: 17px; }
.batch-progress-row > div:nth-child(2) { min-width: 0; flex: 1; }.batch-progress-row strong,.batch-progress-row small { display: block; }.batch-progress-row strong { font-size: 11px; }.batch-progress-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.batch-result { text-align: right; }.batch-progress-row .compact { min-height: 32px; padding: 0 11px; font-size: 9px; }
.status.recorded,.status.active,.status.open,.status.configured,.status.paid,.status.income,.status.received { color: #357355; background: var(--green-50); }
.status.set-balance,.status.setup-needed,.status.part-paid,.status.expense,.status.used { color: #95640b; background: var(--amber-soft); }
.bird-group-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.group-card { min-width: 0; padding: 18px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); cursor: pointer; text-align: left; transition: .18s; }.group-card:hover { border-color: #aec2b7; transform: translateY(-2px); box-shadow: var(--shadow); }
.group-copy { min-width: 0; flex: 1; }.group-copy small,.group-copy strong,.group-copy b,.group-copy em { display: block; }.group-copy small { color: var(--green-600); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }.group-copy strong { margin-top: 4px; font: 700 13px "Manrope"; }.group-copy b { margin-top: 8px; font-size: 16px; }.group-copy em { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.group-arrow { color: #9cab9f; }.group-arrow svg { width: 16px; }
.production-rule,.farm-fact-strip,.configuration-notice { margin-bottom: 16px; padding: 15px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid #cfe0d5; border-radius: 14px; background: #f4faf6; }
.production-rule > span,.farm-fact-strip > span,.configuration-notice > span { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: var(--green-700); background: #dfeee4; }.production-rule strong,.farm-fact-strip strong,.configuration-notice strong { display: block; font-size: 11px; }.production-rule p,.farm-fact-strip p,.configuration-notice p { margin: 3px 0 0; color: #627269; font-size: 10px; }.configuration-notice .secondary-btn { margin-left: auto; white-space: nowrap; }
.batch-entry-card { overflow: hidden; }.batch-entry-grid { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); }
.collection-batch { min-height: 112px; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 0; border-right: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: .18s; }.collection-batch:last-child { border-right: 0; }.collection-batch:hover { background: var(--green-50); }.collection-batch.complete { background: #f8fbf8; }.collection-batch > span:nth-child(2) strong,.collection-batch > span:nth-child(2) small,.collection-batch-result b,.collection-batch-result small { display: block; }.collection-batch > span:nth-child(2) strong { font-size: 11px; }.collection-batch > span:nth-child(2) small,.collection-batch-result small { margin-top: 2px; color: var(--muted); font-size: 8px; }.collection-batch-result { margin-top: auto; }.collection-batch-result b { color: var(--green-700); font-size: 10px; }
.month-analysis { min-width: 0; overflow: hidden; }.analysis-body { padding: 0 20px 20px; }.analysis-hero { padding: 16px; border-radius: 14px; color: #fff; background: var(--green-900); }.analysis-hero span,.analysis-hero small { display: block; color: #b1c7bd; font-size: 9px; }.analysis-hero strong { display: block; margin: 6px 0 4px; font: 800 31px "Manrope"; }.analysis-pairs { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.analysis-pairs div { padding: 11px; border: 1px solid var(--line); border-radius: 10px; }.analysis-pairs span { display: block; color: var(--muted); font-size: 8px; }.analysis-pairs strong { display: block; margin-top: 4px; font-size: 10px; }
.enhanced-empty span:first-child { width: 42px; height: 42px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 12px; color: var(--green-600); background: var(--green-50); }.enhanced-empty strong,.enhanced-empty p { display: block; }.enhanced-empty p { margin: 5px auto 0; max-width: 300px; font-size: 10px; }
.layer-batch-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }.layer-batch-card,.pullet-batch-card { padding: 18px; }.layer-batch-card h3,.pullet-batch-card h3 { margin: 14px 0 3px; font: 700 13px "Manrope"; }.layer-batch-card > p,.pullet-batch-card > p { margin: 0; color: var(--muted); font-size: 9px; }.layer-total,.pullet-bird-count { margin-top: 15px; padding: 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; background: #f7f9f6; }.layer-total span,.pullet-bird-count span { color: var(--muted); font-size: 8px; }.layer-total strong,.pullet-bird-count strong { font: 800 20px "Manrope"; }
.row-chips { margin-top: 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.row-chips span { padding: 7px 4px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 7px; text-align: center; }.row-chips b { display: block; margin-top: 2px; color: var(--ink); font-size: 10px; }.latest-rate { margin: 12px 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }.latest-rate strong { color: var(--green-700); font-size: 12px; }.layer-batch-card .secondary-btn,.pullet-batch-card .secondary-btn { width: 100%; min-height: 35px; }
.layer-performance-list { padding: 0 20px 15px; }.performance-row { min-height: 58px; display: grid; grid-template-columns: 34px 130px minmax(80px,1fr) minmax(130px,auto); align-items: center; gap: 10px; border-top: 1px solid var(--line); }.performance-row div:nth-child(2) strong,.performance-row div:nth-child(2) small { display: block; }.performance-row div:nth-child(2) strong,.performance-row > strong { font-size: 10px; }.performance-row div:nth-child(2) small { margin-top: 2px; color: var(--muted); font-size: 8px; }.performance-bar { height: 7px; overflow: hidden; border-radius: 7px; background: #edf0ec; }.performance-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }
.broiler-batch-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.broiler-batch-card { overflow: hidden; }.batch-banner { padding: 20px; display: flex; align-items: flex-start; justify-content: space-between; color: #fff; background: linear-gradient(135deg,var(--green-900),#2f6750); }.batch-banner .eyebrow { color: #f0d77e; }.batch-banner h3 { margin: 2px 0 4px; font: 700 16px "Manrope"; }.batch-banner p { margin: 0; color: #b7cdc2; font-size: 9px; }.broiler-numbers { padding: 18px 20px; display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }.broiler-numbers div { padding-left: 12px; border-left: 1px solid var(--line); }.broiler-numbers div:first-child { padding-left: 0; border: 0; }.broiler-numbers span,.broiler-numbers strong { display: block; }.broiler-numbers span { color: var(--muted); font-size: 8px; }.broiler-numbers strong { margin-top: 5px; font-size: 13px; }.batch-timeline { padding: 13px 20px 5px; display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }.batch-timeline i { width: 7px; height: 7px; margin-right: 6px; display: inline-block; border-radius: 50%; background: var(--green-600); }.batch-card-actions { padding: 13px 20px 18px; display: flex; gap: 8px; }.batch-card-actions .secondary-btn { flex: 1; }
.milestone-card { margin-bottom: 16px; padding: 22px; display: flex; align-items: center; gap: 16px; overflow: hidden; border-radius: 18px; color: #fff; background: linear-gradient(135deg,#194536,#2f7656); box-shadow: var(--shadow); }.milestone-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: #f1ce69; background: rgba(255,255,255,.1); }.milestone-icon svg { width: 25px; height: 25px; }.milestone-card .eyebrow { color: #f1ce69; }.milestone-card h2 { margin: 0; font: 700 18px "Manrope"; }.milestone-card p { margin: 5px 0 0; color: #bdd1c8; font-size: 10px; }.milestone-age { margin-left: auto; padding: 9px 12px; border-radius: 10px; color: #f6df9a; background: rgba(255,255,255,.1); font-size: 11px; font-weight: 700; }
.pullet-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }.cage-facts { margin: 13px 0; display: flex; gap: 12px; color: var(--muted); font-size: 8px; }.cage-facts span { display: flex; align-items: center; gap: 4px; }.cage-facts svg { width: 13px; }.checklist-grid { padding: 0 20px 20px; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }.checklist-grid div { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }.checklist-grid div > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--green-700); background: var(--green-50); }.checklist-grid svg { width: 15px; }.checklist-grid strong,.checklist-grid small { display: block; }.checklist-grid strong { margin-top: 10px; font-size: 9px; }.checklist-grid small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.inventory-legend { display: flex; gap: 15px; color: var(--muted); font-size: 9px; }.inventory-legend span { display: flex; align-items: center; gap: 6px; }.inventory-legend i { width: 8px; height: 8px; border-radius: 50%; }.feed-dot { background: var(--green-600); }.litter-dot { background: var(--amber); }.supply-dot { background: var(--blue); }.stock-amount { margin: 15px 0; padding: 12px; border-radius: 10px; background: #f7f9f6; }.stock-amount strong { font: 800 21px "Manrope"; }.stock-amount span { margin-left: 5px; color: var(--muted); font-size: 9px; }
.finance-lock-card { max-width: 610px; margin: 35px auto; padding: 38px; text-align: center; }.finance-lock-icon { width: 64px; height: 64px; margin: 0 auto 17px; display: grid; place-items: center; border-radius: 19px; color: #f1cb67; background: var(--green-900); }.finance-lock-icon svg { width: 27px; height: 27px; }.finance-lock-card h2 { margin: 4px 0 7px; font: 800 23px "Manrope"; }.finance-lock-card > p { max-width: 400px; margin: 0 auto; color: var(--muted); font-size: 11px; }.inline-pin-form { max-width: 390px; margin: 22px auto 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }.inline-pin-form .primary-btn { grid-column: 1/-1; }.security-note { display: block; max-width: 420px; margin: 0 auto; color: #8c9791; font-size: 8px; line-height: 1.5; }
.batch-picker { padding: 18px 22px 22px; }.batch-picker > p { margin: 0 0 12px; color: var(--muted); font-size: 10px; }.batch-picker > button { width: 100%; min-height: 58px; padding: 9px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; text-align: left; }.batch-picker > button + button { margin-top: 7px; }.batch-picker > button:hover { border-color: #b3c7bb; background: var(--green-50); }.batch-picker button > span:nth-child(2) { flex: 1; }.batch-picker strong,.batch-picker small { display: block; }.batch-picker strong { font-size: 10px; }.batch-picker small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.egg-form-summary,.map-summary { margin: 14px 0; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }.egg-form-summary span,.map-summary span { padding: 10px; border-right: 1px solid var(--line); background: #f8faf7; }.egg-form-summary span:last-child,.map-summary span:last-child { border: 0; }.egg-form-summary small,.egg-form-summary strong,.map-summary small,.map-summary strong { display: block; }.egg-form-summary small,.map-summary small { color: var(--muted); font-size: 7px; text-transform: uppercase; }.egg-form-summary strong,.map-summary strong { margin-top: 3px; font-size: 11px; }.egg-entry-scroll { max-height: 43vh; overflow: auto; border: 1px solid var(--line); border-radius: 11px; }.egg-entry-table,.cage-map-table { width: 100%; border-collapse: collapse; }.egg-entry-table th,.cage-map-table th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; color: var(--muted); background: #f5f8f4; font-size: 8px; text-align: left; text-transform: uppercase; }.egg-entry-table td,.cage-map-table td,.cage-map-table tfoot td { padding: 7px 10px; border-top: 1px solid var(--line); font-size: 9px; }.egg-entry-table input { width: 72px; min-height: 31px; padding: 5px 8px; border: 1px solid #d8e0da; border-radius: 7px; outline: 0; }.egg-entry-table input:focus { border-color: var(--green-600); box-shadow: 0 0 0 2px rgba(61,122,93,.1); }.empty-cage { color: #9ba49f; background: #f6f7f5; }.form-hint { margin: 10px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }.map-modal { padding: 18px 22px 22px; }.cage-map-table tfoot { color: var(--green-800); background: var(--green-50); font-weight: 700; }.configuration-mini { margin-bottom: 14px; padding: 11px 12px; display: flex; justify-content: space-between; border-radius: 10px; color: var(--green-800); background: var(--green-50); font-size: 9px; }
.daily-history-card { margin-top: 16px; overflow: hidden; }.analysis-stack { margin-top: 16px; display: grid; gap: 16px; }.detailed-analysis { min-width: 0; overflow: hidden; }
.period-summary { margin: 0 20px 18px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }.period-summary div { padding: 13px; border-right: 1px solid var(--line); background: #f8faf7; }.period-summary div:last-child { border: 0; }.period-summary span,.period-summary strong { display: block; }.period-summary span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .4px; }.period-summary strong { margin-top: 5px; font-size: 13px; }
.analysis-section { margin: 0 20px 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }.analysis-title { padding: 12px 14px; background: #f7f9f6; }.analysis-title strong,.analysis-title span { display: block; }.analysis-title strong { font-size: 10px; }.analysis-title span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.performance-table { width: 100%; border-collapse: collapse; }.performance-table th { padding: 9px 12px; color: var(--muted); background: #fff; font-size: 7px; text-align: left; text-transform: uppercase; }.performance-table td { padding: 10px 12px; border-top: 1px solid var(--line); font-size: 9px; }.performance-table td:last-child { min-width: 160px; }.rate-number { display: inline-block; width: 42px; font-weight: 700; }.rate-track { width: calc(100% - 48px); height: 5px; display: inline-block; overflow: hidden; border-radius: 5px; background: #e8ede9; vertical-align: middle; }.rate-track i { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }
.box-analysis { margin: 0 20px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }.box-analysis summary { padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; background: #f7f9f6; cursor: pointer; list-style: none; }.box-analysis summary::-webkit-details-marker { display: none; }.box-analysis summary strong,.box-analysis summary small { display: block; }.box-analysis summary strong { font-size: 10px; }.box-analysis summary small { margin-top: 3px; color: var(--muted); font-size: 8px; }.box-analysis summary svg { width: 16px; color: var(--green-600); transition: transform .2s; }.box-analysis[open] summary svg { transform: rotate(180deg); }
.flock-daily-card { margin-top: 16px; }.flock-task-grid { padding: 0 20px 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.flock-task { min-height: 52px; padding: 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }.flock-task:hover { border-color: #b6c9be; background: var(--green-50); }.flock-task > span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #cdd8d1; border-radius: 7px; color: transparent; }.flock-task > span svg { width: 13px; }.flock-task strong { font-size: 9px; }.flock-task.done > span { color: #fff; border-color: var(--green-600); background: var(--green-600); }.flock-task.done strong { color: #85928b; text-decoration: line-through; }
.egg-entry-table .row-start td { border-top: 2px solid #b9cdbf; }.protected-edit-note { margin-bottom: 13px; padding: 11px 12px; display: flex; align-items: center; gap: 9px; border-radius: 10px; color: #75613b; background: #fff8e8; }.protected-edit-note > svg { width: 17px; flex: 0 0 auto; }.protected-edit-note strong,.protected-edit-note small { display: block; }.protected-edit-note strong { font-size: 9px; }.protected-edit-note small { margin-top: 3px; font-size: 8px; }.cage-bird-input { width: 86px !important; }.mortality-reason { margin-top: 13px; }
.admin-unlock { padding: 26px 22px; text-align: center; }.admin-unlock h3 { margin: 0 0 5px; font: 700 17px "Manrope"; }.admin-unlock p { max-width: 360px; margin: 0 auto 17px; color: var(--muted); font-size: 10px; }.admin-unlock.compact-unlock { padding: 0 0 15px; }.admin-unlock.compact-unlock .finance-lock-icon { width: 49px; height: 49px; margin-bottom: 11px; }.admin-unlock.compact-unlock p { margin-bottom: 0; }
.drawer-shade, .mobile-nav { display: none; }
@keyframes fadeIn { from { opacity: 0; } } @keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .flock-grid, .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .bird-group-grid { grid-template-columns: repeat(2,1fr); }
  .layer-batch-grid { grid-template-columns: repeat(3,1fr); }
  .batch-entry-grid { grid-template-columns: repeat(3,1fr); }.collection-batch { border-bottom: 1px solid var(--line); }
  .checklist-grid { grid-template-columns: repeat(2,1fr); }
  .flock-task-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 780px) {
  body { padding-bottom: 72px; }
  .sidebar { width: 270px; transform: translateX(-105%); box-shadow: 18px 0 55px rgba(0,0,0,.2); transition: transform .25s ease; }.sidebar.open { transform: translateX(0); }
  .drawer-shade { position: fixed; inset: 0; z-index: 45; display: block; pointer-events: none; opacity: 0; background: rgba(5,20,14,.4); transition: .2s; }.drawer-shade.open { pointer-events: auto; opacity: 1; }
  .main { margin-left: 0; }.topbar { height: 64px; padding: 0 17px; }.menu-button { display: grid !important; width: 37px; height: 37px; }.mobile-brand { display: block !important; margin-left: 10px; font: 800 15px "Manrope"; }.mobile-brand span { color: var(--green-600); font-size: 9px; text-transform: uppercase; }
  .search-box { display: none; }.top-actions { margin-left: auto; }.weather { display: none; }.top-actions .avatar { display: none; }
  .page-content { padding: 23px 17px 30px; }.page-heading { align-items: flex-start; }.page-heading p { max-width: 330px; }.page-heading .secondary-btn { display: none; }.page-heading h1 { font-size: 27px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.stat-card { min-height: 140px; padding: 16px; }.stat-value { font-size: 23px; }
  .quick-actions { grid-template-columns: 1fr; }.quick-action { padding: 12px; }
  .flock-grid, .inventory-grid { grid-template-columns: 1fr; }.filter-row { align-items: stretch; flex-direction: column; }.filter-tabs { overflow-x: auto; }
  .layer-batch-grid { grid-template-columns: repeat(2,1fr); }.broiler-batch-grid,.pullet-grid { grid-template-columns: 1fr; }
  .performance-row { grid-template-columns: 34px 95px 1fr; }.performance-row > strong { grid-column: 2/-1; padding-bottom: 10px; }
  .configuration-notice { align-items: flex-start; }.configuration-notice .secondary-btn { display: none; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 60; height: 70px; padding: 7px 12px max(7px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-top: 1px solid #dde3de; background: rgba(255,255,255,.96); box-shadow: 0 -8px 30px rgba(20,45,36,.08); backdrop-filter: blur(12px); }
  .mobile-nav button { height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; color: #86928c; background: none; font-size: 8px; }.mobile-nav button.active { color: var(--green-700); }.mobile-nav svg { width: 19px; height: 19px; }.mobile-nav .mobile-add { width: 48px; height: 48px; margin: -25px auto 0; border: 5px solid #f4f6f3; border-radius: 50%; color: #fff; background: var(--green-700); box-shadow: 0 5px 15px rgba(32,75,60,.22); }.mobile-nav .mobile-add svg { width: 21px; height: 21px; }
  .toast { right: 16px; bottom: 86px; }
}

@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }.stat-card { min-height: 126px; }.task-list { display: block; }.bar-chart { height: 150px; gap: 5px; }.bar-col i { width: 22px; }
  .page-heading { display: block; }.heading-actions { margin-top: 16px; }.heading-actions .primary-btn { flex: 1; }.flock-row { grid-template-columns: 36px 1fr 58px; }.flock-row .lay-rate { display: none; }
  .form-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.modal-layer { padding: 0; align-items: flex-end; }.modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; }.large-table th:nth-child(3), .large-table td:nth-child(3) { display: none; }
  .insight-strip { align-items: flex-start; }.insight-strip .secondary-btn { display: none; }
  .bird-group-grid,.layer-batch-grid { grid-template-columns: 1fr; }.batch-entry-grid { grid-template-columns: 1fr; }.collection-batch { min-height: 82px; flex-direction: row; align-items: center; border-right: 0; }.collection-batch-result { margin: 0 0 0 auto; text-align: right; }
  .batch-progress-row .status { display: none; }.batch-result { display: none; }.batch-progress-list { padding-inline: 14px; }
  .analysis-pairs { grid-template-columns: 1fr 1fr; }.broiler-numbers { padding-inline: 14px; }.broiler-numbers div { padding-left: 8px; }.broiler-numbers strong { font-size: 11px; }
  .milestone-card { align-items: flex-start; padding: 18px; }.milestone-age { display: none; }.checklist-grid { grid-template-columns: 1fr 1fr; padding-inline: 14px; }.inline-pin-form { grid-template-columns: 1fr; }.finance-lock-card { padding: 25px 18px; }
  .egg-form-summary,.map-summary { grid-template-columns: 1fr 1fr; }.egg-form-summary span:nth-child(2),.map-summary span:nth-child(2) { border-right: 0; }.egg-form-summary span,.map-summary span { border-bottom: 1px solid var(--line); }.inventory-legend { flex-wrap: wrap; }
  .period-summary { grid-template-columns: 1fr 1fr; margin-inline: 14px; }.period-summary div:nth-child(2) { border-right: 0; }.period-summary div { border-bottom: 1px solid var(--line); }.analysis-section,.box-analysis { margin-inline: 14px; }.performance-table td:last-child { min-width: 120px; }.flock-task-grid { grid-template-columns: 1fr; padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
