.farm-history-page{display:grid;gap:var(--aapm-component-dashboard-gap);min-width:0}.farm-history-filterbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--aapm-primitive-space-2)}.farm-history-filterbar .aapm-context-inline{min-width:0}.farm-history-list{display:grid;gap:var(--aapm-primitive-space-2);min-width:0}.farm-history-list-header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:var(--aapm-primitive-space-3);min-width:0}.farm-history-list-header h2{margin:0;font-size:var(--aapm-component-typography-heading-size);line-height:var(--aapm-component-typography-heading-line-height);font-weight:var(--aapm-component-typography-heading-weight)}.farm-history-list-tools{display:flex;flex-wrap:wrap;align-items:center;gap:var(--aapm-primitive-space-2);min-width:0}.farm-history-list-tools .aapm-field{min-width:0;flex:0 1 var(--aapm-component-dashboard-search-width);max-width:var(--aapm-component-dashboard-search-width)}.farm-history-list-tools .aapm-field .aapm-input-group{width:100%}.farm-history-raw-table .aapm-table-content .farm-history-group-row>th{height:auto;padding:var(--aapm-primitive-space-3) var(--aapm-primitive-space-5) var(--aapm-primitive-space-1);border-block-end:0;background:transparent;text-align:start}.farm-history-raw-table .aapm-table-content tbody+tbody>.farm-history-group-row>th{border-block-start:var(--aapm-component-shared-dimension-1px) solid var(--border)}.farm-history-group-label{color:var(--muted);font-size:var(--aapm-component-typography-caption-size);font-weight:var(--aapm-component-typography-heading-weight)}.farm-history-group-sep{margin-inline:var(--aapm-primitive-space-1);opacity:var(--aapm-primitive-opacity-70)}.farm-history-group-label [data-farm-history-today]{color:var(--foreground)}.farm-history-raw-table tbody tr[data-actionable]:focus-visible>td{background:var(--aapm-sunk)}.farm-history-raw-table .aapm-table-content tr[data-selected][data-actionable]>td{background:var(--aapm-semantic-green-surface)}.farm-history-raw-table :is(thead th:last-child,td[data-col=open]){width:1%;white-space:nowrap;text-align:end}.farm-history-raw-table :is(td[data-col=cage],td[data-col=actor],td[data-col=value]){white-space:nowrap}.farm-history-raw-table td[data-col=status] .aapm-chip-text{overflow-wrap:normal;white-space:nowrap}.farm-history-raw-table td[data-col=cage] .aapm-name-text{max-width:var(--aapm-component-shared-dimension-12rem);white-space:nowrap}.farm-history-raw-table .aapm-table-content tr>td[data-col=open]{padding-inline-end:var(--aapm-primitive-space-3)}.farm-history-raw-table td[data-col=open] .aapm-button{color:var(--muted)}.farm-history-raw-table td[data-col=open] .aapm-button>svg{width:var(--aapm-component-field-icon-size);height:var(--aapm-component-field-icon-size)}.farm-history-value[data-replaced]{color:var(--muted);text-decoration:line-through}.farm-history-time{white-space:nowrap;color:var(--muted);font-size:var(--aapm-component-typography-caption-size)}.farm-history-cage{font-weight:var(--aapm-component-typography-label-weight)}.farm-history-actor{grid-template-columns:minmax(0,1fr);display:grid;min-width:var(--aapm-component-shared-dimension-96px)}.farm-history-actor>strong{overflow:hidden;max-width:min(100%,var(--aapm-component-shared-dimension-12rem));font-weight:var(--aapm-component-typography-body-weight);text-overflow:ellipsis;white-space:nowrap}.farm-history-actor>small{color:var(--muted);font-size:var(--aapm-component-typography-caption-size)}.farm-history-states{display:flex;flex-wrap:wrap;gap:var(--aapm-primitive-space-1)}.farm-history-foot-text>[aria-live]{color:var(--muted);font-size:var(--aapm-component-typography-caption-size);line-height:var(--aapm-component-typography-caption-line-height)}.farm-history-foot .aapm-context-inline,.farm-history-rail{min-width:0}.farm-history-filterbar-wrap{min-width:0;container-type:inline-size}@container (min-width:60rem){.farm-history-filterbar{flex-wrap:nowrap}.farm-history-filterbar>.aapm-filter-disclosure{flex:0 0 auto}}@container (max-width:59.99rem){.farm-history-filterbar>.aapm-scroll-row{flex:1 1 100%}}.farm-history-scope-link{flex:none}.farm-history-inspector{display:grid;gap:var(--aapm-primitive-space-4);min-width:0}.farm-history-inspector-head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--aapm-primitive-space-3);min-width:0}.farm-history-inspector-titles{display:flex;flex-direction:column;gap:var(--aapm-primitive-space-1);min-width:0}.farm-history-inspector-titles>p{margin:0}.farm-history-inspector-titles h2{margin:0;font-size:var(--aapm-component-typography-heading-size);line-height:var(--aapm-component-typography-heading-line-height);font-weight:var(--aapm-component-typography-heading-weight)}.farm-history-effective{padding:var(--aapm-primitive-space-3) var(--aapm-primitive-space-4);border-radius:var(--aapm-primitive-radius-control);box-shadow:none}.farm-history-effective>header>div>p{opacity:var(--aapm-primitive-opacity-75)}.farm-history-effective-body{display:flex;flex-direction:column;gap:var(--aapm-primitive-space-1)}.farm-history-effective-body .aapm-cell-quantity,.farm-history-effective-body>span{color:currentColor}.farm-history-effective-body .aapm-cell-quantity{font-size:var(--aapm-component-typography-title-size);line-height:var(--aapm-component-typography-title-line-height);font-weight:var(--aapm-component-typography-heading-weight)}.farm-history-effective-body .aapm-cell-quantity>*,.farm-history-effective-foot{opacity:var(--aapm-primitive-opacity-75)}.farm-history-effective-foot{display:block;margin-top:var(--aapm-primitive-space-1);font-size:var(--aapm-component-typography-caption-size)}.farm-history-trail{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;min-width:0}.farm-history-trail>li{display:flex;gap:var(--aapm-primitive-space-3);min-width:0}.farm-history-trail-icon{display:flex;flex-direction:column;align-items:center;flex:none}.farm-history-trail-icon>svg{width:var(--aapm-component-status-mark-size);height:var(--aapm-component-status-mark-size);padding:var(--aapm-primitive-space-1);border-radius:var(--aapm-primitive-radius-pill);background:var(--surface-subtle);color:var(--muted)}.farm-history-trail>li[data-tone=ok] .farm-history-trail-icon>svg{background:var(--aapm-semantic-feedback-success-surface);color:var(--aapm-semantic-success)}.farm-history-trail>li:not(:last-child) .farm-history-trail-icon:after{content:"";flex:1;width:var(--aapm-primitive-dimension-2px);min-height:var(--aapm-primitive-space-4);background:var(--border)}.farm-history-trail-body{display:flex;flex-direction:column;gap:var(--aapm-primitive-space-1);padding-bottom:var(--aapm-primitive-space-4);min-width:0}.farm-history-trail-body>strong{font-weight:var(--aapm-component-typography-label-weight)}.farm-history-trail-body>p{margin:0;font-size:var(--aapm-component-typography-body-size);line-height:var(--aapm-component-typography-body-line-height)}.farm-history-note{display:flex;gap:var(--aapm-primitive-space-3);align-items:flex-start;padding:var(--aapm-primitive-space-3);border-radius:var(--aapm-component-data-radius);background:var(--surface-subtle);color:var(--muted);font-size:var(--aapm-component-typography-caption-size);margin:0}.farm-history-note>svg{flex:none;margin-top:var(--aapm-component-shared-spacing-2px)}.farm-history-correct{width:100%;justify-content:center}.farm-history-raw-table{container:history-records/inline-size}@container history-records (max-width:800px){.farm-history-raw-table table,.farm-history-raw-table tbody{display:block;width:100%}.farm-history-raw-table thead{position:absolute;width:var(--aapm-component-shared-dimension-1px);height:var(--aapm-component-shared-dimension-1px);overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.farm-history-raw-table .farm-history-group-row,.farm-history-raw-table .farm-history-group-row>th{display:block}.farm-history-raw-table tbody tr[data-actionable]{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"kind value" "cage time" "actor actor" "status status";column-gap:var(--aapm-primitive-space-3);row-gap:var(--aapm-primitive-space-1);padding:var(--aapm-primitive-space-4) var(--aapm-primitive-space-5);border-block-end:var(--aapm-component-shared-dimension-1px) solid var(--surface-subtle)}.farm-history-raw-table tbody tr[data-actionable]:last-child{border-block-end:0}.farm-history-raw-table tbody tr[data-actionable]:is(:hover,:focus-visible){background:var(--aapm-sunk)}.farm-history-raw-table tbody tr[data-actionable][data-selected]{background:var(--aapm-semantic-green-surface)}.farm-history-raw-table tbody tr[data-actionable] td,.farm-history-raw-table tbody tr[data-actionable] td:first-child,.farm-history-raw-table tbody tr[data-actionable] td:last-child{display:block;height:auto;padding:0;border:0;min-width:0;text-align:start}.farm-history-raw-table td[data-col=kind]{grid-area:kind}.farm-history-raw-table td[data-col=value]{grid-area:value;text-align:end}.farm-history-raw-table td[data-col=cage]{grid-area:cage}.farm-history-raw-table td[data-col=time]{grid-area:time;text-align:end}.farm-history-raw-table td[data-col=actor]{grid-area:actor}.farm-history-raw-table td[data-col=actor] .farm-history-actor{display:flex;flex-wrap:wrap;gap:var(--aapm-primitive-space-1);color:var(--muted);font-size:var(--aapm-component-typography-caption-size)}.farm-history-raw-table td[data-col=status]{grid-area:status}.farm-history-raw-table tbody tr[data-actionable] td[data-col=open]{display:none}.farm-history-inspector{gap:var(--aapm-primitive-space-3)}.farm-history-effective{padding:var(--aapm-primitive-space-4)}.farm-history-list-tools{flex:1 1 100%}.farm-history-list-header .aapm-field{flex:1 1 100%;max-width:100%}}.farm-history-search .aapm-label{position:absolute;width:var(--aapm-component-shared-dimension-1px);height:var(--aapm-component-shared-dimension-1px);overflow:hidden;clip-path:inset(50%);white-space:nowrap}.farm-history-progress{min-height:var(--aapm-component-typography-caption-line-height);margin:0 0 var(--aapm-primitive-space-2);text-align:end;color:var(--muted);font-size:var(--aapm-component-typography-caption-size)}.farm-history-progress b{color:var(--foreground);font-weight:var(--aapm-component-typography-label-weight)}.farm-history-notice{display:grid;gap:var(--aapm-primitive-space-1);min-height:var(--aapm-component-shared-dimension-64px);margin-block-end:var(--aapm-primitive-space-3);padding:var(--aapm-primitive-space-3) var(--aapm-primitive-space-4);border-radius:var(--aapm-primitive-radius-control);background:var(--surface-subtle);color:var(--foreground)}.farm-history-notice strong{font-weight:var(--aapm-component-typography-label-weight)}.farm-history-notice:not([data-state=missing],[data-state=complete]){background:transparent}.farm-history-notice span{color:var(--muted);font-size:var(--aapm-component-typography-caption-size)}.farm-history-cage{max-width:100%}.farm-history-actor>strong,.farm-history-cage{display:flex;min-width:0}.farm-history-raw-table .aapm-data-table-wide .aapm-cell-title strong{min-width:0}@media (max-width:640px){.farm-history-filterbar>.aapm-filter-disclosure{flex:1 1 100%}.farm-history-filterbar .aapm-filter-bar>.aapm-context-switcher{flex:1 1 100%;width:auto;max-width:none;min-width:0}.farm-history-filterbar .aapm-filter-bar>.aapm-context-switcher>.aapm-select-trigger{width:100%;max-width:none}.farm-history-filterbar>.aapm-scroll-row{flex:1 1 100%}.farm-history-list-tools,.farm-history-list-tools .aapm-field{flex:1 1 100%;max-width:none}}.farm-history-stock-reason{flex-basis:100%;color:var(--muted);font-size:var(--aapm-component-typography-caption-size);line-height:var(--aapm-component-typography-caption-line-height)}.farm-history-raw-table tbody tr[data-actionable]:focus-visible{outline:var(--aapm-component-focus-width) solid var(--focus);outline-offset:calc(-1 * var(--aapm-component-focus-width))}.farm-history-raw-table td:first-child{font-variant-numeric:tabular-nums}