/* ExpoLeite — interface local, sem fontes ou bibliotecas externas. */
:root {
    --green: #16745b;
    --green-dark: #105943;
    --green-soft: #eaf5ef;
    --blue: #4584c7;
    --blue-soft: #edf4fc;
    --ink: #25392f;
    --text: #57675f;
    --muted: #718178;
    --line: #e9eee9;
    --background: #f6f8f6;
    --white: #fff;
    --shadow: 0 4px 25px #263d2e04;
    --radius: 18px;
    --sidebar-width: 246px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
button, input, select, textarea { border: 0; }
button { background: none; }
input, select, textarea { min-width: 0; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
.icon { width: 21px; height: 21px; flex-shrink: 0; }
.animal-icon { overflow: visible; }
:focus-visible { outline: 3px solid #74b5e8; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 100; background: var(--green); color: white; padding: 12px 20px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; background: #fdfefd; border-right: 1px solid var(--line); padding: 35px 19px 0; z-index: 30; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 25px; letter-spacing: -1.1px; font-weight: 750; padding: 0 9px; }
.brand-symbol { width: 43px; height: 43px; background: var(--green); color: white; display: grid; place-items: center; border-radius: 13px; box-shadow: 0 4px 10px #16745b13; flex-shrink: 0; }
.brand-symbol .icon { width: 28px; height: 28px; }
.brand-green { color: var(--green); }
.brand small { display: block; font-size: 8px; font-weight: 600; letter-spacing: 2px; color: var(--muted); margin-top: 3px; }
.sidebar-edition { display: flex; align-items: center; gap: 8px; margin: 28px 8px 25px; border: 1px solid var(--line); background: #f7faf7; padding: 10px; border-radius: 10px; color: var(--text); font-size: 11px; }
.live-dot, .mini-dot { width: 6px; height: 6px; background: #4a9d79; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.edition-year { margin-left: auto; color: var(--muted); font-size: 10px; }
.nav-label { font-size: 9px; font-weight: 650; color: var(--muted); letter-spacing: 1.6px; margin: 0 14px 12px; }
.navigation .nav-label { margin-top: 30px; margin-bottom: 12px; }
.navigation { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; gap: 13px; align-items: center; height: 46px; padding: 0 14px; border-radius: 10px; font-size: 13px; color: #738078; transition: background .2s, color .2s; }
.nav-item .icon { width: 20px; height: 20px; }
.nav-item:hover { background: #f1f5f1; color: var(--green); }
.nav-item.active { color: var(--green); background: var(--green-soft); font-weight: 650; }
.nav-count { background: #e9efea; padding: 2px 7px; border-radius: 5px; margin-left: auto; color: #758b7b; font-size: 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 50px; }
.demo-card { padding: 19px 16px; background: linear-gradient(130deg, #f0f6f0, #e9f2ef); border: 1px solid #e7eee7; border-radius: 13px; margin: 0 3px 22px; }
.demo-card > .icon { color: var(--green); width: 25px; height: 25px; margin-bottom: 12px; }
.demo-card strong { font-size: 11px; font-weight: 650; }
.demo-card p { margin-top: 7px; color: #86948a; font-size: 10px; line-height: 1.8; }
.demo-card > span { display: block; border-top: 1px solid #dce8de; padding-top: 12px; margin-top: 12px; color: #779681; font-size: 9px; }
.sidebar-user { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 21px 1px; }
.avatar { width: 35px; height: 35px; border-radius: 50%; color: var(--green); background: #eaf1e8; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.sidebar-user strong { display: block; font-size: 10px; font-weight: 650; }
.sidebar-user small { display: block; font-size: 8px; color: var(--muted); margin-top: 5px; }
.sidebar-user form { margin-left: auto; }
.sidebar-user .icon-button { width: 27px; }
.sidebar-user .icon { width: 17px; }
.app-shell { margin-left: var(--sidebar-width); }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 37px; border-bottom: 1px solid var(--line); background: #ffffffb8; gap: 16px; }
.breadcrumb, .topbar-right { display: flex; align-items: center; gap: 15px; }
.breadcrumb { font-size: 11px; color: var(--muted); }
.breadcrumb .icon { width: 12px; height: 12px; color: #b3bcb5; }
.breadcrumb strong { color: var(--text); font-weight: 500; }
.topbar-right { gap: 22px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; border-radius: 6px; padding: 6px 9px; background: #eef5ee; font-size: 10px; color: #648770; font-weight: 500; }
.topbar-date { color: var(--muted); font-size: 10px; display: flex; gap: 8px; align-items: center; }
.topbar-date .icon { width: 16px; height: 16px; }
.small-avatar { width: 31px; height: 31px; font-size: 9px; }
.main-content { max-width: 1640px; margin: 0 auto; padding: 34px 37px 0; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 26px; }
.eyebrow { font-size: 9px; font-weight: 650; letter-spacing: 1.7px; color: #83978a; display: block; margin-bottom: 10px; }
.page-heading h1 { font-size: clamp(23px, 2vw, 31px); letter-spacing: -1.1px; font-weight: 650; line-height: 1.2; }
.heading-dot { color: var(--green); }
.page-heading p { color: #758279; margin-top: 11px; font-size: 12px; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 17px; border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: background .2s, box-shadow .2s, transform .2s; border: 1px solid transparent; min-height: 40px; }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: white; background: var(--green); box-shadow: 0 4px 8px #16745b0c; }
.button-primary:hover { background: var(--green-dark); box-shadow: 0 5px 12px #16745b20; transform: translateY(-1px); }
.button-secondary { color: var(--text); background: white; border-color: #e4ebe5; }
.button-secondary:hover { border-color: #b7d1c2; background: #f5faf7; }
.icon-button { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0; }
.icon-button:hover { color: var(--green); background: var(--green-soft); }
.icon-button .icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 550; padding: 5px 0; }
.text-link .icon { width: 15px; height: 15px; }
.text-link:hover { text-decoration: underline; }
.hero-card { border-radius: var(--radius); background: linear-gradient(115deg, #eaf3eb 0%, #e5f0e7 55%, #dcebdd 100%); display: flex; min-height: 240px; position: relative; overflow: hidden; margin-bottom: 23px; border: 1px solid #e0eae0; }
.hero-copy { padding: 27px 31px; width: 58%; z-index: 2; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cddfd0; padding: 5px 8px; border-radius: 5px; color: #67866d; font-weight: 600; font-size: 8px; letter-spacing: 1px; }
.hero-copy h2 { font-size: 28px; font-weight: 600; letter-spacing: -.8px; margin: 15px 0 11px; line-height: 1.2; color: #30523d; }
.hero-copy p { font-size: 11px; color: #7d9583; line-height: 1.8; }
.hero-link { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; margin-top: 18px; color: var(--green); font-weight: 650; }
.hero-link .icon { width: 15px; height: 15px; }
.hero-landscape { position: absolute; right: 0; bottom: 0; width: 51%; height: 100%; }
.hero-landscape > svg { width: 100%; height: 100%; object-fit: cover; }
.hero-float { position: absolute; bottom: 24px; right: 25px; display: flex; align-items: center; gap: 10px; background: #ffffffdd; backdrop-filter: blur(14px); padding: 13px 17px; border: 1px solid #ffffffa0; border-radius: 12px; box-shadow: 0 5px 24px #29483709; }
.hero-float > .icon { color: #638a73; width: 25px; height: 25px; }
.hero-float strong { display: block; font-size: 10px; font-weight: 600; color: #52705b; }
.hero-float small { display: block; font-size: 8px; color: #8c9b90; margin-top: 5px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 24px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 18px 19px; box-shadow: var(--shadow); }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 5px; color: #718076; font-size: 11px; }
.stat-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.stat-icon .icon { width: 19px; height: 19px; }
.green { background: var(--green-soft); color: var(--green); }
.blue { background: var(--blue-soft); color: var(--blue); }
.stat-value { display: block; font-size: 30px; font-weight: 650; letter-spacing: -1px; margin: 7px 0 14px; white-space: nowrap; }
.stat-value small { margin-left: 7px; font-size: 10px; font-weight: 400; letter-spacing: 0; color: #9aa59c; }
.stat-foot { border-top: 1px solid #f0f3ef; padding-top: 12px; display: flex; align-items: center; gap: 6px; color: #93a095; font-size: 9px; line-height: 1.5; }
.green-dot { background: #7caa8e; width: 5px; height: 5px; }
.dashboard-middle { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 23px; margin-bottom: 23px; }
.panel { background: white; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 23px 24px 0; gap: 14px; }
.panel-heading h2, .records-toolbar h2 { font-size: 14px; font-weight: 650; letter-spacing: -.25px; display: flex; align-items: center; gap: 8px; }
.panel-heading h2 > .icon { color: #a1a683; width: 17px; height: 17px; }
.panel-heading p, .records-toolbar p { font-size: 10px; color: #79877c; margin-top: 7px; line-height: 1.6; }
.soft-chip { display: flex; align-items: center; gap: 6px; font-size: 8px; color: #91a096; background: #f6f8f5; padding: 7px 9px; border-radius: 6px; white-space: nowrap; }
.soft-chip .icon { width: 12px; height: 12px; }
.chart-summary { padding: 19px 24px 0; display: flex; align-items: center; gap: 17px; }
.chart-summary > strong { font-size: 22px; font-weight: 650; letter-spacing: -.7px; }
.chart-summary > strong small { font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.chart-summary > span { display: flex; align-items: center; gap: 5px; font-size: 8px; color: #99a49b; }
.production-chart { padding: 11px 20px 0; }
.production-chart > svg { width: 100%; height: auto; }
.chart-grid { stroke: #edf1ec; stroke-dasharray: 4 4; }
.chart-axis { fill: #a5afa6; font-family: inherit; font-size: 10px; }
.chart-line { fill: none; stroke: #459f7a; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-point { fill: white; stroke: #459f7a; stroke-width: 2; }
.chart-details { margin: 0 24px 15px; color: var(--muted); font-size: 9px; }
.chart-details summary { cursor: pointer; padding: 5px 0; }
.chart-data { display: flex; flex-wrap: wrap; gap: 12px; padding: 9px 0; }
.chart-data strong { display: block; font-weight: 500; margin-top: 4px; color: var(--green); }
.category-overview { padding: 24px; display: flex; gap: 21px; align-items: center; min-height: 205px; }
.donut-wrap { width: 123px; height: 123px; position: relative; flex-shrink: 0; }
.donut-wrap svg { width: 100%; height: 100%; }
.donut-track { stroke: #f0f4ef; fill: none; stroke-width: 12px; }
.donut-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-label strong { font-size: 25px; font-weight: 650; letter-spacing: -1px; }
.donut-label span { font-size: 8px; color: #9da69e; margin-top: 3px; }
.category-color-0 { stroke: #429d77; }.category-color-1 { stroke: #7ca9cf; }.category-color-2 { stroke: #adcbb2; }.category-color-3 { stroke: #83bcbb; }.category-color-4 { stroke: #c7cf9c; }
.category-bg-0 { background: #429d77; }.category-bg-1 { background: #7ca9cf; }.category-bg-2 { background: #adcbb2; }.category-bg-3 { background: #83bcbb; }.category-bg-4 { background: #c7cf9c; }
.category-legend { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 17px; }
.category-legend > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 10px; color: #7d8e80; }
.legend-name { display: flex; gap: 6px; align-items: center; min-width: 0; }
.legend-dot { width: 6px; height: 6px; border-radius: 2px; display: block; flex-shrink: 0; }
.category-legend strong { font-size: 11px; color: #596d5e; font-weight: 600; white-space: nowrap; }
.category-legend small { font-size: 8px; font-weight: 400; color: #a4afa5; margin-left: 6px; }
.panel-bottom-link { border-top: 1px solid #f0f3ef; margin: 0 24px; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; color: #789781; font-size: 9px; }
.panel-bottom-link .icon { width: 14px; height: 14px; }
.ranking-panel { margin-bottom: 23px; }
.ranking-panel .panel-heading { padding-bottom: 19px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font-size: 10px; letter-spacing: .2px; font-weight: 550; color: #7c8b80; padding: 13px 16px; background: #fafbf9; border-top: 1px solid #f0f3ef; border-bottom: 1px solid #edf1ec; }
.sortable-heading { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.sortable-heading:hover { color: var(--green); }
.sort-indicator { width: 11px; height: 14px; flex: 0 0 11px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: #b8c2ba; }
.sortable-heading.is-sorted { color: var(--green); }
.sortable-heading.is-sorted .sort-indicator { color: var(--green); }
.sortable-heading.is-sorted.asc .sort-indicator path { opacity: .45; }
.sortable-heading.is-sorted.desc .sort-indicator path { opacity: .45; }
.sortable-heading.is-sorted.asc .sort-indicator path:first-child,
.sortable-heading.is-sorted.desc .sort-indicator path:last-child { opacity: 1; }
th.text-right .sortable-heading { margin-left: auto; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td { padding: 15px 16px; border-bottom: 1px solid #f0f3ef; color: #6f7f73; font-size: 11px; line-height: 1.6; }
td strong { color: #596d5d; font-weight: 550; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdfb; }
.text-right { text-align: right; }
.rank-badge { color: #9daba0; font-weight: 550; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 9px; }
.rank-0 { background: #f5f2e4; color: #b1a368; }.rank-1 { background: #eef1f1; color: #95a4a7; }.rank-2 { background: #f5eee7; color: #ba9c7e; }
.animal-cell { display: flex; gap: 11px; align-items: center; }
.animal-cell strong { display: block; font-size: 11px; }
.animal-cell small { display: block; font-size: 8px; color: #a4afa5; margin-top: 2px; }
.animal-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #edf3e9; color: #82a280; }
.animal-avatar .icon { width: 22px; height: 22px; }
.animal-avatar-1 { background: #eef3f7; color: #8ca9bc; }.animal-avatar-2 { background: #f5f1e9; color: #b6aa8d; }
.category-tag { display: inline-block; border: 1px solid #e6ede5; background: #f4f8f1; padding: 4px 8px; border-radius: 5px; color: #849b7b; font-size: 8px; }
.unit { color: #aab2aa; font-size: 8px; font-weight: 400; }
.ranking-note { padding: 14px 24px; border-top: 1px solid #f0f3ef; color: #99a59b; font-size: 8px; display: flex; align-items: center; gap: 7px; line-height: 1.7; }
.ranking-note .icon { width: 13px; height: 13px; }
.quick-actions { display: flex; gap: 20px; justify-content: space-between; align-items: center; background: #f0f4ed; padding: 19px 23px; border: 1px solid #e6ede2; border-radius: 13px; }
.quick-actions > div { display: flex; gap: 10px; align-items: center; }
.quick-icon { display: grid; place-items: center; width: 37px; height: 37px; background: #e3ebde; border-radius: 10px; color: #75956c; }
.quick-icon .icon { width: 20px; height: 20px; }
.quick-actions strong { font-size: 11px; font-weight: 550; color: #667b5e; }
.quick-actions small { display: block; font-size: 9px; color: #96a48d; margin-top: 5px; }
.quick-actions .button { min-height: 33px; font-size: 9px; padding: 9px 12px; background: #ffffffad; border-color: #e2eadd; color: #799070; }
.quick-actions .button .icon { width: 13px; height: 13px; }
.footer { margin: 28px 0 0; padding: 17px 0 23px; border-top: 1px solid #e9eee6; color: #a2aba0; font-size: 8px; display: flex; justify-content: space-between; gap: 10px; }
.footer-dot { margin: 0 5px; }
.module-notice { display: flex; gap: 10px; align-items: center; background: #eef5fc; color: #6c8ba6; border: 1px solid #e2edf7; border-radius: 10px; padding: 14px 17px; font-size: 11px; line-height: 1.7; margin-bottom: 20px; }
.module-notice .icon { width: 18px; height: 18px; }
.module-notice.subtle { background: #f0f6f0; border-color: #e1ebe1; color: #77917a; }
.form-panel { margin-bottom: 24px; }
.form-panel .panel-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.record-form { padding: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.form-field label { display: block; color: #62766a; font-size: 12px; font-weight: 550; margin-bottom: 9px; }
.required { color: var(--green); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 14px; background: #fcfdfb; border: 1px solid #e2e9e2; border-radius: 9px; outline: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; font-size: 13px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #89b49b; box-shadow: 0 0 0 3px #16745b0d; }
.form-field input::placeholder, textarea::placeholder { color: #a6b0a7; font-size: 12px; }
.searchable-select { position: relative; }
.searchable-select-input { cursor: text; }
.searchable-select-options { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto; padding: 5px; border: 1px solid #dce6df; border-radius: 9px; background: white; box-shadow: 0 12px 28px #163d2a1f; }
.searchable-select-options[hidden] { display: none; }
.searchable-select-option { padding: 10px 12px; border-radius: 6px; color: var(--ink); font-size: 13px; line-height: 1.45; cursor: pointer; }
.searchable-select-option:hover, .searchable-select-option.is-active { color: var(--green); background: var(--green-soft); }
.searchable-select-empty { padding: 12px; color: var(--muted); font-size: 12px; }
.form-field textarea { resize: vertical; min-height: 100px; }
.full-width { grid-column: 1 / -1; }
.photo-upload { display: grid; gap: 12px; }
.animal-photo-preview { width: 160px; height: 160px; object-fit: cover; border-radius: 15px; border: 1px solid var(--line); }
.animal-photo-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.animal-photo-cell { width: 76px; }
.animal-photo-trigger { display: inline-flex; border-radius: 10px; cursor: zoom-in; }
.animal-photo-trigger:hover .animal-photo-thumb { border-color: var(--green); }
.animal-photo-placeholder { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--green-soft); color: #82a280; }
.photo-viewer-open { overflow: hidden; }
.animal-photo-dialog { padding: 0; border: 1px solid var(--line); border-radius: 20px; width: min(1000px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: 90vh; max-height: 90dvh; overflow: hidden; color: var(--ink); background: var(--white); box-shadow: 0 20px 80px #102b3650; }
.animal-photo-dialog[open] { display: flex; flex-direction: column; }
.animal-photo-dialog::backdrop { background: #132d38b3; backdrop-filter: blur(5px); }
.animal-photo-dialog-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.animal-photo-dialog-header h2 { font-size: 20px; font-weight: 650; overflow-wrap: anywhere; max-height: 15vh; overflow: auto; }
.animal-photo-dialog-header .icon-button { width: 42px; height: 42px; }
.animal-photo-stage { background: #f2f5f3; display: grid; place-items: center; position: relative; overflow: hidden; flex: 0 1 auto; height: min(70vh, 740px); height: min(70dvh, 740px); min-height: 0; touch-action: none; }
.animal-photo-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.animal-photo-stage.is-zoomed { cursor: grab; }
.animal-photo-stage.is-dragging { cursor: grabbing; }
.animal-photo-stage [hidden] { display: none; }
.animal-photo-error { padding: 25px; text-align: center; color: var(--text); line-height: 1.7; }
.form-field .photo-remove { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; }
.form-field .photo-remove input { width: 16px; height: 16px; box-shadow: none; }
.form-field input[type="file"] { padding: 9px; }
.form-field input[type="file"]::file-selector-button { border: 0; border-radius: 6px; background: var(--green-soft); color: var(--green); padding: 9px 12px; margin-right: 10px; cursor: pointer; }
.form-field [aria-invalid="true"] { border-color: #d88f8b; background: #fffafa; }
.field-error { display: block; color: #b7615c; margin-top: 8px; font-size: 11px; }
.field-help { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.field-help a { color: var(--green); text-decoration: underline; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.records-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 23px 24px; gap: 20px; }
.count-pill { padding: 3px 8px; font-size: 10px; color: var(--green); background: var(--green-soft); border-radius: 6px; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-input { display: flex; align-items: center; gap: 8px; background: #f7f9f6; border: 1px solid #e8ede5; border-radius: 8px; padding: 10px 12px; }
.search-input .icon { width: 16px; height: 16px; color: #a1aea2; }
.search-input input { width: 190px; background: none; color: var(--text); font-size: 11px; outline: none; }
.search-input:focus-within { border-color: #89b49b; box-shadow: 0 0 0 3px #16745b0d; }
.search-input input::placeholder { color: #a6b0a7; }
.search-form .button { padding: 9px 12px; min-height: 36px; font-size: 10px; }
.animal-filter-toolbar { flex-direction: column; align-items: stretch; }
.animal-filter-form { width: 100%; flex-wrap: wrap; align-items: flex-end; }
.animal-filter-form .search-input { flex: 1 1 220px; min-width: 0; }
.animal-filter-form .search-input input { width: 100%; }
.animal-filter-field { display: flex; flex: 1 1 170px; flex-direction: column; gap: 7px; min-width: 0; }
.animal-filter-field > span { font-size: 11px; color: var(--text); font-weight: 550; }
.animal-filter-field select { width: 100%; height: 38px; padding: 8px 12px; border: 1px solid #e8ede5; border-radius: 8px; background: #f7f9f6; color: var(--text); font-size: 12px; }
.animal-filter-field select:focus { outline: 3px solid #16745b15; border-color: #89b49b; }
.animal-filter-form .text-link { min-height: 36px; align-items: center; }
.production-date-filter { display: flex; justify-content: flex-end; align-items: flex-end; gap: 9px; padding: 0 24px 17px; }
.production-date-filter label { display: flex; flex-direction: column; gap: 6px; }
.production-date-filter label span { color: var(--text); font-size: 11px; font-weight: 550; }
.production-date-filter input[type="date"] { min-height: 36px; padding: 7px 10px; border: 1px solid #e8ede5; border-radius: 8px; background: #f7f9f6; color: var(--text); font-size: 12px; }
.production-date-filter input[type="date"]:focus { outline: 3px solid #16745b15; border-color: #89b49b; }
.production-date-filter .button { padding: 9px 12px; min-height: 36px; font-size: 10px; }
@media (max-width: 760px) {
    .production-date-filter { justify-content: flex-start; padding: 0 20px 17px; }
    .production-date-filter input[type="date"] { font-size: 16px; min-height: 44px; }
    .production-date-filter .button { min-height: 44px; }
    .animal-filter-field select { font-size: 16px; height: 44px; }
    .animal-filter-form .search-input { flex-basis: 100%; }
    .animal-filter-form .search-input input { font-size: 16px; }
}
.records-panel td { font-size: 12px; }
.records-panel th { font-size: 9px; }
.record-id { font-size: 10px; color: #a0aea1; }
.row-actions { display: flex; gap: 3px; justify-content: flex-end; }
.row-actions .icon-button { width: 32px; height: 32px; }
.edit-button { color: #87a29a; }.danger-button { color: #bd9690; }
.danger-button:hover { color: #a84646; background: #fbedeb; }
.table-footer { display: flex; justify-content: space-between; padding: 17px 24px; border-top: 1px solid var(--line); font-size: 10px; color: #98a599; gap: 12px; }
.pagination-footer { align-items: center; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.pagination-summary { font-size: 13px; color: var(--text); line-height: 1.5; }
.pagination-nav { display: flex; align-items: center; flex-wrap: wrap; }
.page-size-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 24px 18px; }
.page-size-label { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text); }
.page-size-label select { padding: 7px 10px; min-width: 72px; min-height: 36px; border: 1px solid #dce6df; border-radius: 7px; background: white; color: var(--ink); }
@media (max-width: 760px) {
    .page-size-form { padding-left: 20px; padding-right: 20px; }
    .page-size-label select { font-size: 16px; min-height: 40px; }
}
.pagination-nav .pagination-link { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; min-height: 26px; padding: 3px 9px; margin-left: -1px; border: 1px solid #d8dee4; background: white; color: #111827; font-size: 12px; line-height: 1.2; text-decoration: none; }
.pagination-nav > :first-child { border-radius: 4px 0 0 4px; }
.pagination-nav > :last-child { border-radius: 0 4px 4px 0; }
.pagination-nav a.pagination-link:hover { z-index: 1; border-color: #b7c0c8; background: #f3f4f6; }
.pagination-nav .pagination-link.active { position: relative; z-index: 1; background: #d1d5d8; border-color: #aeb7bd; color: #111827; font-weight: 600; }
.pagination-nav .pagination-link.disabled { color: #6b7280; background: white; }
.pagination-nav .pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; min-height: 26px; padding: 3px 7px; margin-left: -1px; border: 1px solid #d8dee4; background: white; color: #111827; font-size: 12px; }
@media (max-width: 760px) {
    .pagination-footer { flex-direction: column; align-items: flex-start; }
    .pagination-nav { max-width: 100%; }
    .pagination-nav .pagination-link { min-height: 36px; }
}
.empty-state { padding: 55px 25px; text-align: center; white-space: normal; }
.empty-state > .icon { width: 45px; height: 45px; margin: 0 auto 18px; color: #a7beb0; }
.empty-state h3, .empty-state h1 { color: var(--ink); font-size: 18px; font-weight: 600; }
.empty-state p { margin: 12px 0 23px; color: var(--muted); line-height: 1.7; }
.table-empty { padding: 45px 24px; text-align: center; }
.alert { display: flex; align-items: center; gap: 9px; padding: 13px 16px; margin-bottom: 20px; font-size: 12px; line-height: 1.7; border-radius: 10px; border: 1px solid; }
.alert-success { background: #edf7ef; border-color: #d6e9d9; color: #4e825b; }
.alert-error { background: #fff3f1; border-color: #f1dcd8; color: #b16c61; }
.alert .icon { width: 17px; height: 17px; }
.alert > .icon-button { margin-left: auto; height: 24px; }
.form-panel > .alert { margin: 20px 24px 0; }
.muted { color: var(--muted); font-size: 11px; }
.menu-toggle, .mobile-close, .sidebar-backdrop { display: none; }
/* Login */
.login-body { background: white; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-story { background: linear-gradient(145deg, #edf5ec, #e0eee2); padding: 45px 50px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-story .brand { padding: 0; z-index: 2; }
.login-story-copy { margin: auto 0; padding: 80px 0; z-index: 2; }
.login-story-copy h1 { font-size: clamp(35px, 3.6vw, 57px); font-weight: 600; letter-spacing: -2.2px; line-height: 1.14; margin: 29px 0 24px; color: #32553e; }
.login-story-copy h1 span { color: var(--green); }
.login-story-copy p { color: #7c9581; font-size: 13px; line-height: 1.9; }
.login-features { display: flex; gap: 23px; margin-top: 39px; }
.login-features span { color: #77927b; font-size: 10px; display: flex; align-items: center; gap: 7px; }
.login-features .icon { width: 19px; height: 19px; }
.login-story-footer { display: flex; align-items: center; gap: 8px; color: #8ba38e; font-size: 11px; z-index: 2; }
.login-story-footer .icon { width: 18px; height: 18px; }
.login-decoration { position: absolute; inset: auto -20% -25% -20%; height: 48%; transform: rotate(-12deg); pointer-events: none; }
.login-decoration div { background: #b5d4b633; border-radius: 50% 50% 0 0; width: 100%; height: 95%; position: absolute; top: 0; }
.login-decoration div:nth-child(2) { background: #86b79b18; top: 25%; left: 20%; }
.login-decoration div:nth-child(3) { background: #729f8018; top: 47%; left: -25%; }
.login-form-side { display: flex; flex-direction: column; justify-content: center; padding: 65px; position: relative; }
.login-card { width: 100%; max-width: 370px; margin: auto; }
.login-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--green-soft); color: var(--green); margin-bottom: 27px; }
.login-mark .icon { width: 29px; height: 29px; }
.login-card h2 { font-size: 28px; letter-spacing: -1.1px; font-weight: 650; }
.login-card > p { font-size: 11px; color: #96a297; margin-top: 12px; line-height: 1.7; }
.login-form { margin-top: 32px; }
.login-form .form-field { margin-bottom: 22px; }
.input-with-icon { position: relative; }
.input-with-icon > .icon { position: absolute; top: 14px; left: 14px; width: 18px; height: 18px; color: #a0b0a3; pointer-events: none; }
.input-with-icon input { padding-left: 43px; background: #fafcf9; }
.input-with-icon input[type="password"], .input-with-icon #password { padding-right: 43px; }
.password-toggle { position: absolute; right: 8px; top: 6px; }
.login-secure { display: flex; align-items: center; gap: 6px; color: #96a898; font-size: 9px; margin: 7px 0 20px; }
.login-secure .icon { width: 14px; height: 14px; }
.login-submit { width: 100%; padding: 14px 20px; justify-content: space-between; font-size: 12px; border-radius: 10px; }
.login-demo { border: 1px solid #e6ece2; background: #f8fbf5; border-radius: 12px; padding: 18px; margin-top: 25px; }
.login-demo p { font-size: 11px; color: #91a08a; line-height: 1.9; margin: 11px 0 5px; }
.login-demo strong { color: #6c8266; font-weight: 550; }
.login-demo .text-link { font-size: 10px; }
.login-demo small { display: block; font-size: 8px; color: #a2af9a; margin-top: 8px; }
.login-footer { text-align: center; font-size: 8px; color: #abb4a7; margin: 35px 0 -25px; }
.login-card > .alert { margin-top: 20px; }
.setup-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.setup-card { max-width: 580px; padding: 38px; }
.setup-card h1 { font-size: 26px; margin: 24px 0 18px; }
.setup-card p { margin-top: 14px; color: var(--muted); line-height: 1.9; }
@media (min-width: 1600px) {
    :root { --sidebar-width: 265px; }
    .main-content { padding: 40px 45px 0; }
    .hero-card { min-height: 275px; }
    .hero-copy { padding: 33px 36px; }
    .hero-copy h2 { font-size: 34px; }
    .stat-card { padding: 23px; }.stat-value { font-size: 35px; }
    .category-overview { min-height: 245px; }.donut-wrap { width: 150px; height: 150px; }
    .category-legend > div { font-size: 12px; }
    td { padding-top: 18px; padding-bottom: 18px; font-size: 12px; }
}
@media (max-width: 1200px) {
    :root { --sidebar-width: 215px; }
    .sidebar { padding-left: 14px; padding-right: 14px; }
    .brand { font-size: 23px; gap: 8px; padding: 0 5px; }.brand-symbol { width: 39px; height: 39px; }
    .topbar { padding: 0 26px; }.main-content { padding: 28px 26px 0; }
    .stats-grid { gap: 12px; }.stat-card { padding: 16px 13px; }.stat-top { font-size: 9px; }.stat-value { font-size: 26px; }.stat-foot { font-size: 8px; }
    .dashboard-middle { gap: 17px; grid-template-columns: 1.35fr 1fr; }
    .category-overview { padding: 25px 18px; gap: 12px; }.donut-wrap { width: 100px; height: 100px; }
    .category-legend > div { font-size: 9px; }.category-legend small { display: none; }
    .panel-heading { padding-left: 20px; padding-right: 20px; }.panel-heading h2 { font-size: 12px; }
    .hero-float { right: 18px; bottom: 19px; padding: 12px; }.hero-float small { font-size: 7px; }.hero-float strong { font-size: 9px; }
    .quick-actions { flex-wrap: wrap; }.quick-actions > div:last-child { margin-left: auto; }
    .records-toolbar { align-items: flex-start; flex-direction: column; gap: 18px; }
    .search-form { width: 100%; }.search-input { flex: 1; }.search-input input { width: 100%; }
    .login-story { padding: 35px; }.login-form-side { padding: 50px 38px; }.login-features { gap: 15px; }
}
@media (max-width: 1000px) {
    .page-heading { align-items: flex-start; }.page-heading .button { padding: 10px 12px; font-size: 10px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .stat-card { padding: 18px; }.stat-top { font-size: 11px; }.stat-value { font-size: 30px; }.stat-foot { font-size: 10px; }
    .dashboard-middle { grid-template-columns: 1fr; }
    .category-overview { min-height: 180px; gap: 35px; justify-content: center; }.donut-wrap { width: 130px; height: 130px; }.category-legend { max-width: 260px; }.category-legend > div { font-size: 12px; }.category-legend small { display: inline; }
    .hero-copy h2 { font-size: 25px; }.hero-copy p { font-size: 10px; }.hero-float { display: none; }.hero-landscape { width: 45%; opacity: .85; }.hero-copy { width: 70%; padding: 25px; }
    .topbar-date { display: none; }.topbar-right { gap: 12px; }
    .login-story-copy h1 { font-size: 39px; }.login-features { flex-direction: column; gap: 14px; }.login-card h2 { font-size: 25px; }
}
@media (max-width: 760px) {
    :root { --sidebar-width: 246px; }
    .sidebar { transform: translateX(-100%); transition: transform .25s; padding-top: 31px; box-shadow: 10px 0 50px #203c2910; }
    .app-shell { margin-left: 0; }
    .sidebar-open { overflow: hidden; }.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; background: #17281c66; z-index: 25; backdrop-filter: blur(3px); }
    .sidebar-open .sidebar-backdrop { display: block; }
    .mobile-close { display: flex; position: absolute; top: 6px; right: 6px; width: 27px; height: 27px; }
    .menu-toggle { display: inline-flex; color: var(--text); width: 27px; height: 35px; margin-right: 3px; }
    .breadcrumb .menu-toggle .icon { width: 21px; height: 21px; color: var(--text); }
    .topbar { height: 65px; padding: 0 20px; }.breadcrumb { gap: 9px; }
    .main-content { padding: 26px 20px 0; }
    .page-heading h1 { font-size: 25px; }.page-heading p { font-size: 11px; }
    .page-heading { flex-wrap: wrap; gap: 17px; margin-bottom: 23px; }.page-heading .button { font-size: 11px; padding: 11px 14px; }
    .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
    .hero-card { min-height: 225px; }.hero-copy { padding: 23px; }.hero-copy h2 { font-size: 26px; }.hero-landscape { width: 45%; }
    .hero-copy p { font-size: 10px; }.hero-link { font-size: 10px; }
    .stats-grid { gap: 13px; }.stat-card { padding: 17px; }
    .panel-heading h2 { font-size: 14px; }.panel-heading p { font-size: 10px; }
    .soft-chip { font-size: 8px; }.chart-summary { padding-top: 21px; }
    .production-chart { padding-left: 8px; padding-right: 14px; }.chart-axis { font-size: 11px; }
    .dashboard-middle { gap: 19px; }
    td { padding: 15px; }.ranking-note { padding: 15px 20px; font-size: 9px; }
    .ranking-panel .panel-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
    .quick-actions { padding: 18px; gap: 18px; }.quick-actions > div:last-child { margin-left: 0; width: 100%; }.quick-actions .button { flex: 1; }
    .footer { margin-top: 23px; flex-direction: column; font-size: 9px; gap: 8px; }
    .form-grid { gap: 19px; }.record-form { padding: 20px; }.form-field input, .form-field select, .form-field textarea { font-size: 16px; }
    .module-notice { font-size: 10px; padding: 14px; }
    .records-toolbar { padding: 20px; }.records-panel td { font-size: 11px; }.table-footer { padding: 17px 20px; font-size: 9px; }.table-footer span { display: none; }
    .login-layout { grid-template-columns: 1fr; }.login-story { min-height: 285px; padding: 27px 28px; }
    .login-story-copy { padding: 30px 0 3px; }.login-story-copy h1 { font-size: 32px; margin: 15px 0 12px; letter-spacing: -1px; }.login-story-copy h1 br:nth-child(2) { display: none; }
    .login-story-copy p { font-size: 11px; }.login-story-footer, .login-features, .login-story-copy .hero-badge { display: none; }
    .login-form-side { padding: 33px 27px; }.login-card { max-width: 440px; }.login-mark { display: none; }
    .login-card h2 { font-size: 26px; }.login-form { margin-top: 25px; }.login-footer { margin-bottom: 0; margin-top: 28px; }
    .login-form input { font-size: 16px; }.input-with-icon > .icon { top: 16px; }.password-toggle { top: 9px; }
}
@media (max-width: 420px) {
    .main-content { padding: 23px 16px 0; }.topbar { padding: 0 16px; }.topbar-right { gap: 10px; }.topbar-right .demo-pill { font-size: 8px; padding: 5px 7px; }.breadcrumb { font-size: 10px; gap: 5px; }
    .page-heading h1 { font-size: 23px; }.hero-copy { padding: 21px; width: 100%; }.hero-copy h2 { font-size: 25px; }.hero-landscape { width: 65%; opacity: .23; }.hero-card { min-height: 238px; }
    .stats-grid { gap: 10px; }.stat-card { padding: 14px 12px; }.stat-top { font-size: 9px; }.stat-icon { width: 27px; height: 27px; }.stat-icon .icon { width: 16px; height: 16px; }.stat-value { font-size: 26px; }.stat-value small { font-size: 9px; margin-left: 5px; }.stat-foot { font-size: 8px; }
    .panel-heading { padding: 20px 17px 0; }.panel-heading h2 { font-size: 12px; }.panel-heading p { font-size: 9px; }.soft-chip { font-size: 7px; padding: 6px; }.soft-chip .icon { display: none; }
    .chart-summary { padding-left: 17px; gap: 10px; }.chart-summary > strong { font-size: 23px; }.chart-summary > span { font-size: 7px; }
    .category-overview { padding: 24px 17px; gap: 22px; }.donut-wrap { width: 110px; height: 110px; }.category-legend > div { font-size: 10px; }
    .form-grid { grid-template-columns: 1fr; }.full-width { grid-column: auto; }
    .search-form { flex-wrap: wrap; }.search-input { width: 100%; flex-basis: 100%; }.search-input input { font-size: 16px; }
    .quick-actions strong { font-size: 10px; }.quick-actions small { font-size: 8px; }.quick-actions > div:last-child { flex-direction: column; align-items: stretch; }
    .form-actions .button { flex: 1; padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}