.production-page{max-width:1500px;margin:0 auto}.production-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.production-heading h1{font-size:32px;letter-spacing:-1.2px}.production-heading p,.production-toolbar p{margin:6px 0 0;color:#6e7b89;font-size:13px}.production-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#bd1930;margin-bottom:8px}.production-new{white-space:nowrap}.production-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:26px}.production-metric{min-height:80px;background:#fff;border:1px solid #e0e5ea;border-radius:10px;padding:14px 15px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.production-metric:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#a5afb8}.production-metric span{font-size:11px;color:#6d7a88;font-weight:600}.production-metric strong{font-size:25px;line-height:1;letter-spacing:-1px}.metric-green:before{background:#12955a}.metric-green strong{color:#117e4c}.metric-red:before{background:#dc4052}.metric-red strong{color:#bd2338}.metric-yellow:before{background:#e6ac28}.metric-yellow strong{color:#a56a08}.metric-blue:before{background:#4184d7}.metric-blue strong{color:#2867b3}.production-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px}.production-toolbar h2{font-size:18px;letter-spacing:-.3px;margin:0}.production-search{width:min(290px,100%)}.production-search input{margin:0;padding:10px 12px;font-size:13px}.production-filters{display:flex;gap:7px;flex-wrap:wrap;margin:17px 0}.production-filters button{padding:7px 11px;border-radius:7px;font-size:11px;font-weight:650;color:#667483;border:1px solid #dde3e8;background:#fff}.production-filters button.is-selected{background:#28343e;color:#fff;border-color:#28343e}.production-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.production-card{min-width:0;min-height:180px;background:white;border:1px solid #e0e5ea;border-top:4px solid #a6b0ba;border-radius:10px;padding:12px 12px 10px;display:flex;flex-direction:column;box-shadow:0 2px 7px #2637470a}.production-card.state-red{border-top-color:#df4353}.production-card.state-yellow{border-top-color:#efb630}.production-card.state-blue{border-top-color:#438ade}.production-card.state-green{border-top-color:#20a867}.production-card-top{display:flex;justify-content:space-between;align-items:center}.production-order{font-size:10px;font-weight:700;color:#8b98a5;letter-spacing:.5px}.production-dot{height:8px;width:8px;border-radius:50%;background:#a6b0ba}.state-red .production-dot{background:#df4353}.state-yellow .production-dot{background:#efb630}.state-blue .production-dot{background:#438ade}.state-green .production-dot{background:#20a867}.production-plate{font-weight:850;letter-spacing:1.4px;font-size:22px;line-height:1.15;margin-top:9px;color:#202d39;overflow-wrap:anywhere}.production-vehicle{color:#657484;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0 9px}.production-status{align-self:flex-start;padding:5px 7px;border-radius:5px;font-size:10px;font-weight:750;line-height:1.3}.state-red .production-status{color:#aa2638;background:#fff0f2}.state-yellow .production-status{color:#946300;background:#fff7df}.state-blue .production-status{color:#245e9d;background:#e9f3ff}.state-green .production-status{color:#0b7545;background:#e5f8ee}.production-technician{display:flex;flex-direction:column;gap:3px;border-top:1px solid #edf0f3;margin-top:10px;padding-top:9px}.production-technician span{color:#9aa5af;font-size:9px;font-weight:750;letter-spacing:.7px}.production-technician strong{font-size:11px;font-weight:650;color:#465563;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-card-actions{display:flex;gap:6px;margin-top:auto;padding-top:10px}.production-card-actions button{font-size:10px;font-weight:700;padding:6px 8px;color:#4b5967;border-color:#e0e6ec;flex:1}.production-card-actions button:first-child{color:#ab182e;border-color:#efd3d8;background:#fff9fa}.production-empty{grid-column:1/-1;background:#fff;border:1px dashed #ccd4dc;border-radius:10px;padding:35px;text-align:center;display:flex;flex-direction:column;gap:8px;color:#667483}.production-empty strong{color:#263440}.production-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;color:#7c8996;font-size:12px}.production-pagination div{display:flex;gap:7px}.production-pagination button{font-size:11px;padding:7px 10px}.production-pagination button:disabled{cursor:not-allowed}.production-hint{font-size:11px;color:#84909b;line-height:1.5}.production-edit{max-width:570px}.production-edit h2{margin:0 60px 22px 0}.production-edit label{margin:16px 0;font-weight:650}.production-key{display:flex;flex-wrap:wrap;gap:8px 16px;margin:20px 0;font-size:11px;font-weight:700}.key-red{color:#bd2338}.key-yellow{color:#9a6900}.key-blue{color:#2867b3}.key-green{color:#117e4c}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1200px){.production-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.production-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.production-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.production-heading h1{font-size:28px}}@media(max-width:580px){.production-heading{align-items:flex-start}.production-new{padding:10px;font-size:12px}.production-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.production-metric{min-height:70px;padding:11px}.production-toolbar{align-items:stretch;flex-direction:column}.production-search{width:100%}.production-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.production-card{padding:10px 9px}.production-plate{font-size:19px}.production-filters{flex-wrap:nowrap;overflow:auto;padding-bottom:3px}.production-filters button{white-space:nowrap}.production-pagination{align-items:flex-start;flex-direction:column}}@media(max-width:320px){.production-grid{grid-template-columns:1fr}}
/* Una cuadrícula compacta permite ver más vehículos sin perder legibilidad. */
@media(min-width:851px){.production-view .top{padding-top:12px;padding-bottom:12px;margin-bottom:14px}.production-view .demo-banner{padding:9px 12px;margin-bottom:12px}.production-heading{margin-bottom:14px}.production-metrics{margin-bottom:17px}.production-metric{min-height:68px;padding:10px 13px}.production-filters{margin:12px 0}.production-card{min-height:150px;padding:9px 10px 8px}.production-plate{font-size:20px;margin-top:5px}.production-vehicle{margin:3px 0 5px}.production-status{padding:4px 6px}.production-technician{margin-top:6px;padding-top:6px;flex-direction:row;align-items:baseline;gap:7px}.production-technician span{font-size:8px}.production-card-actions{padding-top:7px}.production-card-actions button{padding:5px 7px}}
@media(min-width:1201px){.production-card-top{display:none}.production-plate{margin-top:0}}
/* Registro de trabajos y repuestos junto al tablero. */
.production-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,330px);gap:16px;align-items:start}.production-vehicles{min-width:0}.production-layout .production-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.production-card.production-selected{box-shadow:0 0 0 2px #253b4d,0 4px 12px #26374716}.production-card-actions button{min-width:0;padding:5px 4px;font-size:10px}.production-details{background:#fff;border:1px solid #dce3ea;border-radius:10px;padding:17px;box-shadow:0 2px 8px #2637470a;min-width:0}.production-detail-heading{display:flex;align-items:start;justify-content:space-between;gap:8px;padding-bottom:14px;border-bottom:1px solid #e9edf1}.production-detail-heading span:first-child{font-size:9px;color:#8b98a5;font-weight:800;letter-spacing:.8px}.production-detail-heading h2{font-size:22px;letter-spacing:1px;margin:5px 0 2px}.production-detail-heading p{font-size:12px;color:#697887;margin:0}.detail-status{padding:5px 7px;border-radius:5px;background:#edf2f6;font-size:10px;font-weight:700;line-height:1.3}.state-text-red{color:#aa2638;background:#fff0f2}.state-text-yellow{color:#946300;background:#fff7df}.state-text-blue{color:#245e9d;background:#e9f3ff}.state-text-green{color:#0b7545;background:#e5f8ee}.production-totals{padding:16px 0 13px;border-bottom:1px solid #e9edf1}.production-totals h3,.production-item-form h3{margin:0 0 12px;font-size:14px}.production-totals div{display:flex;justify-content:space-between;gap:10px;margin:8px 0;font-size:12px;color:#617181}.production-totals div strong{color:#273746}.production-totals div.production-total{border-top:1px solid #e5eaf0;margin:11px 0 0;padding-top:11px;color:#253341;font-size:13px;font-weight:700}.production-total strong{color:#10804d!important;font-size:19px}.production-items{max-height:280px;overflow:auto}.production-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 0;border-bottom:1px solid #edf0f3;font-size:12px}.production-item-description{display:flex;flex-direction:column;gap:4px;min-width:0}.production-item-description span{color:#a31a2d;font-size:9px;letter-spacing:.6px;font-weight:800}.production-item-description strong{overflow-wrap:anywhere}.production-item-description small{font-size:10px}.production-item-actions{grid-column:1/-1;display:flex;gap:6px}.production-item-actions button{padding:4px 8px;font-size:10px}.production-no-items,.production-detail-empty p{font-size:12px;line-height:1.5;color:#7a8794}.production-item-form{margin-top:16px}.production-item-form label{margin:10px 0;font-weight:650;color:#566675}.production-item-form input,.production-item-form select{padding:9px;font-size:12px}.production-item-form p{font-size:10px;color:#83909d;line-height:1.45}.production-input-row{display:grid;grid-template-columns:1fr 1.4fr;gap:8px}.production-form-actions{display:flex;gap:7px}.production-form-actions button{font-size:12px;padding:9px}.production-delete-order{display:block;width:100%;margin-top:18px;color:#b32435;border-color:#e9c8ce;background:#fff8f9;font-size:11px;font-weight:700;padding:9px}.production-detail-empty h2{font-size:16px;margin:0 0 8px}
@media(max-width:1000px){.production-layout{grid-template-columns:1fr}.production-details{max-width:none}.production-layout .production-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}@media(max-width:580px){.production-layout .production-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.production-details{padding:14px}.production-card-actions button{font-size:9px;padding:5px 3px}}@media(max-width:320px){.production-layout .production-grid{grid-template-columns:1fr}}
/* Tarjetas completas pulsables y pantalla amplia para registrar gastos. */
.production-card-main{display:flex;flex-direction:column;align-items:stretch;text-align:left;flex:1;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:inherit;min-width:0}.production-card-main:hover{filter:none}.production-card-main:focus-visible{outline:2px solid #263f54;outline-offset:3px}.production-card-main .production-technician{width:100%}.production-card-main .production-vehicle{width:100%}.production-card-main .production-status{display:block}.production-detail-page{max-width:1450px;margin:0 auto}.production-detail-title{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px}.production-detail-title h1{font-size:29px}.production-detail-title p{font-size:13px;color:#6e7b89;margin:7px 0 0}.production-details-full{display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,360px);grid-template-areas:'heading heading' 'form totals' 'items totals' 'items delete';gap:18px;padding:24px;align-items:start}.production-details-full .production-detail-heading{grid-area:heading}.production-details-full .production-item-form{grid-area:form;margin:0;padding:18px;background:#f7f9fb;border:1px solid #e5eaf0;border-radius:9px}.production-details-full .production-item-form h3{font-size:17px}.production-details-full .production-item-form label{font-size:13px}.production-details-full .production-item-form input,.production-details-full .production-item-form select{font-size:15px;padding:11px}.production-details-full .production-form-actions button{font-size:14px;padding:10px 16px}.production-details-full .production-items{grid-area:items;max-height:none;overflow:visible}.production-details-full .production-totals{grid-area:totals;padding:18px;border:1px solid #e5eaf0;border-radius:9px;background:#f9fbfc}.production-details-full .production-totals h3{font-size:15px}.production-details-full .production-totals div{font-size:14px;margin:12px 0}.production-details-full .production-total strong{font-size:23px}.production-details-full .production-delete-order{grid-area:delete;margin:0}.app-back{margin:0 0 18px}.app-back button{border:0;background:transparent;padding:5px 0;color:#aa1b30;font-weight:700;font-size:13px}.app-back button:hover{text-decoration:underline}.app-back button:focus-visible{outline:2px solid #aa1b30;outline-offset:3px}
@media(max-width:850px){.production-details-full{grid-template-columns:1fr;grid-template-areas:'heading' 'form' 'totals' 'items' 'delete';gap:14px;padding:16px}.production-detail-title{align-items:flex-start;flex-direction:column}.production-detail-title h1{font-size:24px}.production-details-full .production-item-form{padding:14px}.production-details-full .production-totals{padding:14px}}
