.toast-container{z-index:999999;pointer-events:none;flex-direction:column;gap:12px;width:min(420px,100vw - 40px);display:flex;position:fixed;top:20px;right:20px}.toast{pointer-events:auto;border-radius:10px;width:100%;min-height:58px;animation:.25s ease-out toast-slide-in;box-shadow:0 10px 30px #0000002e}.toast-content{align-items:center;gap:12px;padding:15px 16px;display:flex}.toast-success{color:#fff;background:#15803d}.toast-error{color:#fff;background:#dc2626}.toast-warning{color:#fff;background:#d97706}.toast-info{color:#fff;background:#2563eb}.toast-icon{background:#fff3;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;font-weight:700;display:flex}.toast-message{flex:1;font-size:14px;font-weight:500;line-height:1.4}.toast-close{color:inherit;cursor:pointer;opacity:.8;background:0 0;border:none;padding:2px 5px;font-size:22px;line-height:1}.toast-close:hover{opacity:1}@keyframes toast-slide-in{0%{opacity:0;transform:translate(30px)}to{opacity:1;transform:translate(0)}}@media (width<=600px){.toast-container{width:calc(100vw - 24px);top:12px;right:12px}}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{color:#17243a;-webkit-font-smoothing:antialiased;background:#f3f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px}button,input,select{font:inherit}button{color:inherit}.app-shell{background:#f3f7fb;min-height:100vh;display:flex}.sidebar{z-index:20;color:#374862;background:#f9fbfd;border-right:1px solid #e4ebf2;flex-direction:column;flex:0 0 272px;width:272px;height:100vh;display:flex;position:sticky;top:0;overflow:hidden}.sidebar__brand{border-bottom:1px solid #edf1f5;align-items:center;gap:12px;min-height:72px;padding:14px 20px;display:flex}.sidebar__brand-mark{color:#fff;background:linear-gradient(140deg,#138765,#0a5e4e);border-radius:13px;flex:none;place-items:center;width:42px;height:42px;display:grid;box-shadow:0 5px 12px #0a5e4e33}.sidebar__brand strong,.sidebar__brand small{display:block}.sidebar__brand strong{color:#0b413b;letter-spacing:-.03em;font-size:18px}.sidebar__brand small{color:#76869a;margin-top:2px;font-size:10px}.sidebar__farm-selector{padding:12px 16px 4px;display:none}.sidebar__farm-selector .farm-selector{flex-direction:column;align-items:stretch;gap:5px}.sidebar__farm-selector .farm-selector label{color:#7a899b;text-transform:uppercase;font-size:10px;font-weight:700}.sidebar__farm-selector .farm-selector select{color:#304159;background:#fff;border:1px solid #e1e8ef;border-radius:9px;width:100%;min-width:0;padding:9px 10px;font-size:12px}.sidebar__nav{scrollbar-color:#d9e2eb transparent;scrollbar-width:thin;flex-direction:column;flex:1;gap:4px;min-height:0;padding:14px 10px 8px;display:flex;overflow-y:auto}.sidebar__link{color:#52627a;border-radius:10px;align-items:center;gap:12px;min-height:42px;padding:10px 12px;font-size:12px;font-weight:600;text-decoration:none;transition:background .12s,color .12s;display:flex}.sidebar__link>span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.sidebar__link:hover{color:#0a6b58;background:#edf5f3}.sidebar__link--active{color:#fff;background:#0d604f;box-shadow:0 5px 13px #0d604f26}.sidebar__link--active:hover{color:#fff;background:#0d604f}.sidebar__group{gap:2px;display:grid}.sidebar__group-head{align-items:center;gap:2px;display:flex}.sidebar__group-head>.sidebar__link{flex:1;min-width:0}.sidebar__toggle{color:#8491a3;cursor:pointer;background:0 0;border:0;border-radius:9px;flex:none;place-items:center;width:32px;height:38px;display:grid}.sidebar__toggle:hover{color:#275a4e;background:#edf2f5}.sidebar__chevron--open{transform:rotate(90deg)}.sidebar__children{border-left:1px solid #dbe4eb;gap:2px;margin:0 0 4px 21px;padding-left:14px;display:grid}.sidebar__child{color:#718096;border-radius:7px;padding:7px 9px;font-size:11px;text-decoration:none}.sidebar__child:hover,.sidebar__child--active{color:#0a6b58;background:#edf5f3}.sidebar__footer{background:radial-gradient(circle at 100% 0,#13856d1a,#0000 55%),#fff;border:1px solid #e4ebf2;border-radius:14px;flex:none;gap:10px;margin:8px 10px 12px;padding:12px;display:grid;box-shadow:0 1px 2px #0f172a0a}.sidebar__account{align-items:center;gap:10px;min-width:0;display:flex}.sidebar__avatar{color:#fff;background:linear-gradient(145deg,#b0d7c1,#4c9177);border-radius:50%;flex:none;place-items:center;width:36px;height:36px;font-size:12px;font-weight:800;display:grid}.sidebar__account-copy{gap:2px;min-width:0;display:grid}.sidebar__account-copy strong,.sidebar__account-copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar__account-copy strong{color:#26364d;font-size:13px}.sidebar__account-copy small{color:#7b8a9f;font-size:11px}.sidebar__logout{color:#c0353c;cursor:pointer;background:#fff7f7;border:1px solid #f1d4d5;border-radius:10px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:38px;font-size:13px;font-weight:700;transition:background .15s,border-color .15s,color .15s;display:flex}.sidebar__logout:hover{color:#fff;background:#e5575d;border-color:#e5575d}.sidebar__logout:focus-visible{outline-offset:2px;outline:2px solid #e5575d}.sidebar-scrim{display:none}.app-shell__main{flex:1;min-width:0}.header{z-index:10;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#fafcfef0;border-bottom:1px solid #e5ebf2;align-items:center;gap:16px;height:72px;padding:0 22px;display:flex;position:sticky;top:0}.header__menu-button{color:#263a52;cursor:pointer;background:0 0;border:0;border-radius:10px;flex:none;place-items:center;width:38px;height:38px;display:none}.header__menu-button:hover{background:#edf2f7}.header__search-wrap{color:#7c8ca1;background:#f0f4f8;border:1px solid #e6ebf2;border-radius:999px;flex:1;align-items:center;width:min(100%,680px);height:42px;margin-right:auto;display:flex;position:relative}.header__search-icon{flex:none;margin-left:15px}.header__search-wrap input{color:#26384f;background:0 0;border:0;outline:0;width:100%;min-width:0;height:100%;padding:0 15px 0 10px;font-size:13px}.header__search-wrap input::placeholder{color:#8a98aa}.header__search-wrap:focus-within{background:#f6f9fc;border-color:#b9d0dc;box-shadow:0 0 0 3px #397d8f14}.header__search-results{z-index:30;background:#fff;border:1px solid #e2e9f0;border-radius:13px;max-height:320px;padding:5px;position:absolute;top:calc(100% + 8px);left:0;right:0;overflow-y:auto;box-shadow:0 14px 30px #1f304426}.header__search-results a{color:#44566f;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 11px;font-size:12px;text-decoration:none;display:flex}.header__search-results a:hover{color:#0a6b58;background:#f0f6f5}.header__search-results p{color:#8290a3;margin:0;padding:12px;font-size:12px}.header__farm{flex:none;align-items:center;display:flex}.header__farm .farm-selector{gap:0}.header__farm .farm-selector label{display:none}.header__farm .farm-selector select{color:#44556c;border-color:#e2e9f0;border-radius:10px;width:184px;min-width:0;padding:9px 11px;font-size:11px}.header__alerts-link{color:#41536d;border-radius:50%;flex:none;place-items:center;width:38px;height:38px;text-decoration:none;display:grid}.header__alerts-link:hover{color:#0b705b;background:#edf3f7}.header__account{flex:none;position:relative}.header__user{cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-radius:999px;align-items:center;gap:10px;min-width:150px;padding:4px 10px 4px 4px;transition:background .15s,border-color .15s;display:flex}.header__user:hover,.header__user--open{background:#fff;border-color:#e4ebf2}.header__user-chevron{color:#8390a3;flex:none;transition:transform .15s;transform:rotate(90deg)}.header__user--open .header__user-chevron{transform:rotate(-90deg)}.header__menu{z-index:40;background:#fff;border:1px solid #e4ebf2;border-radius:14px;width:260px;padding:8px;display:grid;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 16px 40px #0f172a24}.header__menu-who{border-bottom:1px solid #edf1f5;align-items:center;gap:10px;margin-bottom:6px;padding:8px 8px 12px;display:flex}.header__menu-who>span:last-child{gap:2px;min-width:0;display:grid}.header__menu-who strong,.header__menu-who small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.header__menu-who strong{color:#26364d;font-size:13px}.header__menu-who small{color:#7b8a9f;font-size:11px}.header__menu a,.header__menu button{color:#374862;cursor:pointer;background:0 0;border:0;border-radius:9px;align-items:center;gap:10px;width:100%;padding:9px 10px;font-size:13px;font-weight:600;text-decoration:none;display:flex}.header__menu a:hover{color:#0b705b;background:#f1f6f4}.header__menu .header__menu-logout{color:#c0353c;border-top:1px solid #edf1f5;border-radius:0 0 9px 9px;margin-top:6px}.header__menu .header__menu-logout:hover{background:#fff1f1;border-radius:9px}.header__avatar{color:#fff;background:linear-gradient(145deg,#b0d7c1,#4c9177);border:2px solid #fff;border-radius:50%;flex:none;place-items:center;width:38px;height:38px;font-size:12px;font-weight:800;display:grid;box-shadow:0 0 0 1px #dce8e1}.header__user-copy{flex-direction:column;gap:3px;min-width:0;display:flex}.header__user-copy strong,.header__user-copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.header__user-copy strong{color:#26364d;font-size:12px}.header__user-copy small{color:#8390a3;font-size:10px}.app-shell__content{min-width:0;padding:20px}@media (width<=1050px){.sidebar{flex-basis:248px;width:248px}.header{gap:10px;padding:0 16px}.header__farm .farm-selector select{width:150px}.header__user{min-width:0;padding-right:4px}.header__user-chevron,.header__user-copy{display:none}}@media (width<=820px){.sidebar{flex-basis:auto;width:272px;height:100dvh;transition:transform .18s;position:fixed;top:0;bottom:0;left:0;transform:translate(-102%)}.sidebar--open{transform:translate(0)}.sidebar-scrim{z-index:19;background:#1827394d;border:0;display:block;position:fixed;inset:0}.header__menu-button{display:grid}.header__user-copy{display:flex}.header__user{min-width:0}.app-shell__content{padding:18px}}@media (width<=620px){.header{gap:8px;height:62px;padding:0 10px}.header__menu-button{width:34px;height:36px}.header__search-wrap{height:38px}.header__search-wrap input{padding-right:8px;font-size:11px}.header__farm{display:none}.sidebar__farm-selector{display:block}.header__alerts-link{width:32px;height:34px}.header__user-copy{display:none}.header__avatar{width:32px;height:32px}.app-shell__content{padding:14px 12px 20px}}@media (width<=720px){.app-shell__content :has(>table[data-cards]){box-shadow:none!important;background:0 0!important;border:0!important;overflow:visible!important}.app-shell__content table[data-cards]{display:block;background:0 0!important;border:0!important;width:100%!important;min-width:0!important}.app-shell__content table[data-cards] thead{display:none}.app-shell__content table[data-cards] tbody{gap:10px;display:grid}.app-shell__content table[data-cards] tbody tr{border:1px solid #e4ebf2;border-radius:14px;padding:12px 14px;display:block;box-shadow:0 1px 2px #0f172a0a;background:#fff!important}.app-shell__content table[data-cards] td{overflow-wrap:anywhere;min-width:0;min-height:28px;display:block;position:relative;text-align:left!important;white-space:normal!important;background:0 0!important;border:0!important;padding:6px 0 6px max(104px,36%)!important}.app-shell__content table[data-cards] td :is(small,.poultry-table-subtext){display:block}.app-shell__content table[data-cards] td:before{content:attr(data-label);color:#7b8a9f;letter-spacing:.04em;text-transform:uppercase;width:calc(max(104px,36%) - 12px);font-size:11px;font-weight:700;position:absolute;top:8px;left:0}.app-shell__content table[data-cards] td:first-child{font-size:15px;padding-bottom:8px!important}.app-shell__content table[data-cards] td[data-label=""]{padding-left:0!important}.app-shell__content table[data-cards] td[data-label=""]:before{display:none}.app-shell__content table[data-cards] td[data-cell-actions]{margin-top:6px;border-top:1px solid #edf1f5!important;padding-top:12px!important;padding-left:0!important}.app-shell__content table[data-cards] td[data-cell-actions]:before{display:none}.app-shell__content table[data-cards] td[data-cell-actions]>*{flex-wrap:wrap;gap:8px;display:flex}.app-shell__content table[data-cards] td[data-cell-actions] button,.app-shell__content table[data-cards] td[data-cell-actions] a{flex:auto;min-height:38px}}.subscription-banner{border:1px solid;border-radius:12px;align-items:flex-start;gap:10px;margin-bottom:16px;padding:12px 16px;font-size:13px;line-height:1.45;display:flex}.subscription-banner svg{flex:none;margin-top:1px}.subscription-banner--info{color:#1f4f9a;background:#f1f6ff;border-color:#cfe0fb}.subscription-banner--warning{color:#8a5a00;background:#fff8e6;border-color:#f3dfaa}.subscription-banner--danger{color:#a12a31;background:#fff1f2;border-color:#f4c7ca}:root{--lv-bg:#f3f7fb;--lv-surface:#fff;--lv-surface-muted:#f7fafc;--lv-border:#e4ebf2;--lv-border-strong:#d3dde8;--lv-text:#17243a;--lv-text-soft:#4f607a;--lv-text-muted:#7b8a9f;--lv-primary:#0d604f;--lv-primary-hover:#0a4f41;--lv-primary-soft:#e8f4f0;--lv-accent:#13856d;--lv-danger:#d63c43;--lv-danger-hover:#b92f36;--lv-danger-soft:#fff1f1;--lv-focus:0 0 0 3px #13856d29;--lv-radius-lg:15px;--lv-radius:11px;--lv-radius-sm:8px;--lv-shadow:0 7px 20px #2a405c0b;--lv-shadow-modal:0 24px 60px #12203438}.primary-button,.secondary-button,.edit-button,.delete-button,.danger-button,.clear-filters-button,.table-action{white-space:nowrap;cursor:pointer;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:38px;padding:0 15px;font-size:13px;font-weight:650;line-height:1;text-decoration:none;transition:background-color .12s,border-color .12s,color .12s,box-shadow .12s;display:inline-flex}.primary-button{border-color:var(--lv-primary);background:var(--lv-primary);color:#fff;box-shadow:0 4px 12px #0d604f29}.primary-button:hover:not(:disabled){border-color:var(--lv-primary-hover);background:var(--lv-primary-hover)}.secondary-button,.clear-filters-button,.table-action{border-color:var(--lv-border-strong);background:var(--lv-surface);color:var(--lv-text-soft)}.secondary-button:hover:not(:disabled),.clear-filters-button:hover:not(:disabled),.table-action:hover:not(:disabled){background:var(--lv-surface-muted);color:var(--lv-text);border-color:#b9cad9}.edit-button{color:#1f5fae;background:#f1f7ff;border-color:#d9e7fb}.edit-button:hover:not(:disabled){background:#e3efff}.delete-button,.danger-button{background:var(--lv-danger-soft);color:var(--lv-danger);border-color:#f6d4d6}.delete-button:hover:not(:disabled),.danger-button:hover:not(:disabled){background:#ffe4e5;border-color:#efb7bb}.primary-button:focus-visible,.secondary-button:focus-visible,.edit-button:focus-visible,.delete-button:focus-visible,.danger-button:focus-visible,.clear-filters-button:focus-visible,.table-action:focus-visible{box-shadow:var(--lv-focus);outline:none}.primary-button:disabled,.secondary-button:disabled,.edit-button:disabled,.delete-button:disabled,.danger-button:disabled,.clear-filters-button:disabled,.table-action:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}.small-button,.edit-button,.delete-button,.table-action{border-radius:8px;min-height:32px;padding:0 11px;font-size:12px}.page-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.page-header h1{color:#101b31;letter-spacing:-.03em;margin:0;font-size:clamp(22px,1.8vw,27px)}.page-header p{color:var(--lv-text-muted);margin:5px 0 0}.filter-field{flex-direction:column;gap:6px;display:flex}.filter-field label{color:var(--lv-text-soft);font-size:12px;font-weight:650}.filter-field input,.filter-field select{border:1px solid var(--lv-border-strong);background:var(--lv-surface);min-height:40px;color:var(--lv-text);border-radius:10px;padding:0 12px}.pagination{color:var(--lv-text-soft);justify-content:center;align-items:center;gap:14px;padding:14px 0 2px;font-size:13px;display:flex}.pagination>button:not([class]){border:1px solid var(--lv-border-strong);background:var(--lv-surface);min-height:34px;color:var(--lv-text-soft);cursor:pointer;border-radius:9px;padding:0 14px;font-weight:600}.pagination>button:not([class]):hover:not(:disabled){background:var(--lv-surface-muted)}.pagination>button:disabled{opacity:.5;cursor:not-allowed}.livestock{width:100%;max-width:1680px;color:var(--lv-text);gap:16px;margin:0 auto;display:grid}.module-tabs{border:1px solid var(--lv-border);box-shadow:var(--lv-shadow);scrollbar-width:none;background:#ffffffd1;border-radius:13px;gap:4px;padding:4px;display:flex;overflow-x:auto}.module-tabs::-webkit-scrollbar{display:none}.module-tabs__link{color:var(--lv-text-soft);white-space:nowrap;border-radius:9px;flex:none;align-items:center;gap:7px;padding:8px 13px;font-size:12px;font-weight:650;text-decoration:none;transition:background .12s,color .12s;display:inline-flex}.module-tabs__link:hover{background:var(--lv-primary-soft);color:var(--lv-primary)}.module-tabs__link--active,.module-tabs__link--active:hover{background:var(--lv-primary);color:#fff}.livestock :is(.dairy-dashboard,.dairy-animals,.dairy-milk-page,.dairy-health-page,.dairy-breeding-page,.poultry-page){flex-direction:column;gap:16px;min-width:0;padding:0;display:flex}.livestock :is(.page-header,.dairy-page-header,.poultry-page-header){border:1px solid var(--lv-border);border-radius:var(--lv-radius-lg);background:radial-gradient(circle at 100% 0, #13856d17, transparent 42%), var(--lv-surface);box-shadow:var(--lv-shadow);justify-content:space-between;align-items:center;gap:16px;margin:0;padding:18px 20px;display:flex}.livestock :is(.page-header,.dairy-page-header,.poultry-page-header) h1{color:#101b31;letter-spacing:-.03em;margin:0;font-size:clamp(21px,1.7vw,26px);line-height:1.2}.livestock :is(.page-header,.dairy-page-header,.poultry-page-header) p{color:var(--lv-text-muted);margin:5px 0 0;font-size:13px}.livestock :is(.dairy-error,.page-error,.poultry-error,.form-error,.lifecycle-error){border:1px solid #f6cfd2;border-left:4px solid var(--lv-danger);background:var(--lv-danger-soft);color:#9b2a30;border-radius:10px;justify-content:space-between;align-items:center;gap:14px;margin:0;padding:12px 15px;font-size:13px;display:flex}.livestock :is(.form-error,.lifecycle-error){margin:18px 24px 0}.livestock :is(.dairy-error,.page-error) button{min-height:30px;color:var(--lv-danger);cursor:pointer;background:#fff;border:1px solid #efb7bb;border-radius:8px;flex:none;padding:0 12px;font-weight:700}.livestock :is(.loading-state,.health-loading,.poultry-loading,.empty-state,.poultry-empty){min-height:150px;color:var(--lv-text-muted);text-align:center;place-items:center;gap:6px;padding:36px 20px;font-size:13px;display:grid}.livestock :is(.loading-state,.health-loading,.poultry-loading):before{border:3px solid #dcebe6;border-top-color:var(--lv-accent);content:"";border-radius:50%;width:26px;height:26px;animation:.8s linear infinite lv-spin}@keyframes lv-spin{to{transform:rotate(360deg)}}.livestock .empty-state h3{color:var(--lv-text);margin:0;font-size:15px}.livestock .empty-state p{margin:0 0 8px}.livestock :is(.dairy-animals,.poultry-page)>:is(.loading-state,.empty-state,.poultry-loading),.livestock .dairy-dashboard>p{border:1px dashed var(--lv-border-strong);border-radius:var(--lv-radius-lg);background:#ffffffb3}.livestock .milk-summary,.livestock .poultry-stat-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:0;display:grid}.livestock :is(.milk-summary-card,.poultry-stat-card){border:1px solid var(--lv-border);background:var(--lv-surface);min-height:96px;box-shadow:var(--lv-shadow);border-radius:14px;flex-direction:column;justify-content:center;gap:4px;padding:15px 16px 15px 19px;display:flex;position:relative;overflow:hidden}.livestock :is(.milk-summary-card,.poultry-stat-card):before{background:var(--card-accent,var(--lv-accent));content:"";border-radius:0 4px 4px 0;width:4px;position:absolute;top:14px;bottom:14px;left:0}.livestock :is(.milk-summary-card,.poultry-stat-card):nth-child(5n+2){--card-accent:#1674db}.livestock :is(.milk-summary-card,.poultry-stat-card):nth-child(5n+3){--card-accent:#d39000}.livestock :is(.milk-summary-card,.poultry-stat-card):nth-child(5n+4){--card-accent:#7252ce}.livestock :is(.milk-summary-card,.poultry-stat-card):nth-child(5n+5){--card-accent:#df4c53}.livestock .milk-summary-card span,.livestock .poultry-stat-label{color:var(--lv-text-muted);margin:0;font-size:12px;font-weight:650}.livestock :is(.milk-summary-card,.poultry-stat-card) strong{color:#142239;letter-spacing:-.02em;font-size:24px;line-height:1.1}.livestock .poultry-stat-card small{color:var(--lv-text-muted);margin:0;font-size:11px}.livestock :is(.animal-filters,.milk-filters,.health-filters,.breeding-filters,.poultry-filters){border:1px solid var(--lv-border);border-radius:var(--lv-radius-lg);background:var(--lv-surface);box-shadow:var(--lv-shadow);flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0;padding:14px;display:flex}.livestock .poultry-filters{align-items:center}.livestock .animal-filters{grid-template-columns:minmax(200px,2fr) repeat(3,minmax(130px,1fr)) auto;display:grid}.livestock :is(.filter-group,.filter-field){flex-direction:column;gap:6px;min-width:180px;display:flex}.livestock .animal-filters .filter-group{min-width:0}.livestock :is(.filter-group,.filter-field,.poultry-date-filter) label{color:var(--lv-text-soft);font-size:12px;font-weight:650}.livestock :is(.filter-group,.filter-field) :is(input,select),.livestock .poultry-filters>:is(input,select),.livestock .poultry-date-filter input{border:1px solid var(--lv-border-strong);background:var(--lv-surface-muted);width:100%;min-width:0;min-height:40px;color:var(--lv-text);border-radius:10px;outline:none;padding:0 12px;font-size:13px;transition:border-color .12s,box-shadow .12s,background .12s}.livestock .poultry-filters>input{flex:260px;width:auto;min-width:260px}.livestock .poultry-filters>select{width:auto;min-width:160px}.livestock :is(.filter-group,.filter-field) :is(input,select):focus,.livestock .poultry-filters>:is(input,select):focus,.livestock .poultry-date-filter input:focus{border-color:var(--lv-accent);background:var(--lv-surface);box-shadow:var(--lv-focus)}.livestock .poultry-date-filter{align-items:center;gap:8px;display:flex}.livestock .poultry-date-filter input{width:auto}.livestock .filter-clear,.livestock .clear-filters-button{min-height:40px}.livestock .breeding-total{background:var(--lv-primary-soft);text-align:right;border-radius:11px;flex-direction:column;gap:2px;margin-left:auto;padding:6px 14px;display:flex}.livestock .breeding-total strong{color:var(--lv-primary);font-size:22px;line-height:1.1}.livestock .breeding-total span{color:var(--lv-text-muted);font-size:11px}.livestock :is(.dairy-table-wrapper,.milk-table-container,.health-table-container,.breeding-table-container,.poultry-table-container){border:1px solid var(--lv-border);border-radius:var(--lv-radius-lg);background:var(--lv-surface);width:100%;min-width:0;box-shadow:var(--lv-shadow);overflow-x:auto}.livestock .breeding-table-container{overflow-x:auto}.livestock .table-scroll{width:100%;overflow-x:auto}.livestock :is(.dairy-table,.milk-table,.health-table,.breeding-table,.poultry-table){border-collapse:separate;border-spacing:0;background:0 0;width:100%;font-size:13px}.livestock .health-table{min-width:1000px}.livestock .breeding-table{min-width:1050px}.livestock .poultry-table{min-width:950px}.livestock .dairy-table,.livestock .milk-table{min-width:720px}.livestock :is(.dairy-table,.milk-table,.health-table,.breeding-table,.poultry-table) th{z-index:1;border-bottom:1px solid var(--lv-border);color:#687990;letter-spacing:.04em;text-align:left;text-transform:uppercase;white-space:nowrap;background:#f6f9fc;padding:11px 14px;font-size:11px;font-weight:700;position:sticky;top:0}.livestock :is(.dairy-table,.milk-table,.health-table,.breeding-table,.poultry-table) td{color:#3c4c63;text-align:left;vertical-align:middle;border-bottom:1px solid #eef2f6;padding:12px 14px}.livestock :is(.dairy-table,.milk-table,.health-table,.breeding-table,.poultry-table) tbody tr{transition:background .1s}.livestock :is(.dairy-table,.milk-table,.health-table,.breeding-table,.poultry-table) tbody tr:hover{background:#f7fbfa}.livestock :is(.dairy-table,.milk-table,.health-table,.breeding-table,.poultry-table) tbody tr:last-child td{border-bottom:0}.livestock :is(.dairy-table,.milk-table,.health-table,.breeding-table,.poultry-table) td strong{color:var(--lv-text);font-weight:650}.livestock .milk-table td small,.livestock .poultry-table-subtext{color:var(--lv-text-muted);margin-top:3px;font-size:11px;display:block}.livestock :is(.animal-cell,.bull-cell){flex-direction:column;gap:2px;display:flex}.livestock :is(.animal-cell,.bull-cell) strong{color:var(--lv-text)}.livestock :is(.animal-cell,.bull-cell) :is(span,small){color:var(--lv-text-muted);font-size:11px}.livestock .bull-cell span{color:var(--lv-text-soft);font-size:13px}.livestock :is(.milk-actions,.health-actions,.breeding-actions,.poultry-actions){white-space:nowrap;align-items:center;gap:6px;display:flex}.livestock .dairy-table td .table-action+.table-action{margin-left:6px}.livestock .breeding-table-container .pagination{border-top:1px solid var(--lv-border);padding:12px 16px}.livestock :is(.status-badge,.poultry-status,.pregnancy-badge,.record-type-badge){color:#4b5a70;text-transform:capitalize;white-space:nowrap;background:#eef2f6;border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:11px;font-weight:700;display:inline-flex}.livestock :is(.status-badge,.poultry-status,.pregnancy-badge):before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.livestock :is(.status-active,.poultry-status-active,.pregnancy-pregnant){color:#18794a;background:#e3f6ea}.livestock :is(.status-sold,.poultry-status-sold,.pregnancy-pending){color:#9a6400;background:#fff4d9}.livestock :is(.status-dead,.poultry-status-dead,.pregnancy-not_pregnant){color:#b4343a;background:#ffe9ea}.livestock :is(.status-transferred,.poultry-status-transferred){color:#2557a7;background:#e7f0ff}.livestock .record-type-badge{color:#2a5db0;background:#eef4ff}.livestock :is(.animal-details-overlay,.animal-form-overlay,.lifecycle-overlay,.milk-modal-overlay,.health-modal-overlay,.breeding-modal-overlay,.poultry-modal-overlay,.delete-modal-overlay){z-index:1000;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#101c2d80;justify-content:center;align-items:center;padding:20px;animation:.14s ease-out lv-fade;display:flex;position:fixed;inset:0}.livestock .animal-details-overlay{z-index:1100}.livestock :is(.lifecycle-overlay,.milk-modal-overlay){z-index:1200}.livestock .delete-modal-overlay{z-index:1300}.livestock :is(.animal-details-modal,.animal-form-modal,.lifecycle-modal,.milk-modal,.health-modal,.breeding-modal,.poultry-modal){border:1px solid var(--lv-border);background:var(--lv-surface);width:min(850px,100%);max-height:min(90vh,900px);box-shadow:var(--lv-shadow-modal);overscroll-behavior:contain;border-radius:18px;animation:.17s ease-out lv-rise;overflow-y:auto}.livestock .lifecycle-modal{width:min(800px,100%)}.livestock .milk-modal{width:min(750px,100%)}.livestock .poultry-modal{width:min(900px,100%)}@keyframes lv-fade{0%{opacity:0}}@keyframes lv-rise{0%{opacity:0;transform:translateY(10px)scale(.985)}}.livestock :is(.animal-details-header,.animal-form-header,.lifecycle-header,.milk-modal-header,.health-modal-header,.breeding-modal-header,.poultry-modal-header){z-index:2;border-bottom:1px solid var(--lv-border);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#fffffff5;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 22px;display:flex;position:sticky;top:0}.livestock :is(.animal-details-header,.animal-form-header,.lifecycle-header,.milk-modal-header,.health-modal-header,.breeding-modal-header,.poultry-modal-header) h2{color:#101b31;letter-spacing:-.02em;margin:0 0 4px;font-size:18px}.livestock :is(.animal-details-header,.animal-form-header,.lifecycle-header,.milk-modal-header,.health-modal-header,.breeding-modal-header,.poultry-modal-header) p{color:var(--lv-text-muted);margin:0;font-size:13px}.livestock :is(.modal-close,.poultry-modal-close){color:#5b6b82;cursor:pointer;background:#f1f4f8;border:0;border-radius:10px;flex:none;place-items:center;width:34px;height:34px;padding:0;font-size:22px;line-height:1;transition:background .12s,color .12s;display:grid}.livestock :is(.modal-close,.poultry-modal-close):hover{color:var(--lv-text);background:#e5ebf2}.livestock :is(.milk-form,.breeding-form,.poultry-form-grid,.lifecycle-form,.health-form-grid,.form-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;display:grid}.livestock :is(.milk-form,.breeding-form,.poultry-form-grid,.lifecycle-form),.livestock :is(.health-form,.animal-form-modal form){padding:22px}.livestock .form-field{flex-direction:column;gap:6px;min-width:0;display:flex}.livestock .form-field-full{grid-column:1/-1}.livestock .form-field label{color:var(--lv-text-soft);font-size:12px;font-weight:650}.livestock .form-field label span{color:var(--lv-danger)}.livestock .form-field :is(input,select,textarea){border:1px solid var(--lv-border-strong);background:var(--lv-surface-muted);width:100%;min-height:42px;color:var(--lv-text);font:inherit;border-radius:10px;outline:none;padding:9px 12px;font-size:14px;transition:border-color .12s,box-shadow .12s,background .12s}.livestock .form-field textarea{resize:vertical;min-height:84px}.livestock .form-field :is(input,select,textarea):focus{border-color:var(--lv-accent);background:var(--lv-surface);box-shadow:var(--lv-focus)}.livestock .form-field :is(input,select,textarea):disabled{color:var(--lv-text-muted);cursor:not-allowed;background:#eef2f6}.livestock :is(.form-help,.field-help){color:var(--lv-text-muted);font-size:11px}.livestock .poultry-sale-summary{background:var(--lv-primary-soft);border:1px solid #cfe7df;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;margin:0 22px 18px;padding:14px 16px;display:flex}.livestock .poultry-sale-summary span{color:var(--lv-text-soft);font-size:13px;font-weight:650}.livestock .poultry-sale-summary strong{color:var(--lv-primary);font-size:20px}.livestock :is(.milk-modal-footer,.poultry-modal-footer,.lifecycle-footer,.animal-details-footer){border-top:1px solid var(--lv-border);background:#fafcfef7;justify-content:flex-end;gap:10px;padding:14px 22px;display:flex;position:sticky;bottom:0}.livestock :is(.health-modal-footer,.animal-form-actions,.breeding-modal-footer){border-top:1px solid var(--lv-border);justify-content:flex-end;gap:10px;margin-top:22px;padding-top:16px;display:flex}.livestock .breeding-modal-footer{grid-column:1/-1;margin-top:4px}.livestock :is(.milk-modal-footer,.poultry-modal-footer,.lifecycle-footer,.animal-details-footer,.health-modal-footer,.animal-form-actions,.breeding-modal-footer,.animal-lifecycle-buttons) button:not([class]){border:1px solid var(--lv-border-strong);background:var(--lv-surface);min-height:38px;color:var(--lv-text-soft);cursor:pointer;border-radius:10px;padding:0 15px;font-size:13px;font-weight:650}.livestock :is(.milk-modal-footer,.poultry-modal-footer,.lifecycle-footer,.animal-details-footer,.health-modal-footer,.animal-form-actions,.breeding-modal-footer,.animal-lifecycle-buttons) button:not([class]):hover:not(:disabled){background:var(--lv-surface-muted);color:var(--lv-text)}.livestock :is(.milk-modal-footer,.poultry-modal-footer,.lifecycle-footer,.health-modal-footer,.animal-form-actions) button:disabled{opacity:.55;cursor:not-allowed}.livestock .lifecycle-actions{border-bottom:1px solid var(--lv-border);flex-wrap:wrap;gap:8px;padding:16px 22px;display:flex}.livestock .lifecycle-choice{border:1px solid var(--lv-border-strong);background:var(--lv-surface);min-height:38px;color:var(--lv-text-soft);cursor:pointer;border-radius:10px;padding:0 15px;font-weight:650}.livestock .lifecycle-choice:hover{border-color:var(--lv-accent);color:var(--lv-primary)}.livestock .lifecycle-choice.selected{border-color:var(--lv-primary);background:var(--lv-primary);color:#fff}.livestock .animal-details-status,.livestock .animal-lifecycle-buttons{border-bottom:1px solid var(--lv-border);flex-wrap:wrap;align-items:center;gap:8px;padding:14px 22px;display:flex}.livestock .details-section{border-bottom:1px solid var(--lv-border);padding:18px 22px}.livestock .details-section h3{color:var(--lv-text);margin:0 0 14px;font-size:14px}.livestock :is(.details-grid,.history-grid){grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;display:grid}.livestock .detail-item{background:var(--lv-surface-muted);border-radius:10px;flex-direction:column;gap:3px;padding:10px 12px;display:flex}.livestock .detail-label{color:var(--lv-text-muted);text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:650}.livestock .detail-value{color:var(--lv-text);overflow-wrap:anywhere;font-weight:600}.livestock .animal-notes{color:var(--lv-text-soft);white-space:pre-wrap;margin:0;line-height:1.6}.livestock .history-group+.history-group{margin-top:18px}.livestock .history-group h4{color:var(--lv-text-soft);letter-spacing:.04em;text-transform:uppercase;margin:0 0 10px;font-size:12px}.livestock .history-card{border:1px solid var(--lv-border);background:var(--lv-surface);border-radius:12px;margin-bottom:10px;padding:14px}.livestock .history-card .detail-item{background:var(--lv-surface-muted)}.livestock .history-card-header{justify-content:space-between;gap:16px;margin-bottom:12px;display:flex}.livestock .history-card-header span{color:var(--lv-text-muted);font-size:12px}.livestock .history-notes{border-top:1px solid var(--lv-border);color:var(--lv-text-soft);margin:12px 0 0;padding-top:10px;line-height:1.5}.livestock .no-history{color:var(--lv-text-muted);margin:0}.livestock .delete-modal{background:var(--lv-surface);width:min(460px,100%);box-shadow:var(--lv-shadow-modal);text-align:left;border-radius:18px;grid-template-columns:auto minmax(0,1fr);gap:4px 16px;padding:24px;animation:.17s ease-out lv-rise;display:grid}.livestock .delete-modal-icon{width:44px;height:44px;color:var(--lv-danger);background:#ffe7e8;border-radius:14px;place-items:center;margin:0;font-size:21px;font-weight:800;display:grid}.livestock .delete-modal-content{min-width:0;color:var(--lv-text-soft)}.livestock .delete-modal-content :is(h2,h3){color:#101b31;letter-spacing:-.02em;margin:2px 0 8px;font-size:18px}.livestock .delete-modal-content p{margin:0 0 5px;font-size:13px;line-height:1.55}.livestock .delete-modal-content p strong{color:var(--lv-text)}.livestock .delete-modal-actions{border-top:1px solid var(--lv-border);grid-column:1/-1;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:16px;display:flex}.livestock .delete-modal-content .delete-modal-actions{margin-top:16px}.livestock :is(.delete-modal-cancel,.delete-modal-confirm){cursor:pointer;border:1px solid #0000;border-radius:10px;min-width:104px;min-height:40px;padding:0 16px;font-size:13px;font-weight:700}.livestock .delete-modal-cancel{border-color:var(--lv-border-strong);background:var(--lv-surface);color:var(--lv-text-soft)}.livestock .delete-modal-cancel:hover:not(:disabled){background:var(--lv-surface-muted)}.livestock .delete-modal-confirm{background:var(--lv-danger);color:#fff}.livestock .delete-modal-confirm:hover:not(:disabled){background:var(--lv-danger-hover)}.livestock :is(.delete-modal-cancel,.delete-modal-confirm):disabled{opacity:.6;cursor:not-allowed}.module-hero{border:1px solid var(--lv-border);background:var(--lv-surface);box-shadow:var(--lv-shadow);border-radius:18px;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;display:flex;position:relative;overflow:hidden}.module-hero:after{background:radial-gradient(circle, var(--hero-tint,#1674db1f), transparent 68%);content:"";pointer-events:none;border-radius:50%;width:260px;height:260px;position:absolute;top:-70px;right:-40px}.module-hero--poultry{--hero-tint:#d3900029}.module-hero__main{z-index:1;align-items:center;gap:15px;min-width:0;display:flex;position:relative}.module-hero__icon{color:#1674db;background:linear-gradient(140deg,#eaf5ff,#d8eaff);border-radius:16px;flex:none;place-items:center;width:54px;height:54px;display:grid}.module-hero--poultry .module-hero__icon{color:#bc7a00;background:linear-gradient(140deg,#fff7dc,#ffecbd)}.module-hero__eyebrow{color:var(--lv-accent);letter-spacing:.09em;text-transform:uppercase;margin:0;font-size:11px;font-weight:800}.module-hero h1{color:#101b31;letter-spacing:-.035em;margin:2px 0 3px;font-size:clamp(22px,1.9vw,28px);line-height:1.2}.module-hero__meta{color:var(--lv-text-muted);margin:0;font-size:13px}.module-hero__actions{z-index:1;flex:none;gap:8px;display:flex;position:relative}.module-metrics{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.module-metric{min-width:0;min-height:102px;color:var(--tone);background:linear-gradient(135deg, var(--tone-bg-a), var(--tone-bg-b));border:1px solid #0000;border-color:var(--tone-border);border-radius:15px;align-items:center;gap:13px;padding:15px;display:flex;position:relative;overflow:hidden}.module-metric:after{content:"";opacity:.09;border:1px solid;border-radius:50%;width:112px;height:112px;position:absolute;bottom:-42px;right:-26px}.module-metric--blue,.module-tone--blue{--tone:#1674db;--tone-border:#d6e8ff;--tone-bg-a:#eaf5ff;--tone-bg-b:#dcedff}.module-metric--gold,.module-tone--gold{--tone:#bc7a00;--tone-border:#f4e6bf;--tone-bg-a:#fff7dc;--tone-bg-b:#fff0c5}.module-metric--rose,.module-tone--rose{--tone:#df4c53;--tone-border:#f5d9dc;--tone-bg-a:#fff0f0;--tone-bg-b:#ffe5e6}.module-metric--green,.module-tone--green{--tone:#19885a;--tone-border:#d4eddc;--tone-bg-a:#e9faef;--tone-bg-b:#d8f4e2}.module-metric--violet,.module-tone--violet{--tone:#7252ce;--tone-border:#e4ddfb;--tone-bg-a:#f5f0ff;--tone-bg-b:#ebe4ff}.module-metric__icon{background:#ffffffbf;border-radius:14px;flex:none;place-items:center;width:48px;height:48px;display:grid}.module-metric__body{gap:2px;min-width:0;display:grid}.module-metric__label{color:#28364c;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700;overflow:hidden}.module-metric__value{color:#142239;letter-spacing:-.02em;font-size:26px;font-weight:750;line-height:1.1}.module-metric__value small{color:#5d6d83;margin-left:3px;font-size:13px;font-weight:650}.module-metric__detail{color:#687990;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.module-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;display:grid}.module-grid>.module-panel{grid-column:span 6}.module-grid>.module-panel--third{grid-column:span 4}.module-grid>.module-panel--wide{grid-column:span 8}.module-grid>.module-panel--full{grid-column:1/-1}.module-panel{border:1px solid var(--lv-border);border-radius:var(--lv-radius-lg);min-width:0;box-shadow:var(--lv-shadow);background:#fffffff5;flex-direction:column;gap:12px;padding:16px;display:flex}.module-panel__header{justify-content:space-between;align-items:center;gap:10px;display:flex}.module-panel__title{align-items:center;gap:10px;min-width:0;display:flex}.module-panel__title h2{color:#18253b;margin:0;font-size:14px;line-height:1.35}.module-panel__title small{color:var(--lv-text-muted);margin-top:1px;font-size:11px;display:block}.module-panel__icon{width:34px;height:34px;color:var(--tone,#52647e);background:var(--tone-bg-a,#edf2f8);border-radius:11px;flex:none;place-items:center;display:grid}.module-panel__link{color:#536781;background:#fbfdff;border:1px solid #e0e7f0;border-radius:8px;flex:none;padding:6px 10px;font-size:11px;font-weight:600;text-decoration:none}.module-panel__link:hover{color:var(--lv-primary);border-color:#b8cbdf}.module-kv{gap:2px;margin:0;display:grid}.module-kv>div{border-bottom:1px dashed #e6edf3;justify-content:space-between;align-items:center;gap:12px;padding:9px 2px;display:flex}.module-kv>div:last-child{border-bottom:0}.module-kv dt{color:var(--lv-text-soft);align-items:center;gap:8px;font-size:13px;display:flex}.module-kv dt:before{background:var(--dot,#c5d1dd);content:"";border-radius:3px;width:8px;height:8px}.module-kv dd{color:var(--lv-text);font-variant-numeric:tabular-nums;margin:0;font-size:14px;font-weight:700}.module-bar{background:#edf2f6;border-radius:999px;height:10px;display:flex;overflow:hidden}.module-bar span{min-width:0;height:100%;transition:width .3s;display:block}.module-bar span+span{border-left:2px solid #fff}.module-bar-legend{color:var(--lv-text-muted);flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;font-size:11px;list-style:none;display:flex}.module-bar-legend li{align-items:center;gap:6px;display:flex}.module-bar-legend i{border-radius:3px;width:8px;height:8px}.module-bar-legend b{color:var(--lv-text);font-weight:700}.module-list{margin:0;padding:0;list-style:none;display:grid}.module-list li{border-bottom:1px solid #eef2f6;justify-content:space-between;align-items:center;gap:12px;padding:10px 2px;display:flex}.module-list li:last-child{border-bottom:0}.module-list__main{gap:2px;min-width:0;display:grid}.module-list__main strong{color:var(--lv-text);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.module-list__main small{color:var(--lv-text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.module-list__side{color:var(--lv-text-soft);text-align:right;flex:none;justify-items:end;gap:3px;font-size:12px;font-weight:650;display:grid}.module-pill{color:#4b5a70;text-transform:capitalize;white-space:nowrap;background:#eef2f6;border-radius:999px;align-items:center;padding:3px 9px;font-size:10px;font-weight:700;display:inline-flex}.module-pill--green{color:#18794a;background:#e3f6ea}.module-pill--gold{color:#9a6400;background:#fff4d9}.module-pill--rose{color:#b4343a;background:#ffe9ea}.module-pill--blue{color:#2557a7;background:#e7f0ff}.module-empty{min-height:110px;color:var(--lv-text-muted);text-align:center;border:1px dashed #dfe7ef;border-radius:12px;place-items:center;padding:16px;font-size:12px;display:grid}.module-shortcuts{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;display:grid}.module-shortcut{border:1px solid var(--lv-border);background:var(--lv-surface-muted);color:var(--lv-text-soft);border-radius:12px;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;font-size:13px;font-weight:650;text-decoration:none;transition:border-color .12s,background .12s,color .12s,transform .12s;display:flex}.module-shortcut:hover{background:var(--lv-primary-soft);color:var(--lv-primary);border-color:#bfdcd2;transform:translateY(-1px)}.module-skeleton{background:linear-gradient(90deg,#edf2f7 25%,#f6f9fc 50%,#edf2f7 75%) 0 0/200% 100%;border-radius:15px;min-height:102px;animation:1.2s ease-in-out infinite lv-shimmer}@keyframes lv-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (width<=1180px){.module-grid>.module-panel,.module-grid>.module-panel--third,.module-grid>.module-panel--wide{grid-column:span 6}}@media (width<=900px){.livestock .animal-filters{grid-template-columns:1fr 1fr}.module-grid>.module-panel,.module-grid>.module-panel--third,.module-grid>.module-panel--wide{grid-column:1/-1}}@media (width<=700px){.livestock :is(.page-header,.dairy-page-header,.poultry-page-header),.module-hero{flex-direction:column;align-items:stretch}.module-hero__actions>*{flex:1}.module-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.module-metric{flex-direction:column;align-items:flex-start;gap:8px;min-height:0;padding:12px}.module-metric:last-child:nth-child(odd){grid-column:1/-1}.module-metric__icon{border-radius:11px;width:36px;height:36px}.module-metric__value{font-size:22px}.module-metric__label,.module-metric__detail{white-space:normal}.livestock :is(.milk-filters,.health-filters,.breeding-filters,.poultry-filters){flex-direction:column;align-items:stretch}.livestock .animal-filters{grid-template-columns:1fr}.livestock :is(.filter-group,.filter-field),.livestock .poultry-filters>:is(input,select){flex:none;width:100%;min-width:0}.livestock .poultry-date-filter{justify-content:space-between}.livestock .poultry-date-filter input{flex:1}.livestock .breeding-total{text-align:left;margin-left:0}.livestock :is(.milk-form,.breeding-form,.poultry-form-grid,.lifecycle-form,.health-form-grid,.form-grid){grid-template-columns:1fr}.livestock :is(.animal-details-overlay,.animal-form-overlay,.lifecycle-overlay,.milk-modal-overlay,.health-modal-overlay,.breeding-modal-overlay,.poultry-modal-overlay,.delete-modal-overlay){align-items:flex-end;padding:0}.livestock :is(.animal-details-modal,.animal-form-modal,.lifecycle-modal,.milk-modal,.health-modal,.breeding-modal,.poultry-modal,.delete-modal){border-radius:18px 18px 0 0;width:100%;max-height:94dvh}.livestock :is(.milk-modal-footer,.poultry-modal-footer,.lifecycle-footer,.health-modal-footer,.animal-form-actions,.breeding-modal-footer,.delete-modal-actions){flex-direction:column-reverse}.livestock :is(.milk-modal-footer,.poultry-modal-footer,.lifecycle-footer,.health-modal-footer,.animal-form-actions,.breeding-modal-footer,.delete-modal-actions) button{width:100%}.livestock .history-card-header{flex-direction:column;gap:4px}}@media (prefers-reduced-motion:reduce){.livestock *,.livestock :before,.livestock :after{transition-duration:1ms!important;animation-duration:1ms!important}}.module-loading{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.module-proportion{gap:10px;display:grid}.module-hero--piggery{--hero-tint:#df4c5321}.module-hero--piggery .module-hero__icon{color:#d0464e;background:linear-gradient(140deg,#fff0f0,#ffdfe1)}.livestock .page-header-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.livestock .form-field.form-check{border:1px solid var(--lv-border);background:var(--lv-surface-muted);cursor:pointer;border-radius:12px;flex-direction:row;align-items:flex-start;gap:10px;padding:12px 14px}.livestock .form-field.form-check input{width:18px;height:18px;min-height:18px;accent-color:var(--lv-primary);flex:none;margin-top:1px}.livestock .form-field.form-check span{color:var(--lv-text);gap:2px;display:grid}.livestock .form-field.form-check strong{font-size:13px}.livestock .form-field.form-check small{color:var(--lv-text-muted);font-size:11px}.livestock .poultry-form-grid+.poultry-sale-summary{margin-top:-4px}.livestock form>.form-error{margin:18px 22px 0}@media (width<=700px){.livestock .page-header-actions>*{flex:1}}.module-hero--goats{--hero-tint:#22a06b24}.module-hero--goats .module-hero__icon{color:#19885a;background:linear-gradient(140deg,#e9faef,#d3f1de)}.module-hero--crops{--hero-tint:#7cb3422e}.module-hero--crops .module-hero__icon{color:#4d7c1e;background:linear-gradient(140deg,#f1f8e6,#dff0c8)}.module-hero--finance{--hero-tint:#0d604f24}.module-hero--finance .module-hero__icon{color:#0d604f;background:linear-gradient(140deg,#e3f0ea,#cfe6dc)}.module-hero--employees{--hero-tint:#7252ce24}.module-hero--employees .module-hero__icon{color:#7252ce;background:linear-gradient(140deg,#f5f0ff,#e6dcff)}.finance-chart{gap:10px;display:grid}.finance-chart__legend{color:var(--lv-text-muted);gap:16px;font-size:12px;display:flex}.finance-chart__legend span{align-items:center;gap:6px;display:inline-flex}.finance-chart__dot{border-radius:3px;width:10px;height:10px}.finance-chart__dot--income,.finance-chart__bar--income{background:#22a06b}.finance-chart__dot--expense,.finance-chart__bar--expense{background:#e5575d}.finance-chart__plot{grid-template-columns:44px minmax(0,1fr);gap:8px;height:230px;display:grid}.finance-chart__axis{color:var(--lv-text-muted);text-align:right;flex-direction:column;justify-content:space-between;padding-bottom:20px;font-size:10px;display:flex}.finance-chart__bars{border-bottom:1px solid var(--lv-border);background:repeating-linear-gradient(0deg,#0000 0 calc(50% - 1px),#eef2f6 calc(50% - 1px) 50%) 0 0/100% calc(100% - 20px) no-repeat;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;display:grid}.finance-chart__month{grid-template-rows:minmax(0,1fr) 20px;min-width:0;display:grid}.finance-chart__pair{justify-content:center;align-items:flex-end;gap:2px;height:100%;display:flex}.finance-chart__bar{border-radius:3px 3px 0 0;width:min(42%,14px);min-height:1px}.finance-chart__month small{color:var(--lv-text-muted);text-align:center;padding-top:4px;font-size:10px}.finance-amount--income{color:#18794a;font-weight:700}.finance-amount--expense{color:#b4343a;font-weight:700}.finance-year{align-items:center;gap:6px;display:flex}.finance-year select{border:1px solid var(--lv-border-strong);background:var(--lv-surface);border-radius:10px;min-height:38px;padding:0 10px;font-weight:650}.attendance-list{margin:0;padding:0;list-style:none}.attendance-list li{border-bottom:1px solid var(--lv-border);grid-template-columns:minmax(160px,1fr) auto minmax(120px,200px);align-items:center;gap:12px;padding:12px 16px;display:grid}.attendance-list li:last-child{border-bottom:0}.attendance-list__row--unmarked{background:#fffbf0}.attendance-list__who{min-width:0;display:grid}.attendance-list__who small{color:var(--lv-text-muted);font-size:12px}.attendance-list__choices{flex-wrap:wrap;gap:6px;display:flex}.attendance-chip{--chip:#64748b;--chip-bg:#f1f5f9;border:1px solid var(--lv-border-strong);background:var(--lv-surface);min-height:34px;color:var(--lv-text-muted);cursor:pointer;border-radius:999px;align-items:center;gap:6px;padding:0 10px;font-size:12px;font-weight:650;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.attendance-chip:hover:not(:disabled){border-color:var(--chip);color:var(--chip)}.attendance-chip:disabled{cursor:default;opacity:.75}.attendance-chip__short{font-weight:800;display:none}.attendance-chip.is-on{border-color:var(--chip);background:var(--chip-bg);color:var(--chip)}.attendance-chip--green{--chip:#18794a;--chip-bg:#e6f6ee}.attendance-chip--gold{--chip:#a06d00;--chip-bg:#fdf4dc}.attendance-chip--rose{--chip:#c0353c;--chip-bg:#fdeced}.attendance-chip--blue{--chip:#2563c9;--chip-bg:#e8f1fd}.attendance-chip--violet{--chip:#6a4fc7;--chip-bg:#f0ebfd}.attendance-chip--slate{--chip:#475569;--chip-bg:#eef2f6}.attendance-list__note{border:1px solid var(--lv-border-strong);border-radius:10px;min-height:34px;padding:0 10px;font-size:13px}.attendance-summary-head{margin-top:8px}.attendance-summary-head h2{margin:0;font-size:18px}.attendance-summary-head input[type=month]{border:1px solid var(--lv-border-strong);border-radius:10px;min-height:38px;padding:0 10px}.link-button{color:var(--lv-accent,#0d604f);cursor:pointer;background:0 0;border:0;padding:0;font-size:13px;font-weight:650}.link-button:hover{text-decoration:underline}.payroll-back{margin-bottom:6px}@media (width<=860px){.attendance-list li{grid-template-columns:1fr;gap:8px}.attendance-chip{justify-content:center;min-width:38px;padding:0 8px}.attendance-chip__short{display:inline}.attendance-chip__label{display:none}.attendance-chip.is-on .attendance-chip__label{display:inline}.attendance-chip.is-on .attendance-chip__short{display:none}}.farm-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;display:grid}.farm-card{border:1px solid var(--lv-border);background:var(--lv-surface);border-radius:16px;flex-direction:column;gap:14px;padding:18px;display:flex;box-shadow:0 1px 2px #0f172a0a}.farm-card--current{border-color:var(--lv-primary);box-shadow:0 0 0 3px var(--lv-primary-soft)}.farm-card--archived{background:var(--lv-surface-muted)}.farm-card--archived .farm-card__icon{filter:grayscale();opacity:.7}.farm-card__top{align-items:center;gap:12px;display:flex}.farm-card__icon{width:46px;height:46px;color:var(--lv-primary);background:linear-gradient(140deg,#e8f4f0,#d3ebe2);border-radius:13px;flex:none;place-items:center;display:grid}.farm-card__title{flex:1;min-width:0}.farm-card__title h3{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:16px;overflow:hidden}.farm-card__code{color:var(--lv-text-muted);letter-spacing:.04em;font-size:12px;font-weight:650}.farm-card__meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0;display:grid}.farm-card__meta div{min-width:0}.farm-card__meta dt{color:var(--lv-text-muted);text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:650}.farm-card__meta dd{text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:14px;font-weight:600;overflow:hidden}.farm-card__actions{border-top:1px solid var(--lv-border);flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:12px;display:flex}.farm-section-title{margin:12px 0 0;font-size:18px}.farm-section-note{color:var(--lv-text-muted);margin:0;font-size:13px}.farm-confirm-code{gap:6px;margin-top:12px;font-size:13px;display:grid}.farm-confirm-code input{border:1px solid var(--lv-border-strong);text-transform:uppercase;border-radius:10px;min-height:40px;padding:0 12px;font-size:14px}.farm-card__sub{color:var(--lv-text-muted);font-size:12px;font-weight:600;display:block}
