
#ag-smart-weighing{
  --ag-bg:#edf6f0;
  --ag-surface:#f8fcf9;
  --ag-card:#ffffff;
  --ag-line:#dfeae2;
  --ag-text:#112968;
  --ag-muted:#6e7da8;
  --ag-green:#13884a;
  --ag-green-soft:#d9f7dc;
  --ag-green-light:#f1fff2;
}
#ag-smart-weighing{font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ag-text)}

#ag-smart-weighing{position:relative;width:100vw;height:100vh;overflow:hidden;background:linear-gradient(90deg,#edf6f0 0,#f5fbf7 72%,#edf6f0 100%)}
#ag-smart-weighing *{box-sizing:border-box}
#ag-smart-weighing button,#ag-smart-weighing select{font:inherit}
#ag-smart-weighing .ag-shell{display:grid;grid-template-columns:238px 1fr;grid-template-rows:102px 1fr;height:100vh;width:100vw}
#ag-smart-weighing .ag-sidebar{grid-row:1 / span 2;display:flex;flex-direction:column;padding:18px 16px 16px;background:rgba(255,255,255,.38);border-right:1px solid rgba(19,136,74,.1);backdrop-filter:blur(4px)}
#ag-smart-weighing .ag-logo-wrap{display:flex;justify-content:center;align-items:center;padding:8px 0 18px}
#ag-smart-weighing .ag-logo{width:198px;max-width:100%;height:auto;display:block}
#ag-smart-weighing .ag-nav{display:flex;flex-direction:column;gap:11px}
#ag-smart-weighing .ag-nav-btn,#ag-smart-weighing .ag-bottom-btn{display:flex;align-items:center;gap:15px;height:49px;border:none;background:transparent;border-radius:16px;color:var(--ag-text);padding:0 16px;font-size:16px;font-weight:600;cursor:pointer;text-align:left}
#ag-smart-weighing .ag-nav-btn.active{background:#dcf8dd;color:#0e7f45}
#ag-smart-weighing .ag-nav-icon{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;color:#0e7f45;flex:0 0 28px}
#ag-smart-weighing .ag-nav-icon svg{width:26px;height:26px;display:block}
#ag-smart-weighing .ag-animal-user-icon{width:26px;height:26px;object-fit:contain;display:block}
#ag-smart-weighing .ag-sidebar-bottom{margin-top:auto;padding-top:14px;display:flex;flex-direction:column;gap:8px}
#ag-smart-weighing .ag-footer-brand{display:flex;flex-direction:column;align-items:center;gap:8px;color:#0e7f45;font-size:12px;font-weight:700;letter-spacing:.03em;margin-bottom:10px}
#ag-smart-weighing .ag-footer-brand img{width:92px;height:92px;object-fit:contain}
#ag-smart-weighing .ag-topbar{display:flex;align-items:center;gap:18px;padding:18px 22px 14px 18px}
#ag-smart-weighing .ag-burger{width:50px;height:50px;border:none;background:transparent;border-radius:14px;color:#172d72;display:flex;align-items:center;justify-content:center;cursor:pointer}
#ag-smart-weighing .ag-burger svg{width:34px;height:34px}
#ag-smart-weighing .ag-scopes{display:flex;gap:12px;min-width:0}
#ag-smart-weighing .ag-select{position:relative;display:flex;align-items:center;min-width:0;background:#fff;border:2px solid rgba(31,52,121,.12);border-radius:14px;box-shadow:0 1px 0 rgba(20,40,90,.04)}
#ag-smart-weighing .ag-select-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#118245}
#ag-smart-weighing .ag-select-icon svg{width:22px;height:22px;display:block}
#ag-smart-weighing .ag-select select{appearance:none;border:none;background:transparent;height:54px;padding:0 44px 0 48px;min-width:0;color:#19307c;font-size:16px;font-weight:500;outline:none;border-radius:14px}
#ag-smart-weighing .ag-select::after{content:'⌄';position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:18px;color:#19307c;pointer-events:none}
#ag-smart-weighing .ag-select.ranch select{width:252px}#ag-smart-weighing .ag-select.finca select{width:215px}#ag-smart-weighing .ag-select.lote select{width:190px}
#ag-smart-weighing .ag-top-spacer{flex:1}
#ag-smart-weighing .ag-bell{position:relative;width:48px;height:48px;border:none;background:transparent;color:#172d72;display:flex;align-items:center;justify-content:center;cursor:pointer}
#ag-smart-weighing .ag-bell svg{width:32px;height:32px}
#ag-smart-weighing .ag-bell-badge{position:absolute;right:2px;top:2px;min-width:20px;height:20px;border-radius:999px;background:#ff3556;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;padding:0 5px}
#ag-smart-weighing .ag-user{display:flex;align-items:center;gap:12px;background:#fff;border:2px solid rgba(31,52,121,.12);border-radius:16px;padding:10px 14px;min-width:285px;color:#19307c}
#ag-smart-weighing .ag-avatar{width:52px;height:52px;border-radius:50%;background:#2d4760;color:#fff;font-size:28px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 3px rgba(255,255,255,.55)}
#ag-smart-weighing .ag-user strong{display:block;font-size:18px;line-height:1.1}#ag-smart-weighing .ag-user small{display:block;font-size:14px;color:#6f7ea8}
#ag-smart-weighing .ag-main{padding:0 18px 18px 0;min-height:0;overflow:hidden}
#ag-smart-weighing .ag-dashboard{height:100%;display:grid;grid-template-rows:max-content max-content 1fr;gap:18px;min-height:0}
#ag-smart-weighing .ag-heading{display:flex;align-items:flex-start;justify-content:space-between;padding:6px 18px 0 18px}
#ag-smart-weighing .ag-title h1{margin:0;color:#14296f;font-size:62px;line-height:1;font-weight:900;letter-spacing:-.03em}
#ag-smart-weighing .ag-title p{margin:8px 0 0;color:#68759a;font-size:27px;font-weight:400}
#ag-smart-weighing .ag-date{padding-top:18px;color:#6473a0;font-size:20px;font-weight:500}
#ag-smart-weighing .ag-ranch-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:0 14px 0 14px}
#ag-smart-weighing .ag-status-card{background:#fff;border:1px solid var(--ag-line);border-radius:18px;padding:18px 18px 18px 18px;display:grid;grid-template-columns:72px 1fr auto;align-items:center;min-height:144px;box-shadow:0 5px 18px rgba(18,41,104,.04)}
#ag-smart-weighing .ag-status-ico{width:68px;height:68px;border-radius:18px;display:flex;align-items:center;justify-content:center}
#ag-smart-weighing .ag-status-ico svg{width:40px;height:40px}
#ag-smart-weighing .ag-status-value{font-size:62px;font-weight:900;line-height:1;padding:0 14px}
#ag-smart-weighing .ag-status-lines{font-size:22px;line-height:1.18;color:#162a6f;font-weight:500;justify-self:start}
#ag-smart-weighing .ag-ranch-bottom{display:grid;grid-template-columns:1.62fr 1fr;gap:16px;padding:0 14px 6px 14px;min-height:0}
#ag-smart-weighing .ag-card{background:#fff;border:1px solid var(--ag-line);border-radius:18px;box-shadow:0 5px 18px rgba(18,41,104,.04);padding:16px 18px;min-height:0;display:flex;flex-direction:column}
#ag-smart-weighing .ag-card-title{display:flex;align-items:center;gap:12px;color:#122968;font-size:25px;font-weight:900;margin:0 0 14px}
#ag-smart-weighing .ag-title-icon{width:40px;height:40px;color:#13884a;display:flex;align-items:center;justify-content:center}
#ag-smart-weighing .ag-title-icon svg{width:34px;height:34px}
#ag-smart-weighing .ag-link{margin-left:auto;color:#17934e;font-size:18px;font-weight:600}
#ag-smart-weighing .ag-table-wrap{min-height:0;overflow:auto;border-radius:14px}
#ag-smart-weighing .ranch-table table{width:100%;border-collapse:collapse;font-size:17px;color:#19307c}
#ag-smart-weighing table thead th{text-align:left;padding:12px 12px;background:#f4f9fb;color:#173071;font-size:17px;font-weight:800;position:sticky;top:0;z-index:1}
#ag-smart-weighing table tbody td{padding:15px 12px;border-top:1px solid #ecf2f3;vertical-align:middle}
#ag-smart-weighing .ag-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#ff3955;margin-right:8px;vertical-align:middle}
#ag-smart-weighing .ag-pill{display:inline-flex;align-items:center;justify-content:center;min-width:74px;height:38px;border-radius:10px;font-size:18px;font-weight:700;color:#fff;padding:0 14px}
#ag-smart-weighing .ag-pill.high{background:#ff3356}#ag-smart-weighing .ag-pill.mid{background:#f7ad11}
#ag-smart-weighing .ag-ranch-summary{display:flex;flex-direction:column;gap:14px;min-height:0}
#ag-smart-weighing .ag-summary-card{display:grid;grid-template-columns:84px 1fr;align-items:center;border:1px solid var(--ag-line);border-radius:16px;padding:16px 14px;min-height:106px}
#ag-smart-weighing .ag-summary-ico{width:68px;height:68px;border-radius:16px;background:#dcf8dd;color:#118245;display:flex;align-items:center;justify-content:center}
#ag-smart-weighing .ag-summary-ico svg{width:40px;height:40px}
#ag-smart-weighing .ag-summary-animal-icon{width:40px;height:40px;object-fit:contain;display:block}
#ag-smart-weighing .ag-summary-label{font-size:19px;color:#19307c;margin-bottom:8px}
#ag-smart-weighing .ag-summary-value{font-size:28px;color:#162a6f;font-weight:900;line-height:1.1}
@media (max-width:1600px){
  #ag-smart-weighing .ag-title h1{font-size:52px}#ag-smart-weighing .ag-title p{font-size:23px}
  #ag-smart-weighing .ag-status-value{font-size:52px}#ag-smart-weighing .ag-status-lines{font-size:19px}
}


/* R4/R5 preserved. R6 reduces the Ranch dashboard to Admin-like viewport parity and restores the approved summary icons. */
#ag-smart-weighing .ag-main{min-width:0;min-height:0;overflow:hidden}
#ag-smart-weighing .ag-dashboard{min-width:0;min-height:0;overflow:hidden}
#ag-smart-weighing .ag-ranch-bottom{min-height:0;overflow:hidden}
#ag-smart-weighing .ag-ranch-bottom>.ag-card{min-height:0;overflow:hidden}
#ag-smart-weighing .ranch-table{min-height:0;height:100%;overflow:auto;scrollbar-gutter:stable}
#ag-smart-weighing .ag-ranch-summary{min-height:0;overflow:auto;scrollbar-gutter:stable}

@media (max-height:950px){
  #ag-smart-weighing .ag-shell{grid-template-columns:224px 1fr;grid-template-rows:80px 1fr}
  #ag-smart-weighing .ag-sidebar{padding:10px 12px 8px}
  #ag-smart-weighing .ag-logo-wrap{padding:1px 0 6px}
  #ag-smart-weighing .ag-logo{width:160px}
  #ag-smart-weighing .ag-nav{gap:2px}
  #ag-smart-weighing .ag-nav-btn,#ag-smart-weighing .ag-bottom-btn{height:36px;border-radius:11px;padding:0 10px;font-size:13px;gap:10px}
  #ag-smart-weighing .ag-nav-icon{width:21px;height:21px;flex-basis:21px}
  #ag-smart-weighing .ag-nav-icon svg,#ag-smart-weighing .ag-animal-user-icon{width:19px;height:19px}
  #ag-smart-weighing .ag-sidebar-bottom{padding-top:4px;gap:2px}
  #ag-smart-weighing .ag-footer-brand{gap:2px;font-size:8px;margin-bottom:2px}
  #ag-smart-weighing .ag-footer-brand img{width:44px;height:44px}

  #ag-smart-weighing .ag-topbar{gap:8px;padding:8px 12px 6px 10px}
  #ag-smart-weighing .ag-burger{width:36px;height:36px}
  #ag-smart-weighing .ag-burger svg{width:24px;height:24px}
  #ag-smart-weighing .ag-scopes{gap:7px}
  #ag-smart-weighing .ag-select select{height:40px;padding-left:38px;padding-right:30px;font-size:13px}
  #ag-smart-weighing .ag-select-icon{left:10px;width:19px;height:19px}
  #ag-smart-weighing .ag-select-icon svg{width:18px;height:18px}
  #ag-smart-weighing .ag-select.ranch select{width:192px}
  #ag-smart-weighing .ag-select.finca select{width:176px}
  #ag-smart-weighing .ag-select.lote select{width:150px}
  #ag-smart-weighing .ag-bell{width:36px;height:36px}
  #ag-smart-weighing .ag-bell svg{width:24px;height:24px}
  #ag-smart-weighing .ag-bell-badge{min-width:16px;height:16px;font-size:10px}
  #ag-smart-weighing .ag-user{min-width:220px;padding:5px 9px;gap:8px;border-radius:13px}
  #ag-smart-weighing .ag-avatar{width:40px;height:40px;font-size:20px}
  #ag-smart-weighing .ag-user strong{font-size:14px}
  #ag-smart-weighing .ag-user small{font-size:10px}

  #ag-smart-weighing .ag-main{padding:0 10px 8px 0}
  #ag-smart-weighing .ag-dashboard{grid-template-rows:58px 184px minmax(0,1fr);gap:8px}
  #ag-smart-weighing .ag-heading{padding:0 10px 0 10px;align-items:flex-start}
  #ag-smart-weighing .ag-title h1{font-size:36px;line-height:.98}
  #ag-smart-weighing .ag-title p{margin-top:4px;font-size:16px}
  #ag-smart-weighing .ag-date{padding-top:7px;font-size:14px}

  #ag-smart-weighing .ag-ranch-kpis{gap:8px;padding:0 8px}
  #ag-smart-weighing .ag-status-card{min-height:84px;padding:8px 10px;grid-template-columns:48px 50px 1fr;border-radius:14px}
  #ag-smart-weighing .ag-status-ico{width:42px;height:42px;border-radius:12px}
  #ag-smart-weighing .ag-status-ico svg{width:24px;height:24px}
  #ag-smart-weighing .ag-status-value{font-size:34px;padding:0 7px}
  #ag-smart-weighing .ag-status-lines{font-size:13px;line-height:1.12}

  #ag-smart-weighing .ag-ranch-bottom{grid-template-columns:1.64fr 1fr;gap:8px;padding:0 8px 0 8px}
  #ag-smart-weighing .ag-card{padding:8px 10px;border-radius:14px}
  #ag-smart-weighing .ag-card-title{gap:8px;font-size:18px;margin-bottom:5px}
  #ag-smart-weighing .ag-title-icon{width:28px;height:28px}
  #ag-smart-weighing .ag-title-icon svg{width:23px;height:23px}
  #ag-smart-weighing .ag-link{font-size:13px}
  #ag-smart-weighing .ranch-table table{font-size:12px}
  #ag-smart-weighing table thead th{padding:6px 7px;font-size:12px}
  #ag-smart-weighing table tbody td{padding:6px 7px}
  #ag-smart-weighing .ag-pill{min-width:52px;height:24px;border-radius:7px;font-size:12px;padding:0 8px}
  #ag-smart-weighing .ag-ranch-summary{gap:6px}
  #ag-smart-weighing .ag-summary-card{grid-template-columns:50px 1fr;min-height:56px;padding:6px 8px;border-radius:11px}
  #ag-smart-weighing .ag-summary-ico{width:38px;height:38px;border-radius:10px}
  #ag-smart-weighing .ag-summary-ico svg{width:23px;height:23px}
  #ag-smart-weighing .ag-summary-animal-icon{width:23px;height:23px}
  #ag-smart-weighing .ag-summary-label{font-size:12px;margin-bottom:1px}
  #ag-smart-weighing .ag-summary-value{font-size:18px}
}

@media (max-height:900px){
  #ag-smart-weighing .ag-dashboard{grid-template-rows:52px 172px minmax(0,1fr);gap:6px}
  #ag-smart-weighing .ag-title h1{font-size:32px}
  #ag-smart-weighing .ag-title p{font-size:14px}
  #ag-smart-weighing .ag-date{font-size:13px}
  #ag-smart-weighing .ag-status-card{min-height:78px}
  #ag-smart-weighing .ag-status-value{font-size:31px}
  #ag-smart-weighing .ag-status-lines{font-size:12px}
  #ag-smart-weighing .ag-card{padding:7px 9px}
  #ag-smart-weighing .ag-card-title{font-size:17px}
  #ag-smart-weighing .ag-summary-card{min-height:52px}
  #ag-smart-weighing .ag-summary-ico{width:36px;height:36px}
  #ag-smart-weighing .ag-summary-ico svg{width:21px;height:21px}
  #ag-smart-weighing .ag-summary-label{font-size:11px}
  #ag-smart-weighing .ag-summary-value{font-size:17px}
}

@media (max-height:820px){
  #ag-smart-weighing .ag-shell{grid-template-columns:216px 1fr;grid-template-rows:74px 1fr}
  #ag-smart-weighing .ag-dashboard{grid-template-rows:48px 162px minmax(0,1fr);gap:5px}
  #ag-smart-weighing .ag-title h1{font-size:28px}
  #ag-smart-weighing .ag-title p{font-size:13px}
  #ag-smart-weighing .ag-status-card{min-height:72px}
  #ag-smart-weighing .ag-status-value{font-size:28px}
  #ag-smart-weighing .ag-status-lines{font-size:11px}
  #ag-smart-weighing .ag-footer-brand img{width:40px;height:40px}
  #ag-smart-weighing .ag-nav-btn,#ag-smart-weighing .ag-bottom-btn{height:33px}
}

#ag-smart-weighing .pw-page{height:100%;min-height:0;display:grid;grid-template-rows:46px minmax(150px,.36fr) minmax(0,1fr);gap:16px;padding:0 14px 6px}
#ag-smart-weighing .pw-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
#ag-smart-weighing .pw-breadcrumb{white-space:nowrap}
#ag-smart-weighing .pw-breadcrumb button{border:0;background:none;color:inherit;padding:0;cursor:pointer}
#ag-smart-weighing .pw-tabs{display:flex;min-width:0;border:1px solid var(--ag-line);border-radius:8px;overflow:hidden;background:#fff}
#ag-smart-weighing .pw-tabs button{border:0;border-right:1px solid var(--ag-line);background:none;color:var(--ag-text);padding:9px 14px;font-size:14px;cursor:pointer}
#ag-smart-weighing .pw-tabs button.active{background:#07543b;color:#fff}
#ag-smart-weighing .pw-summary{min-height:0;display:grid;grid-template-columns:1.12fr 1fr;gap:16px}
#ag-smart-weighing .pw-profile{flex-direction:row;gap:18px;min-width:0;align-items:stretch}
#ag-smart-weighing .pw-photo{width:42%;min-width:0;overflow:hidden;border-radius:8px;background:#f0f4ef;display:grid;place-items:center}
#ag-smart-weighing .pw-photo svg,#ag-smart-weighing .pw-photo img{width:100%;height:100%;object-fit:cover}
#ag-smart-weighing .pw-animal{align-self:center;min-width:0}
#ag-smart-weighing .pw-animal h1{font-size:27px;margin:0 0 5px}
#ag-smart-weighing .pw-animal p{font-size:15px;margin:4px 0}
#ag-smart-weighing .pw-badge{display:inline-block;padding:3px 6px;background:#d4f9d3;color:#116329;border-radius:5px;font-size:12px;white-space:nowrap}
#ag-smart-weighing .pw-metrics{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:12px;min-height:0}
#ag-smart-weighing .pw-metric{justify-content:center;gap:8px}
#ag-smart-weighing .pw-metric span{font-size:15px}
#ag-smart-weighing .pw-metric strong{font-size:27px;color:#076532}
#ag-smart-weighing .pw-metric .pw-negative{color:#eb2845}
#ag-smart-weighing .pw-bottom{min-height:0;display:grid;grid-template-columns:1.12fr 1fr;gap:16px}
#ag-smart-weighing .pw-left{min-height:0;display:grid;grid-template-rows:minmax(0,1.05fr) minmax(180px,1fr);gap:14px}
#ag-smart-weighing .pw-chart-area{flex:1;min-height:0}
#ag-smart-weighing .pw-chart-area svg{width:100%;height:100%;min-height:0}
#ag-smart-weighing .pw-chart-area line{stroke:#e3eaf0;stroke-width:1}
#ag-smart-weighing .pw-chart-area text{fill:#344b69;font-size:12px}
#ag-smart-weighing .pw-chart-area polyline{stroke:#13884a;stroke-width:2.5;fill:none}
#ag-smart-weighing .pw-chart-area circle{fill:#13884a}
#ag-smart-weighing .pw-table-scroll{overflow:auto;min-height:0;flex:1}
#ag-smart-weighing .pw-table table{width:100%;border-collapse:collapse;font-size:14px}
#ag-smart-weighing .pw-table table th,#ag-smart-weighing .pw-table table td{padding:8px 9px}
#ag-smart-weighing .pw-analysis-scroll{min-height:0;overflow:auto}
#ag-smart-weighing .pw-status{display:flex;align-items:center;gap:10px;font-size:15px;flex-wrap:wrap}
#ag-smart-weighing .pw-signals,#ag-smart-weighing .pw-evidence{list-style:none;margin:15px 0 20px;padding:0;font-size:15px}
#ag-smart-weighing .pw-signals li,#ag-smart-weighing .pw-evidence li{display:flex;align-items:center;gap:10px;margin:11px 0}
#ag-smart-weighing .pw-check{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;flex:0 0 17px;background:#47bb2f;border-radius:50%;color:white;font-weight:800;font-size:12px}
#ag-smart-weighing .pw-unknown{background:#edf0f3;color:#53657b}
#ag-smart-weighing .pw-analysis h3{font-size:18px;margin:20px 0 10px}
#ag-smart-weighing .pw-confidence{display:flex;align-items:center;gap:12px;font-size:15px}
#ag-smart-weighing progress{width:100%;height:10px;appearance:none;border:0}
#ag-smart-weighing progress::-webkit-progress-bar{background:#e7edf2;border-radius:8px}
#ag-smart-weighing progress::-webkit-progress-value{background:#13884a;border-radius:8px}
#ag-smart-weighing .pw-confidence strong{white-space:nowrap}
#ag-smart-weighing .pw-detail-page{grid-template-rows:46px 190px minmax(0,1fr)}
#ag-smart-weighing .pw-detail{overflow:auto}
#ag-smart-weighing .pw-message:not([hidden]){position:static;background:#fff6dd;padding:8px;font-size:12px;border-radius:6px}
#ag-smart-weighing .pw-page:has(.pw-message:not([hidden])){grid-template-rows:46px minmax(150px,.36fr) minmax(0,1fr) auto}
#ag-smart-weighing.pw-nav-collapsed .ag-sidebar{display:none}
#ag-smart-weighing.pw-nav-collapsed .ag-shell{grid-template-columns:1fr}
@media(max-height:950px){
#ag-smart-weighing .pw-page{gap:8px;padding:0 8px;grid-template-rows:36px minmax(128px,.34fr) minmax(0,1fr)}
#ag-smart-weighing .pw-toolbar{font-size:12px;gap:8px}
#ag-smart-weighing .pw-tabs button{font-size:12px;padding:8px 11px}
#ag-smart-weighing .pw-summary,#ag-smart-weighing .pw-bottom{gap:8px}
#ag-smart-weighing .pw-profile{gap:12px}
#ag-smart-weighing .pw-animal h1{font-size:23px}
#ag-smart-weighing .pw-animal p{font-size:12px;margin:3px 0}
#ag-smart-weighing .pw-badge{font-size:10px}
#ag-smart-weighing .pw-metrics{gap:8px}
#ag-smart-weighing .pw-metric{gap:5px}
#ag-smart-weighing .pw-metric span{font-size:12px}
#ag-smart-weighing .pw-metric strong{font-size:23px}
#ag-smart-weighing .pw-left{gap:8px;grid-template-rows:minmax(0,1fr) minmax(148px,.8fr)}
#ag-smart-weighing .pw-table table{font-size:12px}
#ag-smart-weighing .pw-table table th,#ag-smart-weighing .pw-table table td{padding:6px 7px}
#ag-smart-weighing .pw-status{font-size:12px;gap:6px}
#ag-smart-weighing .pw-signals,#ag-smart-weighing .pw-evidence{font-size:12px;margin:10px 0 16px}
#ag-smart-weighing .pw-signals li,#ag-smart-weighing .pw-evidence li{margin:9px 0;gap:8px}
#ag-smart-weighing .pw-analysis h3{font-size:15px;margin:16px 0 9px}
#ag-smart-weighing .pw-confidence{font-size:12px}
#ag-smart-weighing .pw-detail-page{grid-template-rows:36px 140px minmax(0,1fr)}
}
@media(max-height:820px){
#ag-smart-weighing .pw-animal p{margin:2px 0;font-size:11px}
#ag-smart-weighing .pw-animal h1{font-size:21px;margin-bottom:3px}
#ag-smart-weighing .pw-tabs button{padding:7px 9px;font-size:11px}
#ag-smart-weighing .pw-signals li,#ag-smart-weighing .pw-evidence li{margin:7px 0}
#ag-smart-weighing .pw-signals,#ag-smart-weighing .pw-evidence{margin:8px 0 12px}
#ag-smart-weighing .pw-analysis h3{margin:12px 0 8px}
}
