:root{--green:#1f7552;--green-dark:#15563b;--green-soft:#e8f4ee;--navy:#172531;--text:#263746;--muted:#71808d;--line:#e1e7eb;--bg:#f4f7f6;--white:#fff;--blue:#2b7db1;--orange:#d17b27;--purple:#7356a8;--shadow:0 14px 35px rgba(25,45,58,.1)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg)}a{text-decoration:none;color:inherit}button,input{font:inherit}.button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 19px;font-size:13px;font-weight:750;border:1px solid transparent;border-radius:10px;cursor:pointer;transition:.2s}.button-primary{color:#fff;background:var(--green);box-shadow:0 8px 18px rgba(31,117,82,.23)}.button-primary:hover{background:var(--green-dark);transform:translateY(-1px)}.button-outline{color:var(--green);border-color:#bad7ca;background:#fff}.button-ghost{color:var(--text);background:#edf2ef}.button-full{width:100%}.eyebrow{display:block;margin-bottom:10px;color:var(--green);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.landing-nav{display:flex;align-items:center;justify-content:space-between;width:min(1180px,calc(100% - 40px));margin:auto;padding:22px 0}.landing-brand{display:flex;align-items:center;gap:11px;font-size:14px}.landing-brand span,.brand-mark,.login-icon{display:grid;place-items:center;width:42px;height:42px;color:#fff;font-weight:850;background:var(--green);border-radius:11px}.hero{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:55px;width:min(1180px,calc(100% - 40px));min-height:610px;margin:auto;padding:55px 0 80px}.hero h1{max-width:690px;margin:0;color:var(--navy);font-size:clamp(40px,5vw,68px);line-height:1.03;letter-spacing:-.045em}.hero p{max-width:650px;margin:25px 0;color:var(--muted);font-size:17px;line-height:1.75}.hero-actions{display:flex;gap:11px;flex-wrap:wrap}.hero-visual{position:relative;min-height:450px;overflow:hidden;background:linear-gradient(#cce8e6 0 56%,#8cbd72 56%);border-radius:34px;box-shadow:var(--shadow)}.sun{position:absolute;top:55px;right:70px;width:78px;height:78px;background:#ffd979;border-radius:50%}.barn{position:absolute;left:50%;bottom:110px;width:220px;height:165px;background:#c95e43;transform:translateX(-50%);clip-path:polygon(50% 0,100% 36%,100% 100%,0 100%,0 36%)}.barn:before{content:"";position:absolute;left:78px;bottom:0;width:65px;height:90px;background:#754331}.barn span{position:absolute;left:30px;top:70px;width:45px;height:38px;background:#d8edf0}.field{position:absolute;left:-10%;width:120%;height:100px;background:#6fa55d;border-radius:50%}.field-one{bottom:40px}.field-two{bottom:-20px;background:#4c8a4c}.feature-section{padding:90px 20px;background:#fff}.section-heading{max-width:700px;margin:0 auto 40px;text-align:center}.section-heading h2{margin:0;color:var(--navy);font-size:36px}.section-heading p{color:var(--muted);line-height:1.7}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;max-width:1180px;margin:auto}.feature-card{padding:27px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(28,49,63,.06)}.feature-card>span{color:var(--green);font-weight:850}.feature-card h3{margin:22px 0 8px;color:var(--navy)}.feature-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.65}.landing-footer{display:flex;justify-content:space-between;gap:20px;padding:28px max(20px,calc((100% - 1180px)/2));color:#dfeae5;background:var(--navy);font-size:12px}.auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-presentation{display:flex;justify-content:space-between;flex-direction:column;padding:55px;color:#fff;background:linear-gradient(145deg,#153e2e,#1e7250)}.landing-brand.light span{background:#fff;color:var(--green)}.auth-presentation h1{max-width:600px;margin:0;font-size:52px;line-height:1.08;letter-spacing:-.04em}.auth-presentation p{max-width:560px;color:#cce1d7;font-size:16px;line-height:1.75}.light-text{color:#cde6da}.auth-panel{display:grid;place-items:center;padding:30px;background:#f4f7f6}.login-card{width:min(440px,100%);padding:34px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.login-heading{display:flex;align-items:center;gap:14px;margin-bottom:28px}.login-heading h2{margin:0;color:var(--navy);font-size:27px}.login-heading p{margin:5px 0 0;color:var(--muted);font-size:12px}.form-field{display:block;margin-top:17px}.form-field>span{display:block;margin-bottom:7px;font-size:12px;font-weight:750}.form-field input{width:100%;height:46px;padding:0 13px;color:var(--text);border:1px solid #ccd6dc;border-radius:9px;outline:none}.form-field input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,117,82,.12)}.password-field{position:relative}.password-field input{padding-right:76px}.password-field button{position:absolute;right:7px;top:7px;height:32px;color:var(--green);font-size:10px;font-weight:800;background:var(--green-soft);border:0;border-radius:7px;cursor:pointer}.login-card .button{margin-top:22px}.back-link{display:block;margin-top:20px;color:var(--muted);font-size:11px;text-align:center}.form-alert{padding:12px 14px;color:#9b2f2f;font-size:12px;background:#fde9e9;border:1px solid #f1c5c5;border-radius:9px}.admin-shell{display:grid;grid-template-columns:255px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:18px 14px;color:#d6e0e5;background:#162630;overflow-y:auto}.brand{display:flex;align-items:center;gap:11px;padding:4px 7px 22px;border-bottom:1px solid rgba(255,255,255,.08)}.brand-mark{width:39px;height:39px}.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:14px}.brand-copy small{margin-top:3px;color:#8799a4;font-size:9px}.sidebar-nav{padding-top:14px}.nav-label{margin:20px 10px 7px;color:#6f828d;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.12em}.nav-link{display:flex;align-items:center;gap:12px;margin:4px 0;padding:11px 12px;color:#aebcc4;font-size:12px;font-weight:650;border-radius:8px;transition:.2s}.nav-link span{width:19px;text-align:center}.nav-link:hover,.nav-link.active{color:#fff;background:rgba(69,159,117,.18)}.nav-link.active{border-left:3px solid #50b880}.admin-main{min-width:0}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;min-height:70px;padding:10px 23px;background:rgba(255,255,255,.95);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}.icon-button{width:39px;height:39px;color:var(--text);background:#edf2f0;border:0;border-radius:8px;cursor:pointer}.topbar-title{display:flex;flex-direction:column}.topbar-title strong{font-size:14px}.topbar-title small{color:var(--muted);font-size:9px}.user-menu{display:flex;align-items:center;gap:9px;margin-left:auto}.avatar{display:grid;place-items:center;width:38px;height:38px;color:#fff;font-weight:800;background:var(--green);border-radius:50%}.user-copy{display:flex;flex-direction:column}.user-copy strong{font-size:11px}.user-copy small{margin-top:3px;color:var(--muted);font-size:9px}.logout-button{padding:8px 10px;color:#9f3838;font-size:10px;font-weight:750;background:#fbecec;border:0;border-radius:7px;cursor:pointer}.page-content{padding:24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.page-heading h1{margin:0;color:var(--navy);font-size:28px}.page-heading p{margin:6px 0 0;color:var(--muted);font-size:12px}.date-chip{padding:9px 12px;color:var(--green);font-size:11px;font-weight:750;background:var(--green-soft);border-radius:20px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metric-card{display:flex;align-items:center;gap:15px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 7px 20px rgba(30,51,64,.05)}.metric-icon{display:grid;place-items:center;width:49px;height:49px;font-size:19px;border-radius:12px}.metric-icon.green{color:var(--green);background:var(--green-soft)}.metric-icon.blue{color:var(--blue);background:#e8f2f8}.metric-icon.orange{color:var(--orange);background:#fbefe3}.metric-icon.purple{color:var(--purple);background:#f0ebf8}.metric-card div{display:flex;flex-direction:column}.metric-card small{color:var(--muted);font-size:10px;text-transform:uppercase}.metric-card strong{margin:3px 0;color:var(--navy);font-size:26px}.metric-card p{margin:0;color:var(--muted);font-size:9px}.dashboard-grid{display:grid;grid-template-columns:1.35fr .85fr;gap:18px;margin-top:18px}.panel{padding:21px;background:#fff;border:1px solid var(--line);border-radius:14px}.panel-header h2{margin:0;color:var(--navy);font-size:16px}.panel-header p{margin:5px 0 0;color:var(--muted);font-size:10px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-top:18px}.quick-grid a{display:grid;grid-template-columns:40px 1fr;align-items:center;padding:14px;background:#f7f9f8;border:1px solid #e8edeb;border-radius:10px}.quick-grid a>span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;color:var(--green);background:var(--green-soft);border-radius:8px}.quick-grid strong{font-size:11px}.quick-grid small{color:var(--muted);font-size:9px}.roadmap{display:grid;gap:15px;margin:20px 0 0;padding:0;list-style:none}.roadmap li{display:flex;align-items:center;gap:11px}.roadmap li>span{display:grid;place-items:center;width:29px;height:29px;color:var(--muted);font-size:10px;font-weight:800;background:#edf1f3;border-radius:50%}.roadmap .done>span{color:#fff;background:var(--green)}.roadmap div{display:flex;flex-direction:column}.roadmap strong{font-size:10px}.roadmap small{margin-top:3px;color:var(--muted);font-size:9px}.admin-footer{padding:17px 24px;color:var(--muted);font-size:10px;text-align:right;border-top:1px solid var(--line)}.sidebar-collapsed{grid-template-columns:76px 1fr}.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-label,.sidebar-collapsed .nav-link:not(.active){font-size:0}.sidebar-collapsed .nav-link{justify-content:center}.sidebar-collapsed .nav-link span{font-size:14px}.error-page{display:grid;place-items:center;align-content:center;min-height:100vh;padding:30px;text-align:center}.error-page>span{color:var(--green);font-size:90px;font-weight:900}.error-page h1{margin:0}@media(max-width:1050px){.feature-grid,.metric-grid{grid-template-columns:repeat(2,1fr)}.hero{gap:30px}.hero h1{font-size:50px}}@media(max-width:820px){.hero,.auth-layout{grid-template-columns:1fr}.hero-visual{min-height:360px}.auth-presentation{display:none}.admin-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-270px;z-index:40;width:255px;transition:.2s}.sidebar-open .sidebar{left:0}.sidebar-collapsed{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.user-copy{display:none}}@media(max-width:600px){.landing-nav{width:calc(100% - 24px)}.landing-brand strong{font-size:11px}.landing-nav .button{padding:0 12px;font-size:10px}.hero{width:calc(100% - 24px);min-height:auto;padding:38px 0 55px}.hero h1{font-size:39px}.hero p{font-size:14px}.feature-grid,.metric-grid,.quick-grid{grid-template-columns:1fr}.feature-section{padding:65px 12px}.landing-footer{flex-direction:column}.auth-panel{padding:14px}.login-card{padding:25px 20px}.page-content{padding:16px}.topbar{padding:9px 14px}.page-heading{align-items:flex-start;flex-direction:column}.user-menu form{display:none}}

/* Control de acceso */
.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.page-heading h1{margin:0;color:#1f2937;font-size:25px}.page-heading p{margin:5px 0 0;color:#64748b}.panel{background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 8px 24px rgba(15,23,42,.06);overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #e5e7eb}.panel-header h2{margin:0;font-size:18px}.panel-header p{margin:4px 0 0;color:#64748b;font-size:13px}.user-selector select{min-width:310px;padding:11px 13px;border:1px solid #cbd5e1;border-radius:9px;background:#fff}.permission-user-card{display:flex;align-items:center;gap:12px;padding:18px 22px;background:#f8fafc}.permission-user-card div{display:flex;flex-direction:column}.permission-user-card small{color:#64748b;margin-top:3px}.large-avatar{width:44px;height:44px}.table-responsive{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:14px 18px;border-bottom:1px solid #e5e7eb;text-align:left}.data-table th{font-size:11px;text-transform:uppercase;color:#475569;background:#f1f5f9}.permission-table th:not(:first-child),.permission-table td:not(:first-child){text-align:center}.permission-table td:first-child strong,.permission-table td:first-child small{display:block}.permission-table td:first-child small{margin-top:3px;color:#94a3b8}.switch{display:inline-block;position:relative;width:42px;height:23px}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#cbd5e1;border-radius:30px;cursor:pointer;transition:.2s}.switch span:before{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;background:white;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}.switch input:checked+span{background:#24835b}.switch input:checked+span:before{transform:translateX(19px)}.panel-footer{display:flex;justify-content:flex-end;padding:18px 22px}.primary-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 17px;color:#fff;background:#247453;border:0;border-radius:9px;text-decoration:none;font-weight:700;cursor:pointer}.alert{padding:13px 16px;margin-bottom:16px;border-radius:9px}.alert-success{color:#166534;background:#dcfce7}.alert-danger{color:#991b1b;background:#fee2e2}.error-page{text-align:center;padding:70px 20px}.error-page>span{font-size:80px;font-weight:800;color:#247453}.error-page h1{margin:0 0 8px}.error-page p{margin:0 0 24px;color:#64748b}.empty-state{padding:40px;text-align:center;color:#64748b}@media(max-width:700px){.panel-header{align-items:stretch;flex-direction:column}.user-selector select{width:100%;min-width:0}.permission-table{min-width:700px}}
/* CRUD Genéticas */
.filter-bar{display:flex;gap:10px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line);background:#f8faf9}.filter-bar input,.filter-bar select,.form-field select,.form-field textarea{min-height:44px;padding:10px 12px;color:var(--text);background:#fff;border:1px solid #ccd6dc;border-radius:9px;outline:none}.filter-bar input{flex:1;min-width:220px}.filter-bar select{min-width:180px}.genetics-table td:first-child strong,.genetics-table td:first-child small{display:block}.genetics-table td:first-child small{margin-top:4px;color:var(--muted)}.count-badge{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 8px;color:var(--green);font-weight:800;background:var(--green-soft);border-radius:20px}.status-badge{display:inline-flex;padding:6px 10px;font-size:10px;font-weight:800;border-radius:20px}.status-badge.active{color:#166534;background:#dcfce7}.status-badge.inactive{color:#64748b;background:#e2e8f0}.table-actions{display:flex;align-items:center;gap:8px}.table-actions form{margin:0}.action-link{padding:7px 9px;color:var(--green);font-size:10px;font-weight:800;background:var(--green-soft);border:0;border-radius:7px;cursor:pointer}.action-link.danger{color:#a12626;background:#fee2e2}.form-panel{overflow:visible}.form-section{padding:22px;border-bottom:1px solid var(--line)}.form-section h2{margin:0 0 2px;color:var(--navy);font-size:16px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}.form-field select,.form-field textarea{width:100%}.form-field textarea{resize:vertical}.form-field-wide{grid-column:1/-1}.field-error{display:block;margin-top:6px;color:#b42318;font-size:10px}.form-panel .panel-footer{gap:10px}.genetics-table{min-width:920px}@media(max-width:700px){.filter-bar{align-items:stretch;flex-direction:column}.filter-bar input,.filter-bar select{width:100%;min-width:0}.form-grid{grid-template-columns:1fr}}

/* Fase Consumos - mejora visual */
.consumption-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.consumption-metric{display:flex;align-items:center;gap:15px;padding:19px 20px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(15,23,42,.055)}.consumption-metric-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;color:var(--green);font-size:15px;font-weight:900;background:var(--green-soft);border-radius:13px}.consumption-metric-info .consumption-metric-icon{color:var(--blue);background:#e8f2f8}.consumption-metric div:last-child{display:flex;flex-direction:column}.consumption-metric small{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.consumption-metric strong{margin:3px 0;color:var(--navy);font-size:23px}.consumption-metric span{color:var(--muted);font-size:10px}.consumption-panel-header{background:linear-gradient(90deg,#fff,#f7fbf9)}.consumption-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:13px;padding:18px 20px;background:#f8faf9;border-bottom:1px solid var(--line)}.consumption-filters label{display:flex;flex-direction:column;gap:6px}.consumption-filters label>span{color:#52616d;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.consumption-filters input,.consumption-filters select{width:100%;min-height:42px;padding:9px 11px;color:var(--text);background:#fff;border:1px solid #ccd6dc;border-radius:9px;outline:none}.consumption-filters input:focus,.consumption-filters select:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,117,82,.1)}.filter-search{grid-column:span 2}.consumption-filter-actions{display:flex;align-items:flex-end;gap:8px}.consumption-filter-actions .button{min-height:42px}.consumption-table{min-width:980px}.consumption-table td{vertical-align:middle}.movement-date,.destination-cell,.warehouse-food,.quantity-cell{display:flex;flex-direction:column;gap:4px}.movement-date strong,.destination-cell strong,.warehouse-food strong,.quantity-cell strong{color:var(--navy);font-size:12px}.movement-date small,.destination-cell small,.warehouse-food small,.quantity-cell small{color:var(--muted);font-size:10px}.destination-cell .status-badge{align-self:flex-start;margin-top:3px}.quantity-cell strong{color:var(--green);font-size:14px}.user-cell{display:flex;align-items:center;gap:8px}.user-cell>span{display:grid;place-items:center;width:30px;height:30px;color:#fff;font-size:10px;font-weight:850;background:var(--green);border-radius:50%}.user-cell small{color:var(--text);font-size:10px}.empty-state strong,.empty-state span{display:block}.empty-state strong{color:var(--navy);font-size:13px}.empty-state span{margin-top:5px;color:var(--muted);font-size:10px}.consumption-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.consumption-form-panel{overflow:hidden}.section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.section-title>span{display:grid;place-items:center;flex:0 0 31px;height:31px;color:#fff;font-size:11px;font-weight:850;background:var(--green);border-radius:9px}.section-title h2{margin:0!important}.section-title p{margin:5px 0 0;color:var(--muted);font-size:10px}.field-hint{display:block;margin-top:6px;color:var(--muted);font-size:9px}.consumption-preview{display:flex;justify-content:center;flex-direction:column;min-height:91px;margin-top:17px;padding:14px 16px;background:linear-gradient(135deg,#eef8f3,#f8fbfa);border:1px dashed #a9cfbc;border-radius:11px}.consumption-preview small{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.consumption-preview strong{margin:4px 0;color:var(--green-dark);font-size:21px}.consumption-preview span{color:var(--muted);font-size:9px}.consumption-preview span.warning{color:#b42318;font-weight:750}.consumption-help-card{position:sticky;top:90px;padding:22px;background:linear-gradient(155deg,#17392d,#1f7552);color:#fff;border-radius:15px;box-shadow:var(--shadow)}.consumption-help-icon{display:grid;place-items:center;width:38px;height:38px;color:var(--green-dark);font-weight:900;background:#dff2e8;border-radius:10px}.consumption-help-card h3{margin:17px 0 8px;font-size:17px}.consumption-help-card p{margin:0;color:#d3e8de;font-size:11px;line-height:1.65}.consumption-help-card ul{margin:17px 0 0;padding-left:18px;color:#e4f0eb;font-size:10px;line-height:1.8}
@media(max-width:1050px){.consumption-metrics{grid-template-columns:1fr 1fr}.consumption-metric:last-child{grid-column:1/-1}.consumption-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}.consumption-form-layout{grid-template-columns:1fr}.consumption-help-card{position:static}}
@media(max-width:760px){.consumption-metrics{grid-template-columns:1fr}.consumption-metric:last-child{grid-column:auto}.consumption-filters{grid-template-columns:1fr}.filter-search{grid-column:auto}.consumption-filter-actions{align-items:stretch;flex-direction:column}.consumption-filter-actions .button{width:100%}}

/* Fase Ingresos - mejora visual */
.entry-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.entry-metric{display:flex;align-items:center;gap:15px;padding:19px 20px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(15,23,42,.055)}.entry-metric-icon{display:grid;place-items:center;flex:0 0 48px;height:48px;color:var(--blue);font-size:15px;font-weight:900;background:#e8f2f8;border-radius:13px}.entry-metric-info .entry-metric-icon{color:var(--green);background:var(--green-soft)}.entry-metric div:last-child{display:flex;flex-direction:column}.entry-metric small{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.entry-metric strong{margin:3px 0;color:var(--navy);font-size:23px}.entry-metric span{color:var(--muted);font-size:10px}.entry-panel-header{background:linear-gradient(90deg,#fff,#f7fbfd)}.entry-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:13px;padding:18px 20px;background:#f8fafb;border-bottom:1px solid var(--line)}.entry-filters label{display:flex;flex-direction:column;gap:6px}.entry-filters label>span{color:#52616d;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.entry-filters input,.entry-filters select{width:100%;min-height:42px;padding:9px 11px;color:var(--text);background:#fff;border:1px solid #ccd6dc;border-radius:9px;outline:none}.entry-filters input:focus,.entry-filters select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(43,125,177,.1)}.entry-filter-actions{display:flex;align-items:flex-end;gap:8px}.entry-filter-actions .button{min-height:42px}.entry-table{min-width:980px}.entry-table td{vertical-align:middle}.entry-quantity strong{color:var(--blue)}.entry-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.entry-form-panel{overflow:hidden}.entry-preview{display:flex;justify-content:center;flex-direction:column;min-height:91px;margin-top:17px;padding:14px 16px;background:linear-gradient(135deg,#eef6fb,#f8fbfd);border:1px dashed #a9c8dc;border-radius:11px}.entry-preview small{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.entry-preview strong{margin:4px 0;color:#205f88;font-size:21px}.entry-preview span{color:var(--muted);font-size:9px}.entry-preview span.warning{color:#b42318;font-weight:750}.entry-help-card{position:sticky;top:90px;padding:22px;background:linear-gradient(155deg,#17354a,#2b7db1);color:#fff;border-radius:15px;box-shadow:var(--shadow)}.entry-help-icon{display:grid;place-items:center;width:38px;height:38px;color:#205f88;font-weight:900;background:#deeff8;border-radius:10px}.entry-help-card h3{margin:17px 0 8px;font-size:17px}.entry-help-card p{margin:0;color:#d7e8f2;font-size:11px;line-height:1.65}.entry-help-card ul{margin:17px 0 0;padding-left:18px;color:#e8f1f6;font-size:10px;line-height:1.8}
@media(max-width:1050px){.entry-metrics{grid-template-columns:1fr 1fr}.entry-metric:last-child{grid-column:1/-1}.entry-filters{grid-template-columns:repeat(3,minmax(150px,1fr))}.entry-form-layout{grid-template-columns:1fr}.entry-help-card{position:static}}
@media(max-width:760px){.entry-metrics{grid-template-columns:1fr}.entry-metric:last-child{grid-column:auto}.entry-filters{grid-template-columns:1fr}.entry-filter-actions{align-items:stretch;flex-direction:column}.entry-filter-actions .button{width:100%}}

/* Fase Rendimiento - formulario corregido y mejora visual */
.performance-page-heading{align-items:flex-start}.performance-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.performance-form-panel{overflow:hidden}.performance-form-panel form{margin:0}.performance-form-panel .form-section{padding:24px}.performance-section-title>span{background:var(--purple)}.performance-form-panel .form-field{position:static;display:block;width:auto;height:auto;background:none;border-radius:0}.performance-form-panel .form-field>span{display:block;margin-bottom:7px;color:var(--text);font-size:11px;font-weight:780}.performance-form-panel .form-field input,.performance-form-panel .form-field select,.performance-form-panel .form-field textarea{position:static;width:100%;min-width:0;height:auto;min-height:45px;padding:10px 13px;color:var(--text);font:inherit;background:#fff;border:1px solid #ccd6dc;border-radius:9px;outline:none;box-shadow:none}.performance-form-panel .form-field textarea{min-height:120px;resize:vertical;line-height:1.55}.performance-form-panel .form-field input:focus,.performance-form-panel .form-field select:focus,.performance-form-panel .form-field textarea:focus{border-color:var(--purple);box-shadow:0 0 0 3px rgba(115,86,168,.11)}.performance-preview{display:flex;justify-content:center;flex-direction:column;min-height:94px;padding:14px 16px;background:linear-gradient(135deg,#f3effa,#faf9fc);border:1px dashed #c8b8e4;border-radius:11px}.performance-preview small{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.performance-preview strong{margin:4px 0;color:#5d438f;font-size:23px}.performance-preview span{color:var(--muted);font-size:9px}.performance-preview.is-empty strong{color:#9aa5ae}.performance-form-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;background:#fbfcfc}.performance-help-card{position:sticky;top:90px;padding:23px;color:#fff;background:linear-gradient(155deg,#30244a,#7356a8);border-radius:15px;box-shadow:var(--shadow)}.performance-help-icon{display:grid;place-items:center;width:39px;height:39px;color:#5d438f;font-weight:900;background:#ede6f8;border-radius:10px}.performance-help-card h3{margin:17px 0 8px;font-size:18px}.performance-help-card p{margin:0;color:#e7def4;font-size:11px;line-height:1.65}.performance-help-card ul{margin:17px 0 0;padding-left:18px;color:#f1ebf8;font-size:10px;line-height:1.8}.performance-help-note{margin-top:19px;padding:13px 14px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:10px}.performance-help-note small,.performance-help-note strong{display:block}.performance-help-note small{margin-bottom:4px;color:#d9cceb;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.performance-help-note strong{font-size:11px;line-height:1.45}
@media(max-width:1050px){.performance-form-layout{grid-template-columns:1fr}.performance-help-card{position:static}.performance-form-panel .form-section{padding:21px}}
@media(max-width:700px){.performance-page-heading{gap:14px}.performance-page-heading .button{width:100%}.performance-form-panel .form-section{padding:18px}.performance-form-actions{align-items:stretch;flex-direction:column-reverse;padding:16px 18px}.performance-form-actions .button,.performance-form-actions .primary-button{width:100%}.performance-preview{min-height:88px}}
/* Fase Reportes */
.report-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;margin-bottom:22px;border-radius:24px;background:linear-gradient(135deg,#173d2a,#2d7452);color:#fff;box-shadow:0 18px 40px rgba(23,61,42,.18)}.report-hero h1{margin:5px 0 7px;font-size:30px}.report-hero p{margin:0;opacity:.82}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.8px;opacity:.72}.report-actions{display:flex;gap:10px;flex-wrap:wrap}.report-hero .btn-secondary{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff}.report-metrics{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:22px}.report-filter-panel,.report-table-panel{margin-bottom:22px}.report-filter-grid{display:grid;grid-template-columns:1.1fr 1.2fr 1.6fr 1fr 1fr auto;gap:14px;align-items:end;padding:20px}.report-filter-grid label{display:grid;gap:7px}.report-filter-grid label span{font-size:12px;font-weight:800;color:#486055}.report-filter-grid select,.report-filter-grid input{width:100%;min-height:44px;border:1px solid #d8e2dc;border-radius:12px;padding:0 12px;background:#fff}.report-submit{min-height:44px;white-space:nowrap}.report-table td,.report-table th{white-space:nowrap}.empty-state{text-align:center!important;padding:42px!important;color:#728178}.report-table-panel .table-wrap{max-height:560px;overflow:auto}.report-table thead th{position:sticky;top:0;z-index:2}
@media(max-width:1100px){.report-metrics{grid-template-columns:repeat(3,1fr)}.report-filter-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:720px){.report-hero{align-items:flex-start;flex-direction:column;padding:22px}.report-actions{width:100%}.report-actions a,.report-actions button{flex:1;text-align:center}.report-metrics{grid-template-columns:1fr 1fr}.report-filter-grid{grid-template-columns:1fr}.report-submit{width:100%}}@media print{.sidebar,.topbar,.admin-footer,.report-actions,.report-filter-panel{display:none!important}.admin-main,.page-content{margin:0!important;padding:0!important}.report-hero{box-shadow:none;color:#111;background:#fff;border:1px solid #ddd}.report-table-panel{box-shadow:none;border:0}.report-table-panel .table-wrap{max-height:none;overflow:visible}.report-table thead th{position:static}}

/* Fase Dashboard Gerencial */
.executive-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px;padding:28px 30px;color:#fff;background:linear-gradient(135deg,#173d2a,#2d7452);border-radius:22px;box-shadow:0 18px 40px rgba(23,61,42,.17)}.executive-hero h1{margin:3px 0 7px;font-size:30px;letter-spacing:-.025em}.executive-hero p{margin:0;color:#d6e9df}.executive-hero .eyebrow{color:#bfe3d0}.executive-hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.executive-date{padding:10px 13px;font-size:10px;font-weight:750;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.17);border-radius:10px}.executive-hero .button-outline{color:#164f37;background:#fff;border-color:#fff}.executive-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.executive-card{display:flex;align-items:center;gap:15px;min-width:0;padding:19px 20px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 9px 25px rgba(22,42,54,.055)}.executive-icon{display:grid;place-items:center;flex:0 0 50px;height:50px;font-size:18px;font-weight:850;border-radius:14px}.executive-icon.green{color:var(--green);background:var(--green-soft)}.executive-icon.blue{color:var(--blue);background:#e8f2f8}.executive-icon.orange{color:var(--orange);background:#fbf0e4}.executive-icon.purple{color:var(--purple);background:#f0ebf8}.executive-card div{min-width:0}.executive-card small{display:block;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.executive-card strong{display:block;margin:3px 0;color:var(--navy);font-size:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.executive-card p{margin:0;color:var(--muted);font-size:10px}.executive-grid{display:grid;gap:18px;margin-bottom:18px}.executive-grid-main{grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr)}.executive-grid-secondary{grid-template-columns:1fr 1fr}.executive-chart-panel{overflow:hidden}.chart-legend{display:flex;gap:15px;color:var(--muted);font-size:9px;font-weight:750}.chart-legend span:before{content:"";display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:3px}.legend-entry:before{background:var(--blue)}.legend-consumption:before{background:var(--orange)}.executive-chart{display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:12px;height:250px;padding:22px 25px 8px;background:repeating-linear-gradient(to top,#f8faf9 0,#f8faf9 1px,transparent 1px,transparent 50px)}.chart-day{display:flex;align-items:center;flex-direction:column;height:100%}.chart-bars{display:flex;align-items:flex-end;justify-content:center;gap:5px;width:100%;height:calc(100% - 24px)}.chart-bar{display:block;width:min(18px,38%);min-height:3px;border-radius:6px 6px 2px 2px;transition:.2s}.chart-bar:hover{filter:brightness(.92);transform:scaleX(1.08)}.chart-bar.entry{background:linear-gradient(#54a7d2,#2b7db1)}.chart-bar.consumption{background:linear-gradient(#e4a257,#d17b27)}.chart-day small{margin-top:8px;color:var(--muted);font-size:9px}.executive-chart-totals{display:flex;justify-content:space-between;gap:16px;padding:14px 22px;color:var(--muted);font-size:10px;background:#fbfcfc;border-top:1px solid var(--line)}.executive-chart-totals b{color:var(--navy)}.executive-alert-panel{overflow:hidden}.alert-count{display:grid;place-items:center;width:27px;height:27px;color:#a84b23;font-size:10px;font-weight:850;background:#fff0e7;border-radius:50%}.executive-alerts{max-height:335px;overflow:auto}.executive-alert{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:11px;padding:13px 18px;border-top:1px solid #edf1f2;transition:.2s}.executive-alert:hover{background:#fafcfc}.alert-dot{width:8px;height:8px;background:#7a9bad;border-radius:50%;box-shadow:0 0 0 4px rgba(122,155,173,.12)}.executive-alert.warning .alert-dot{background:#d17b27;box-shadow:0 0 0 4px rgba(209,123,39,.12)}.executive-alert.danger .alert-dot{background:#c94c4c;box-shadow:0 0 0 4px rgba(201,76,76,.12)}.executive-alert.info .alert-dot{background:#2b7db1;box-shadow:0 0 0 4px rgba(43,125,177,.12)}.executive-alert strong{font-size:11px}.executive-alert p{margin:3px 0 0;color:var(--muted);font-size:9px;line-height:1.45}.executive-alert>b{color:#9aa7af}.panel-link{color:var(--green);font-size:10px;font-weight:800}.warehouse-overview,.dashboard-lots{padding:4px 18px 13px}.warehouse-row{display:grid;grid-template-columns:minmax(130px,1.25fr) minmax(90px,1fr) 42px;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #edf1f2}.warehouse-row:last-child{border-bottom:0}.warehouse-copy{display:flex;min-width:0;flex-direction:column}.warehouse-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-copy small{margin-top:4px;color:var(--muted);font-size:8px}.warehouse-progress{height:7px;overflow:hidden;background:#edf1ef;border-radius:99px}.warehouse-progress span{display:block;height:100%;background:var(--green);border-radius:99px}.warehouse-progress span.low{background:#d17b27}.warehouse-progress span.high{background:#2b7db1}.warehouse-row>b{color:var(--muted);font-size:9px;text-align:right}.dashboard-lot{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #edf1f2}.dashboard-lot:last-child{border-bottom:0}.dashboard-lot:hover strong{color:var(--green)}.lot-number{display:grid;place-items:center;width:39px;height:39px;color:var(--green);font-size:10px;font-weight:850;background:var(--green-soft);border-radius:10px}.dashboard-lot div{min-width:0}.dashboard-lot strong,.dashboard-lot small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-lot strong{font-size:10px}.dashboard-lot small{margin-top:4px;color:var(--muted);font-size:8px}.dashboard-lot>b{color:#9aa7af}.dashboard-empty{padding:24px;color:var(--muted);font-size:11px;text-align:center}.executive-recent-panel{margin-bottom:20px}.dashboard-table{min-width:720px}.text-right{text-align:right!important}.movement-badge{display:inline-flex;padding:5px 8px;font-size:8px;font-weight:850;text-transform:uppercase;border-radius:7px}.movement-badge.ingreso{color:#216544;background:#e7f4ed}.movement-badge.consumo{color:#a15b19;background:#fbeedf}
@media(max-width:1100px){.executive-metrics{grid-template-columns:1fr 1fr}.executive-grid-main,.executive-grid-secondary{grid-template-columns:1fr}.executive-alerts{max-height:none}}@media(max-width:720px){.executive-hero{align-items:flex-start;flex-direction:column;padding:22px}.executive-hero-actions{width:100%}.executive-hero-actions .button{flex:1}.executive-metrics{grid-template-columns:1fr}.executive-chart{gap:5px;padding-left:12px;padding-right:12px}.chart-bar{width:10px}.executive-chart-totals{flex-direction:column}.warehouse-row{grid-template-columns:1fr 75px 35px}}

/* Reportes - rediseño visual profesional */
.reports-pro-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;overflow:hidden;margin-bottom:18px;padding:30px 32px;color:#fff;background:linear-gradient(135deg,#153b2a 0%,#236747 55%,#2f7d59 100%);border-radius:24px;box-shadow:0 20px 42px rgba(23,61,42,.18)}
.reports-pro-hero:after{content:"";position:absolute;right:-70px;bottom:-95px;width:260px;height:260px;border:45px solid rgba(255,255,255,.055);border-radius:50%}.reports-pro-copy,.reports-pro-actions{position:relative;z-index:1}.reports-pro-eyebrow{display:block;margin-bottom:7px;color:#bfe7d2;font-size:10px;font-weight:850;letter-spacing:.17em}.reports-pro-hero h1{margin:0 0 8px;font-size:31px;letter-spacing:-.025em}.reports-pro-hero p{max-width:650px;margin:0;color:#d6e9df;font-size:12px;line-height:1.65}.reports-pro-context{display:flex;align-items:center;gap:9px;margin-top:16px;flex-wrap:wrap}.reports-pro-context span,.reports-pro-context b,.reports-pro-context small{padding:6px 9px;font-size:9px;border:1px solid rgba(255,255,255,.15);border-radius:8px;background:rgba(255,255,255,.08)}.reports-pro-context b{background:rgba(255,255,255,.15)}.reports-pro-actions{display:flex;gap:9px;flex-wrap:wrap}.reports-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 14px;font-size:10px;font-weight:850;border:1px solid transparent;border-radius:10px;cursor:pointer;transition:.2s}.reports-action:hover{transform:translateY(-1px)}.reports-action span{font-size:14px}.reports-action-primary{color:#185039;background:#fff;box-shadow:0 9px 20px rgba(0,0,0,.1)}.reports-action-light{color:#fff;background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2)}
.reports-type-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.reports-type-tab{display:grid;grid-template-columns:43px 1fr;align-items:center;gap:11px;min-width:0;padding:14px 15px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 7px 20px rgba(30,51,64,.045);transition:.2s}.reports-type-tab:hover{border-color:#b8d9ca;transform:translateY(-1px)}.reports-type-tab.active{border-color:#86c2a5;background:linear-gradient(180deg,#fff,#f4fbf7);box-shadow:0 10px 24px rgba(31,117,82,.1)}.reports-type-icon{display:grid;place-items:center;width:43px;height:43px;color:var(--green);font-size:12px;font-weight:900;background:var(--green-soft);border-radius:12px}.reports-type-tab.active .reports-type-icon{color:#fff;background:var(--green)}.reports-type-tab strong,.reports-type-tab small{display:block;min-width:0}.reports-type-tab strong{font-size:11px}.reports-type-tab small{margin-top:4px;color:var(--muted);font-size:8px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reports-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-bottom:18px}.reports-kpi{display:flex;align-items:center;gap:12px;min-width:0;padding:17px 16px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 22px rgba(30,51,64,.05)}.reports-kpi-icon{display:grid;place-items:center;flex:0 0 43px;height:43px;font-size:10px;font-weight:900;border-radius:12px}.reports-kpi div{min-width:0}.reports-kpi small,.reports-kpi strong,.reports-kpi p{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reports-kpi small{color:var(--muted);font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.reports-kpi strong{margin:4px 0 2px;color:var(--navy);font-size:19px}.reports-kpi p{margin:0;color:#96a2a9;font-size:8px}.reports-kpi-green .reports-kpi-icon{color:var(--green);background:var(--green-soft)}.reports-kpi-blue .reports-kpi-icon{color:var(--blue);background:#e8f2f8}.reports-kpi-orange .reports-kpi-icon{color:var(--orange);background:#fbf0e4}.reports-kpi-red .reports-kpi-icon{color:#b94d4d;background:#faeaea}.reports-kpi-purple .reports-kpi-icon{color:var(--purple);background:#f0ebf8}
.reports-workspace{display:grid;grid-template-columns:minmax(260px,.34fr) minmax(0,1fr);gap:18px;align-items:start}.reports-filter-card,.reports-result-card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 9px 26px rgba(27,48,60,.05)}.reports-filter-card{position:sticky;top:94px;overflow:hidden}.reports-card-heading{display:flex;align-items:center;gap:11px;padding:19px 20px;border-bottom:1px solid #edf1f2}.reports-card-heading-inline{padding:0;border:0}.reports-section-number{display:grid;place-items:center;flex:0 0 33px;height:33px;color:var(--green);font-size:9px;font-weight:900;background:var(--green-soft);border-radius:10px}.reports-card-heading h2{margin:0;color:var(--navy);font-size:14px}.reports-card-heading p{margin:4px 0 0;color:var(--muted);font-size:9px}.reports-filter-form{display:grid;gap:14px;padding:20px}.reports-field{display:grid;gap:7px}.reports-field>span{color:#43574d;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.reports-field select,.reports-field input{width:100%;min-height:43px;padding:0 12px;color:var(--text);background:#fbfcfc;border:1px solid #d7e0dc;border-radius:10px;outline:none;transition:.2s}.reports-field select:focus,.reports-field input:focus{background:#fff;border-color:#6db28f;box-shadow:0 0 0 3px rgba(31,117,82,.1)}.reports-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.reports-generate{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px;color:#fff;font-size:10px;font-weight:850;background:var(--green);border:0;border-radius:10px;box-shadow:0 9px 20px rgba(31,117,82,.2);cursor:pointer;transition:.2s}.reports-generate:hover{background:var(--green-dark);transform:translateY(-1px)}.reports-filter-tip{display:grid;grid-template-columns:25px 1fr;gap:9px;margin:0 20px 20px;padding:12px;color:#5b6d63;background:#f4f8f6;border:1px solid #e0ebe5;border-radius:10px}.reports-filter-tip>span{display:grid;place-items:center;width:24px;height:24px;color:var(--green);font-size:9px;font-weight:900;background:#fff;border-radius:50%}.reports-filter-tip p{margin:0;font-size:8px;line-height:1.55}
.reports-result-card{min-width:0;overflow:hidden}.reports-result-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:19px 20px;border-bottom:1px solid #edf1f2}.reports-result-badge{display:flex;align-items:center;gap:7px;padding:7px 9px;color:#4d6659;font-size:8px;font-weight:800;background:#f2f8f5;border-radius:8px}.reports-result-badge span{width:7px;height:7px;background:#42a66e;border-radius:50%;box-shadow:0 0 0 4px rgba(66,166,110,.12)}.reports-table-wrap{max-height:610px;overflow:auto}.reports-table{min-width:820px;margin:0}.reports-table thead th{position:sticky;top:0;z-index:2;padding:13px 14px;color:#66766e;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.055em;background:#f7f9f8;border-bottom:1px solid #dde5e1}.reports-table tbody td{padding:13px 14px;font-size:9px;border-bottom:1px solid #edf1f2}.reports-table tbody tr:hover{background:#fbfdfc}.reports-empty{text-align:center!important;padding:62px 20px!important}.reports-empty>span{display:grid;place-items:center;width:50px;height:50px;margin:0 auto 12px;color:var(--green);font-size:21px;background:var(--green-soft);border-radius:15px}.reports-empty strong{display:block;color:var(--navy);font-size:13px}.reports-empty p{max-width:390px;margin:7px auto 0;color:var(--muted);font-size:9px;line-height:1.55}.reports-result-footer{display:flex;justify-content:space-between;gap:15px;padding:12px 18px;color:var(--muted);font-size:8px;background:#fafcfc;border-top:1px solid #edf1f2}.reports-result-footer b{color:var(--navy)}
@media(max-width:1180px){.reports-kpi-grid{grid-template-columns:repeat(3,1fr)}.reports-workspace{grid-template-columns:1fr}.reports-filter-card{position:static}.reports-filter-form{grid-template-columns:repeat(3,1fr)}.reports-field-wide{grid-column:span 1}.reports-filter-tip{grid-column:1/-1}.reports-generate{align-self:end}}
@media(max-width:850px){.reports-pro-hero{align-items:flex-start;flex-direction:column}.reports-pro-actions{width:100%}.reports-action{flex:1}.reports-type-tabs{grid-template-columns:1fr 1fr}.reports-kpi-grid{grid-template-columns:1fr 1fr}.reports-filter-form{grid-template-columns:1fr 1fr}.reports-field-wide,.reports-date-grid,.reports-generate{grid-column:1/-1}}
@media(max-width:560px){.reports-pro-hero{padding:22px}.reports-pro-actions{display:grid;grid-template-columns:1fr}.reports-type-tabs,.reports-kpi-grid,.reports-filter-form,.reports-date-grid{grid-template-columns:1fr}.reports-result-header,.reports-result-footer{align-items:flex-start;flex-direction:column}.reports-type-tab small{white-space:normal}.reports-kpi strong{font-size:18px}}
@media print{.sidebar,.topbar,.admin-footer,.reports-pro-actions,.reports-type-tabs,.reports-filter-card{display:none!important}.admin-main,.page-content{margin:0!important;padding:0!important}.reports-pro-hero{padding:16px;color:#111;background:#fff;border:1px solid #ddd;box-shadow:none}.reports-pro-hero p,.reports-pro-eyebrow{color:#555}.reports-pro-context span,.reports-pro-context b,.reports-pro-context small{color:#111;border-color:#ddd;background:#fff}.reports-kpi-grid{grid-template-columns:repeat(5,1fr)}.reports-workspace{display:block}.reports-result-card{border:0;box-shadow:none}.reports-table-wrap{max-height:none;overflow:visible}.reports-table thead th{position:static}.reports-result-badge{display:none}}

/* Corrección visual: sección 01 Configurar reporte */
.reports-workspace{display:block}
.reports-filter-card{position:static;overflow:visible;margin-bottom:18px}
.reports-filter-form{
  display:grid;
  grid-template-columns:minmax(190px,1.35fr) minmax(170px,1fr) minmax(210px,1.35fr) minmax(145px,.8fr) minmax(145px,.8fr) minmax(165px,.9fr);
  gap:14px;
  align-items:end;
  padding:20px;
}
.reports-field,.reports-date-grid,.reports-filter-form>*{min-width:0}
.reports-field select,.reports-field input{
  display:block;
  min-width:0;
  max-width:100%;
  height:44px;
  line-height:normal;
  text-overflow:ellipsis;
}
.reports-field select{padding-right:34px}
.reports-date-grid{display:contents}
.reports-generate{width:100%;min-width:0;height:44px}
.reports-filter-tip{margin-top:0}
.reports-result-card{width:100%}

@media(max-width:1450px){
  .reports-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}
  .reports-field-wide{grid-column:auto}
  .reports-date-grid{display:contents}
  .reports-generate{align-self:end}
}
@media(max-width:900px){
  .reports-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reports-field-wide{grid-column:1/-1}
  .reports-generate{grid-column:1/-1}
}
@media(max-width:560px){
  .reports-filter-form{grid-template-columns:minmax(0,1fr);padding:16px}
  .reports-field-wide,.reports-generate{grid-column:auto}
  .reports-card-heading{align-items:flex-start;padding:17px 16px}
  .reports-filter-tip{margin:0 16px 16px}
}
/* Fase Usuarios y Configuración */
.section-eyebrow{display:block;margin-bottom:6px;color:#2f7d4a;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.users-stats{margin-bottom:20px}.users-filter{grid-template-columns:minmax(240px,1.7fr) repeat(2,minmax(150px,.7fr)) auto auto}.user-identity{display:flex;align-items:center;gap:12px}.user-identity div{display:grid;gap:3px}.user-avatar-lg{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#1f7a46,#55ad6e);color:#fff;font-weight:800}.role-pill{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef6f0;color:#27633c;font-size:.78rem;font-weight:700}.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start}.professional-form{padding:0;overflow:hidden}.form-section{padding:24px;border-bottom:1px solid #e9eee9}.form-section-title{display:flex;align-items:center;gap:12px;margin-bottom:20px}.form-section-title>span,.settings-heading>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eaf5ed;color:#267043;font-weight:800}.form-section-title div,.settings-heading div{display:grid;gap:2px}.form-section-title small,.settings-heading p{color:#768176}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid label{display:grid;gap:7px;color:#34443a;font-weight:700;font-size:.88rem}.form-grid input,.form-grid select{width:100%;min-width:0}.span-2{grid-column:span 2}.field-error{color:#b93333;font-weight:600}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding:20px 24px}.info-card{position:sticky;top:86px;padding:24px}.info-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#e9f5ed;color:#236e40;font-size:1.5rem}.info-card ul{padding-left:20px;color:#677268;line-height:1.7}.settings-shell{display:grid;gap:20px}.settings-section{padding:25px}.settings-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:22px}.settings-heading h3{margin:0}.settings-heading p{margin:4px 0 0}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-radius:16px;background:#123f29;color:#fff}.settings-actions span{opacity:.8}
@media(max-width:1000px){.users-filter{grid-template-columns:1fr 1fr}.form-layout{grid-template-columns:1fr}.info-card{position:static}.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.users-filter,.form-grid,.form-grid.three,.form-grid.four{grid-template-columns:1fr}.span-2{grid-column:auto}.form-section,.settings-section{padding:18px}.settings-actions{align-items:stretch;flex-direction:column}.settings-actions .primary-button{width:100%;justify-content:center}}

/* ===== Usuarios y permisos: diseño visual aislado ===== */
.users-hero,.users-form-hero,.permissions-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.users-hero h1,.users-form-hero h1,.permissions-hero h1{margin:5px 0 7px;font-size:clamp(1.85rem,3vw,2.55rem);line-height:1.08}.users-hero p,.users-form-hero p,.permissions-hero p{margin:0;color:#64748b;max-width:720px}.users-primary-action{display:flex;align-items:center;gap:12px;padding:13px 17px;border-radius:16px;background:linear-gradient(135deg,#15803d,#22c55e);color:#fff;text-decoration:none;box-shadow:0 12px 28px rgba(22,163,74,.25);min-width:196px}.users-primary-action:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(22,163,74,.32)}.users-primary-action .action-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.18);font-size:23px}.users-primary-action strong,.users-primary-action small{display:block}.users-primary-action small{opacity:.82;margin-top:2px}.users-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.users-kpi-card{position:relative;overflow:hidden;display:flex;align-items:center;gap:15px;padding:19px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.055)}.users-kpi-card:after{content:"";position:absolute;right:-24px;bottom:-32px;width:88px;height:88px;border-radius:50%;background:currentColor;opacity:.07}.users-kpi-card .kpi-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:currentColor;color:#fff;font-size:21px}.users-kpi-card small,.users-kpi-card p{display:block;margin:0;color:#64748b}.users-kpi-card strong{display:block;margin:3px 0 1px;color:#0f172a;font-size:1.65rem}.kpi-blue{color:#2563eb}.kpi-green{color:#16a34a}.kpi-violet{color:#7c3aed}.kpi-amber{color:#d97706}.users-panel,.users-form-card,.permissions-user-selector,.permissions-profile-card,.permission-group-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 10px 30px rgba(15,23,42,.055)}.users-panel{overflow:hidden}.users-panel-heading{padding:20px 22px;border-bottom:1px solid #eef2f7}.users-panel-heading>div,.permissions-toolbar>div,.selector-copy{display:flex;gap:12px;align-items:center}.panel-step{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:#eff6ff;color:#2563eb;font-weight:800}.users-panel-heading h2,.permissions-toolbar h2,.selector-copy h2{margin:0;font-size:1.05rem}.users-panel-heading p,.permissions-toolbar p,.selector-copy p{margin:3px 0 0;color:#64748b;font-size:.88rem}.users-filter-bar{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(150px,.7fr) minmax(170px,.8fr) auto;gap:14px;align-items:end;padding:18px 22px;background:#f8fafc;border-bottom:1px solid #eef2f7}.users-filter-bar label,.users-form-grid label,.permissions-user-selector label{display:grid;gap:7px;font-weight:700;font-size:.82rem;color:#334155}.users-filter-bar input,.users-filter-bar select,.users-form-grid input,.users-form-grid select,.permissions-user-selector select{width:100%;min-height:44px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:0 13px;color:#0f172a;outline:none}.users-filter-bar input:focus,.users-filter-bar select:focus,.users-form-grid input:focus,.users-form-grid select:focus,.permissions-user-selector select:focus{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.13)}.users-search-field>div{display:flex;align-items:center;border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding-left:12px}.users-search-field>div:focus-within{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.13)}.users-search-field input{border:0;box-shadow:none!important}.users-filter-actions{display:flex;gap:8px}.users-button{display:inline-flex;justify-content:center;align-items:center;min-height:43px;padding:0 16px;border:0;border-radius:12px;font-weight:800;text-decoration:none;cursor:pointer;white-space:nowrap}.users-button-primary{background:linear-gradient(135deg,#15803d,#22c55e);color:#fff;box-shadow:0 8px 18px rgba(22,163,74,.2)}.users-button-light{background:#fff;color:#334155;border:1px solid #cbd5e1}.users-table-wrap{overflow:auto}.users-table{width:100%;border-collapse:collapse;min-width:840px}.users-table th{padding:13px 20px;background:#0f2744;color:#fff;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;text-align:left}.users-table td{padding:16px 20px;border-bottom:1px solid #edf2f7;vertical-align:middle}.users-table tbody tr:hover{background:#f8fbff}.text-right{text-align:right!important}.users-identity{display:flex;align-items:center;gap:12px}.users-avatar,.permissions-avatar,.preview-avatar{display:grid;place-items:center;border-radius:50%;font-weight:900}.users-avatar{width:45px;height:45px;background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1d4ed8}.users-identity strong,.users-identity small,.users-role-stack small{display:block}.users-identity small,.users-role-stack small{margin-top:3px;color:#64748b}.users-role-pill{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:.76rem;font-weight:800}.users-role-pill.admin{background:#f3e8ff;color:#7e22ce}.users-role-pill.operator{background:#e0f2fe;color:#0369a1}.users-status{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;font-size:.78rem;font-weight:800}.users-status i{width:7px;height:7px;border-radius:50%;background:currentColor}.users-status.is-active{background:#dcfce7;color:#15803d}.users-status.is-inactive{background:#fee2e2;color:#b91c1c}.users-action-group{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap}.users-action-group form{margin:0}.users-action-button{display:inline-flex;align-items:center;gap:6px;min-height:35px;padding:0 10px;border:1px solid transparent;border-radius:10px;background:#fff;text-decoration:none;font-weight:800;font-size:.76rem;cursor:pointer}.users-action-button.edit{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.users-action-button.permissions{color:#7e22ce;background:#faf5ff;border-color:#e9d5ff}.users-action-button.delete{color:#b91c1c;background:#fff1f2;border-color:#fecdd3}.users-action-button:hover{transform:translateY(-1px);filter:saturate(1.12)}.users-empty{display:grid;place-items:center;text-align:center;padding:42px 20px;color:#64748b}.users-empty span{font-size:2rem}.users-empty strong{margin-top:8px;color:#0f172a}.users-empty p{margin:4px 0 0}.users-form-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.55fr);gap:22px;align-items:start}.users-form-card{overflow:hidden}.users-form-section{padding:23px;border-bottom:1px solid #edf2f7}.users-form-section>header{display:flex;gap:13px;align-items:center;margin-bottom:20px}.users-form-section>header>span{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:#ecfdf5;color:#15803d;font-weight:900}.users-form-section h2{margin:0;font-size:1.06rem}.users-form-section p{margin:3px 0 0;color:#64748b;font-size:.88rem}.users-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.users-form-grid .span-2{grid-column:span 2}.users-form-grid label>span{display:flex;justify-content:space-between;align-items:center}.users-form-grid em{font-style:normal;font-size:.72rem;color:#64748b;background:#f1f5f9;padding:3px 7px;border-radius:999px}.password-control{display:flex;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden}.password-control:focus-within{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.13)}.password-control input{border:0!important;box-shadow:none!important}.password-control button{border:0;border-left:1px solid #e2e8f0;background:#f8fafc;padding:0 14px;font-weight:800;color:#475569;cursor:pointer}.users-form-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 23px;background:#f8fafc}.users-help-column{display:grid;gap:16px}.users-profile-preview,.users-security-card{padding:22px;border-radius:20px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.055)}.users-profile-preview{text-align:center}.preview-avatar{width:72px;height:72px;margin:0 auto 12px;background:linear-gradient(135deg,#dbeafe,#bbf7d0);color:#166534;font-size:1.2rem}.users-profile-preview h3{margin:0}.users-profile-preview p{margin:5px 0;color:#64748b;word-break:break-word}.preview-status{display:inline-flex;margin-top:10px;padding:6px 10px;border-radius:999px;background:#dcfce7;color:#15803d;font-weight:800;font-size:.78rem}.users-security-card>span{font-size:1.8rem}.users-security-card h3{margin:9px 0}.users-security-card ul{margin:10px 0 0;padding-left:19px;color:#64748b}.users-security-card li{margin:8px 0}.permissions-user-selector{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:19px 21px;margin-bottom:18px}.permissions-user-selector form{min-width:min(100%,390px)}.permissions-profile-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;margin-bottom:18px}.permissions-profile{display:flex;align-items:center;gap:14px}.permissions-avatar{width:58px;height:58px;background:linear-gradient(135deg,#dbeafe,#bbf7d0);color:#166534}.permissions-profile small,.permissions-profile p{display:block;color:#64748b}.permissions-profile h2{margin:2px 0}.permissions-summary{display:flex;gap:12px}.permissions-summary>span{min-width:125px;padding:12px;border-radius:14px;background:#f8fafc;text-align:center;font-weight:900;color:#0f172a}.permissions-summary small{display:block;margin-top:3px;color:#64748b;font-size:.72rem;font-weight:600}.permissions-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:22px 0 14px}.permissions-quick-actions{display:flex;gap:8px}.permissions-quick-actions button{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer}.permissions-groups{display:grid;gap:16px}.permission-group-card{overflow:hidden}.permission-group-card>header{padding:16px 18px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.permission-group-card>header>div{display:flex;align-items:center;gap:11px}.permission-group-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e0f2fe;color:#0369a1}.permission-group-card h3{margin:0}.permission-group-card p{margin:2px 0 0;color:#64748b;font-size:.8rem}.permission-grid-head,.permission-row{display:grid;grid-template-columns:minmax(220px,1.7fr) repeat(4,minmax(72px,.45fr));align-items:center}.permission-grid-head{padding:10px 18px;background:#0f2744;color:#fff;font-size:.72rem;font-weight:900;text-transform:uppercase;text-align:center}.permission-grid-head span:first-child{text-align:left}.permission-row{padding:13px 18px;border-bottom:1px solid #edf2f7}.permission-row:last-child{border-bottom:0}.permission-row:hover{background:#f8fbff}.permission-module strong,.permission-module small{display:block}.permission-module small{margin-top:3px;color:#64748b}.permission-toggle{display:flex;justify-content:center}.permission-toggle input{position:absolute;opacity:0}.permission-toggle span{position:relative;display:block;width:44px;height:25px;border-radius:999px;background:#cbd5e1;cursor:pointer;transition:.2s}.permission-toggle span i{position:absolute;top:3px;left:3px;width:19px;height:19px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.2);transition:.2s}.permission-toggle input:checked+span{background:#22c55e}.permission-toggle input:checked+span i{transform:translateX(19px)}.permissions-sticky-actions{position:sticky;bottom:12px;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px;padding:15px 17px;border:1px solid #cbd5e1;border-radius:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);box-shadow:0 14px 35px rgba(15,23,42,.13)}.permissions-sticky-actions strong,.permissions-sticky-actions small{display:block}.permissions-sticky-actions small{margin-top:3px;color:#64748b}.permissions-sticky-actions>div:last-child{display:flex;gap:9px}
@media(max-width:1050px){.users-kpi-grid{grid-template-columns:repeat(2,1fr)}.users-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.users-form-layout{grid-template-columns:1fr}.users-help-column{grid-template-columns:repeat(2,1fr)}.permissions-profile-card{align-items:flex-start}.permissions-summary{flex-direction:column}.permission-grid-head,.permission-row{grid-template-columns:minmax(190px,1.5fr) repeat(4,70px)}}
@media(max-width:720px){.users-hero,.users-form-hero,.permissions-hero,.permissions-user-selector,.permissions-profile-card,.permissions-toolbar,.permissions-sticky-actions{flex-direction:column;align-items:stretch}.users-primary-action{width:100%}.users-kpi-grid,.users-filter-bar,.users-form-grid,.users-help-column{grid-template-columns:1fr}.users-form-grid .span-2{grid-column:auto}.users-filter-actions,.permissions-quick-actions,.permissions-sticky-actions>div:last-child{display:grid;grid-template-columns:1fr 1fr}.permissions-user-selector form{min-width:0;width:100%}.permissions-summary{display:grid;grid-template-columns:1fr 1fr}.permission-grid-head{display:none}.permission-row{grid-template-columns:1fr repeat(4,52px);padding:14px 12px}.permission-module small{display:none}.users-action-button b{display:none}.users-action-button{width:36px;justify-content:center;padding:0}.users-table td,.users-table th{padding-left:13px;padding-right:13px}}
@media(max-width:460px){.users-kpi-grid{grid-template-columns:1fr}.users-filter-actions,.permissions-quick-actions,.permissions-sticky-actions>div:last-child{grid-template-columns:1fr}.permissions-summary{grid-template-columns:1fr}.permission-row{grid-template-columns:1fr repeat(4,44px)}.permission-toggle span{width:38px}.permission-toggle input:checked+span i{transform:translateX(13px)}}

/* ===== Configuración general · rediseño visual ===== */
.settings-page{display:grid;gap:20px}.settings-hero{position:relative;display:flex;justify-content:space-between;align-items:center;gap:28px;overflow:hidden;padding:30px 34px;color:#fff;background:linear-gradient(135deg,#0f5132 0%,#177245 58%,#2f9464 100%);border-radius:24px;box-shadow:0 18px 42px rgba(15,81,50,.2)}.settings-hero:before,.settings-hero:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}.settings-hero:before{width:250px;height:250px;right:-75px;top:-145px}.settings-hero:after{width:180px;height:180px;right:95px;bottom:-140px}.settings-hero-copy{position:relative;z-index:1;max-width:760px}.settings-eyebrow{display:inline-flex;padding:6px 10px;margin-bottom:10px;border:1px solid rgba(255,255,255,.23);border-radius:999px;background:rgba(255,255,255,.1);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.settings-hero h1{margin:0;font-size:clamp(1.8rem,3vw,2.7rem);letter-spacing:-.035em}.settings-hero p{max-width:720px;margin:10px 0 0;color:#d9f3e6;line-height:1.65}.settings-hero-badges{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.settings-hero-badges span{padding:7px 10px;border-radius:10px;background:rgba(255,255,255,.11);font-size:.76rem;font-weight:750}.settings-hero-icon{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 96px;width:96px;height:96px;border:1px solid rgba(255,255,255,.24);border-radius:28px;background:rgba(255,255,255,.13);font-size:3.1rem;box-shadow:inset 0 1px rgba(255,255,255,.22)}.settings-notice{display:flex;align-items:center;gap:13px;padding:14px 17px;border-radius:15px;border:1px solid}.settings-notice>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-weight:900}.settings-notice strong,.settings-notice small{display:block}.settings-notice small{margin-top:2px}.settings-notice.success{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.settings-notice.success>span{color:#fff;background:#22c55e}.settings-notice.error{color:#991b1b;background:#fff1f2;border-color:#fecdd3}.settings-notice.error>span{color:#fff;background:#ef4444}.settings-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.48fr);gap:20px;align-items:start}.settings-main-column,.settings-side-column{display:grid;gap:18px}.settings-card,.settings-preview-card,.settings-info-card,.settings-summary-card{border:1px solid #e2e8f0;border-radius:21px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.055)}.settings-card{overflow:hidden}.settings-card-header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:20px 22px;border-bottom:1px solid #edf2f7;background:linear-gradient(180deg,#fff,#fbfdfc)}.settings-step{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#166534;background:#dcfce7;font-weight:950}.settings-step.blue{color:#075985;background:#e0f2fe}.settings-step.amber{color:#a16207;background:#fef3c7}.settings-section-kicker{display:block;margin-bottom:3px;color:#16a34a;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.09em}.settings-section-kicker.blue{color:#0284c7}.settings-section-kicker.amber{color:#d97706}.settings-card-header h2{margin:0;color:#0f172a;font-size:1.08rem}.settings-card-header p{margin:4px 0 0;color:#64748b;font-size:.83rem;line-height:1.45}.settings-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f0fdf4;font-size:1.3rem}.settings-card-icon.blue{background:#f0f9ff}.settings-card-icon.amber{background:#fffbeb}.settings-card-body{padding:22px}.settings-fields{display:grid;gap:17px}.settings-fields.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-field{display:block;min-width:0}.settings-field.full-width{grid-column:1/-1}.settings-field>span{display:block;margin-bottom:7px;color:#334155;font-size:.79rem;font-weight:850}.settings-field>span b{color:#dc2626}.settings-input-wrap{display:flex;align-items:center;overflow:hidden;border:1px solid #cbd5e1;border-radius:12px;background:#fff;transition:.2s}.settings-input-wrap:focus-within{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}.settings-input-wrap i{display:grid;place-items:center;flex:0 0 42px;height:45px;background:#f8fafc;border-right:1px solid #e2e8f0;font-style:normal}.settings-input-wrap input{width:100%;min-width:0;height:45px;padding:0 13px;border:0;outline:0;background:transparent;color:#0f172a}.settings-help,.settings-field-error{display:block;margin-top:6px;font-size:.72rem}.settings-help{color:#94a3b8}.settings-field-error{color:#b91c1c;font-weight:750}.settings-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-select-card{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#fbfdff;transition:.2s}.settings-select-card:hover{transform:translateY(-1px);border-color:#bae6fd;box-shadow:0 8px 20px rgba(2,132,199,.07)}.settings-option-icon{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e0f2fe;font-size:1.25rem}.settings-select-card strong{color:#0f172a;font-size:.88rem}.settings-select-card small{color:#64748b;font-size:.72rem}.settings-select-card select{grid-column:1/-1;width:100%;height:43px;margin-top:13px;padding:0 38px 0 12px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;color:#334155;font-weight:700;outline:0}.settings-select-card select:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.13)}.settings-alert-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.settings-alert-card{display:grid;align-content:start;gap:11px;padding:17px;border:1px solid #e2e8f0;border-radius:17px;background:#fff}.settings-alert-card.stock{border-top:4px solid #f59e0b}.settings-alert-card.mortality{border-top:4px solid #ef4444}.settings-alert-card.performance{border-top:4px solid #3b82f6}.settings-alert-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f8fafc;font-size:1.25rem}.settings-alert-card strong,.settings-alert-card small{display:block}.settings-alert-card strong{color:#0f172a}.settings-alert-card small{margin-top:3px;color:#64748b;font-size:.73rem;line-height:1.45}.settings-number-control{display:flex;align-items:center;overflow:hidden;margin-top:3px;border:1px solid #cbd5e1;border-radius:12px}.settings-number-control:focus-within{border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.12)}.settings-number-control input{width:100%;min-width:0;height:44px;padding:0 11px;border:0;outline:0;font-weight:900;color:#0f172a}.settings-number-control span{display:grid;place-items:center;align-self:stretch;min-width:48px;padding:0 10px;background:#f8fafc;border-left:1px solid #e2e8f0;color:#64748b;font-size:.76rem;font-weight:850}.settings-side-column{position:sticky;top:82px}.settings-preview-card{position:relative;overflow:hidden;padding:0 22px 22px;text-align:center}.settings-preview-cover{height:92px;margin:0 -22px;background:linear-gradient(135deg,#0f5132,#2c9a67)}.settings-company-avatar{display:grid;place-items:center;width:78px;height:78px;margin:-39px auto 12px;border:5px solid #fff;border-radius:24px;color:#fff;background:linear-gradient(135deg,#0f5132,#22c55e);font-size:1.25rem;font-weight:950;box-shadow:0 10px 24px rgba(15,81,50,.24)}.settings-preview-label{display:inline-flex;padding:5px 9px;border-radius:999px;color:#166534;background:#dcfce7;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.settings-preview-card h3{margin:12px 0 5px;color:#0f172a}.settings-preview-card p{margin:0;color:#64748b;font-size:.8rem;line-height:1.5}.settings-preview-meta{display:grid;gap:8px;margin-top:16px;text-align:left}.settings-preview-meta span{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;background:#f8fafc;color:#475569;font-size:.76rem;font-weight:750}.settings-preview-meta i{font-style:normal}.settings-info-card,.settings-summary-card{padding:20px}.settings-info-icon{font-size:1.65rem}.settings-info-card h3{margin:8px 0;color:#0f172a}.settings-info-card ul{margin:10px 0 0;padding-left:18px;color:#64748b;font-size:.8rem;line-height:1.55}.settings-info-card li+li{margin-top:7px}.settings-summary-card header{display:flex;align-items:center;gap:10px;padding-bottom:13px;border-bottom:1px solid #edf2f7}.settings-summary-card header>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#f1f5f9}.settings-summary-card strong,.settings-summary-card small{display:block}.settings-summary-card small{color:#64748b;font-size:.7rem}.settings-summary-card>div{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px dashed #e2e8f0;color:#64748b;font-size:.78rem}.settings-summary-card>div:last-child{border-bottom:0}.settings-summary-card b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:9px;color:#166534;background:#dcfce7}.settings-save-bar{grid-column:1/-1;position:sticky;bottom:12px;z-index:8;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 17px;border:1px solid #cbd5e1;border-radius:17px;background:rgba(255,255,255,.95);backdrop-filter:blur(12px);box-shadow:0 16px 40px rgba(15,23,42,.14)}.settings-save-bar>div{display:flex;align-items:center;gap:12px}.settings-save-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#ecfdf5;font-size:1.25rem}.settings-save-bar strong,.settings-save-bar small{display:block}.settings-save-bar strong{color:#0f172a}.settings-save-bar small{margin-top:3px;color:#64748b;font-size:.76rem}.settings-save-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#15803d,#22c55e);font-weight:900;cursor:pointer;box-shadow:0 9px 20px rgba(22,163,74,.24);transition:.2s}.settings-save-button:hover{transform:translateY(-1px);filter:saturate(1.08)}
@media(max-width:1100px){.settings-layout{grid-template-columns:1fr}.settings-side-column{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}.settings-alert-grid{grid-template-columns:1fr}.settings-preview-card,.settings-info-card,.settings-summary-card{min-width:0}}
@media(max-width:780px){.settings-hero{padding:25px}.settings-hero-icon{display:none}.settings-fields.two-columns,.settings-option-grid,.settings-side-column{grid-template-columns:1fr}.settings-card-header{grid-template-columns:auto 1fr}.settings-card-icon{display:none}.settings-save-bar{position:static;flex-direction:column;align-items:stretch}.settings-save-button{width:100%}}
@media(max-width:520px){.settings-hero{border-radius:18px}.settings-hero-badges{display:grid}.settings-card-header,.settings-card-body{padding:17px}.settings-card-header{align-items:start}.settings-step{width:38px;height:38px}.settings-save-bar>div{align-items:flex-start}.settings-save-bar small{line-height:1.4}}


/* ===== FASE UNIFICACIÓN VISUAL + MENÚ DESPLEGABLE ===== */
:root{--surface:#ffffff;--surface-soft:#f8fafc;--surface-green:#f0fdf4;--border-soft:#e2e8f0;--ink:#0f172a;--ink-soft:#475569;--success:#16a34a;--danger:#dc2626;--warning:#d97706;--radius-lg:22px;--radius-md:14px}
.page-content{width:100%;max-width:1680px;margin:0 auto;padding:28px 30px 38px}
.page-heading{position:relative;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow:hidden;margin-bottom:22px;padding:27px 29px;border:1px solid rgba(22,163,74,.16);border-radius:22px;background:linear-gradient(135deg,#f0fdf4 0%,#fff 56%,#eff6ff 100%);box-shadow:0 12px 32px rgba(15,23,42,.055)}
.page-heading:after{content:"";position:absolute;right:-55px;top:-75px;width:210px;height:210px;border-radius:50%;background:radial-gradient(circle,rgba(34,197,94,.13),rgba(34,197,94,0) 68%);pointer-events:none}.page-heading>div{position:relative;z-index:1}.page-heading h1{margin:0;color:var(--ink);font-size:clamp(1.55rem,2.2vw,2.15rem);letter-spacing:-.035em}.page-heading p{max-width:760px;margin:8px 0 0;color:#64748b;font-size:.9rem;line-height:1.55}.page-heading>a,.page-heading>button{position:relative;z-index:1;flex:0 0 auto}
.panel{overflow:hidden;border:1px solid var(--border-soft);border-radius:20px;background:var(--surface);box-shadow:0 10px 30px rgba(15,23,42,.055)}.panel+.panel{margin-top:20px}.form-panel{padding:0}.form-panel>form{padding:0}.form-section{padding:23px 25px;border-bottom:1px solid #edf2f7}.form-section:last-of-type{border-bottom:0}.form-section h2{display:flex;align-items:center;gap:10px;margin:0 0 19px;color:var(--ink);font-size:1rem}.form-section h2:before{content:"";width:10px;height:10px;border-radius:4px;background:linear-gradient(135deg,#15803d,#4ade80);box-shadow:0 0 0 5px #dcfce7}.form-grid{gap:18px}.form-field{margin-top:0}.form-field>span,.filter-bar label>span{color:#334155;font-size:.76rem;font-weight:850}.form-field input,.form-field select,.form-field textarea,.filter-bar input,.filter-bar select{width:100%;min-width:0;min-height:46px;padding:0 13px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:var(--ink);outline:0;transition:.18s}.form-field textarea{min-height:108px;padding-top:12px;resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.filter-bar input:focus,.filter-bar select:focus{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}.panel-footer{display:flex;align-items:center;justify-content:flex-end;gap:11px;padding:17px 24px;border-top:1px solid #e2e8f0;background:#f8fafc}
.filter-bar{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(auto-fit,minmax(155px,.65fr));align-items:end;gap:13px;padding:18px 20px;border-bottom:1px solid #edf2f7;background:linear-gradient(180deg,#fff,#fbfdfc)}.filter-bar>label{display:grid;gap:7px;min-width:0}.filter-bar>.button,.filter-bar>.primary-button,.filter-bar>.action-link{min-height:46px;align-self:end}
.table-responsive{overflow:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0}.data-table thead th{position:sticky;top:0;z-index:2;padding:13px 16px;color:#64748b;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap}.data-table tbody td{padding:15px 16px;border-bottom:1px solid #eef2f6;color:#334155;font-size:.82rem;vertical-align:middle}.data-table tbody tr{transition:.18s}.data-table tbody tr:hover{background:#f8fcfa}.data-table tbody tr:last-child td{border-bottom:0}.data-table td strong{color:#0f172a}.data-table td>small,.data-table td strong+small{display:block;margin-top:4px;color:#64748b;line-height:1.45}.table-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.table-actions form{margin:0}.action-link,.table-actions .action-link{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 11px;border:1px solid #dbe4ea;border-radius:9px;color:#2563eb;background:#fff;font-size:.72rem;font-weight:850;cursor:pointer}.action-link:hover{border-color:#bfdbfe;background:#eff6ff}.action-link.danger{color:#dc2626}.action-link.danger:hover{border-color:#fecaca;background:#fef2f2}.primary-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 19px;border:0;border-radius:12px;color:#fff;background:linear-gradient(135deg,#15803d,#22c55e);font-size:.8rem;font-weight:900;box-shadow:0 9px 20px rgba(22,163,74,.22);cursor:pointer;transition:.2s}.primary-button:hover{transform:translateY(-1px);filter:saturate(1.07)}.status-badge,.count-badge{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:0 9px;border-radius:999px;font-size:.68rem;font-weight:900}.empty-state{padding:46px 20px!important;text-align:center!important;color:#94a3b8!important;background:linear-gradient(180deg,#fff,#fbfdff)}.alert{margin-bottom:17px;border-radius:13px;box-shadow:0 5px 16px rgba(15,23,42,.04)}

/* Navegación desplegable */
.sidebar{width:auto;padding:17px 12px;background:linear-gradient(180deg,#12242e 0%,#162f37 100%);scrollbar-width:thin;scrollbar-color:#36515b transparent}.sidebar .brand{margin:0 3px 11px;padding:5px 6px 18px}.sidebar-nav{display:grid;gap:7px;padding-top:5px}.nav-group{overflow:hidden;border:1px solid transparent;border-radius:13px}.nav-group.has-active{border-color:rgba(74,222,128,.12);background:rgba(255,255,255,.025)}.nav-group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:43px;padding:0 11px;border:0;border-radius:11px;color:#9fb0b9;background:transparent;font:inherit;cursor:pointer;transition:.2s}.nav-group-toggle:hover,.nav-group.is-open>.nav-group-toggle{color:#fff;background:rgba(255,255,255,.06)}.nav-group-title{display:flex;align-items:center;gap:9px;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.075em}.nav-group-dot{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 4px rgba(74,222,128,.09)}.nav-group-chevron{font-size:1rem;transition:transform .24s}.nav-group.is-open .nav-group-chevron{transform:rotate(180deg)}.nav-submenu{display:grid;grid-template-rows:0fr;opacity:.25;transition:grid-template-rows .25s ease,opacity .2s ease}.nav-submenu>*{overflow:hidden}.nav-group.is-open .nav-submenu{grid-template-rows:1fr;opacity:1}.nav-group.is-open .nav-submenu:before{content:"";display:block}.nav-link{display:flex;align-items:center;gap:10px;min-height:42px;margin:2px 7px;padding:0 10px;border-radius:10px;color:#bdcbd1;font-size:.78rem;font-weight:750;transition:.18s}.nav-link:hover{color:#fff;background:rgba(255,255,255,.065);transform:translateX(2px)}.nav-link.active{color:#fff;background:linear-gradient(135deg,rgba(34,197,94,.82),rgba(21,128,61,.92));box-shadow:0 7px 16px rgba(0,0,0,.16)}.nav-link-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.07);font-size:.84rem}.nav-link.active .nav-link-icon{background:rgba(255,255,255,.16)}.nav-link-copy{white-space:nowrap}
.sidebar-collapsed .nav-group-title,.sidebar-collapsed .nav-group-chevron,.sidebar-collapsed .nav-link-copy{display:none}.sidebar-collapsed .nav-group-toggle{justify-content:center;padding:0}.sidebar-collapsed .nav-group-dot{width:8px;height:8px}.sidebar-collapsed .nav-group{overflow:visible}.sidebar-collapsed .nav-submenu{grid-template-rows:1fr;opacity:1}.sidebar-collapsed .nav-link{justify-content:center;margin:3px 4px;padding:0}.sidebar-collapsed .nav-link-icon{flex-basis:31px;width:31px;height:31px}
.topbar{backdrop-filter:blur(13px);background:rgba(255,255,255,.93);border-bottom:1px solid #e2e8f0}.topbar-title strong{color:#0f172a}.avatar{background:linear-gradient(135deg,#15803d,#4ade80);box-shadow:0 6px 14px rgba(22,163,74,.2)}
@media(max-width:1050px){.page-content{padding:23px 20px 34px}.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-bar>input:first-child,.filter-bar>.search-field{grid-column:1/-1}}
@media(max-width:820px){.sidebar{position:fixed;z-index:100;left:0;top:0;transform:translateX(-105%);width:278px;box-shadow:20px 0 50px rgba(0,0,0,.28);transition:transform .25s}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open:after{content:"";position:fixed;z-index:90;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(2px)}.sidebar-collapsed .nav-group-title,.sidebar-collapsed .nav-group-chevron,.sidebar-collapsed .nav-link-copy{display:flex}.sidebar-collapsed .nav-group-toggle{justify-content:space-between;padding:0 11px}.sidebar-collapsed .nav-link{justify-content:flex-start;margin:2px 7px;padding:0 10px}.page-heading{align-items:flex-start;padding:23px}.page-heading>a,.page-heading>button{min-height:42px}}
@media(max-width:620px){.page-content{padding:17px 12px 28px}.page-heading{display:grid;border-radius:18px}.page-heading>a,.page-heading>button{width:100%}.filter-bar{grid-template-columns:1fr;padding:15px}.filter-bar>input:first-child,.filter-bar>.search-field{grid-column:auto}.form-section{padding:19px 16px}.panel-footer{flex-direction:column-reverse;align-items:stretch;padding:15px}.panel-footer .button,.panel-footer .primary-button{width:100%}.data-table tbody td{padding:13px 12px}.table-actions{min-width:150px}}
/* Ajuste final de animación para submenús con cantidad variable de opciones */
.nav-submenu{display:block;max-height:0;overflow:hidden;opacity:.25;transition:max-height .3s ease,opacity .2s ease,padding .2s ease;padding:0}
.nav-group.is-open .nav-submenu{max-height:420px;opacity:1;padding:2px 0 7px}
.nav-group.is-open .nav-submenu:before{display:none}
.sidebar-collapsed .nav-submenu{max-height:420px;opacity:1;padding:2px 0 7px}

/* Fase Mortalidad de aves */
.mortality-heading{background:linear-gradient(135deg,#fff7ed 0%,#fff 56%,#fef2f2 100%);border-color:rgba(234,88,12,.16)}
.mortality-heading:after{background:radial-gradient(circle,rgba(239,68,68,.12),rgba(239,68,68,0) 68%)}
.mortality-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 20px}.mortality-metrics article{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 9px 24px rgba(15,23,42,.05)}.mortality-metrics .metric-symbol{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:#ecfdf5;color:#15803d;font-size:1.05rem;font-weight:950}.mortality-metrics .metric-symbol.danger{background:#fef2f2;color:#dc2626}.mortality-metrics .metric-symbol.warning{background:#fff7ed;color:#ea580c}.mortality-metrics .metric-symbol.info{background:#eff6ff;color:#2563eb}.mortality-metrics small{display:block;color:#64748b;font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.mortality-metrics strong{display:block;margin-top:3px;color:#0f172a;font-size:1.45rem}.mortality-metrics p{margin:3px 0 0;color:#94a3b8;font-size:.72rem}.mortality-panel-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;border-bottom:1px solid #edf2f7}.mortality-panel-header h2{margin:0;color:#0f172a;font-size:1rem}.mortality-panel-header p{margin:5px 0 0;color:#64748b;font-size:.78rem}.mortality-filters{grid-template-columns:minmax(210px,1.5fr) repeat(5,minmax(135px,.75fr)) auto}.filter-actions{display:flex;gap:8px;align-items:center}.mortality-type{display:inline-flex;align-items:center;min-height:29px;padding:0 10px;border-radius:999px;font-size:.68rem;font-weight:900}.mortality-type.death{color:#b91c1c;background:#fee2e2}.mortality-type.discard{color:#c2410c;background:#ffedd5}.mortality-quantity strong{color:#b91c1c!important}.mortality-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.mortality-section-title{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px}.mortality-section-title>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;color:#fff;background:linear-gradient(135deg,#dc2626,#f97316);font-size:.8rem;font-weight:950}.mortality-section-title h2{margin:0!important}.mortality-section-title h2:before{display:none}.mortality-section-title p{margin:4px 0 0;color:#64748b;font-size:.76rem}.mortality-preview-card{position:sticky;top:88px;padding:22px;border:1px solid #fed7aa;border-radius:20px;background:linear-gradient(180deg,#fff7ed,#fff);box-shadow:0 10px 26px rgba(154,52,18,.08)}.mortality-preview-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;color:#fff;background:linear-gradient(135deg,#dc2626,#f97316);font-size:1.1rem}.mortality-preview-card h3{margin:15px 0;color:#0f172a}.mortality-preview-card>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #ffedd5}.mortality-preview-card small{color:#64748b;font-size:.72rem}.mortality-preview-card strong{color:#9a3412}.mortality-preview-card p{margin:16px 0 0;color:#7c2d12;font-size:.75rem;line-height:1.55}
@media(max-width:1200px){.mortality-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mortality-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.mortality-filters .search-field{grid-column:span 2}}
@media(max-width:900px){.mortality-form-layout{grid-template-columns:1fr}.mortality-preview-card{position:static}.mortality-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.mortality-metrics{grid-template-columns:1fr}.mortality-filters{grid-template-columns:1fr}.mortality-filters .search-field{grid-column:auto}.filter-actions{flex-direction:column;align-items:stretch}.filter-actions>*{width:100%}}
/* Ross 308 Mixto */
.ross-guide-notice{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:0 0 18px;padding:16px 18px;border:1px solid #bbf7d0;border-radius:18px;background:linear-gradient(135deg,#f0fdf4,#ecfeff);color:#14532d}.ross-guide-notice strong{font-size:.88rem}.ross-guide-notice span{font-size:.78rem;color:#3f6212}.ross-consumption-advice{grid-column:1/-1;padding:16px 18px;border:1px solid #bbf7d0;border-radius:16px;background:linear-gradient(135deg,#f0fdf4,#fff)}.ross-consumption-advice small,.ross-consumption-advice span{display:block;color:#64748b}.ross-consumption-advice strong{display:block;margin:5px 0;color:#166534;font-size:1.05rem}.ross-mortality-status{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 20px;padding:18px 20px;border-radius:18px;border:1px solid #bbf7d0;background:#f0fdf4}.ross-mortality-status.warning{border-color:#fed7aa;background:#fff7ed}.ross-mortality-status.critical{border-color:#fecaca;background:#fef2f2}.ross-mortality-status span{font-size:.68rem;font-weight:900;letter-spacing:.08em}.ross-mortality-status strong{display:block;margin:4px 0;color:#166534}.ross-mortality-status.warning strong{color:#c2410c}.ross-mortality-status.critical strong{color:#b91c1c}.ross-mortality-status p{margin:0;color:#64748b;font-size:.78rem}.ross-mortality-values{text-align:right}.ross-mortality-values b{display:block;font-size:1.7rem}.ross-mortality-values small{color:#64748b}@media(max-width:720px){.ross-guide-notice,.ross-mortality-status{align-items:flex-start;flex-direction:column}.ross-mortality-values{text-align:left}}

/* Fase consumo: inventario por bodega y alimento */
.inventory-origin-section{background:linear-gradient(180deg,#fff,#fbfefc)}
.inventory-origin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.warehouse-food-summary{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:15px 16px;border:1px solid #bbf7d0;border-radius:15px;background:linear-gradient(135deg,#f0fdf4,#f8fffb)}
.warehouse-food-summary-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;color:#166534;background:#dcfce7;font-weight:950}
.warehouse-food-summary small,.warehouse-food-summary span{display:block;color:#64748b;font-size:.72rem}.warehouse-food-summary strong{display:block;margin:3px 0;color:#166534;font-size:1rem}
#foodSelect:disabled{cursor:not-allowed;background:#f1f5f9;color:#94a3b8}

/* Catálogo de alimentos compacto */
.foods-heading{background:linear-gradient(135deg,#f0fdf4,#fff 58%,#eff6ff)}
.food-compact-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.food-compact-metrics article{display:flex;align-items:center;gap:12px;padding:15px 17px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.045)}
.food-compact-metrics article>span{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;background:#ecfdf5;color:#15803d;font-size:.76rem;font-weight:950}
.food-compact-metrics small{display:block;color:#64748b;font-size:.66rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.food-compact-metrics strong{display:block;margin-top:2px;color:#0f172a;font-size:1.18rem}
.food-catalog-panel{overflow:hidden}.food-compact-filters{display:grid;grid-template-columns:minmax(230px,1.6fr) minmax(150px,.8fr) minmax(150px,.8fr) auto;gap:11px;align-items:end;padding:15px 17px;border-bottom:1px solid #e8eef2;background:#f8fafc}
.food-compact-filters label{display:flex;flex-direction:column;gap:5px}.food-compact-filters label>span{color:#64748b;font-size:.65rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.food-compact-filters input,.food-compact-filters select{width:100%;min-height:39px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1e293b;outline:none}.food-compact-filters input:focus,.food-compact-filters select:focus{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.1)}.food-filter-actions{display:flex;gap:7px}.food-filter-actions .button{min-height:39px}
.food-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:16px}.food-empty{grid-column:1/-1}.food-compact-card{padding:15px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;transition:.18s}.food-compact-card:hover{transform:translateY(-2px);border-color:#bbf7d0;box-shadow:0 11px 25px rgba(15,23,42,.07)}
.food-card-top{display:flex;align-items:center;gap:11px}.food-symbol{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:11px;color:#fff;background:linear-gradient(135deg,#15803d,#4ade80);font-weight:950}.food-card-title{min-width:0;flex:1}.food-card-title h3{margin:0;color:#0f172a;font-size:.92rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.food-card-title p{margin:3px 0 0;color:#64748b;font-size:.7rem}.food-stock-state{flex:0 0 auto;padding:5px 8px;border-radius:999px;font-size:.62rem;font-weight:900}.food-stock-state.available{color:#166534;background:#dcfce7}.food-stock-state.empty{color:#991b1b;background:#fee2e2}
.food-card-description{margin:12px 0;padding:9px 10px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:.72rem;line-height:1.45;min-height:50px}.food-card-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.food-card-stats>div{min-width:0;padding:9px;border:1px solid #edf2f7;border-radius:10px}.food-card-stats small,.food-card-stats span{display:block;color:#94a3b8;font-size:.59rem}.food-card-stats strong{display:block;margin:3px 0;color:#334155;font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.food-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:11px;border-top:1px solid #edf2f7}.food-card-footer>small{color:#94a3b8;font-size:.65rem}.food-card-actions{display:flex;align-items:center;gap:6px}.food-card-actions form{margin:0}
@media(max-width:1050px){.food-card-grid{grid-template-columns:1fr}.food-compact-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.food-search{grid-column:1/-1}.food-filter-actions{justify-content:flex-end}}
@media(max-width:720px){.inventory-origin-grid,.food-compact-metrics,.food-compact-filters{grid-template-columns:1fr}.food-search{grid-column:auto}.food-filter-actions{flex-direction:column}.food-filter-actions .button{width:100%}.food-card-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.food-card-footer{align-items:flex-start;flex-direction:column}}

/* Fase unidades duales Sacos / Kilogramos */
.dual-unit-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;grid-column:1/-1}.unit-input-wrap{display:flex;align-items:center;min-height:48px;background:#fff;border:1px solid #ccd6dc;border-radius:10px;overflow:hidden;transition:.2s}.unit-input-wrap:focus-within{border-color:var(--green);box-shadow:0 0 0 3px rgba(31,117,82,.1)}.unit-input-wrap b{display:grid;place-items:center;align-self:stretch;min-width:46px;color:var(--green-dark);background:var(--green-soft);font-size:12px}.unit-input-wrap input{min-width:0;flex:1;border:0!important;box-shadow:none!important;border-radius:0!important;font-size:16px;font-weight:750}.unit-input-wrap em{padding-right:12px;color:var(--muted);font-size:10px;font-style:normal;font-weight:800;text-transform:uppercase}.dual-unit-error{grid-column:1/-1}.dual-stock-preview strong{font-size:18px}.remaining-preview{display:flex;justify-content:space-between;gap:10px;margin-top:10px;padding-top:9px;border-top:1px solid rgba(31,117,82,.15)}.remaining-preview small{font-size:8px}.remaining-preview b{color:var(--navy);font-size:11px}.text-right small{display:block;margin-top:3px;color:var(--muted);font-size:9px}@media(max-width:700px){.dual-unit-inputs{grid-template-columns:1fr}.remaining-preview{align-items:flex-start;flex-direction:column}}


/* Historial de consumos: altura controlada y scroll vertical interno */
.consumption-history-scroll{max-height:clamp(360px,58vh,680px);overflow-y:auto;overflow-x:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-top:1px solid #edf2f7;background:#fff;}
.consumption-history-scroll .consumption-table{margin:0;min-width:980px;}
.consumption-history-scroll .consumption-table thead{position:sticky;top:0;z-index:4;}
.consumption-history-scroll .consumption-table thead th{background:#f8fafc;box-shadow:0 1px 0 #dfe7ed;}
.consumption-history-scroll:focus{outline:3px solid rgba(31,117,82,.18);outline-offset:-3px;}
.consumption-history-scroll::-webkit-scrollbar{width:10px;height:10px;}
.consumption-history-scroll::-webkit-scrollbar-track{background:#f1f5f4;}
.consumption-history-scroll::-webkit-scrollbar-thumb{background:#a8bbb2;border:2px solid #f1f5f4;border-radius:999px;}
@media(max-width:768px){.consumption-history-scroll{max-height:56vh}.consumption-history-scroll .consumption-table{min-width:900px}}
/* Pesajes y rendimiento automático */
.weighing-scroll{max-height:620px;overflow:auto}.weighing-scroll thead th{position:sticky;top:0;z-index:2}.performance-auto-grid{display:grid;gap:18px}.performance-auto-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:20px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.performance-auto-card header,.performance-auto-card footer{display:flex;align-items:center;justify-content:space-between;gap:14px}.performance-auto-card h2{margin:4px 0}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.metric-grid>div{background:#f8fafc;border:1px solid #edf2f7;border-radius:14px;padding:14px}.metric-grid small,.metric-grid span{display:block;color:#64748b}.metric-grid strong{display:block;font-size:1.25rem;margin:4px 0}.compact-filter{display:grid;grid-template-columns:2fr repeat(3,minmax(150px,1fr)) auto;gap:10px;align-items:end}.text-danger{color:#b91c1c!important}.text-success{color:#15803d!important}.action-group{display:flex;gap:6px;flex-wrap:wrap}.data-table td small{display:block;color:#64748b;margin-top:3px}@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-filter{grid-template-columns:1fr 1fr}}@media(max-width:600px){.metric-grid,.compact-filter{grid-template-columns:1fr}.performance-auto-card header,.performance-auto-card footer{align-items:flex-start;flex-direction:column}}

/* Fase Pesajes - rediseño visual */
.weigh-page{display:grid;gap:18px}.weigh-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border-radius:24px;background:linear-gradient(135deg,#123c31 0%,#1f7552 68%,#4da275 100%);color:#fff;box-shadow:0 18px 45px rgba(18,60,49,.2)}.weigh-hero:after{content:"⚖";position:absolute;right:8%;top:50%;transform:translateY(-50%) rotate(-8deg);font-size:9rem;opacity:.07}.weigh-hero>div,.weigh-hero>a{position:relative;z-index:1}.weigh-eyebrow{display:inline-flex;margin-bottom:8px;color:#b9f3d5;font-size:.7rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.weigh-hero h1{margin:0 0 8px;font-size:clamp(1.8rem,3vw,2.65rem);line-height:1.05}.weigh-hero p{max-width:720px;margin:0;color:#d9eee5;line-height:1.6}.weigh-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.weigh-hero-tags span{padding:7px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.1);font-size:.7rem;font-weight:800}.weigh-primary,.weigh-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border-radius:13px;text-decoration:none;font-weight:900}.weigh-primary{padding:13px 17px;background:#fff;color:#174f3d;box-shadow:0 10px 24px rgba(0,0,0,.15)}.weigh-primary span{font-size:1.2rem}.weigh-back{padding:11px 14px;border:1px solid rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.08)}
.weigh-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.weigh-kpis article{display:flex;align-items:center;gap:13px;min-width:0;padding:16px;border:1px solid #e5ece8;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.05)}.weigh-kpi-icon{display:grid;place-items:center;width:45px;height:45px;flex:0 0 45px;border-radius:13px;font-size:1.2rem}.weigh-kpi-icon.green{background:#eaf8f0}.weigh-kpi-icon.blue{background:#eaf3ff}.weigh-kpi-icon.amber{background:#fff6df}.weigh-kpi-icon.purple{background:#f3edff}.weigh-kpis small,.weigh-kpis em{display:block}.weigh-kpis small{color:#64748b;font-size:.66rem;font-weight:800;text-transform:uppercase}.weigh-kpis strong{display:block;margin:2px 0;color:#173b31;font-size:1.45rem}.weigh-kpis em{color:#94a3b8;font-size:.65rem;font-style:normal}
.weigh-filter-card,.weigh-history-card,.weigh-form-card{overflow:hidden;border:1px solid #e2e9e5;border-radius:20px;background:#fff;box-shadow:0 9px 25px rgba(15,23,42,.05)}.weigh-filter-card>header,.weigh-history-head,.weigh-form-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #edf2ef;background:linear-gradient(180deg,#fff,#fbfdfc)}.weigh-filter-card>header>div,.weigh-history-head>div,.weigh-form-card>header{display:flex;align-items:center;gap:12px}.weigh-filter-card header>div>span,.weigh-section-number,.weigh-step{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#eaf8f0;color:#1f7552;font-size:.72rem;font-weight:950}.weigh-filter-card h2,.weigh-history-head h2,.weigh-form-card h2{margin:1px 0;color:#183a31;font-size:1rem}.weigh-filter-card small,.weigh-history-head small,.weigh-form-card header small{color:#1f7552;font-size:.63rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.weigh-filter-card header>a{color:#64748b;font-size:.72rem;font-weight:800;text-decoration:none}.weigh-filter-grid{display:grid;grid-template-columns:1.5fr repeat(3,minmax(155px,1fr)) auto;gap:12px;padding:16px 18px;align-items:end}.weigh-field,.weigh-input{display:grid;gap:6px;min-width:0}.weigh-field>span,.weigh-input>span{color:#425a51;font-size:.69rem;font-weight:850}.weigh-field input,.weigh-field select,.weigh-input input,.weigh-input select,.weigh-input textarea{width:100%;min-width:0;border:1px solid #d8e2dd;border-radius:11px;background:#fff;color:#183a31;outline:none;transition:.2s}.weigh-field input,.weigh-field select,.weigh-input input,.weigh-input select{height:44px;padding:0 12px}.weigh-input textarea{min-height:115px;padding:12px;resize:vertical}.weigh-field input:focus,.weigh-field select:focus,.weigh-input input:focus,.weigh-input select:focus,.weigh-input textarea:focus{border-color:#41a171;box-shadow:0 0 0 3px rgba(65,161,113,.12)}.weigh-field.search>div{display:flex;align-items:center;border:1px solid #d8e2dd;border-radius:11px}.weigh-field.search i{padding-left:12px;color:#94a3b8;font-style:normal}.weigh-field.search input{border:0;box-shadow:none}.weigh-filter-button{height:44px;padding:0 16px;border:0;border-radius:11px;background:#1f7552;color:#fff;font-weight:900;cursor:pointer}
.weigh-history-head p{margin:2px 0 0;color:#94a3b8;font-size:.68rem}.weigh-unit-pill{padding:7px 10px;border-radius:999px;background:#eef7f2;color:#1f7552;font-size:.67rem;font-weight:850}.weigh-table-scroll{max-height:clamp(410px,58vh,680px);overflow:auto;scrollbar-gutter:stable}.weigh-table{width:100%;min-width:1120px;border-collapse:collapse}.weigh-table thead{position:sticky;top:0;z-index:3}.weigh-table th{padding:12px 14px;background:#f6faf8;color:#64748b;font-size:.63rem;font-weight:900;text-align:left;text-transform:uppercase;letter-spacing:.04em;box-shadow:0 1px 0 #e4ebe7}.weigh-table td{padding:13px 14px;border-bottom:1px solid #edf2ef;color:#334b42;font-size:.75rem;vertical-align:middle}.weigh-table tbody tr:hover{background:#fbfdfc}.weigh-table td small{display:block;margin-top:3px;color:#94a3b8;font-size:.64rem}.weigh-date strong{display:block;color:#183a31}.weigh-date span{display:inline-flex;margin-top:5px;padding:4px 7px;border-radius:7px;background:#eef7f2;color:#1f7552;font-size:.62rem;font-weight:850}.weigh-lot{display:flex;align-items:center;gap:9px}.weigh-lot>span{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#173b31;color:#fff;font-size:.65rem;font-weight:900}.weigh-lot strong{display:block;color:#183a31}.weigh-control-badge{display:inline-flex;padding:6px 8px;border-radius:8px;background:#eef3ff;color:#375b9a;font-size:.65rem;font-weight:850}.weigh-weight-main{display:flex;align-items:baseline;gap:4px}.weigh-weight-main strong{color:#173b31;font-size:1.05rem}.weigh-weight-main span{color:#64748b;font-size:.65rem;font-weight:800}.weigh-diff{display:inline-flex;padding:6px 8px;border-radius:8px;font-weight:900}.weigh-diff.positive{background:#eaf8f0;color:#15803d}.weigh-diff.negative{background:#fff0f0;color:#b91c1c}.weigh-diff.neutral{background:#f1f5f9;color:#64748b}.weigh-actions{display:flex;gap:6px}.weigh-actions form{margin:0}.weigh-action{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border:0;border-radius:8px;text-decoration:none;font-size:.65rem;font-weight:850;cursor:pointer}.weigh-action.edit{background:#eaf3ff;color:#295b9b}.weigh-action.delete{background:#fff0f0;color:#b42323}.weigh-empty{display:grid;justify-items:center;padding:48px 20px;text-align:center}.weigh-empty>span{font-size:2rem}.weigh-empty h3{margin:8px 0 4px;color:#183a31}.weigh-empty p{margin:0 0 13px;color:#64748b}.weigh-empty a{padding:9px 12px;border-radius:9px;background:#1f7552;color:#fff;text-decoration:none;font-weight:850}
.weigh-alert{display:flex;align-items:center;gap:11px;padding:13px 15px;border:1px solid #fecaca;border-radius:14px;background:#fff5f5}.weigh-alert>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fee2e2;color:#b91c1c;font-weight:950}.weigh-alert strong,.weigh-alert small{display:block}.weigh-alert small{color:#7f1d1d}.weigh-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.weigh-form{display:grid;gap:16px}.weigh-form-card>header{justify-content:flex-start}.weigh-form-card>header>div{flex:1}.weigh-form-card>header>i{font-style:normal;font-size:1.35rem}.weigh-step.blue{background:#eaf3ff;color:#315f9d}.weigh-form-card header p{margin:3px 0 0;color:#7b8f87;font-size:.7rem}.weigh-form-body{padding:18px}.weigh-form-body.two-cols,.sample-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.weigh-input.full{grid-column:1/-1}.weigh-input>b,.weigh-input span b{color:#c2410c}.weigh-readonly{display:flex;align-items:center;justify-content:space-between;gap:10px;height:44px;padding:0 12px;border:1px dashed #b9cec4;border-radius:11px;background:#f5faf7}.weigh-readonly strong{color:#1f7552}.weigh-readonly small{color:#94a3b8;font-size:.62rem}.weigh-control-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.weigh-control-options label{cursor:pointer}.weigh-control-options input{position:absolute;opacity:0;pointer-events:none}.weigh-control-options span{display:grid;justify-items:center;gap:4px;padding:11px 5px;border:1px solid #dbe5e0;border-radius:11px;background:#fff;color:#556a61;text-align:center;transition:.2s}.weigh-control-options i{font-style:normal;font-size:1.1rem}.weigh-control-options b{font-size:.62rem}.weigh-control-options input:checked+span{border-color:#2f9368;background:#eaf8f0;color:#176443;box-shadow:0 0 0 2px rgba(47,147,104,.1)}.weigh-number{display:flex;align-items:center;border:1px solid #d8e2dd;border-radius:11px;overflow:hidden}.weigh-number i{padding-left:11px;font-style:normal}.weigh-number input{border:0;box-shadow:none}.weigh-number em{padding-right:11px;color:#64748b;font-size:.65rem;font-style:normal;font-weight:850}.weigh-average-card{grid-row:span 2;display:flex;flex-direction:column;justify-content:center;padding:18px;border-radius:16px;background:linear-gradient(145deg,#173b31,#276f53);color:#fff}.weigh-average-card>span{align-self:flex-start;padding:5px 7px;border-radius:7px;background:rgba(255,255,255,.12);font-size:.6rem;font-weight:850}.weigh-average-card small{margin-top:14px;color:#cde9dc}.weigh-average-card strong{display:block;margin:3px 0;font-size:2rem}.weigh-average-card p{margin:0;color:#b8d8c9;font-size:.68rem}.weigh-progress{height:7px;margin-top:14px;border-radius:999px;background:rgba(255,255,255,.13);overflow:hidden}.weigh-progress span{display:block;height:100%;border-radius:999px;background:#9ce0bd;transition:.25s}.weigh-error{color:#b91c1c!important;font-size:.65rem}.weigh-help{color:#94a3b8;font-size:.63rem}.weigh-save-bar{position:sticky;bottom:10px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #dbe6e0;border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 12px 30px rgba(15,23,42,.12);backdrop-filter:blur(10px)}.weigh-save-bar>div{display:flex;align-items:center;gap:10px}.weigh-save-bar>div:first-child>span{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eaf8f0}.weigh-save-bar strong,.weigh-save-bar small{display:block}.weigh-save-bar strong{color:#183a31}.weigh-save-bar small{color:#64748b;font-size:.65rem}.weigh-save-bar a{color:#64748b;text-decoration:none;font-size:.72rem;font-weight:850}.weigh-save-bar button{padding:11px 14px;border:0;border-radius:10px;background:#1f7552;color:#fff;font-weight:900;cursor:pointer}.weigh-side{display:grid;gap:14px;position:sticky;top:18px}.weigh-preview,.weigh-plan,.weigh-tip{border:1px solid #e2e9e5;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.05)}.weigh-preview{position:relative;overflow:hidden;padding:20px}.weigh-preview-top{height:60px;margin:-20px -20px 0;background:linear-gradient(135deg,#173b31,#3f966d)}.weigh-preview-icon{display:grid;place-items:center;width:54px;height:54px;margin:-28px 0 12px;border:4px solid #fff;border-radius:16px;background:#eaf8f0;font-size:1.4rem}.weigh-preview>small{color:#1f7552;font-size:.62rem;font-weight:900;text-transform:uppercase}.weigh-preview h3{margin:4px 0 14px;color:#183a31}.weigh-preview>div:not(.weigh-preview-top){display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #edf2ef;font-size:.7rem}.weigh-preview>div span{color:#64748b}.weigh-preview>div strong{color:#183a31}.weigh-plan{padding:17px}.weigh-plan>span{font-size:1.4rem}.weigh-plan h3{margin:6px 0 10px;color:#183a31}.weigh-plan ul{display:grid;gap:8px;margin:0;padding-left:18px;color:#60756c;font-size:.7rem;line-height:1.45}.weigh-tip{display:flex;gap:10px;padding:14px;background:#fffaf0;border-color:#f5dfac}.weigh-tip>span{font-size:1.2rem}.weigh-tip strong{color:#7c5510}.weigh-tip p{margin:3px 0 0;color:#8a6a2e;font-size:.68rem;line-height:1.45}
@media(max-width:1180px){.weigh-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.weigh-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.weigh-filter-button{width:100%}.weigh-form-layout{grid-template-columns:1fr}.weigh-side{position:static;grid-template-columns:repeat(3,minmax(0,1fr))}.weigh-control-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.weigh-hero{align-items:flex-start;flex-direction:column;padding:22px}.weigh-primary,.weigh-back{width:100%}.weigh-kpis,.weigh-filter-grid,.weigh-form-body.two-cols,.sample-grid,.weigh-side{grid-template-columns:1fr}.weigh-control-options{grid-template-columns:repeat(2,minmax(0,1fr))}.weigh-average-card{grid-row:auto}.weigh-save-bar{align-items:flex-start;flex-direction:column}.weigh-save-bar>div:last-child{width:100%;justify-content:space-between}.weigh-save-bar button{flex:1}.weigh-unit-pill{display:none}.weigh-action span{display:none}}

/* LOTES - INTERFAZ PROFESIONAL */
.lot-page{display:grid;gap:18px}.lot-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border-radius:24px;background:linear-gradient(135deg,#173b32 0%,#247356 68%,#58a978 100%);color:#fff;box-shadow:0 18px 45px rgba(18,60,49,.2)}.lot-hero:after{content:"🐣";position:absolute;right:8%;top:50%;transform:translateY(-50%) rotate(-8deg);font-size:8rem;opacity:.08}.lot-hero>div,.lot-hero>a{position:relative;z-index:1}.lot-eyebrow{display:inline-flex;margin-bottom:8px;color:#bff3d8;font-size:.7rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.lot-hero h1{margin:0 0 8px;font-size:clamp(1.8rem,3vw,2.65rem);line-height:1.05}.lot-hero p{max-width:720px;margin:0;color:#d9eee5;line-height:1.6}.lot-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.lot-hero-tags span{padding:7px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.1);font-size:.7rem;font-weight:800}.lot-primary,.lot-back{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border-radius:13px;text-decoration:none;font-weight:900}.lot-primary{padding:13px 17px;background:#fff;color:#174f3d;box-shadow:0 10px 24px rgba(0,0,0,.15)}.lot-back{padding:11px 14px;border:1px solid rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.08)}
.lot-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.lot-kpis article{display:flex;align-items:center;gap:13px;padding:18px;border:1px solid #e6ece8;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(30,60,48,.06)}.lot-kpi-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;font-size:1.25rem}.lot-kpi-icon.green{background:#e7f7ee}.lot-kpi-icon.blue{background:#e9f2ff}.lot-kpi-icon.amber{background:#fff4dc}.lot-kpi-icon.purple{background:#f2ebff}.lot-kpis small,.lot-kpis em{display:block;color:#75827c;font-style:normal}.lot-kpis strong{display:block;margin:3px 0;font-size:1.35rem;color:#20362e}.lot-kpis em{font-size:.7rem}
.lot-filter-card,.lot-history-card,.lot-form-card{overflow:hidden;border:1px solid #e4ebe7;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(28,58,47,.06)}.lot-filter-card>header,.lot-history-head,.lot-form-card>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px;border-bottom:1px solid #edf1ef;background:#fbfdfc}.lot-filter-card>header>div,.lot-history-head>div,.lot-form-card>header{display:flex;align-items:center;gap:12px}.lot-filter-card>header>div>span,.lot-section-number,.lot-step{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e5f5ec;color:#176344;font-weight:900}.lot-filter-card h2,.lot-history-card h2,.lot-form-card h2{margin:1px 0 0;color:#21372f;font-size:1rem}.lot-filter-card small,.lot-history-card small,.lot-form-card small{color:#7d8984}.lot-filter-card>header>a{color:#247154;font-size:.75rem;font-weight:800;text-decoration:none}.lot-filter-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr auto;align-items:end;gap:13px;padding:18px 20px}.lot-field,.lot-input{display:grid;gap:7px}.lot-field>span,.lot-input>span{font-size:.72rem;font-weight:850;color:#53635c}.lot-field input,.lot-field select,.lot-input input,.lot-input select{width:100%;min-height:43px;border:1px solid #dce5e0;border-radius:11px;background:#fff;padding:0 12px;color:#273a32;outline:none}.lot-field.search>div{position:relative}.lot-field.search i{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#7d8b84}.lot-field.search input{padding-left:37px}.lot-filter-button{min-height:43px;border:0;border-radius:11px;padding:0 17px;background:#20694e;color:#fff;font-weight:900;cursor:pointer}.lot-unit-pill{padding:7px 10px;border-radius:999px;background:#edf7f1;color:#2a684f;font-size:.7rem;font-weight:850}.lot-history-head p{margin:3px 0 0;color:#89938f;font-size:.7rem}.lot-table-scroll{max-height:clamp(390px,58vh,680px);overflow:auto}.lot-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1000px}.lot-table th{position:sticky;top:0;z-index:2;padding:12px 14px;background:#f6f9f7;color:#68766f;font-size:.68rem;text-align:left;text-transform:uppercase;letter-spacing:.05em}.lot-table td{padding:14px;border-top:1px solid #edf1ef;vertical-align:middle}.lot-table tbody tr:hover{background:#fbfdfc}.lot-code,.lot-location,.lot-genetic,.lot-date{display:flex;align-items:center;gap:10px}.lot-code>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e6f5ed;color:#1d6c4e;font-size:.72rem;font-weight:900}.lot-code strong,.lot-location strong,.lot-genetic strong,.lot-date strong,.lot-capacity strong{display:block;color:#263a32;font-size:.82rem}.lot-code small,.lot-location small,.lot-genetic small,.lot-capacity small{display:block;margin-top:3px;color:#84908b;font-size:.68rem}.lot-date{align-items:flex-start;flex-direction:column;gap:4px}.lot-date span{padding:4px 8px;border-radius:999px;background:#eef5ff;color:#376692;font-size:.66rem;font-weight:800}.lot-capacity{min-width:170px}.lot-capacity>div:first-child{display:flex;justify-content:space-between;gap:12px}.lot-capacity>div:first-child span{color:#277254;font-size:.72rem;font-weight:900}.lot-progress{height:7px;overflow:hidden;margin:7px 0;border-radius:999px;background:#e9eeeb}.lot-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#48a876,#237052);transition:width .25s}.lot-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:.68rem;font-weight:900}.lot-status i{width:7px;height:7px;border-radius:50%;background:currentColor}.lot-status.active{background:#e5f7ed;color:#24704f}.lot-status.finished{background:#edf0f2;color:#69736f}.lot-actions{display:flex;gap:7px}.lot-actions form{margin:0}.lot-action{display:inline-flex;align-items:center;gap:5px;border:0;border-radius:9px;padding:7px 9px;background:#f1f5f3;color:#416057;font:inherit;font-size:.7rem;font-weight:800;text-decoration:none;cursor:pointer}.lot-action.delete{background:#fff0f0;color:#b04a4a}.lot-empty{display:grid;justify-items:center;gap:8px;padding:45px;color:#7c8983;text-align:center}.lot-empty>span{font-size:2.2rem}.lot-empty h3,.lot-empty p{margin:0}.lot-empty a{margin-top:6px;color:#1d6d4e;font-weight:900;text-decoration:none}
.lot-alert{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid #ffd6d1;border-radius:15px;background:#fff5f3;color:#9b3d35}.lot-alert>span{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:#f15f50;color:#fff;font-weight:900}.lot-alert small{display:block;margin-top:2px}.lot-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px;align-items:start}.lot-form{display:grid;gap:16px}.lot-form-card>header{justify-content:flex-start}.lot-form-card>header>i{margin-left:auto;font-style:normal;font-size:1.5rem}.lot-step.blue{background:#eaf2ff;color:#386aa0}.lot-form-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:20px}.lot-input.full{grid-column:1/-1}.lot-input b{color:#c74f45}.lot-input input:focus,.lot-input select:focus{border-color:#52a77b;box-shadow:0 0 0 3px rgba(82,167,123,.12)}.lot-help{font-size:.68rem;color:#798781}.lot-error{font-size:.68rem;color:#bd463d}.lot-number{position:relative}.lot-number i{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-style:normal}.lot-number input{padding-left:40px;padding-right:55px}.lot-number em{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-style:normal;color:#7c8983;font-size:.7rem;font-weight:800}.lot-status-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lot-status-options label input{position:absolute;opacity:0}.lot-status-options label span{display:grid;grid-template-columns:auto 1fr;column-gap:8px;padding:13px;border:1px solid #dfe8e3;border-radius:13px;cursor:pointer}.lot-status-options label span i{grid-row:1/3;font-style:normal;color:#3a8a64}.lot-status-options label span small{margin-top:2px}.lot-status-options input:checked+span{border-color:#4b9e74;background:#eff9f4;box-shadow:0 0 0 3px rgba(75,158,116,.09)}.lot-save-bar{position:sticky;bottom:10px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px;border:1px solid #dfe7e3;border-radius:17px;background:rgba(255,255,255,.96);box-shadow:0 14px 35px rgba(29,58,47,.14);backdrop-filter:blur(8px)}.lot-save-bar>div{display:flex;align-items:center;gap:10px}.lot-save-bar small{display:block;color:#7e8b85}.lot-save-bar a{color:#65736d;font-size:.76rem;font-weight:800;text-decoration:none}.lot-save-bar button{border:0;border-radius:11px;padding:11px 15px;background:#1e6b4d;color:#fff;font-weight:900;cursor:pointer}.lot-side{display:grid;gap:14px}.lot-preview,.lot-capacity-card,.lot-tip{position:relative;overflow:hidden;padding:19px;border:1px solid #e3eae6;border-radius:18px;background:#fff;box-shadow:0 9px 25px rgba(28,58,47,.06)}.lot-preview-top{position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,#1d6b4d,#74bd91)}.lot-preview-icon{display:grid;place-items:center;width:48px;height:48px;margin:7px 0 12px;border-radius:15px;background:#e8f7ef;font-size:1.4rem}.lot-preview h3{margin:4px 0 15px;color:#263b32}.lot-preview>div:not(.lot-preview-top){display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #edf1ef;font-size:.74rem}.lot-preview>div span{color:#7c8983}.lot-capacity-card{text-align:center}.lot-capacity-card>span{font-size:1.5rem}.lot-capacity-card h3{margin:8px 0 14px}.lot-capacity-ring strong{display:block;font-size:1.7rem;color:#1f6e4f}.lot-capacity-ring small{color:#7b8982}.lot-capacity-card p{margin:10px 0 0;color:#728079;font-size:.72rem;line-height:1.5}.lot-tip{display:flex;gap:11px;background:#fffaf0}.lot-tip>span{font-size:1.3rem}.lot-tip strong{color:#574729}.lot-tip p{margin:4px 0 0;color:#786b50;font-size:.72rem;line-height:1.5}
@media(max-width:1100px){.lot-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.lot-form-layout{grid-template-columns:1fr}.lot-side{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.lot-hero{align-items:flex-start;flex-direction:column;padding:23px}.lot-primary,.lot-back{width:100%}.lot-kpis{grid-template-columns:1fr}.lot-filter-grid,.lot-form-body{grid-template-columns:1fr}.lot-input.full{grid-column:auto}.lot-side{grid-template-columns:1fr}.lot-status-options{grid-template-columns:1fr}.lot-save-bar{align-items:stretch;flex-direction:column}.lot-save-bar>div:last-child{justify-content:space-between}.lot-unit-pill{display:none}.lot-action span{display:none}}

/* ===== Rendimiento automático: tablero visual ===== */
.perf-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:18px;padding:28px;border-radius:23px;background:linear-gradient(125deg,#123f32 0%,#1f7654 58%,#43a56f 100%);color:#fff;box-shadow:0 16px 38px rgba(24,83,61,.2)}.perf-hero:after{content:"";position:absolute;right:-60px;top:-85px;width:260px;height:260px;border:1px solid rgba(255,255,255,.13);border-radius:50%;box-shadow:0 0 0 45px rgba(255,255,255,.04),0 0 0 90px rgba(255,255,255,.025)}.perf-hero-copy{position:relative;z-index:1}.perf-eyebrow{display:block;margin-bottom:7px;color:#c9f5dc;font-size:.69rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.perf-hero h1{margin:0 0 8px;font-size:clamp(1.85rem,3vw,2.55rem);line-height:1.05}.perf-hero p{max-width:720px;margin:0;color:rgba(255,255,255,.79);font-size:.89rem;line-height:1.6}.perf-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.perf-hero-tags span{padding:7px 10px;border:1px solid rgba(255,255,255,.17);border-radius:999px;background:rgba(255,255,255,.09);font-size:.7rem;font-weight:800}.perf-primary{position:relative;z-index:1;display:flex;align-items:center;gap:11px;min-width:210px;padding:13px 16px;border-radius:15px;background:#fff;color:#174f3d;text-decoration:none;box-shadow:0 12px 26px rgba(0,0,0,.16)}.perf-primary>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e4f5eb;font-size:1.35rem}.perf-primary strong,.perf-primary small{display:block}.perf-primary small{margin-top:2px;color:#74827c;font-size:.68rem}
.perf-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:15px}.perf-kpis article{display:flex;align-items:center;gap:13px;padding:18px;border:1px solid #e5ece8;border-radius:18px;background:#fff;box-shadow:0 8px 25px rgba(29,60,48,.055)}.perf-kpi-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;font-size:1.15rem;font-weight:900}.perf-kpi-icon.green{background:#e6f7ed;color:#1f704f}.perf-kpi-icon.blue{background:#eaf2ff;color:#356a9f}.perf-kpi-icon.purple{background:#f1ebff;color:#7152a0}.perf-kpi-icon.amber{background:#fff4dc;color:#a66a13}.perf-kpis small,.perf-kpis em{display:block;color:#78847e;font-style:normal}.perf-kpis strong{display:block;margin:2px 0;color:#20362e;font-size:1.35rem}.perf-kpis em{font-size:.68rem}
.perf-summary-strip{display:flex;align-items:center;gap:22px;margin-bottom:16px;padding:13px 17px;border:1px solid #e4ebe7;border-radius:15px;background:#fbfdfc}.perf-summary-strip>div{display:flex;align-items:center;gap:7px}.perf-summary-strip strong{color:#263c33}.perf-summary-strip small{color:#738079}.perf-summary-strip p{margin:0 0 0 auto;color:#7c8983;font-size:.68rem}.perf-summary-strip .dot{width:8px;height:8px;border-radius:50%}.dot.good{background:#2da56b}.dot.warn{background:#e6a72f}.dot.danger{background:#df5c53}
.perf-filter-card,.perf-list-head,.perf-card,.perf-empty{border:1px solid #e3ebe6;background:#fff;box-shadow:0 9px 28px rgba(29,59,48,.055)}.perf-filter-card{overflow:hidden;margin-bottom:16px;border-radius:19px}.perf-filter-card>header,.perf-list-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 19px}.perf-filter-card>header{border-bottom:1px solid #edf2ef;background:#fbfdfc}.perf-filter-card>header>div,.perf-list-head>div{display:flex;align-items:center;gap:11px}.perf-filter-card>header>div>span,.perf-list-head>div>span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e7f5ed;color:#246d50;font-weight:900}.perf-filter-card h2,.perf-list-head h2{margin:1px 0 0;color:#233830;font-size:1rem}.perf-filter-card small,.perf-list-head small,.perf-list-head p{color:#7f8b85}.perf-filter-card>header>a{color:#287256;font-size:.72rem;font-weight:850;text-decoration:none}.perf-filter-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr auto;align-items:end;gap:13px;padding:18px 19px}.perf-field{display:grid;gap:7px}.perf-field>span{font-size:.7rem;font-weight:850;color:#52625b}.perf-field input,.perf-field select{width:100%;min-height:43px;border:1px solid #dce5e0;border-radius:11px;padding:0 12px;background:#fff;color:#263a32;outline:none}.perf-field input:focus,.perf-field select:focus{border-color:#52a77b;box-shadow:0 0 0 3px rgba(82,167,123,.12)}.perf-field.search>div{position:relative}.perf-field.search i{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-style:normal;color:#80908a}.perf-field.search input{padding-left:36px}.perf-filter-button{min-height:43px;border:0;border-radius:11px;padding:0 17px;background:#20694e;color:#fff;font-weight:900;cursor:pointer}.perf-list-head{margin-bottom:13px;border-radius:17px}.perf-list-head p{margin:2px 0 0;font-size:.68rem}.perf-unit-pill{padding:7px 10px;border-radius:999px;background:#edf7f1;color:#2a684f;font-size:.68rem;font-weight:850}
.perf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.perf-card{position:relative;overflow:hidden;border-radius:21px}.perf-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#38a66f}.perf-card.warn:before{background:#e5a52d}.perf-card.danger:before{background:#dd5a52}.perf-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 19px 14px}.perf-lot-id{display:flex;align-items:center;gap:11px}.perf-lot-id>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#e6f5ed;color:#1d694c;font-size:.72rem;font-weight:900}.perf-lot-id small{display:block;color:#7f8b85;font-size:.68rem}.perf-lot-id h3{margin:2px 0 0;color:#243930;font-size:1rem}.perf-status{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;font-size:.67rem;font-weight:900}.perf-status i{display:grid;place-items:center;width:15px;height:15px;border-radius:50%;font-style:normal}.perf-status.good{background:#e5f7ed;color:#24704f}.perf-status.warn{background:#fff5df;color:#a16a16}.perf-status.danger{background:#fff0ef;color:#b54b45}.perf-age-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:0 19px 15px}.perf-age-row small{color:#7d8983;font-size:.64rem}.perf-age-row strong{display:block;margin-top:2px;color:#2b4037;font-size:.78rem}.perf-age-line{height:7px;overflow:hidden;border-radius:999px;background:#e9eeeb}.perf-age-line span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#55b37d,#267353)}
.perf-weight-block{display:flex;align-items:stretch;justify-content:space-between;gap:12px;margin:0 19px 14px;padding:15px;border-radius:16px;background:linear-gradient(135deg,#f3faf6,#edf6f1)}.perf-weight-main{display:flex;align-items:center;gap:11px}.perf-weight-main>span{display:grid;place-items:center;width:41px;height:41px;border-radius:13px;background:#fff;box-shadow:0 6px 16px rgba(25,77,56,.09)}.perf-weight-main small,.perf-weight-main em,.perf-diff small{display:block;color:#718078;font-style:normal;font-size:.67rem}.perf-weight-main strong{display:block;margin:3px 0;color:#183c2d;font-size:1.45rem}.perf-diff{min-width:100px;padding:9px 11px;border-radius:12px;background:#fff;text-align:right}.perf-diff strong{display:block;margin-top:5px;font-size:1rem}.perf-diff.positive strong{color:#25835a}.perf-diff.negative strong{color:#c5544d}.perf-progress-group{padding:0 19px 15px}.perf-progress-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px;font-size:.69rem;color:#687770}.perf-progress-label strong{color:#2f4a3e}.perf-progress,.perf-feed-bar{position:relative;height:8px;border-radius:999px;background:#e8eeea}.perf-progress>span,.perf-feed-bar>span{display:block;height:100%;border-radius:inherit}.perf-progress>span.good{background:#35a66d}.perf-progress>span.warn{background:#e1a02b}.perf-progress>span.danger{background:#dc5a52}.perf-progress .target,.perf-feed-bar .target{position:absolute;top:-3px;bottom:-3px;left:calc(100% - 2px);width:2px;border-radius:2px;background:#233b31}
.perf-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #edf1ef;border-bottom:1px solid #edf1ef}.perf-metrics>div{position:relative;padding:13px 11px;text-align:center}.perf-metrics>div+div{border-left:1px solid #edf1ef}.metric-icon{display:block;margin-bottom:5px;color:#488067;font-size:.78rem}.perf-metrics small,.perf-metrics em{display:block;color:#7c8983;font-style:normal;font-size:.61rem}.perf-metrics strong{display:block;margin:3px 0;color:#263d33;font-size:.83rem}.danger-text,.negative-text{color:#c5524b!important}.perf-feed-panel{margin:14px 19px;padding:14px;border:1px solid #e6eee9;border-radius:15px;background:#fbfdfc}.perf-feed-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.perf-feed-head>div{display:flex;gap:9px}.perf-feed-head small{display:block;color:#76837d;font-size:.65rem}.perf-feed-head strong{display:block;margin-top:2px;color:#2a4036;font-size:.78rem}.perf-feed-head em{color:#357458;font-size:.65rem;font-style:normal;font-weight:850}.perf-feed-values{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 9px}.perf-feed-values span{color:#7a8781;font-size:.61rem}.perf-feed-values strong{display:block;margin-top:2px;color:#30473d;font-size:.72rem}.perf-feed-bar>span{background:linear-gradient(90deg,#e2ac47,#73ae67)}.perf-feed-bar .target{left:calc(100% - 2px)}.perf-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 19px;border-top:1px solid #edf1ef;background:#fbfdfc}.perf-card-foot>div{display:flex;align-items:center;gap:8px}.perf-card-foot small{display:block;color:#84908b;font-size:.61rem}.perf-card-foot strong{display:block;margin-top:2px;color:#43584f;font-size:.68rem}.perf-card-foot>a{display:inline-flex;align-items:center;gap:6px;color:#236d50;font-size:.69rem;font-weight:900;text-decoration:none}.perf-empty{display:grid;justify-items:center;gap:8px;padding:48px;border-radius:20px;text-align:center}.perf-empty>span{font-size:2.25rem}.perf-empty h3,.perf-empty p{margin:0}.perf-empty p{color:#7b8982}.perf-empty a{margin-top:6px;color:#1e6c4e;font-weight:900;text-decoration:none}
@media(max-width:1100px){.perf-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.perf-grid{grid-template-columns:1fr}.perf-summary-strip p{display:none}}@media(max-width:760px){.perf-hero{align-items:flex-start;flex-direction:column;padding:23px}.perf-primary{width:100%}.perf-kpis{grid-template-columns:1fr}.perf-filter-grid{grid-template-columns:1fr}.perf-summary-strip{flex-wrap:wrap}.perf-list-head{align-items:flex-start}.perf-unit-pill{display:none}.perf-age-row{grid-template-columns:1fr}.perf-age-row>small:last-child{display:none}.perf-weight-block{align-items:flex-start;flex-direction:column}.perf-diff{width:100%;text-align:left}.perf-metrics{grid-template-columns:repeat(2,1fr)}.perf-metrics>div:nth-child(3){border-left:0;border-top:1px solid #edf1ef}.perf-metrics>div:nth-child(4){border-top:1px solid #edf1ef}.perf-feed-values{grid-template-columns:1fr}.perf-card-foot{align-items:flex-start;flex-direction:column}.perf-card-foot>a{align-self:flex-end}}

/* =========================================================
   UNIFICACIÓN VISUAL PROFESIONAL — TODAS LAS FASES
   ========================================================= */
:root{
  --dp-primary:#196447;--dp-primary-2:#23825d;--dp-primary-soft:#eaf6f0;
  --dp-ink:#172b24;--dp-copy:#344b42;--dp-muted:#74847d;--dp-border:#dfe8e3;
  --dp-surface:#ffffff;--dp-canvas:#f3f7f5;--dp-danger:#b54242;--dp-warning:#a96718;
  --dp-radius:16px;--dp-radius-sm:11px;--dp-shadow:0 10px 30px rgba(26,54,42,.07);
}
.admin-body{background:radial-gradient(circle at 88% 2%,rgba(46,139,99,.08),transparent 25rem),var(--dp-canvas);color:var(--dp-copy)}
.admin-main{display:flex;min-height:100vh;flex-direction:column}.page-content{flex:1;width:100%;max-width:1680px;margin:0 auto;padding:28px 30px 36px}
.topbar{min-height:76px;padding:11px 28px;border-color:rgba(205,219,212,.9);box-shadow:0 4px 22px rgba(26,48,39,.035)}
.topbar-title strong{color:var(--dp-ink);font-size:15px;letter-spacing:-.01em}.topbar-title small{margin-top:3px;font-size:10px}
.icon-button{border:1px solid #dfe8e3;background:#f6faf8;transition:.2s}.icon-button:hover{color:var(--dp-primary);border-color:#bcd8ca;background:#edf7f2;transform:translateY(-1px)}
.user-menu{padding:5px 7px 5px 5px;border:1px solid #e1e9e5;border-radius:999px;background:#fff}.logout-button{border-radius:999px}
.sidebar{background:linear-gradient(180deg,#132a22 0%,#172d27 55%,#10231d 100%);box-shadow:12px 0 34px rgba(13,36,28,.12)}
.brand{padding:6px 8px 20px}.brand-mark{background:linear-gradient(145deg,#43a97b,#1c6f4f);box-shadow:0 8px 20px rgba(21,101,71,.32)}
.nav-group{margin:7px 0;padding:4px;border:1px solid transparent;border-radius:12px}.nav-group.has-active{border-color:rgba(101,190,148,.14);background:rgba(255,255,255,.025)}
.nav-group-toggle{border-radius:9px}.nav-link{min-height:42px;border-radius:9px}.nav-link:hover{background:rgba(73,171,124,.12)}.nav-link.active{border-left:0;background:linear-gradient(90deg,rgba(54,166,112,.28),rgba(54,166,112,.09));box-shadow:inset 3px 0 #55c08a}
.nav-link-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:rgba(255,255,255,.05)}
.page-heading{position:relative;align-items:flex-end;margin-bottom:22px;padding:23px 25px;overflow:hidden;border:1px solid #dfe8e3;border-radius:20px;background:linear-gradient(135deg,#fff 0%,#f8fcfa 70%,#edf8f2 100%);box-shadow:var(--dp-shadow)}
.page-heading:after{position:absolute;right:-55px;top:-75px;width:210px;height:210px;border:32px solid rgba(43,139,96,.055);border-radius:50%;content:"";pointer-events:none}
.page-heading>div{position:relative;z-index:1}.page-heading h1{font-size:clamp(24px,2vw,31px);letter-spacing:-.035em}.page-heading p{max-width:760px;margin-top:8px;font-size:12px;line-height:1.65}
.page-heading>.button,.page-heading>.primary-button,.page-heading>a{position:relative;z-index:1}
.panel{border:1px solid var(--dp-border);border-radius:var(--dp-radius);background:rgba(255,255,255,.97);box-shadow:var(--dp-shadow)}
.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:15px;border-bottom:1px solid #edf2ef}.panel-header h2{font-size:17px;letter-spacing:-.02em}.panel-header p{font-size:11px;line-height:1.55}
.primary-button,.button-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;color:#fff;font-size:12px;font-weight:850;border:0;border-radius:11px;background:linear-gradient(135deg,var(--dp-primary-2),var(--dp-primary));box-shadow:0 8px 20px rgba(25,100,71,.2);cursor:pointer;transition:.2s}
.primary-button:hover,.button-primary:hover{filter:brightness(.96);transform:translateY(-1px);box-shadow:0 10px 24px rgba(25,100,71,.25)}
.button,.users-button{border-radius:11px}.button-ghost,.users-button-light{border:1px solid #dce6e1;background:#f6f9f7}.button-ghost:hover,.users-button-light:hover{color:var(--dp-primary);border-color:#bbd7c9;background:#edf7f2}
.filter-bar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end;margin-bottom:18px;padding:15px;border:1px solid #e4ebe7;border-radius:13px;background:#f8fbf9}
.filter-bar input,.filter-bar select,.form-field input,.form-field select,.form-field textarea,.field input,.field select,.field textarea,.reports-field input,.reports-field select,.weigh-field input,.weigh-field select,.lot-field input,.lot-field select,.settings-field input,.settings-field select{width:100%;min-height:45px;padding:0 13px;color:var(--dp-copy);border:1px solid #ccd9d2;border-radius:10px;background:#fff;outline:none;transition:border-color .2s,box-shadow .2s,background .2s}
.form-field textarea,.field textarea{min-height:105px;padding:12px 13px;resize:vertical}
.filter-bar input:focus,.filter-bar select:focus,.form-field input:focus,.form-field select:focus,.form-field textarea:focus,.field input:focus,.field select:focus,.field textarea:focus,.reports-field input:focus,.reports-field select:focus,.weigh-field input:focus,.weigh-field select:focus,.lot-field input:focus,.lot-field select:focus,.settings-field input:focus,.settings-field select:focus{border-color:#61a887;background:#fff;box-shadow:0 0 0 4px rgba(35,130,93,.11)}
.form-panel{padding:0;overflow:hidden}.form-panel>form{display:block}.form-section{margin:0;padding:23px 25px;border-bottom:1px solid #ebf0ed}.form-section:last-of-type{border-bottom:0}.form-section h2,.section-title{display:flex;align-items:center;gap:9px;margin:0 0 18px;color:var(--dp-ink);font-size:15px;letter-spacing:-.015em}.form-section h2:before,.section-title:before{width:7px;height:20px;border-radius:999px;background:linear-gradient(var(--dp-primary-2),var(--dp-primary));content:""}
.form-grid{gap:17px 16px}.form-field{margin-top:0}.form-field>span,.field>span{margin-bottom:8px;color:#40564d;font-size:11px;font-weight:850}.field-hint,.form-field small:not(.field-error){display:block;margin-top:6px;color:var(--dp-muted);font-size:10px;line-height:1.45}.field-error{display:block;margin-top:6px;color:var(--dp-danger);font-size:10px;font-weight:750}
.panel-footer{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:15px 24px;border-top:1px solid #dde7e2;background:rgba(255,255,255,.94);box-shadow:0 -10px 25px rgba(24,49,39,.055);backdrop-filter:blur(10px)}
.table-responsive{overflow:auto;border:1px solid #e2e9e5;border-radius:13px;background:#fff;scrollbar-width:thin;scrollbar-color:#9dbdaf #edf3f0}.table-responsive::-webkit-scrollbar{width:9px;height:9px}.table-responsive::-webkit-scrollbar-track{background:#edf3f0}.table-responsive::-webkit-scrollbar-thumb{border:2px solid #edf3f0;border-radius:999px;background:#9dbdaf}
.table-responsive.professional-scroll{max-height:clamp(390px,61vh,720px)}
.data-table{width:100%;border-collapse:separate;border-spacing:0}.data-table thead{position:sticky;top:0;z-index:4}.data-table th{padding:13px 15px;color:#65776f;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.075em;background:#f4f8f6;border-bottom:1px solid #dde7e2}.data-table td{padding:14px 15px;vertical-align:middle;font-size:11px;border-bottom:1px solid #edf1ef}.data-table tbody tr{transition:.18s}.data-table tbody tr:hover{background:#f8fcfa}.data-table tbody tr:last-child td{border-bottom:0}.data-table td strong{color:#253c33;font-size:11px}.data-table td small{display:block;margin-top:4px;color:#7b8983;font-size:9.5px;line-height:1.5}
.table-actions{flex-wrap:nowrap}.action-link{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:0 10px;color:var(--dp-primary);font-size:9.5px;font-weight:850;border:1px solid #cfe1d8;border-radius:8px;background:#f4faf7;transition:.18s}.action-link:hover{border-color:#9fc8b5;background:#eaf6f0}.action-link.danger{color:#a43f3f;border-color:#efd2d2;background:#fff6f6}.action-link.danger:hover{border-color:#dda9a9;background:#fdeaea}
.status-badge{display:inline-flex;align-items:center;gap:6px;min-height:27px;padding:0 10px;font-size:9px;font-weight:900;border-radius:999px}.status-badge:before{width:6px;height:6px;border-radius:50%;background:currentColor;content:""}.status-badge.active{color:#247551;background:#e8f6ef}.status-badge.inactive{color:#7b8580;background:#eef1ef}
.alert{margin-bottom:16px;padding:13px 15px;border-radius:11px;font-size:11px;font-weight:700;box-shadow:0 5px 15px rgba(30,55,44,.04)}.alert-success{color:#236845;border-color:#bfe1ce;background:#ecf8f1}.alert-danger,.alert-error{color:#963b3b;border-color:#efcccc;background:#fff1f1}
.empty-state{padding:44px 20px!important;color:#839089!important;text-align:center!important;background:linear-gradient(180deg,#fff,#fafcfb)}
.metric-grid,.executive-grid{gap:14px}.metric-card,.executive-card,.reports-kpi,.users-kpi-card{border:1px solid #e0e9e4;border-radius:15px;box-shadow:0 8px 25px rgba(28,55,44,.055);transition:.2s}.metric-card:hover,.executive-card:hover,.reports-kpi:hover,.users-kpi-card:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(28,55,44,.08)}
.admin-footer{padding:18px 30px;border-color:#dfe8e3;background:rgba(255,255,255,.45)}
@media(max-width:980px){.page-content{padding:22px 18px 30px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading>.button,.page-heading>.primary-button,.page-heading>a{width:100%}.filter-bar{grid-template-columns:1fr 1fr}.filter-bar>*:first-child{grid-column:1/-1}}
@media(max-width:640px){.page-content{padding:15px 11px 24px}.topbar{padding:9px 12px}.topbar-title small,.user-copy{display:none}.user-menu{border:0;background:transparent}.page-heading{padding:19px;border-radius:16px}.page-heading h1{font-size:24px}.panel{border-radius:13px}.filter-bar{grid-template-columns:1fr;padding:11px}.filter-bar>*:first-child{grid-column:auto}.form-section{padding:19px 15px}.form-grid{grid-template-columns:1fr!important}.form-field-wide,.full-width,.span-2{grid-column:auto!important}.panel-footer{padding:12px;flex-direction:column-reverse}.panel-footer>*{width:100%}.table-responsive.professional-scroll{max-height:58vh}.data-table th,.data-table td{padding:11px 12px}.admin-footer{text-align:center}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Fase Roles y Permisos — diseño profesional compacto */
.permissions-hero{align-items:center;gap:14px;margin-bottom:14px;padding:14px 16px;border:1px solid #dbe5ef;border-radius:16px;background:linear-gradient(135deg,#f8fbff 0%,#f0fdf4 100%)}
.permissions-hero h1{margin:2px 0 3px!important;font-size:clamp(1.45rem,2.2vw,2rem)!important}
.permissions-hero p{font-size:.84rem;line-height:1.35}
.permissions-hero .section-eyebrow{font-size:.68rem;letter-spacing:.1em}
.permissions-hero .users-button{min-height:36px;padding:0 12px;border-radius:10px;font-size:.78rem}
.permissions-user-selector{padding:12px 14px;margin-bottom:10px;border-radius:15px;box-shadow:0 5px 18px rgba(15,23,42,.045)}
.permissions-user-selector .panel-step,.permissions-toolbar .panel-step{width:32px;height:32px;border-radius:9px;font-size:.75rem}
.permissions-user-selector .selector-copy{gap:9px}
.permissions-user-selector h2,.permissions-toolbar h2{font-size:.95rem}
.permissions-user-selector p,.permissions-toolbar p{font-size:.76rem;margin-top:1px}
.permissions-user-selector form{min-width:min(100%,340px)}
.permissions-user-selector label{gap:4px;font-size:.72rem}
.permissions-user-selector select{min-height:37px;padding:0 10px;border-radius:9px;font-size:.8rem}
.permissions-profile-card{padding:11px 14px;margin-bottom:10px;border-radius:15px;box-shadow:0 5px 18px rgba(15,23,42,.045)}
.permissions-profile{gap:10px}
.permissions-avatar{width:42px;height:42px;font-size:.82rem}
.permissions-profile h2{margin:0;font-size:1rem}
.permissions-profile p,.permissions-profile small{font-size:.72rem;margin:0}
.permissions-summary{gap:8px}
.permissions-summary>span{min-width:105px;padding:8px 10px;border-radius:10px;font-size:.85rem}
.permissions-summary small{font-size:.64rem;margin-top:1px}
.permissions-toolbar{margin:10px 0 8px;gap:10px}
.permissions-toolbar>div{gap:9px}
.permissions-quick-actions{gap:6px}
.permissions-quick-actions button{padding:7px 10px;border-radius:8px;font-size:.72rem}
.permissions-groups{gap:9px}
.permission-group-card{border-radius:14px;box-shadow:0 5px 18px rgba(15,23,42,.045)}
.permission-group-card>header{padding:9px 12px}
.permission-group-card>header>div{gap:8px}
.permission-group-icon{width:29px;height:29px;border-radius:8px;font-size:.8rem}
.permission-group-card h3{font-size:.86rem}
.permission-group-card p{font-size:.68rem;margin-top:0}
.permission-grid-head,.permission-row{grid-template-columns:minmax(185px,1.65fr) repeat(4,minmax(58px,.38fr))}
.permission-grid-head{padding:7px 12px;font-size:.64rem;letter-spacing:.04em;position:sticky;top:0;z-index:2}
.permission-row{padding:7px 12px;min-height:43px}
.permission-module strong{font-size:.78rem;line-height:1.15}
.permission-module small{font-size:.64rem;margin-top:1px}
.permission-toggle span{width:34px;height:19px}
.permission-toggle span i{top:2px;left:2px;width:15px;height:15px}
.permission-toggle input:checked+span i{transform:translateX(15px)}
.permission-toggle input:focus-visible+span{outline:3px solid rgba(37,99,235,.2);outline-offset:2px}
.permissions-sticky-actions{bottom:8px;margin-top:10px;padding:9px 12px;border-radius:12px;gap:10px}
.permissions-sticky-actions strong{font-size:.78rem}
.permissions-sticky-actions small{font-size:.67rem;margin-top:1px}
.permissions-sticky-actions .users-button{min-height:36px;padding:0 12px;border-radius:9px;font-size:.75rem}
.permission-group-body{max-height:340px;overflow:auto;scrollbar-width:thin;scrollbar-color:#94a3b8 #eef2f7}
.permission-group-body::-webkit-scrollbar{width:8px;height:8px}.permission-group-body::-webkit-scrollbar-track{background:#eef2f7}.permission-group-body::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:999px;border:2px solid #eef2f7}
.permission-group-tools{margin-left:auto;display:flex;gap:5px}
.permission-group-tools button{min-height:28px;padding:0 8px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#475569;font-size:.65rem;font-weight:800;cursor:pointer}
.permission-group-tools button:hover{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
@media(max-width:720px){.permissions-hero{padding:12px}.permissions-user-selector,.permissions-profile-card{padding:10px}.permissions-summary>span{min-width:0}.permission-group-body{max-height:390px}.permission-row{grid-template-columns:minmax(120px,1fr) repeat(4,39px);padding:8px}.permission-toggle span{width:30px;height:18px}.permission-toggle span i{width:14px;height:14px}.permission-toggle input:checked+span i{transform:translateX(12px)}.permission-group-tools{margin-left:0}.permission-group-card>header>div{flex-wrap:wrap}.permissions-sticky-actions>div:last-child{grid-template-columns:1fr 1fr}.permissions-sticky-actions{padding:9px}}

/* Dashboard técnico gerencial */
.tech-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px;padding:23px 26px;color:#fff;background:linear-gradient(125deg,#102f24 0%,#1f6247 58%,#28785a 100%);border:1px solid rgba(255,255,255,.08);border-radius:18px;box-shadow:0 16px 38px rgba(15,52,38,.18)}.tech-hero h1{margin:3px 0 6px;font-size:28px;letter-spacing:-.03em}.tech-hero p{max-width:680px;margin:0;color:#d8ebe2;font-size:11px}.tech-hero-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.tech-live{display:inline-flex;align-items:center;gap:7px;padding:9px 11px;font-size:9px;font-weight:800;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);border-radius:9px}.tech-live i{width:7px;height:7px;background:#7ee2ae;border-radius:50%;box-shadow:0 0 0 4px rgba(126,226,174,.14)}.tech-hero .button-outline{color:#174c38;background:#fff;border-color:#fff}.tech-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:10px}.tech-kpi{display:flex;align-items:center;gap:10px;min-width:0;padding:13px 14px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 7px 20px rgba(22,42,54,.045)}.tech-kpi-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;font-size:14px;font-weight:900;border-radius:10px}.tech-kpi-icon.green{color:var(--green);background:var(--green-soft)}.tech-kpi-icon.blue{color:#2b7db1;background:#eaf4f9}.tech-kpi-icon.orange{color:#c76d1c;background:#fbefe2}.tech-kpi-icon.purple{color:#7252a2;background:#f0ebf8}.tech-kpi-icon.teal{color:#178878;background:#e5f6f2}.tech-kpi-icon.red{color:#ba4545;background:#faeaea}.tech-kpi div{min-width:0}.tech-kpi small{display:block;color:var(--muted);font-size:7.5px;font-weight:900;text-transform:uppercase;letter-spacing:.055em}.tech-kpi strong{display:block;margin:2px 0;color:var(--navy);font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tech-kpi p{margin:0;color:var(--muted);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tech-control-strip{display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:12px;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:12px}.tech-control-strip>div{padding:10px 15px;border-right:1px solid var(--line)}.tech-control-strip>div:last-child{border-right:0}.tech-control-strip small{display:block;color:var(--muted);font-size:8px;font-weight:800}.tech-control-strip strong{display:inline-block;margin-top:2px;color:var(--navy);font-size:15px}.tech-control-strip p{display:inline;margin-left:6px;color:var(--muted);font-size:8px}.tech-control-strip .warning strong{color:#b8631c}.tech-control-strip .info strong{color:#277aa8}.tech-control-strip .ok strong{color:#23704c}.panel-kicker{display:block;margin-bottom:3px;color:var(--green);font-size:7px;font-weight:900;letter-spacing:.09em}.tech-main-grid{grid-template-columns:minmax(0,1.55fr) minmax(285px,.65fr);gap:12px;margin-bottom:12px}.tech-main-grid .panel,.tech-secondary-grid .panel,.tech-lot-panel{border-radius:14px}.tech-main-grid .panel-header,.tech-secondary-grid .panel-header,.tech-lot-panel .panel-header{padding:14px 17px}.tech-main-grid .panel-header h2,.tech-secondary-grid .panel-header h2,.tech-lot-panel .panel-header h2{font-size:14px}.tech-main-grid .executive-chart{height:205px}.tech-scroll{scrollbar-width:thin;scrollbar-color:#a9bbb3 #eef3f1}.tech-scroll::-webkit-scrollbar{width:8px;height:8px}.tech-scroll::-webkit-scrollbar-track{background:#eef3f1;border-radius:9px}.tech-scroll::-webkit-scrollbar-thumb{background:#a9bbb3;border-radius:9px;border:2px solid #eef3f1}.tech-scroll:focus{outline:2px solid rgba(35,112,76,.18);outline-offset:-2px}.tech-main-grid .executive-alerts{max-height:288px}.tech-lot-panel{margin-bottom:12px;overflow:hidden}.tech-lot-scroll{max-height:390px;overflow:auto}.tech-lot-head,.tech-lot-row{display:grid;grid-template-columns:minmax(135px,1.25fr) minmax(105px,.85fr) minmax(115px,.85fr) minmax(85px,.65fr) minmax(105px,.8fr) minmax(82px,.6fr) minmax(95px,.65fr);align-items:center;gap:10px}.tech-lot-head{position:sticky;top:0;z-index:3;padding:9px 16px;color:#73828a;font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.045em;background:#f4f7f6;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.tech-lot-row{padding:10px 16px;border-bottom:1px solid #edf1f2;transition:.18s}.tech-lot-row:hover{background:#f8fbfa}.tech-lot-row>span{min-width:0}.tech-lot-row b,.tech-lot-row small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tech-lot-row b{color:var(--navy);font-size:9px}.tech-lot-row small{margin-top:3px;color:var(--muted);font-size:7.5px}.tech-lot-id b{color:var(--green);font-size:11px}.tech-state{display:inline-flex;padding:4px 7px;font-size:7px;font-style:normal;font-weight:900;text-transform:uppercase;border-radius:7px}.tech-state.ok{color:#216544;background:#e5f3eb}.tech-state.warning{color:#9b591c;background:#faecdc}.tech-state.danger{color:#a43838;background:#f9e5e5}.tech-state.pending{color:#58727f;background:#eaf0f3}.tech-secondary-grid{grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr);gap:12px;margin-bottom:18px}.tech-secondary-grid .warehouse-overview{max-height:310px;overflow:auto;padding:2px 16px 9px}.tech-secondary-grid .warehouse-row{padding:11px 0}.tech-secondary-grid .executive-recent-panel{margin:0}.dashboard-history-scroll{max-height:310px;overflow:auto}.dashboard-history-scroll thead th{position:sticky;top:0;z-index:2;background:#f5f8f7}.dashboard-history-scroll .data-table td,.dashboard-history-scroll .data-table th{padding-top:9px;padding-bottom:9px}
@media(max-width:1350px){.tech-kpi-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:1050px){.tech-main-grid,.tech-secondary-grid{grid-template-columns:1fr}.tech-lot-scroll{overflow:auto}.tech-lot-head,.tech-lot-row{min-width:900px}.tech-main-grid .executive-alerts,.tech-secondary-grid .warehouse-overview,.dashboard-history-scroll{max-height:330px}}@media(max-width:720px){.tech-hero{align-items:flex-start;flex-direction:column;padding:19px}.tech-hero-actions{justify-content:flex-start;width:100%}.tech-kpi-grid{grid-template-columns:1fr 1fr}.tech-control-strip{grid-template-columns:1fr 1fr}.tech-control-strip>div:nth-child(2){border-right:0}.tech-control-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line)}.tech-main-grid .executive-chart{height:190px}}@media(max-width:460px){.tech-kpi-grid{grid-template-columns:1fr}.tech-control-strip{grid-template-columns:1fr}.tech-control-strip>div{border-right:0;border-bottom:1px solid var(--line)}.tech-control-strip>div:last-child{border-bottom:0}}

/* Fase Reportes: lectura dual sacos / kilogramos */
.reports-kpi strong{line-height:1.15}.reports-kpi p{margin-top:5px;font-weight:750;color:#60736a}.report-unit-bags,.report-unit-kg{white-space:nowrap;font-weight:800}.report-unit-bags{color:#8b5a18}.report-unit-kg{color:#176a52}.report-unit-label{display:inline-flex;margin-left:4px;padding:2px 5px;font-size:7px;font-weight:900;line-height:1;text-transform:uppercase;border-radius:5px;background:rgba(0,0,0,.045)}
.reports-dual-totals{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:#f8fbf9;border-top:1px solid #e1ebe6}.reports-dual-total-title{display:flex;align-items:center;gap:10px;min-width:220px}.reports-dual-total-title>span{display:grid;place-items:center;width:34px;height:34px;color:#fff;font-weight:900;background:#1f7552;border-radius:10px}.reports-dual-total-title strong,.reports-dual-total-title small{display:block}.reports-dual-total-title strong{color:#183c2f;font-size:11px}.reports-dual-total-title small{margin-top:3px;color:#718078;font-size:8px}.reports-dual-total-items{display:flex;justify-content:flex-end;gap:8px;overflow-x:auto;padding-bottom:2px}.reports-dual-total-item{min-width:126px;padding:9px 11px;background:#fff;border:1px solid #dce8e2;border-radius:10px}.reports-dual-total-item small{display:block;color:#65776e;font-size:7px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.reports-dual-total-item strong{display:inline-block;margin-top:4px;color:#183c2f;font-size:14px}.reports-dual-total-item span{margin-left:3px;color:#6a7d73;font-size:8px;font-weight:800}.reports-dual-total-item.bags{border-left:3px solid #d89a3d}.reports-dual-total-item.kg{border-left:3px solid #29906b}
@media(max-width:850px){.reports-dual-totals{align-items:flex-start;flex-direction:column}.reports-dual-total-items{width:100%;justify-content:flex-start}.reports-dual-total-title{min-width:0}}
@media print{.reports-dual-totals{page-break-inside:avoid}.reports-dual-total-items{flex-wrap:wrap;overflow:visible}}

/* Página principal profesional */
.public-body{background:#f7faf8}.landing-nav-pro{position:relative;z-index:10;max-width:1240px;padding:18px 0}.landing-brand>div{display:flex;flex-direction:column}.landing-brand small{margin-top:3px;color:var(--muted);font-size:9px;font-weight:650}.landing-links{display:flex;align-items:center;gap:28px;color:#65756d;font-size:11px;font-weight:750}.landing-links a{position:relative}.landing-links a:after{content:"";position:absolute;left:0;right:100%;bottom:-7px;height:2px;background:var(--green);transition:.2s}.landing-links a:hover{color:var(--green)}.landing-links a:hover:after{right:0}.landing-login{min-height:40px;padding:0 15px}.landing-login span{margin-right:3px}.landing-main-pro{overflow:hidden}.home-hero-pro{display:grid;grid-template-columns:minmax(0,.92fr) minmax(520px,1.08fr);align-items:center;gap:52px;width:min(1240px,calc(100% - 40px));min-height:650px;margin:auto;padding:72px 0 88px}.home-status{display:inline-flex;align-items:center;gap:8px;margin-bottom:19px;padding:7px 10px;color:#1f6d4d;font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;background:#e8f4ee;border:1px solid #d2e7dc;border-radius:999px}.home-status i{width:7px;height:7px;background:#39a773;border-radius:50%;box-shadow:0 0 0 4px rgba(57,167,115,.13)}.home-hero-copy h1{max-width:650px;margin:0;color:#14251e;font-size:clamp(44px,5vw,72px);line-height:1.01;letter-spacing:-.052em}.home-hero-copy>p{max-width:620px;margin:25px 0;color:#6a7b73;font-size:16px;line-height:1.75}.home-main-action{gap:12px;min-height:50px}.home-main-action span{font-size:17px}.home-trust-row{display:flex;flex-wrap:wrap;gap:21px;margin-top:29px;padding-top:21px;border-top:1px solid #dfe8e3}.home-trust-row span{display:flex;align-items:center;gap:8px;color:#677870;font-size:9px;font-weight:750}.home-trust-row b{display:grid;place-items:center;width:25px;height:25px;color:#277656;font-size:8px;background:#e7f3ed;border-radius:7px}.home-dashboard-preview{position:relative;padding:13px;background:#fff;border:1px solid #dce6e1;border-radius:25px;box-shadow:0 30px 70px rgba(22,54,40,.16);transform:perspective(1100px) rotateY(-2deg)}.home-dashboard-preview:before{content:"";position:absolute;z-index:-1;right:-45px;bottom:-45px;width:210px;height:210px;background:#dff1e7;border-radius:50%;filter:blur(1px)}.preview-topbar{display:flex;align-items:center;gap:5px;padding:10px 12px;color:#6e7e76;font-size:8px;background:#f5f8f6;border-radius:13px}.preview-topbar>span{width:6px;height:6px;background:#ced8d3;border-radius:50%}.preview-topbar strong{margin-left:8px;color:#2b3e35;font-size:9px}.preview-topbar em{margin-left:auto;padding:4px 7px;color:#267353;font-style:normal;font-weight:800;background:#e3f2ea;border-radius:99px}.preview-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.preview-kpis article{padding:13px;background:#f8faf9;border:1px solid #e5ece8;border-radius:12px}.preview-kpis small,.preview-kpis span{display:block;color:#819088;font-size:7px}.preview-kpis strong{display:block;margin:5px 0 3px;color:#162a20;font-size:18px}.preview-kpis .ok{color:#24845b}.preview-content{display:grid;grid-template-columns:1.35fr .65fr;gap:9px}.preview-chart,.preview-alerts{min-width:0;padding:13px;border:1px solid #e5ece8;border-radius:13px}.preview-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.preview-section-head small,.preview-section-head strong{display:block}.preview-section-head small{color:#87968e;font-size:6px;text-transform:uppercase}.preview-section-head strong{margin-top:2px;color:#1c3026;font-size:8px}.preview-section-head>span{padding:4px 6px;color:#6e7e76;font-size:6px;background:#f0f4f2;border-radius:6px}.chart-area{position:relative;height:145px;margin-top:10px;overflow:hidden;background:repeating-linear-gradient(to bottom,#f4f7f5 0,#f4f7f5 1px,transparent 1px,transparent 36px);border-radius:8px}.chart-line{position:absolute;left:3%;right:2%;height:3px;border-radius:4px;transform-origin:left center}.chart-line.ross{top:67%;background:#9bb6a8;transform:rotate(-14deg)}.chart-line.real{top:75%;background:#2a8a60;transform:rotate(-17deg)}.chart-dot{position:absolute;width:9px;height:9px;background:#fff;border:3px solid #2a8a60;border-radius:50%;box-shadow:0 2px 5px rgba(0,0,0,.12)}.chart-dot.one{left:22%;top:61%}.chart-dot.two{left:53%;top:43%}.chart-dot.three{right:9%;top:22%}.chart-legend{display:flex;gap:13px;margin-top:8px;color:#74847c;font-size:6px}.chart-legend span{display:flex;align-items:center;gap:5px}.chart-legend i{width:13px;height:3px;border-radius:5px}.real-key{background:#2a8a60}.ross-key{background:#9bb6a8}.preview-alerts article{display:grid;grid-template-columns:8px 1fr auto;align-items:center;gap:7px;padding:10px 0;border-bottom:1px solid #edf1ef}.preview-alerts article:last-child{border-bottom:0}.preview-alerts article>i{width:7px;height:7px;border-radius:50%}.preview-alerts .warning{background:#e49b3c}.preview-alerts .success{background:#3ca878}.preview-alerts .info{background:#438fba}.preview-alerts b,.preview-alerts small{display:block}.preview-alerts b{color:#2d4036;font-size:7px}.preview-alerts small{margin-top:2px;color:#84928b;font-size:6px}.preview-alerts em{color:#6d7c74;font-size:6px;font-style:normal}.home-metrics-strip{display:grid;grid-template-columns:repeat(4,1fr);width:min(1240px,calc(100% - 40px));margin:0 auto 92px;overflow:hidden;background:#153629;border-radius:16px;box-shadow:0 16px 36px rgba(18,52,39,.15)}.home-metrics-strip article{display:flex;align-items:center;gap:12px;padding:20px 23px;color:#fff;border-right:1px solid rgba(255,255,255,.1)}.home-metrics-strip article:last-child{border-right:0}.home-metrics-strip>article>span{display:grid;place-items:center;flex:0 0 31px;height:31px;color:#b8dfcc;font-size:8px;font-weight:850;background:rgba(255,255,255,.08);border-radius:8px}.home-metrics-strip strong,.home-metrics-strip small{display:block}.home-metrics-strip strong{font-size:11px}.home-metrics-strip small{margin-top:3px;color:#a9c1b5;font-size:8px}.home-platform{padding:95px 20px;background:#fff}.home-section-heading{max-width:710px;margin:0 auto 42px;text-align:center}.home-section-heading h2{margin:0;color:#172a21;font-size:clamp(31px,4vw,47px);line-height:1.08;letter-spacing:-.035em}.home-section-heading p{max-width:630px;margin:17px auto 0;color:#718078;font-size:13px;line-height:1.7}.home-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;max-width:1180px;margin:auto}.home-feature-card{position:relative;min-height:245px;padding:25px;background:#f8faf9;border:1px solid #e0e8e4;border-radius:17px;transition:.22s}.home-feature-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(24,54,41,.09)}.home-feature-card.featured{color:#fff;background:linear-gradient(145deg,#174934,#246e50);border-color:#246e50}.feature-icon{display:grid;place-items:center;width:39px;height:39px;margin-bottom:35px;color:#227450;font-size:17px;font-weight:900;background:#e4f2ea;border-radius:11px}.featured .feature-icon{color:#fff;background:rgba(255,255,255,.13)}.home-feature-card small{display:block;color:#33805f;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.09em}.featured small{color:#bce1ce}.home-feature-card h3{margin:7px 0 9px;color:#192e24;font-size:18px}.featured h3{color:#fff}.home-feature-card p{margin:0;color:#74847b;font-size:11px;line-height:1.65}.featured p{color:#c8ded3}.home-feature-card em{position:absolute;left:25px;bottom:21px;color:#287855;font-size:9px;font-style:normal;font-weight:850}.featured em{color:#d8eee3}.home-control{display:grid;grid-template-columns:.85fr 1.15fr;align-items:center;gap:70px;width:min(1160px,calc(100% - 40px));margin:auto;padding:110px 0}.home-control-copy h2{max-width:510px;margin:0;color:#172a21;font-size:clamp(32px,4vw,49px);line-height:1.06;letter-spacing:-.038em}.home-control-copy>p{max-width:560px;margin:19px 0 28px;color:#718078;font-size:13px;line-height:1.75}.home-control-copy ul{display:grid;gap:13px;margin:0;padding:0;list-style:none}.home-control-copy li{display:flex;align-items:flex-start;gap:11px}.home-control-copy li>span{display:grid;place-items:center;flex:0 0 27px;height:27px;color:#fff;font-size:10px;font-weight:900;background:#2a825d;border-radius:8px}.home-control-copy strong,.home-control-copy small{display:block}.home-control-copy strong{color:#25382e;font-size:11px}.home-control-copy small{margin-top:4px;color:#7a8981;font-size:9px}.home-control-panel{padding:18px;background:#fff;border:1px solid #dce7e1;border-radius:20px;box-shadow:0 24px 55px rgba(20,51,37,.12)}.home-control-panel header{display:flex;align-items:center;justify-content:space-between;padding:5px 3px 15px}.home-control-panel header small,.home-control-panel header strong{display:block}.home-control-panel header small{color:#839189;font-size:7px;text-transform:uppercase}.home-control-panel header strong{margin-top:3px;color:#1d3227;font-size:13px}.home-control-panel header>span{padding:6px 9px;color:#247450;font-size:7px;font-weight:850;text-transform:uppercase;background:#e4f2ea;border-radius:8px}.control-progress{padding:15px;background:#f5f8f6;border-radius:13px}.control-progress>div:first-child{display:flex;align-items:center;justify-content:space-between}.control-progress small,.control-progress strong{font-size:8px}.control-progress strong{color:#1e3429}.progress-track{height:7px;margin:9px 0 6px;overflow:hidden;background:#dfe8e3;border-radius:999px}.progress-track i{display:block;width:67%;height:100%;background:linear-gradient(90deg,#2b805d,#4faf80);border-radius:inherit}.control-progress em{display:block;color:#7b8982;font-size:7px;font-style:normal;text-align:right}.control-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:9px}.control-grid article{padding:15px;border:1px solid #e3eae6;border-radius:12px}.control-grid small,.control-grid strong,.control-grid em{display:block}.control-grid small{color:#839189;font-size:7px;text-transform:uppercase}.control-grid strong{margin:5px 0;color:#1b3025;font-size:18px}.control-grid em{color:#718078;font-size:7px;font-style:normal}.home-benefits{padding:90px 20px;background:#f0f6f2}.home-section-heading.compact{margin-bottom:30px}.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;max-width:1080px;margin:auto}.benefit-grid article{padding:23px;background:#fff;border:1px solid #dfe8e3;border-radius:14px}.benefit-grid strong{color:#1e3228;font-size:13px}.benefit-grid p{margin:8px 0 0;color:#73827a;font-size:10px;line-height:1.6}.home-cta{display:flex;align-items:center;justify-content:space-between;gap:25px;width:min(1180px,calc(100% - 40px));margin:85px auto;padding:40px 43px;color:#fff;background:linear-gradient(125deg,#112f23,#246b4d);border-radius:22px;box-shadow:0 22px 50px rgba(17,48,35,.18)}.home-cta .eyebrow{color:#bfe3d0}.home-cta h2{max-width:700px;margin:0;font-size:clamp(24px,3vw,36px);line-height:1.15;letter-spacing:-.03em}.home-cta .button-primary{flex:0 0 auto;color:#174a35;background:#fff;box-shadow:none}.landing-footer-pro{align-items:center;padding-top:26px;padding-bottom:26px}.landing-footer-pro .landing-brand{color:#fff}.landing-footer-pro .landing-brand small{color:#899d93}.landing-footer-pro>span{color:#9fb1a8;font-size:9px}.landing-footer-pro>small{color:#758a80;font-size:8px}
@media(max-width:1050px){.landing-links{display:none}.home-hero-pro{grid-template-columns:1fr;padding-top:48px}.home-hero-copy{text-align:center}.home-hero-copy h1,.home-hero-copy>p{margin-left:auto;margin-right:auto}.home-hero-copy .hero-actions,.home-trust-row{justify-content:center}.home-dashboard-preview{max-width:780px;margin:auto;transform:none}.home-feature-grid{grid-template-columns:repeat(2,1fr)}.home-control{grid-template-columns:1fr;gap:40px}.home-control-copy{text-align:center}.home-control-copy h2,.home-control-copy>p{margin-left:auto;margin-right:auto}.home-control-copy ul{max-width:560px;margin:auto;text-align:left}}
@media(max-width:760px){.landing-nav-pro{width:min(100% - 24px,1240px)}.landing-brand strong{font-size:11px}.landing-brand small{display:none}.landing-login{min-height:38px;padding:0 12px;font-size:10px}.home-hero-pro{width:min(100% - 24px,1240px);min-height:auto;padding:42px 0 60px}.home-hero-copy h1{font-size:clamp(38px,12vw,55px)}.home-hero-copy>p{font-size:14px}.preview-content{grid-template-columns:1fr}.preview-alerts{display:none}.home-metrics-strip{grid-template-columns:1fr 1fr;width:min(100% - 24px,1240px);margin-bottom:65px}.home-metrics-strip article:nth-child(2){border-right:0}.home-metrics-strip article:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.1)}.home-platform{padding:70px 12px}.home-feature-grid{grid-template-columns:1fr}.home-feature-card{min-height:220px}.home-control{width:min(100% - 24px,1160px);padding:75px 0}.benefit-grid{grid-template-columns:1fr}.home-cta{align-items:flex-start;flex-direction:column;width:min(100% - 24px,1180px);margin:55px auto;padding:29px}.landing-footer-pro{align-items:flex-start;flex-direction:column}.landing-footer-pro>span{display:none}}
@media(max-width:480px){.home-trust-row{display:grid;grid-template-columns:1fr;text-align:left}.home-trust-row span{justify-content:flex-start}.hero-actions{display:grid}.hero-actions .button{width:100%}.home-dashboard-preview{padding:8px;border-radius:18px}.preview-kpis{grid-template-columns:1fr 1fr}.preview-kpis article:last-child{display:none}.home-metrics-strip{grid-template-columns:1fr}.home-metrics-strip article{border-right:0;border-bottom:1px solid rgba(255,255,255,.1)}.home-metrics-strip article:last-child{border-bottom:0}.control-grid{grid-template-columns:1fr}.home-section-heading h2{font-size:31px}}

/* Fase: portada principal compacta y profesional */
.public-body{min-height:100vh;background:linear-gradient(145deg,#f4f8f5 0%,#edf4ef 55%,#f8faf9 100%)}
.compact-home-header{display:flex;align-items:center;justify-content:space-between;gap:24px;width:min(1240px,calc(100% - 40px));height:76px;margin:auto;border-bottom:1px solid rgba(32,74,55,.1)}
.compact-brand{display:flex;align-items:center;gap:12px;min-width:0;color:#15372a;text-decoration:none}
.compact-brand-mark{display:grid;place-items:center;flex:0 0 42px;height:42px;color:#fff;font-size:13px;font-weight:900;letter-spacing:.05em;background:linear-gradient(145deg,#164a35,#2e805d);border-radius:13px;box-shadow:0 8px 20px rgba(27,92,65,.2)}
.compact-brand-copy{display:flex;min-width:0;flex-direction:column}.compact-brand-copy strong{font-size:13px;line-height:1.2}.compact-brand-copy small{margin-top:4px;color:#78877f;font-size:9px;font-weight:650}
.compact-header-actions{display:flex;align-items:center;gap:15px}.compact-clock{display:flex;align-items:flex-end;flex-direction:column;color:#74847b}.compact-clock span{font-size:8px;text-transform:capitalize}.compact-clock strong{margin-top:2px;color:#1d392c;font-size:14px}.compact-login-button{gap:10px;min-height:42px;padding:0 17px;border-radius:12px}
.compact-home-main{width:min(1240px,calc(100% - 40px));margin:auto;padding:24px 0 28px}.compact-home-shell{display:grid;gap:14px}.compact-hero{display:grid;grid-template-columns:1.08fr .92fr;align-items:stretch;min-height:282px;overflow:hidden;background:#fff;border:1px solid #dae5df;border-radius:23px;box-shadow:0 18px 48px rgba(24,58,43,.09)}
.compact-hero-content{display:flex;justify-content:center;align-items:flex-start;flex-direction:column;padding:39px 44px}.compact-live-badge{display:inline-flex;align-items:center;gap:8px;margin-bottom:17px;padding:7px 10px;color:#24704f;font-size:8px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;background:#e9f4ee;border-radius:999px}.compact-live-badge i{width:7px;height:7px;background:#3da676;border-radius:50%;box-shadow:0 0 0 4px rgba(61,166,118,.13)}
.compact-hero h1{max-width:620px;margin:0;color:#132c21;font-size:clamp(35px,4vw,55px);line-height:1.01;letter-spacing:-.048em}.compact-hero-content>p{max-width:540px;margin:16px 0 20px;color:#6d7d74;font-size:13px;line-height:1.65}.compact-hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.compact-primary-action{gap:11px;min-height:46px;padding:0 18px}.compact-security-note{color:#86928c;font-size:8px;font-weight:700}
.compact-hero-visual{display:flex;flex-direction:column;margin:13px;padding:19px;color:#fff;background:linear-gradient(145deg,#123d2d,#246c4f);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}.compact-visual-top{display:flex;align-items:center;justify-content:space-between}.compact-visual-top small,.compact-visual-top strong{display:block}.compact-visual-top small{color:#a9cbbb;font-size:7px;text-transform:uppercase}.compact-visual-top strong{margin-top:3px;font-size:12px}.compact-visual-top>span{display:flex;align-items:center;gap:6px;padding:5px 8px;color:#c9e7d8;font-size:7px;font-weight:800;background:rgba(255,255,255,.08);border-radius:999px}.compact-visual-top>span i{width:6px;height:6px;background:#61cf98;border-radius:50%}
.compact-production-graphic{display:grid;grid-template-columns:126px 1fr;align-items:center;gap:26px;flex:1;padding:12px 10px}.compact-ring{display:grid;place-items:center;align-content:center;width:116px;height:116px;border:11px solid rgba(255,255,255,.11);border-top-color:#78d5a6;border-right-color:#78d5a6;border-radius:50%;box-shadow:0 13px 28px rgba(0,0,0,.12)}.compact-ring span{font-size:25px;font-weight:900}.compact-ring small{margin-top:2px;color:#a9cbbb;font-size:7px;text-transform:uppercase}.compact-visual-bars{display:grid;gap:14px}.compact-visual-bars>span{display:grid;grid-template-columns:1fr 64px;align-items:center;gap:10px}.compact-visual-bars>span:before{content:"";grid-column:1;height:7px;background:rgba(255,255,255,.1);border-radius:999px}.compact-visual-bars i{grid-column:1;grid-row:1;width:var(--bar);height:7px;background:linear-gradient(90deg,#5fc590,#a3dfbd);border-radius:999px}.compact-visual-bars small{grid-column:2;grid-row:1;color:#c5ddcf;font-size:7px}.compact-visual-message{padding:10px 12px;color:#c9dfd3;font-size:8px;font-weight:750;text-align:center;background:rgba(255,255,255,.06);border-radius:10px}
.compact-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.compact-kpi-card{display:flex;align-items:center;gap:12px;min-width:0;padding:14px 15px;background:#fff;border:1px solid #dce6e1;border-radius:15px;box-shadow:0 8px 24px rgba(22,55,40,.05)}.compact-kpi-icon{display:grid;place-items:center;flex:0 0 38px;height:38px;color:#206b4d;font-size:15px;font-weight:900;background:#e9f3ee;border-radius:11px}.compact-kpi-card div{min-width:0}.compact-kpi-card small,.compact-kpi-card strong,.compact-kpi-card em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-kpi-card small{color:#7f8d85;font-size:7px;text-transform:uppercase}.compact-kpi-card strong{margin:3px 0;color:#1a3528;font-size:12px}.compact-kpi-card em{color:#849089;font-size:7px;font-style:normal}
.compact-quick-area{padding:16px 18px 18px;background:#fff;border:1px solid #dce6e1;border-radius:18px;box-shadow:0 8px 25px rgba(22,55,40,.04)}.compact-section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:12px}.compact-section-title small,.compact-section-title strong{display:block}.compact-section-title small{color:#2a7858;font-size:7px;font-weight:850;text-transform:uppercase}.compact-section-title strong{margin-top:3px;color:#183327;font-size:13px}.compact-section-title>span{color:#87938d;font-size:8px}.compact-quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.compact-quick-grid a{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;min-height:88px;padding:11px 7px;color:#223c30;text-align:center;background:#f6f9f7;border:1px solid #e3ebe7;border-radius:13px;transition:.18s}.compact-quick-grid a:hover{color:#185f43;background:#edf6f1;border-color:#cfe3d8;transform:translateY(-2px);box-shadow:0 9px 20px rgba(28,82,58,.08)}.compact-quick-grid a>span{display:grid;place-items:center;width:31px;height:31px;margin-bottom:7px;font-size:14px;background:#e4f1ea;border-radius:9px}.compact-quick-grid strong,.compact-quick-grid small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-quick-grid strong{font-size:9px}.compact-quick-grid small{margin-top:3px;color:#85918b;font-size:6px}
.compact-system-status{display:flex;align-items:center;gap:20px;padding:0 5px;color:#607168}.compact-system-status>div{display:flex;align-items:center;gap:7px}.compact-system-status strong{font-size:7px}.status-ok{display:grid;place-items:center;width:18px;height:18px;color:#277953;font-size:8px;font-weight:900;background:#e1f1e8;border-radius:50%}.compact-system-status>small{margin-left:auto;color:#89958f;font-size:7px}
@media(max-width:980px){.compact-hero{grid-template-columns:1fr}.compact-hero-visual{min-height:240px}.compact-kpi-grid{grid-template-columns:repeat(2,1fr)}.compact-quick-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:640px){.compact-home-header,.compact-home-main{width:min(100% - 24px,1240px)}.compact-home-header{height:68px}.compact-brand-copy small,.compact-clock span,.compact-security-note,.compact-section-title>span{display:none}.compact-brand-copy strong{max-width:160px;font-size:10px}.compact-clock strong{font-size:11px}.compact-login-button{min-height:38px;padding:0 12px;font-size:9px}.compact-home-main{padding-top:14px}.compact-hero-content{padding:29px 22px}.compact-hero h1{font-size:38px}.compact-hero-visual{margin:0 10px 10px;min-height:220px}.compact-production-graphic{grid-template-columns:90px 1fr;gap:15px}.compact-ring{width:84px;height:84px;border-width:8px}.compact-ring span{font-size:19px}.compact-kpi-grid{grid-template-columns:1fr 1fr}.compact-kpi-card{padding:12px 10px}.compact-kpi-icon{display:none}.compact-quick-grid{grid-template-columns:repeat(2,1fr)}.compact-system-status{align-items:flex-start;flex-wrap:wrap;gap:9px 14px}.compact-system-status>small{width:100%;margin:3px 0 0}.compact-system-status>div:nth-child(3){display:none}}

/* ===== PORTADA INSTITUCIONAL DON PANCHITO ===== */
.public-body{background:#f7faf8}.institutional-nav{position:absolute;z-index:20;top:0;left:50%;display:flex;align-items:center;justify-content:space-between;gap:28px;width:min(1240px,calc(100% - 40px));height:88px;transform:translateX(-50%);border-bottom:1px solid rgba(255,255,255,.22)}.institutional-brand{display:flex;align-items:center;gap:12px;color:#fff}.institutional-brand-mark{display:grid;place-items:center;width:42px;height:42px;color:#174633;font-size:13px;font-weight:950;background:#fff;border-radius:13px;box-shadow:0 8px 24px rgba(0,0,0,.12)}.institutional-brand>span:last-child{display:flex;flex-direction:column}.institutional-brand strong{font-size:12px;letter-spacing:-.01em}.institutional-brand small{margin-top:3px;color:rgba(255,255,255,.68);font-size:8px}.institutional-links{display:flex;gap:27px}.institutional-links a{color:rgba(255,255,255,.78);font-size:9px;font-weight:750;transition:.2s}.institutional-links a:hover{color:#fff}.institutional-login{min-height:42px;color:#164431!important;background:#fff!important;box-shadow:none!important}.institutional-home{overflow:hidden}.institutional-hero{position:relative;display:flex;align-items:center;min-height:720px;padding:130px max(20px,calc((100vw - 1240px)/2)) 90px;color:#fff;background:url('../img/poultry-hero.jpeg') center 44%/cover no-repeat}.institutional-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(9,35,25,.92) 0%,rgba(12,46,32,.77) 43%,rgba(11,40,29,.24) 73%,rgba(7,28,21,.38) 100%)}.institutional-hero:after{content:"";position:absolute;inset:auto 0 0;height:170px;background:linear-gradient(transparent,rgba(6,27,19,.36))}.institutional-hero-content{position:relative;z-index:2;max-width:680px}.institutional-eyebrow,.institutional-section-label{display:inline-flex;align-items:center;gap:8px;color:#b9e3cf;font-size:8px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.institutional-eyebrow:before,.institutional-section-label:before{content:"";width:25px;height:2px;background:currentColor}.institutional-hero h1{margin:24px 0 19px;font-size:clamp(48px,6.5vw,84px);font-weight:500;line-height:.98;letter-spacing:-.055em}.institutional-hero h1 strong{font-weight:900}.institutional-hero-content>p{max-width:610px;margin:0;color:rgba(255,255,255,.82);font-size:16px;line-height:1.7}.institutional-hero-actions{display:flex;align-items:center;gap:24px;margin-top:31px}.institutional-hero-primary{min-height:52px;padding:0 22px;color:#174632!important;background:#fff!important;box-shadow:0 12px 30px rgba(0,0,0,.18)!important}.institutional-hero-link{color:#fff;font-size:9px;font-weight:800;border-bottom:1px solid rgba(255,255,255,.48);padding-bottom:4px}.institutional-hero-stamp{position:absolute;z-index:3;right:max(20px,calc((100vw - 1240px)/2));bottom:47px;width:280px;padding:21px 24px;background:rgba(12,49,34,.68);border:1px solid rgba(255,255,255,.2);border-radius:16px;backdrop-filter:blur(13px)}.institutional-hero-stamp small,.institutional-hero-stamp strong,.institutional-hero-stamp span{display:block}.institutional-hero-stamp small{color:#b7d5c6;font-size:8px;text-transform:uppercase;letter-spacing:.08em}.institutional-hero-stamp strong{margin:5px 0 11px;font-size:18px}.institutional-hero-stamp span{padding-top:11px;color:#c4d9cf;font-size:7px;border-top:1px solid rgba(255,255,255,.16)}.institutional-intro{display:grid;grid-template-columns:.92fr 1.08fr;align-items:center;gap:70px;width:min(1160px,calc(100% - 40px));margin:auto;padding:105px 0}.institutional-intro-image{position:relative}.institutional-intro-image img{display:block;width:100%;height:430px;object-fit:cover;border-radius:22px;box-shadow:0 24px 55px rgba(19,52,38,.16)}.institutional-intro-image>div{position:absolute;right:-24px;bottom:25px;width:245px;padding:20px;color:#fff;background:#1d6448;border-radius:15px;box-shadow:0 15px 34px rgba(20,66,47,.25)}.institutional-intro-image strong,.institutional-intro-image span{display:block}.institutional-intro-image strong{font-size:12px}.institutional-intro-image span{margin-top:6px;color:#cce5d8;font-size:8px;line-height:1.55}.institutional-section-label{color:#2e805d}.institutional-intro-copy h2,.institutional-heading h2,.institutional-cta h2{margin:14px 0 18px;color:#162b21;font-size:clamp(31px,4vw,49px);line-height:1.08;letter-spacing:-.04em}.institutional-intro-copy>p{margin:0;color:#6f7f77;font-size:13px;line-height:1.8}.institutional-pillars{display:grid;gap:9px;margin-top:28px}.institutional-pillars article{display:flex;align-items:flex-start;gap:13px;padding:13px 0;border-top:1px solid #e1e9e5}.institutional-pillars article>span{display:grid;place-items:center;flex:0 0 31px;height:31px;color:#2e805d;font-size:8px;font-weight:900;background:#e7f3ed;border-radius:8px}.institutional-pillars strong,.institutional-pillars small{display:block}.institutional-pillars strong{color:#23372d;font-size:11px}.institutional-pillars small{margin-top:4px;color:#78877f;font-size:9px}.institutional-identity{display:grid;grid-template-columns:1fr 1fr;gap:18px;width:min(1160px,calc(100% - 40px));margin:0 auto 105px}.institutional-identity-card{position:relative;min-height:310px;padding:38px;overflow:hidden;border-radius:22px}.institutional-identity-card:after{content:"";position:absolute;right:-45px;bottom:-80px;width:230px;height:230px;border:1px solid rgba(255,255,255,.13);border-radius:50%}.institutional-identity-card.mission{color:#fff;background:linear-gradient(140deg,#143d2d,#1e6849)}.institutional-identity-card.vision{color:#183226;background:#e8f2ed}.institutional-card-icon{display:grid;place-items:center;width:43px;height:43px;margin-bottom:44px;font-size:18px;background:rgba(255,255,255,.13);border-radius:12px}.vision .institutional-card-icon{color:#277657;background:#d7e9df}.institutional-identity-card small{font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;opacity:.72}.institutional-identity-card h3{max-width:480px;margin:9px 0 13px;font-size:25px;line-height:1.15;letter-spacing:-.025em}.institutional-identity-card p{max-width:500px;margin:0;font-size:10px;line-height:1.72;opacity:.75}.institutional-values{padding:94px 20px;background:#fff}.institutional-heading{max-width:730px;margin:0 auto 37px;text-align:center}.institutional-heading .institutional-section-label:before{display:none}.institutional-values-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:1160px;margin:auto}.institutional-values-grid article{min-height:185px;padding:25px;background:#f7faf8;border:1px solid #e0e9e4;border-radius:16px;transition:.22s}.institutional-values-grid article:hover{transform:translateY(-4px);box-shadow:0 17px 35px rgba(19,54,39,.09)}.institutional-values-grid article>span{display:grid;place-items:center;width:37px;height:37px;margin-bottom:27px;color:#277657;font-size:13px;font-weight:900;background:#e2f0e9;border-radius:10px}.institutional-values-grid strong,.institutional-values-grid small{display:block}.institutional-values-grid strong{color:#21372c;font-size:13px}.institutional-values-grid small{margin-top:7px;color:#79877f;font-size:9px;line-height:1.55}.institutional-processes{padding:100px 20px;color:#fff;background:#102e22}.institutional-heading.light h2{color:#fff}.institutional-heading.light p{margin:-3px auto 0;color:#9db6aa;font-size:11px;line-height:1.65}.institutional-heading.light .institutional-section-label{color:#8fd0b0}.institutional-process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:1160px;margin:auto}.institutional-process-grid article{display:flex;align-items:center;gap:14px;padding:21px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.1);border-radius:14px}.institutional-process-grid article>span{display:grid;place-items:center;flex:0 0 38px;height:38px;font-size:18px;background:rgba(255,255,255,.08);border-radius:10px}.institutional-process-grid strong,.institutional-process-grid small{display:block}.institutional-process-grid strong{font-size:11px}.institutional-process-grid small{margin-top:4px;color:#9eb7ab;font-size:8px}.institutional-cta{display:flex;align-items:center;justify-content:space-between;gap:30px;width:min(1160px,calc(100% - 40px));margin:88px auto;padding:38px 42px;background:#e6f1eb;border-radius:21px}.institutional-cta h2{max-width:690px;margin-bottom:0;font-size:34px}.institutional-cta-button{flex:0 0 auto;min-height:49px;color:#fff!important;background:#1d6748!important}.institutional-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:30px max(20px,calc((100vw - 1160px)/2));color:#86978f;background:#0c241a}.institutional-footer .institutional-brand{color:#fff}.institutional-footer .institutional-brand-mark{width:37px;height:37px;font-size:11px}.institutional-footer>small{font-size:8px}.institutional-footer>span{font-size:8px}.footer-brand small{color:#80968b}
@media(max-width:980px){.institutional-links{display:none}.institutional-intro{grid-template-columns:1fr;gap:45px}.institutional-intro-image{max-width:760px;margin:auto}.institutional-intro-image>div{right:20px}.institutional-process-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.institutional-nav{width:min(100% - 24px,1240px);height:72px}.institutional-brand small{display:none}.institutional-brand strong{font-size:10px}.institutional-brand-mark{width:36px;height:36px}.institutional-login{min-height:38px;padding:0 12px;font-size:8px}.institutional-login span{display:none}.institutional-hero{min-height:670px;padding:110px 18px 130px;background-position:61% center}.institutional-hero-overlay{background:linear-gradient(90deg,rgba(7,29,21,.94),rgba(9,37,26,.69))}.institutional-hero h1{font-size:51px}.institutional-hero-content>p{font-size:13px}.institutional-hero-actions{align-items:flex-start;flex-direction:column;gap:17px}.institutional-hero-stamp{right:18px;left:18px;bottom:24px;width:auto}.institutional-intro{width:min(100% - 24px,1160px);padding:75px 0}.institutional-intro-image img{height:300px}.institutional-intro-image>div{right:12px;bottom:12px;width:210px}.institutional-identity{grid-template-columns:1fr;width:min(100% - 24px,1160px);margin-bottom:75px}.institutional-identity-card{min-height:auto;padding:28px}.institutional-card-icon{margin-bottom:30px}.institutional-values{padding:70px 12px}.institutional-values-grid{grid-template-columns:1fr 1fr}.institutional-processes{padding:75px 12px}.institutional-cta{align-items:flex-start;flex-direction:column;width:min(100% - 24px,1160px);margin:55px auto;padding:28px}.institutional-cta h2{font-size:28px}.institutional-footer{align-items:flex-start;flex-direction:column}.institutional-footer>small{display:none}}
@media(max-width:460px){.institutional-brand strong{max-width:150px}.institutional-hero h1{font-size:43px}.institutional-values-grid,.institutional-process-grid{grid-template-columns:1fr}.institutional-intro-image>div{position:relative;right:auto;bottom:auto;width:auto;margin:-35px 12px 0}.institutional-identity-card h3{font-size:22px}}


/* Lotes 4.8.4: recepción BB y campo de población de alta visibilidad */
.lot-calculated-box{display:flex;justify-content:center;flex-direction:column;min-height:86px;padding:14px 16px;border:1px solid #dce9e2;border-radius:14px;background:#f5fbf8}.lot-calculated-box span{color:#66776f;font-size:.72rem;font-weight:850}.lot-calculated-box strong{margin:4px 0;color:#1c6b4c;font-size:1.35rem}.lot-calculated-box small{font-size:.66rem}.lot-step.birds{color:#9b5d15;background:#fff1dc}.lot-birds-card{border-color:#d8e8df}.lot-birds-field{align-items:center;text-align:center}.lot-birds-field>span{font-size:.82rem}.lot-birds-input-wrap{position:relative;display:grid;place-items:center;min-height:132px;border:2px solid #5ba77f;border-radius:19px;background:linear-gradient(180deg,#fbfffd,#eef9f3);box-shadow:inset 0 0 0 5px rgba(91,167,127,.06),0 12px 28px rgba(29,107,77,.09)}.lot-birds-input-wrap input[type=text]{width:100%;height:auto;min-height:78px;padding:12px 20px;border:0!important;background:transparent!important;box-shadow:none!important;color:#174f39;font-size:clamp(2rem,5vw,3.25rem);font-weight:950;line-height:1;text-align:center;letter-spacing:.02em}.lot-birds-input-wrap input::placeholder{color:#abc6b8}.lot-birds-input-wrap small{position:absolute;bottom:12px;color:#4e7663;font-size:.72rem;font-weight:900;letter-spacing:.18em}.lot-money-input{position:relative}.lot-money-input>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#2b7657;font-weight:900}.lot-money-input input{padding-left:31px}.lot-calculated-box.population strong{font-size:1.5rem}.lot-preview>div strong{max-width:58%;text-align:right;white-space:normal}.lot-preview h3{font-size:1.05rem}@media(max-width:760px){.lot-birds-input-wrap{min-height:112px}.lot-birds-input-wrap input[type=text]{font-size:2.35rem}.lot-calculated-box{min-height:78px}}

/* LOTES 4.8.5 · TARJETAS DE INDICADORES DEL FORMULARIO */
.lot-metric-card{position:relative;display:grid;grid-template-columns:54px minmax(0,1fr);align-items:center;gap:14px;min-height:126px;padding:17px 18px;overflow:hidden;border:1px solid #dbe9e1;border-radius:18px;background:linear-gradient(145deg,#ffffff,#f4fbf7);box-shadow:0 10px 26px rgba(27,72,52,.07)}
.lot-metric-card:before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:#2e8b62}
.lot-metric-card .lot-metric-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:#e6f6ee;font-size:1.45rem;box-shadow:inset 0 0 0 1px rgba(46,139,98,.10)}
.lot-metric-content{min-width:0}.lot-metric-label{display:block;color:#65776e;font-size:.7rem;font-weight:900;letter-spacing:.055em;text-transform:uppercase}
.lot-metric-content>strong{display:block;margin:4px 0 11px;color:#17583f;font-size:clamp(1.45rem,2.4vw,2rem);font-weight:950;line-height:1.05}
.lot-metric-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.lot-metric-details.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.lot-metric-details span{display:flex;justify-content:space-between;gap:7px;padding:7px 9px;border:1px solid #e5ede9;border-radius:10px;background:rgba(255,255,255,.82);color:#7a8982;font-size:.64rem;white-space:nowrap}
.lot-metric-details span b{color:#334a40;font-size:.66rem;font-weight:900}
.lot-metric-card.age .lot-metric-icon{background:#eaf1ff}.lot-metric-card.age:before{background:#3f78b8}.lot-metric-card.age .lot-metric-content>strong{color:#285f99}
.lot-metric-card.warning{border-color:#efd9ad;background:linear-gradient(145deg,#fffdf8,#fff7e7)}.lot-metric-card.warning:before{background:#d89a28}.lot-metric-card.warning .lot-metric-icon{background:#fff0cd}.lot-metric-card.warning .lot-metric-content>strong{color:#9a6812}
.lot-metric-card.critical{border-color:#f0c3be;background:linear-gradient(145deg,#fffafa,#fff0ee)}.lot-metric-card.critical:before{background:#d8574d}.lot-metric-card.critical .lot-metric-icon{background:#ffe2df}.lot-metric-card.critical .lot-metric-content>strong{color:#a43e36}
@media(max-width:760px){.lot-metric-card{grid-template-columns:46px minmax(0,1fr);padding:14px;min-height:116px}.lot-metric-card .lot-metric-icon{width:44px;height:44px;border-radius:13px;font-size:1.2rem}.lot-metric-details.three{grid-template-columns:1fr}.lot-metric-details span{font-size:.66rem}.lot-metric-content>strong{font-size:1.55rem}}

/* LOTES 4.8.6 - resumen de validación visible */
.lot-validation-summary{align-items:flex-start!important}
.lot-validation-summary ul{margin:8px 0 0;padding-left:18px;display:grid;gap:4px}
.lot-validation-summary li{font-size:12px;line-height:1.35;color:inherit}


/* Lotes 4.8.7 - control de hora accesible */
.lot-time-field input[type="time"]{min-height:48px;font-size:1rem;font-weight:700;letter-spacing:.04em;cursor:text}
.lot-time-field input[type="time"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.8}
.lot-time-field .lot-help{display:block;margin-top:.4rem;line-height:1.35}

/* Lotes 4.9.1 · indicadores de recepción refinados */
.lot-metric-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:2px}
.lot-metric-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:4px 9px;border-radius:999px;background:#edf3f0;color:#566a61;font-size:.62rem;font-weight:900;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}
.lot-metric-badge.success{background:#e6f6ee;color:#23724f}.lot-metric-badge.warning{background:#fff1d2;color:#93620f}.lot-metric-badge.danger{background:#ffe5e1;color:#a84038}
.lot-metric-details.timeline{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);align-items:center;gap:8px}
.lot-metric-details.timeline>span{display:grid;gap:3px;padding:9px 11px;white-space:normal}.lot-metric-details.timeline>span small{color:#84928b;font-size:.58rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.lot-metric-details.timeline>span b{font-size:.78rem}.lot-metric-details.timeline>i{text-align:center;color:#8aa69a;font-style:normal;font-weight:950}
.lot-population-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:2px}.lot-population-breakdown>div{display:grid;gap:4px;padding:10px 11px;border:1px solid #e2ebe6;border-radius:12px;background:rgba(255,255,255,.88)}.lot-population-breakdown span{color:#7a8982;font-size:.62rem;font-weight:800}.lot-population-breakdown b{color:#27473a;font-size:.9rem;font-weight:950}.lot-population-breakdown .loss b{color:#b34b42}.lot-population-breakdown .discard b{color:#8a631c}
.lot-metric-note{display:block;margin-top:8px;color:#7b8c84;font-size:.65rem;line-height:1.35}
@media(max-width:760px){.lot-metric-heading{align-items:flex-start;flex-direction:column}.lot-metric-details.timeline{grid-template-columns:1fr}.lot-metric-details.timeline>i{transform:rotate(90deg)}.lot-population-breakdown{grid-template-columns:1fr}.lot-metric-card{align-items:start}}

/* Lotes 4.9.2 · tarjetas principales de recepción */
.lot-metric-card--wide{grid-column:1/-1;grid-template-columns:86px minmax(0,1fr);align-items:stretch;min-height:190px;padding:0;border:1px solid #dce8e2;border-radius:22px;background:#fff;box-shadow:0 16px 38px rgba(27,72,52,.09)}
.lot-metric-card--wide:before{display:none}
.lot-metric-orb{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;min-height:100%;border-radius:21px 0 0 21px;background:linear-gradient(160deg,#eaf2ff,#dceaff);color:#285f99}
.lot-metric-orb span{display:grid;place-items:center;width:50px;height:50px;border-radius:17px;background:rgba(255,255,255,.82);font-size:1.55rem;box-shadow:0 8px 20px rgba(43,94,151,.12)}
.lot-metric-orb small{font-size:.57rem;font-weight:950;letter-spacing:.16em}
.lot-metric-orb.population-orb{background:linear-gradient(160deg,#e8f8ef,#d8f0e4);color:#21714f}
.lot-metric-content{min-width:0;padding:19px 21px 18px}
.lot-metric-heading>div{display:grid;gap:2px}
.lot-metric-kicker{color:#8b9992;font-size:.57rem;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.lot-metric-label{color:#2d453a;font-size:.86rem;font-weight:950}
.lot-metric-badge{gap:6px;padding:5px 10px}
.lot-metric-badge i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(255,255,255,.55)}
.lot-metric-value-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:8px 0 15px;padding-bottom:14px;border-bottom:1px solid #edf2ef}
.lot-metric-value-row>strong{display:flex!important;align-items:baseline;gap:7px;margin:0!important;color:#285f99!important;font-size:clamp(2.35rem,5vw,3.35rem)!important;letter-spacing:-.045em}
.lot-metric-card.population .lot-metric-value-row>strong{color:#176846!important}
.lot-metric-value-row>strong small{color:#72847b;font-size:.82rem;font-weight:900;letter-spacing:0}
.lot-metric-value-row>em{max-width:265px;color:#7b8b83;font-size:.67rem;font-style:normal;line-height:1.45;text-align:right}
.lot-date-flow{display:grid;grid-template-columns:minmax(0,1fr) 116px minmax(0,1fr);align-items:center;gap:12px}
.lot-date-node{display:flex;align-items:center;gap:11px;padding:12px 13px;border:1px solid #e5ece8;border-radius:14px;background:#f9fcfa}
.lot-date-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 auto;border-radius:12px;background:#fff;box-shadow:0 5px 14px rgba(39,77,60,.08)}
.lot-date-node>div{display:grid;gap:3px}.lot-date-node small{color:#87958e;font-size:.57rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.lot-date-node b{color:#2b463a;font-size:.88rem;font-weight:950}
.lot-date-connector{display:grid;grid-template-columns:1fr 24px 1fr;align-items:center;color:#6c9a84}.lot-date-connector span{height:2px;border-radius:99px;background:linear-gradient(90deg,#b7d3c5,#70aa8d)}.lot-date-connector i{font-style:normal;text-align:center;font-weight:950}
.lot-population-breakdown{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:0}
.lot-population-breakdown>div{position:relative;display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto auto;column-gap:10px;padding:12px 13px;border:1px solid #e3ebe7;border-radius:15px;background:#f9fcfa}
.lot-population-breakdown .breakdown-icon{grid-row:1/4;display:grid;place-items:center;width:38px;height:38px;margin:auto 0;border-radius:12px;background:#e6f5ed;color:#21714f;font-size:1rem;font-weight:950}
.lot-population-breakdown>div>small{color:#77877f;font-size:.59rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.lot-population-breakdown>div>b{color:#29483a;font-size:1.12rem;font-weight:950;line-height:1.15}
.lot-population-breakdown>div>em{color:#9aa59f;font-size:.55rem;font-style:normal}
.lot-population-breakdown .loss{background:#fff9f8;border-color:#f1d9d5}.lot-population-breakdown .loss .breakdown-icon{background:#ffe9e6;color:#b3473f}.lot-population-breakdown .loss b{color:#a43e36}
.lot-population-breakdown .discard{background:#fffcf4;border-color:#efdfba}.lot-population-breakdown .discard .breakdown-icon{background:#fff0cc;color:#8a631c}.lot-population-breakdown .discard b{color:#805b17}
.lot-metric-note{display:flex;align-items:center;gap:8px;margin-top:11px;padding:9px 11px;border:1px solid #e5ece8;border-radius:12px;background:#f7faf8;color:#6f8178;line-height:1.4}
.lot-metric-note>span{display:grid;place-items:center;width:24px;height:24px;flex:0 0 auto;border-radius:8px;background:#e8f2ed;color:#37795b;font-size:.75rem;font-weight:950}.lot-metric-note small{font-size:.64rem}.lot-metric-note b{color:#334d40}
.lot-metric-card.warning .lot-metric-orb{background:linear-gradient(160deg,#fff4d9,#ffe8b4);color:#96630f}.lot-metric-card.critical .lot-metric-orb{background:linear-gradient(160deg,#ffeae7,#ffd8d3);color:#a94038}
@media(max-width:760px){.lot-metric-card--wide{grid-template-columns:1fr;min-height:0}.lot-metric-orb{min-height:76px;border-radius:21px 21px 0 0;flex-direction:row}.lot-metric-orb span{width:42px;height:42px;font-size:1.25rem}.lot-metric-content{padding:16px}.lot-metric-value-row{align-items:flex-start;flex-direction:column}.lot-metric-value-row>em{max-width:none;text-align:left}.lot-date-flow{grid-template-columns:1fr}.lot-date-connector{grid-template-columns:1fr 24px 1fr;transform:rotate(90deg);margin:-6px auto}.lot-population-breakdown{grid-template-columns:1fr}.lot-metric-heading{align-items:flex-start;flex-direction:column}.lot-metric-value-row>strong{font-size:2.45rem!important}}

/* Lotes 4.9.3 · recepción compacta premium */
.lot-hero--compact{min-height:auto;padding:21px 25px}.lot-hero--compact h1{margin-bottom:0}.lot-hero--compact .lot-eyebrow{margin-bottom:5px}
.lot-form{gap:12px}.lot-form-card--compact>header{min-height:62px;padding:12px 16px}.lot-form-card--compact>header>div{gap:0}.lot-form-card--compact>header h2{font-size:.94rem}.lot-form-card--compact>header small{font-size:.62rem;text-transform:uppercase;letter-spacing:.075em}.lot-form-card--compact>header>i{font-size:1.25rem}.lot-form-card--compact .lot-step{width:32px;height:32px;border-radius:10px;font-size:.72rem}.lot-form-card--compact .lot-form-body{gap:12px;padding:15px 16px}
.lot-form-card--compact .lot-input{gap:5px}.lot-form-card--compact .lot-input>span{font-size:.68rem}.lot-form-card--compact .lot-input input,.lot-form-card--compact .lot-input select{min-height:40px;border-radius:10px;font-size:.78rem}
.lot-time-field input[type="time"]{min-height:40px;font-size:.82rem;font-weight:750}
.lot-metric-card--compact{grid-column:1/-1;display:grid;gap:10px;min-height:0;padding:13px 14px;border:1px solid #dfe9e4;border-radius:15px;background:linear-gradient(145deg,#fff,#f8fbf9);box-shadow:0 8px 22px rgba(27,72,52,.055)}
.lot-metric-card--compact:before{display:none}.lot-compact-metric-main,.lot-population-summary{display:flex;align-items:center;gap:11px;min-width:0}.lot-compact-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:10px;background:#eaf2ff;color:#326a9f;font-size:.85rem;font-weight:950}.lot-metric-card--compact.population .lot-compact-icon{background:#e6f5ed;color:#21714f}.lot-compact-metric-main>div,.lot-population-total>div{display:grid;gap:1px;min-width:0}.lot-compact-metric-main .lot-metric-label,.lot-population-total .lot-metric-label{color:#75857d;font-size:.6rem;letter-spacing:.055em}.lot-compact-metric-main strong,.lot-population-total strong{display:flex!important;align-items:baseline;gap:5px;margin:0!important;color:#285f99!important;font-size:1.7rem!important;line-height:1;letter-spacing:-.035em}.lot-metric-card--compact.population strong{color:#176846!important}.lot-compact-metric-main strong small,.lot-population-total strong small{color:#7f8d86;font-size:.65rem;font-weight:850;letter-spacing:0}.lot-metric-card--compact .lot-metric-badge{margin-left:auto;min-height:22px;padding:4px 8px;font-size:.56rem}.lot-metric-card--compact .lot-metric-badge i{width:6px;height:6px}
.lot-date-flow--compact{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);gap:9px}.lot-date-flow--compact .lot-date-node{display:grid;gap:2px;padding:8px 10px;border-radius:10px;background:#fff}.lot-date-flow--compact .lot-date-node small{font-size:.53rem}.lot-date-flow--compact .lot-date-node b{font-size:.75rem}.lot-date-flow--compact .lot-date-connector{grid-template-columns:1fr 18px 1fr}.lot-date-flow--compact .lot-date-connector i{font-size:.68rem}
.lot-reception-grid{display:grid;grid-template-columns:1.25fr repeat(3,minmax(105px,.75fr));align-items:end;gap:11px}.lot-reception-grid .lot-input{min-width:0}.lot-birds-field{align-items:stretch;text-align:left}.lot-birds-field>span{font-size:.68rem}.lot-birds-input-wrap{position:relative;display:flex;align-items:center;min-height:40px;border:1px solid #b9d6c7;border-radius:10px;background:#fbfefc;box-shadow:none;overflow:hidden}.lot-birds-input-wrap:focus-within{border-color:#52a77b;box-shadow:0 0 0 3px rgba(82,167,123,.12)}.lot-birds-prefix{display:grid;place-items:center;width:39px;align-self:stretch;border-right:1px solid #e1ebe6;background:#edf7f2;font-size:.9rem}.lot-birds-input-wrap input[type=text]{width:100%;min-width:0;min-height:38px;padding:0 48px 0 11px;border:0!important;background:transparent!important;box-shadow:none!important;color:#174f39;font-size:.92rem;font-weight:900;line-height:1;text-align:left;letter-spacing:0}.lot-birds-input-wrap small{position:absolute;right:10px;bottom:auto;color:#668177;font-size:.57rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.lot-birds-input-wrap input::placeholder{color:#9fb7aa}
.lot-population-total{display:flex;align-items:center;gap:11px;min-width:0}.lot-population-summary{justify-content:space-between}.lot-population-breakdown--compact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}.lot-population-breakdown--compact>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:10px;background:#fff}.lot-population-breakdown--compact>div>small{font-size:.54rem}.lot-population-breakdown--compact>div>b{font-size:.82rem}.lot-population-breakdown--compact .loss,.lot-population-breakdown--compact .discard{background:#fff}.lot-metric-note--compact{min-height:0;margin:0;padding:6px 9px;border:0;border-radius:9px;background:#f2f7f4}.lot-metric-note--compact>span{width:auto;height:auto;background:transparent;font-size:.7rem}.lot-metric-note--compact small{font-size:.58rem}
.lot-status-options label span{padding:10px 11px;border-radius:10px}.lot-status-options label span small{display:none}.lot-save-bar--compact{bottom:8px;padding:10px 12px;border-radius:14px}.lot-save-bar--compact>strong{color:#2d453a;font-size:.78rem}.lot-save-bar--compact>div{gap:12px}.lot-save-bar--compact button{padding:9px 14px;border-radius:9px}
.lot-side{gap:11px}.lot-preview,.lot-capacity-card{padding:15px;border-radius:15px}.lot-preview-icon{width:40px;height:40px;margin:4px 0 9px;border-radius:12px;font-size:1.1rem}.lot-preview h3{margin:3px 0 10px;font-size:.92rem}.lot-preview>div:not(.lot-preview-top){padding:7px 0;font-size:.68rem}.lot-capacity-card h3{margin:6px 0 10px;font-size:.88rem}.lot-capacity-ring strong{font-size:1.45rem}.lot-capacity-card p{margin-top:8px;font-size:.65rem}
@media(max-width:1050px){.lot-reception-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lot-birds-field{grid-column:1/-1}}
@media(max-width:760px){.lot-hero--compact{padding:18px}.lot-form-card--compact .lot-form-body{padding:13px}.lot-reception-grid{grid-template-columns:1fr}.lot-birds-field{grid-column:auto}.lot-compact-metric-main,.lot-population-summary{align-items:flex-start;flex-wrap:wrap}.lot-metric-card--compact .lot-metric-badge{margin-left:0}.lot-date-flow--compact{grid-template-columns:1fr 32px 1fr}.lot-date-flow--compact .lot-date-connector span{display:none}.lot-population-breakdown--compact{grid-template-columns:1fr}.lot-population-breakdown--compact>div{padding:7px 9px}.lot-save-bar--compact{align-items:center;flex-direction:row}.lot-save-bar--compact>div:last-child{justify-content:flex-end}.lot-side{grid-template-columns:1fr}}


/* Lotes 4.9.5 · cards de resultado automático */
.lot-auto-result-card{grid-column:1/-1;display:flex;flex-direction:column;justify-content:center;min-height:158px;padding:17px 18px;border:0;border-radius:16px;background:linear-gradient(145deg,#173b31,#276f53);color:#fff;box-shadow:0 14px 30px rgba(23,59,49,.18);overflow:hidden;position:relative}
.lot-auto-result-card.age{background:linear-gradient(145deg,#183749,#286379)}
.lot-auto-result-card:after{content:"";position:absolute;right:-38px;bottom:-56px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.045);pointer-events:none}
.lot-auto-result-top{display:flex;align-items:center;justify-content:space-between;gap:12px;position:relative;z-index:1}
.lot-auto-result-top>span{display:inline-flex;align-items:center;min-height:24px;padding:5px 8px;border-radius:7px;background:rgba(255,255,255,.12);font-size:.58rem;font-weight:900;letter-spacing:.035em}
.lot-auto-status{display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.10);color:#e8f7ef;font-size:.56rem;font-style:normal;font-weight:900;white-space:nowrap}
.lot-auto-status i{width:6px;height:6px;border-radius:50%;background:#8fe0b3;box-shadow:0 0 0 3px rgba(143,224,179,.13)}
.lot-auto-status.warning i{background:#ffd27b}.lot-auto-status.danger i{background:#ff9d94}
.lot-auto-result-card>small{position:relative;z-index:1;margin-top:12px;color:#cde9dc;font-size:.65rem;font-weight:750}
.lot-auto-result-card.age>small{color:#d0e6f1}
.lot-auto-result-card>strong{position:relative;z-index:1;display:flex!important;align-items:baseline;gap:6px;margin:2px 0 0!important;color:#fff!important;font-size:2rem!important;line-height:1;letter-spacing:-.045em}
.lot-auto-result-card>strong small{color:rgba(255,255,255,.72);font-size:.7rem;font-weight:850;letter-spacing:0}
.lot-auto-date-flow{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);align-items:center;gap:8px;margin-top:13px}
.lot-auto-date-flow>div{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;padding:8px 10px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.075)}
.lot-auto-date-flow small{color:rgba(255,255,255,.64);font-size:.53rem;font-weight:850;text-transform:uppercase;letter-spacing:.055em}
.lot-auto-date-flow b{overflow:hidden;color:#fff;font-size:.72rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.lot-auto-date-flow>i{color:rgba(255,255,255,.6);font-size:.8rem;font-style:normal;text-align:center}
.lot-auto-population-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}
.lot-auto-population-grid>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid rgba(255,255,255,.10);border-radius:10px;background:rgba(255,255,255,.075)}
.lot-auto-population-grid small{color:rgba(255,255,255,.64);font-size:.53rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em}
.lot-auto-population-grid b{color:#fff;font-size:.82rem;font-weight:950}
.lot-auto-population-grid .loss b{color:#ffc5bf}.lot-auto-population-grid .discard b{color:#ffe0a1}
.lot-auto-note{position:relative;z-index:1;display:flex;align-items:center;gap:6px;margin-top:7px;color:rgba(255,255,255,.72)}
.lot-auto-note>span{font-size:.66rem}.lot-auto-note small{font-size:.57rem}.lot-auto-note b{color:#fff}
.lot-auto-progress{position:relative;z-index:1;height:6px;margin-top:10px;border-radius:999px;background:rgba(255,255,255,.13);overflow:hidden}
.lot-auto-progress span{display:block;height:100%;min-width:6%;border-radius:999px;background:#9ce0bd;transition:width .25s ease}
.lot-auto-result-card.age .lot-auto-progress span{background:#9bd5ed}
.lot-auto-result-card.warning{background:linear-gradient(145deg,#5b431c,#98702c)}
.lot-auto-result-card.warning .lot-auto-progress span{background:#ffd27b}
.lot-auto-result-card.critical{background:linear-gradient(145deg,#5b2b28,#964b44)}
.lot-auto-result-card.critical .lot-auto-progress span{background:#ffaaa2}
@media(max-width:760px){.lot-auto-result-card{min-height:0;padding:15px}.lot-auto-date-flow{grid-template-columns:1fr 20px 1fr}.lot-auto-date-flow>div{align-items:flex-start;flex-direction:column;gap:2px}.lot-auto-population-grid{grid-template-columns:1fr}.lot-auto-result-card>strong{font-size:1.8rem!important}}


/* Lotes 4.9.6 · resultados automáticos con distribución tipo Pesaje */
.lot-origin-result-layout,.lot-population-result-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(285px,.85fr);gap:14px;align-items:stretch}
.lot-origin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.lot-origin-fields .lot-time-field{grid-column:1/-1;max-width:245px}
.lot-population-result-layout .lot-reception-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.lot-population-result-layout .lot-birds-field{grid-column:1/-1}
.lot-auto-result-card{grid-column:auto;min-height:0;padding:18px;border-radius:16px;background:linear-gradient(145deg,#173b31,#276f53);box-shadow:none}
.lot-auto-result-card.age{background:linear-gradient(145deg,#173b31,#276f53)}
.lot-auto-result-card:after{display:none}
.lot-auto-result-card>small{margin-top:14px;color:#cde9dc}
.lot-auto-result-card>strong{margin:3px 0!important;font-size:2rem!important}
.lot-auto-result-top>span{padding:5px 7px;border-radius:7px;font-size:.6rem;font-weight:850}
.lot-auto-status{min-height:22px;padding:4px 8px;font-size:.54rem}
.lot-auto-date-flow{margin-top:12px}
.lot-auto-date-flow>div,.lot-auto-population-grid>div{padding:7px 9px;border-radius:9px}
.lot-auto-population-grid{margin-top:11px}
.lot-auto-note{margin-top:8px}
.lot-auto-progress{height:7px;margin-top:12px}
.lot-auto-result-card.age .lot-auto-progress span{background:#9ce0bd}
@media(max-width:960px){.lot-origin-result-layout,.lot-population-result-layout{grid-template-columns:1fr}.lot-origin-fields .lot-time-field{max-width:none}}
@media(max-width:600px){.lot-origin-fields,.lot-population-result-layout .lot-reception-grid{grid-template-columns:1fr}.lot-origin-fields .lot-time-field,.lot-population-result-layout .lot-birds-field{grid-column:auto}.lot-auto-result-card{padding:16px}.lot-auto-date-flow{grid-template-columns:1fr 20px 1fr}.lot-auto-population-grid{grid-template-columns:1fr}}


/* Lotes 4.9.8 · corrección definitiva de superposición de cards */
.lot-form-card .lot-form-body > .lot-origin-result-layout,
.lot-form-card .lot-form-body > .lot-population-result-layout,
.lot-form-card .lot-form-body > .lot-result-row{
    grid-column:1 / -1 !important;
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
}
.lot-origin-result-layout,
.lot-population-result-layout{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(290px,1fr));
    gap:14px;
    align-items:stretch;
    width:100%;
    min-width:0;
    max-width:100%;
    overflow:visible;
}
.lot-origin-fields,
.lot-population-result-layout .lot-reception-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:12px;
    min-width:0;
    max-width:100%;
    align-content:start;
}
.lot-origin-fields .lot-time-field,
.lot-population-result-layout .lot-birds-field{
    grid-column:1 / -1;
    max-width:none;
}
.lot-auto-result-card{
    position:relative;
    inset:auto;
    z-index:0;
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
    align-self:stretch;
}
@media(max-width:680px){
    .lot-origin-result-layout,
    .lot-population-result-layout{
        grid-template-columns:1fr;
    }
    .lot-origin-fields,
    .lot-population-result-layout .lot-reception-grid{
        grid-template-columns:1fr;
    }
    .lot-origin-fields .lot-time-field,
    .lot-population-result-layout .lot-birds-field{
        grid-column:auto;
    }
}


/* Reportes 4.10.0 · analítica visual de consumo */
.reports-consumption-analytics{display:grid;gap:14px;margin:0 0 18px;padding:19px;background:#f6f9f7;border:1px solid #dce7e1;border-radius:18px;box-shadow:0 10px 28px rgba(25,58,43,.055)}
.reports-analytics-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:0 2px}.reports-analytics-heading h2{margin:3px 0 4px;color:#173a2b;font-size:18px;letter-spacing:-.025em}.reports-analytics-heading p{margin:0;color:#75847c;font-size:9px}.reports-analytics-period{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;color:#52675c;font-size:8px;font-weight:800;background:#fff;border:1px solid #dce7e1;border-radius:999px}.reports-analytics-period b{color:#2a7a58}
.reports-consumption-kpi{--status:#718078;--status-soft:#eef2f0;position:relative;display:grid;grid-template-columns:minmax(210px,.9fr) minmax(130px,.45fr) minmax(390px,1.65fr);align-items:center;gap:18px;overflow:hidden;padding:17px 19px 15px;background:#fff;border:1px solid #dce7e1;border-left:5px solid var(--status);border-radius:15px;box-shadow:0 8px 22px rgba(25,58,43,.045)}.reports-consumption-kpi.is-within{--status:#27875f;--status-soft:#e8f4ee}.reports-consumption-kpi.is-low{--status:#d08a2f;--status-soft:#fbf1e4}.reports-consumption-kpi.is-high{--status:#c85252;--status-soft:#fbeaea}.reports-consumption-kpi-status{display:flex;align-items:center;gap:12px;min-width:0}.reports-consumption-signal{flex:0 0 13px;height:13px;background:var(--status);border:4px solid var(--status-soft);border-radius:50%;box-sizing:content-box}.reports-consumption-kpi-status small,.reports-consumption-kpi-status strong,.reports-consumption-kpi-value small{display:block}.reports-consumption-kpi-status small,.reports-consumption-kpi-value small,.reports-consumption-kpi-metrics small{color:#7a8981;font-size:7px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.reports-consumption-kpi-status strong{margin-top:4px;color:#1d392d;font-size:13px}.reports-consumption-kpi-value{padding-left:18px;border-left:1px solid #e3ebe7}.reports-consumption-kpi-value strong{display:block;margin-top:2px;color:var(--status);font-size:28px;line-height:1}.reports-consumption-kpi-value strong span{margin-left:2px;font-size:12px}.reports-consumption-kpi-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.reports-consumption-kpi-metrics>div{min-width:0;padding:9px 10px;background:#f8faf9;border:1px solid #e5ece8;border-radius:10px}.reports-consumption-kpi-metrics strong{display:block;margin-top:4px;color:#294437;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reports-consumption-kpi-track{grid-column:1/-1;position:relative;height:5px;overflow:visible;background:#e7eeea;border-radius:99px}.reports-consumption-kpi-track span{display:block;max-width:100%;height:100%;background:var(--status);border-radius:99px}.reports-consumption-kpi-track i{position:absolute;left:100%;top:-3px;width:2px;height:11px;background:#54675d;border-radius:3px;transform:translateX(-100%)}.reports-consumption-kpi>p{grid-column:1/-1;margin:0;color:#6d7d75;font-size:8px}
.reports-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.reports-chart-card{min-width:0;overflow:hidden;background:#fff;border:1px solid #dce7e1;border-radius:15px;box-shadow:0 8px 22px rgba(25,58,43,.045)}.reports-chart-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px 10px}.reports-chart-card>header small{color:#2b7b59;font-size:7px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.reports-chart-card h3{margin:3px 0 0;color:#1c392c;font-size:13px}.reports-chart-legend{display:flex;align-items:center;gap:12px;color:#687970;font-size:8px;font-weight:800}.reports-chart-legend span{display:inline-flex;align-items:center;gap:5px}.reports-chart-legend span:before{content:"";width:8px;height:8px;border-radius:3px}.reports-chart-legend .real:before{background:#237856}.reports-chart-legend .expected:before{background:#d49a42}.reports-chart-stage{height:260px;padding:3px 10px 0}.reports-chart-stage canvas{display:block;width:100%;height:100%}.reports-chart-card>footer{padding:9px 16px 12px;color:#839088;font-size:7px;border-top:1px solid #edf2ef}
@media(max-width:1080px){.reports-consumption-kpi{grid-template-columns:1fr 160px}.reports-consumption-kpi-metrics{grid-column:1/-1}.reports-chart-grid{grid-template-columns:1fr}}
@media(max-width:650px){.reports-consumption-analytics{padding:14px}.reports-analytics-heading{align-items:flex-start;flex-direction:column}.reports-consumption-kpi{grid-template-columns:1fr;padding:15px}.reports-consumption-kpi-value{padding:12px 0 0;border-top:1px solid #e3ebe7;border-left:0}.reports-consumption-kpi-metrics{grid-template-columns:1fr 1fr}.reports-chart-card>header{align-items:flex-start;flex-direction:column}.reports-chart-stage{height:230px}}
@media print{.reports-consumption-analytics{page-break-inside:avoid;background:#fff;box-shadow:none}.reports-chart-card,.reports-consumption-kpi{box-shadow:none}.reports-chart-stage{height:220px}}

/* Reportes 4.11.0 · guía técnica, ritmo en días y unidades duales */
.reports-analytics-tools{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.reports-unit-switch{display:inline-flex;align-items:center;padding:3px;background:#e8efeb;border:1px solid #d7e3dc;border-radius:10px}
.reports-unit-switch button{min-width:54px;padding:6px 10px;color:#65776d;font:800 8px/1 system-ui,sans-serif;background:transparent;border:0;border-radius:7px;cursor:pointer;transition:.18s ease}
.reports-unit-switch button.active{color:#fff;background:#1e7352;box-shadow:0 4px 10px rgba(30,115,82,.2)}
.reports-consumption-kpi.is-on-time{--status:#27875f;--status-soft:#e8f4ee}
.reports-consumption-kpi.is-ahead{--status:#2877a8;--status-soft:#e7f1f8}
.reports-consumption-kpi.is-behind{--status:#d08a2f;--status-soft:#fbf1e4}
.reports-consumption-kpi.is-no-data{--status:#718078;--status-soft:#eef2f0}
.reports-pace-text{display:block;margin-top:4px;color:var(--status);font-size:9px;font-weight:900}
.reports-consumption-kpi-metrics-dual>div{padding:10px 11px}
.reports-consumption-kpi-metrics-dual strong{font-size:11px}
.reports-consumption-kpi-metrics-dual span{display:block;margin-top:3px;color:#728178;font-size:8px;font-weight:750}
.reports-chart-grid-lines .reports-chart-card{min-height:335px}
.reports-chart-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.reports-chart-card>footer b{flex:0 0 auto;padding:3px 7px;color:#1f6f50;font-size:7px;text-transform:uppercase;background:#e8f3ed;border-radius:999px}
.reports-pace-section{display:grid;gap:11px;padding-top:2px}
.reports-pace-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:0 2px}
.reports-pace-heading small{display:block;color:#2b7b59;font-size:7px;font-weight:900;letter-spacing:.07em}
.reports-pace-heading h3{margin:3px 0 0;color:#1c392c;font-size:13px}
.reports-pace-heading>span{color:#6e7e75;font-size:8px;font-weight:800}
.reports-pace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.reports-pace-card{--pace:#718078;--pace-soft:#eef2f0;display:grid;gap:11px;padding:13px 14px;background:#fff;border:1px solid #dce7e1;border-top:4px solid var(--pace);border-radius:13px;box-shadow:0 7px 18px rgba(25,58,43,.04)}
.reports-pace-card.is-on-time{--pace:#27875f;--pace-soft:#e8f4ee}
.reports-pace-card.is-ahead{--pace:#2877a8;--pace-soft:#e7f1f8}
.reports-pace-card.is-behind{--pace:#d08a2f;--pace-soft:#fbf1e4}
.reports-pace-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.reports-pace-card-head small,.reports-pace-card-head strong{display:block}
.reports-pace-card-head small{color:#7b8981;font-size:7px}
.reports-pace-card-head strong{margin-top:2px;color:#1d392d;font-size:12px}
.reports-pace-card-head>span{padding:4px 7px;color:var(--pace);font-size:7px;font-weight:900;background:var(--pace-soft);border-radius:999px}
.reports-pace-card-main strong{display:block;color:var(--pace);font-size:16px;letter-spacing:-.025em}
.reports-pace-card-main small{display:block;margin-top:3px;color:#75847c;font-size:7px}
.reports-pace-card-values{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.reports-pace-card-values>div{padding:8px 9px;background:#f8faf9;border:1px solid #e7eeea;border-radius:9px}
.reports-pace-card-values small,.reports-pace-card-values strong,.reports-pace-card-values span{display:block}
.reports-pace-card-values small{color:#7d8b83;font-size:6px;font-weight:900;text-transform:uppercase}
.reports-pace-card-values strong{margin-top:3px;color:#294437;font-size:9px}
.reports-pace-card-values span{margin-top:2px;color:#708078;font-size:7px}
@media(max-width:1080px){.reports-pace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.reports-analytics-tools{align-items:flex-start;justify-content:flex-start}.reports-unit-switch{width:100%}.reports-unit-switch button{flex:1}.reports-pace-heading{align-items:flex-start;flex-direction:column}.reports-pace-grid{grid-template-columns:1fr}.reports-chart-grid-lines .reports-chart-card{min-height:305px}}


/* ===== Don Panchito 4.12.0 · Responsive móvil reforzado ===== */
.topbar-title{min-width:0;flex:1}
.topbar-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-menu{flex:0 0 auto}
.mobile-back-button{display:none}
.sidebar-mobile-account{display:none}

@media(max-width:820px){
  body.admin-body{overflow-x:hidden}
  .admin-main{width:100%;min-width:0}
  .topbar{width:100%;min-width:0}
  .topbar-title{min-width:0;overflow:hidden}
  .user-menu{margin-left:0;flex-shrink:0}
  .logout-button{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:38px}
  .sidebar{display:flex;flex-direction:column}
  .sidebar-nav{flex:1}
  .sidebar-mobile-account{
    display:block;
    margin-top:auto;
    padding:14px 8px 6px;
    border-top:1px solid rgba(255,255,255,.10)
  }
  .sidebar-mobile-user{display:flex;align-items:center;gap:10px;margin-bottom:10px}
  .sidebar-mobile-user>span:last-child{display:grid;gap:2px;min-width:0}
  .sidebar-mobile-user strong{overflow:hidden;color:#fff;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
  .sidebar-mobile-user small{color:#91a3ad;font-size:9px}
  .sidebar-logout-button{
    width:100%;min-height:42px;padding:0 12px;
    color:#ffdede;font-size:11px;font-weight:800;
    background:rgba(190,65,65,.18);
    border:1px solid rgba(255,140,140,.22);
    border-radius:9px;cursor:pointer
  }
}

@media(max-width:640px){
  .topbar{gap:7px;padding:8px 9px}
  .icon-button{width:38px;height:38px;flex:0 0 38px}
  .mobile-back-button{
    display:grid;place-items:center;
    width:38px;height:38px;flex:0 0 38px;
    color:var(--text);font-size:20px;font-weight:800;
    background:#edf2f0;border-radius:8px
  }
  .topbar-title strong{font-size:12px}
  .topbar .avatar{width:34px;height:34px}
  .topbar .user-menu{gap:5px}
  .topbar .logout-button{
    min-width:38px;width:38px;height:38px;padding:0;
    overflow:hidden;font-size:0;border-radius:8px
  }
  .topbar .logout-button:before{content:"↪";font-size:18px;line-height:1}
  .page-heading{
    display:flex;
    align-items:stretch;
    flex-direction:column;
    gap:12px
  }
  .page-heading>div{min-width:0;width:100%}
  .page-heading>a,
  .page-heading>button,
  .page-heading>form,
  .page-heading>.button{
    width:100%;
    max-width:100%;
    flex:none
  }
  .page-heading>a.button,
  .page-heading>button.button{display:flex}
  .weigh-hero,.lot-hero,.perf-hero,.report-hero,.users-hero,.users-form-hero,
  .permissions-hero,.tech-hero,.mortality-heading{
    width:100%;
    max-width:100%;
  }
  .weigh-back,.lot-back,.users-button-light{
    display:flex!important;
    width:100%;
    max-width:100%;
    justify-content:center
  }
  .page-content{max-width:100%;overflow-x:hidden}
}

@media(max-width:390px){
  .topbar-title{display:none}
  .topbar .user-menu{margin-left:auto}
}


/* ===== Don Panchito 4.13.0 · Responsive integral ===== */

/* Base de seguridad contra desbordamientos */
*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas{max-width:100%}
input,select,textarea,button{max-width:100%}
.page-content,.panel,.form-panel,.form-section,.table-responsive{min-width:0}

/* Tablet */
@media(max-width:900px){
  .dashboard-grid{grid-template-columns:1fr!important}
  .metric-grid,.metrics-grid,.kpi-grid,.users-kpi-grid,
  .lot-kpi-grid,.weigh-kpi-grid,.entry-metrics,.consumption-metrics,
  .tech-kpi-grid,.reports-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important
  }
  .quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .form-grid,.users-form-grid{grid-template-columns:1fr 1fr!important}
  .table-responsive{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain
  }
  .data-table{min-width:720px}
}

/* Teléfono */
@media(max-width:640px){
  html,body{max-width:100%;overflow-x:hidden}
  body{font-size:14px}
  .page-content{padding:12px!important}
  .panel,.form-panel{border-radius:12px}
  .panel{padding:14px!important}

  /* Encabezados */
  .page-heading{
    align-items:stretch!important;
    flex-direction:column!important;
    gap:10px!important;
    margin-bottom:14px!important
  }
  .page-heading h1,.page-heading h2{
    max-width:100%;
    overflow-wrap:anywhere;
    font-size:clamp(20px,6vw,27px)!important;
    line-height:1.15
  }
  .page-heading p{font-size:11px!important;line-height:1.45}

  /* Botones y acciones táctiles */
  .button,.primary-button,.users-button,.reports-action,
  .action-link,.sidebar-logout-button{
    min-height:44px
  }
  .page-heading .button,.page-heading .primary-button,
  .panel-footer .button,.panel-footer .primary-button{
    width:100%;
    justify-content:center
  }
  .panel-footer{
    align-items:stretch!important;
    flex-direction:column-reverse!important;
    gap:9px!important;
    padding:14px!important
  }
  .panel-footer>*{width:100%;max-width:100%}

  /* Formularios */
  .form-section{padding:15px!important}
  .form-grid,.users-form-grid,.lot-form-grid,.weigh-form-grid,
  .perf-form-grid,.settings-grid{
    grid-template-columns:1fr!important;
    gap:12px!important
  }
  .form-field,.form-field-wide,.full,.full-width{
    grid-column:1!important;
    width:100%!important
  }
  .form-field{margin-top:10px}
  .form-field input,.form-field select,.form-field textarea,
  .lot-input,.weigh-input,.settings-field input,.settings-field select{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    font-size:16px!important
  }
  textarea{min-height:110px}
  .field-hint,.field-error{font-size:11px!important}

  /* Filtros */
  .filter-bar{
    align-items:stretch!important;
    flex-direction:column!important;
    gap:9px!important;
    padding:13px!important
  }
  .filter-bar input,.filter-bar select,.filter-bar .button,
  .filter-bar button,.filter-bar a{
    width:100%!important;
    min-width:0!important
  }

  /* Tablas: scroll horizontal claro, sin cortar acciones */
  .table-responsive{
    margin-inline:0;
    padding-bottom:5px;
    border-radius:10px
  }
  .data-table{
    width:max-content!important;
    min-width:680px!important;
    font-size:12px
  }
  .data-table th,.data-table td{
    padding:10px 12px!important;
    white-space:nowrap
  }
  .data-table th:first-child,.data-table td:first-child{
    position:sticky;
    left:0;
    z-index:1;
    background:#fff
  }
  .data-table th:first-child{
    z-index:2;
    background:#f1f5f9
  }
  .table-actions{
    display:flex!important;
    align-items:center;
    gap:6px;
    flex-wrap:nowrap!important
  }
  .table-actions a,.table-actions button{
    min-width:38px;
    min-height:38px
  }

  /* Métricas/dashboard */
  .metric-grid,.metrics-grid,.kpi-grid,.users-kpi-grid,
  .lot-kpi-grid,.weigh-kpi-grid,.entry-metrics,.consumption-metrics,
  .tech-kpi-grid,.reports-kpi-grid{
    grid-template-columns:1fr!important
  }
  .quick-grid{grid-template-columns:1fr!important}
  .quick-grid a{min-height:64px}
  .dashboard-grid{gap:12px!important;margin-top:12px!important}

  /* Reportes */
  .reports-chart-grid,.reports-pace-grid{
    grid-template-columns:1fr!important
  }
  .reports-chart-stage{height:220px!important}
  .reports-consumption-kpi-metrics{grid-template-columns:1fr!important}
  .reports-consumption-kpi{grid-template-columns:1fr!important}
  .reports-analytics-tools{width:100%}
  .reports-unit-switch{width:100%}
  .reports-unit-switch button{flex:1}

  /* Configuración / tarjetas */
  .settings-card,.lot-form-card,.users-form-section{
    max-width:100%;
    overflow:hidden
  }
  .settings-card-body,.lot-form-body{padding:14px!important}

  /* Barra superior móvil */
  .topbar{
    position:sticky;
    top:0;
    z-index:40;
    min-height:56px
  }
  .mobile-back-button{display:grid!important}
  .topbar .logout-button{display:inline-flex!important}
  .topbar-title{min-width:0}
  .topbar-title strong{max-width:32vw}
}

/* Teléfonos compactos */
@media(max-width:420px){
  .page-content{padding:9px!important}
  .topbar{padding-inline:7px!important;gap:5px!important}
  .topbar-title{display:none!important}
  .mobile-back-button,.icon-button,
  .topbar .logout-button{
    width:40px!important;
    min-width:40px!important;
    height:40px!important
  }
  .topbar .avatar{width:36px!important;height:36px!important}
  .data-table{min-width:620px!important}
  .panel,.form-section{padding:12px!important}
}

/* Orientación horizontal en móvil: conservar acceso a navegación */
@media(max-height:480px) and (orientation:landscape){
  .sidebar{overflow-y:auto}
  .sidebar-nav{padding-bottom:8px}
  .sidebar-mobile-account{position:static}
}


/* ===== Don Panchito 4.14.0 · Navegación móvil corregida ===== */
@media(max-width:640px){
  .topbar .mobile-back-button:first-of-type:last-of-type{margin-right:0}
}


/* ===== Don Panchito 4.17.0 · Navegación por módulo ===== */

/* Ya no existe botón Regresar global en la barra superior. */
.mobile-back-button{display:none!important}

/* Los botones Volver/Historial definidos por cada módulo son los únicos
   controles de regreso y deben permanecer visibles en móvil. */
@media(max-width:640px){
  .page-heading > a.button,
  .page-heading > a.primary-button,
  .page-heading > a.users-button,
  .weigh-back,
  .lot-back,
  .users-button-light,
  .mortality-heading > a,
  .form-hero > a{
    display:flex!important;
    width:100%!important;
    min-height:44px;
    align-items:center;
    justify-content:center;
    margin-top:2px;
  }

  /* Ejemplos:
     Nueva granja -> Granjas
     Nuevo galpón -> Galpones
     Nuevo alimento -> Alimentos
     Nuevo proveedor -> Proveedores
     Nueva genética -> Genéticas
     Nuevo usuario -> Usuarios
     Nuevo lote -> Lotes
     Nuevo pesaje -> Pesajes
     Nueva mortalidad -> Mortalidad
     Nuevo consumo -> Consumos
     Nuevo ingreso -> Ingresos
     Nueva bodega -> Bodegas
  */
  .topbar{grid-template-columns:auto minmax(0,1fr) auto}
}


/* ===== Don Panchito 4.18.0 · Botón Volver compacto ===== */
/* Solo estiliza los enlaces Volver/Regresar propios de cada módulo. */
.module-back-button,
.weigh-back,
.lot-back,
.users-button-light,
.page-heading > a.button[href]:first-of-type {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto!important;
  min-width:auto!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border:1px solid #d8e2de!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#315449!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 2px 8px rgba(28,65,52,.08);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.module-back-button::before,
.weigh-back::before,
.lot-back::before,
.users-button-light::before,
.page-heading > a.button[href]:first-of-type::before {
  content:"←";
  display:inline-grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#edf5f1;
  font-size:14px;
  font-weight:900;
}
.module-back-button:hover,
.weigh-back:hover,
.lot-back:hover,
.users-button-light:hover,
.page-heading > a.button[href]:first-of-type:hover {
  transform:translateY(-1px);
  background:#f8fbf9!important;
  box-shadow:0 4px 12px rgba(28,65,52,.12);
}
@media(max-width:640px){
  .module-back-button,
  .weigh-back,
  .lot-back,
  .users-button-light,
  .page-heading > a.button[href]:first-of-type {
    display:inline-flex!important;
    width:auto!important;
    align-self:flex-start!important;
    min-height:36px!important;
    padding:7px 11px!important;
    font-size:12px!important;
  }
}


/* ===== Don Panchito 4.19.0 · Volver sin duplicados ===== */

/* Anula la flecha de la regla 4.18 en clases genéricas.
   Así Cancelar, Limpiar y otros botones NO reciben flecha. */
.weigh-back::before,
.lot-back::before,
.users-button-light::before,
.page-heading > a.button[href]:first-of-type::before {
  content:none!important;
  display:none!important;
}

/* ÚNICAMENTE los enlaces marcados como regreso de módulo muestran una flecha. */
.module-back-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  padding:7px 12px!important;
  border:1px solid #d8e2de!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#315449!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 2px 8px rgba(28,65,52,.08)!important;
}
.module-back-button::before{
  content:"←"!important;
  display:inline-grid!important;
  place-items:center!important;
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  border-radius:50%!important;
  background:#edf5f1!important;
  color:#315449!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:20px!important;
}
.module-back-button:hover{
  transform:translateY(-1px);
  background:#f8fbf9!important;
  box-shadow:0 4px 12px rgba(28,65,52,.12)!important;
}

/* En móvil sigue siendo un solo botón compacto, no se estira al 100 %. */
@media(max-width:640px){
  .module-back-button{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    align-self:flex-start!important;
    min-height:36px!important;
    padding:7px 11px!important;
    margin-top:2px!important;
  }

  /* Estas reglas corrigen estilos responsive anteriores que agrandaban
     todos los botones Volver al ancho completo. */
  .page-heading > a.module-back-button,
  .weigh-back.module-back-button,
  .lot-back.module-back-button,
  .users-button-light.module-back-button,
  .mortality-heading > a.module-back-button,
  .form-hero > a.module-back-button{
    width:auto!important;
    min-width:0!important;
    max-width:100%!important;
    display:inline-flex!important;
    align-self:flex-start!important;
  }
}
