.al-tabs{display:flex;gap:12px;margin:20px 0;flex-wrap:wrap}.al-tabs .button{flex:1;min-width:200px;padding:18px;font-size:19px}.al-tabs [aria-selected=true]{background:#0b61aa;color:white;border:2px solid #084a85}.cr-badge{display:inline-block;background:#fff0c7;color:#7c4b00;padding:9px 12px;border-radius:8px;font-weight:800}.cr-order{border-left:6px solid #db950e}.cr-destination{font-weight:750;font-size:20px;color:#16466c}.cr-materials summary{cursor:pointer;font-weight:750;padding:15px 0}.cr-materials td:last-child{min-width:250px}.cr-materials small,.pt-table small{display:block;color:#61758b;margin-top:4px}.pt-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:20px 0}.pt-metric{background:#edf5fd;border:1px solid #d2e4f4;padding:20px;border-radius:14px}.pt-metric strong{display:block;font-size:29px;color:#123d65;margin-top:8px}.pt-table{width:100%;border-collapse:collapse;min-width:1080px}.pt-table th,.pt-table td{padding:13px 12px;text-align:left;border-bottom:1px solid #e0e8f1;vertical-align:top}.pt-table th{background:#edf5fd;color:#173d63}.pt-table tbody tr:hover{background:#f8fbff}.pt-table .button{padding:9px 12px;white-space:nowrap}.pt-summary{margin-top:24px}.pt-note{background:#fff5d9;border-left:4px solid #de9c1f;padding:16px;border-radius:10px}.pt-filters{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.pt-filters label{flex:1;min-width:200px}.pt-detail{margin-top:24px}.pt-detail article{border:1px solid #dbe7f3;border-radius:12px;padding:18px;margin:12px 0}.pt-detail h4{margin-top:0}.pt-detail .actions{flex-wrap:wrap}.pt-table tfoot{font-weight:800;background:#e6f1fb}.cr-panel,.pt-panel{min-width:0}.cr-panel .sp-controls select{max-width:100%}@media(max-width:600px){.al-tabs .button{min-width:135px;font-size:17px;padding:15px 10px}.cr-order{padding:15px}.cr-destination{font-size:18px}.pt-metrics{grid-template-columns:1fr 1fr}.pt-metric{padding:14px}.pt-metric strong{font-size:23px}.pt-panel .sp-controls{display:grid;grid-template-columns:1fr}.pt-panel .sp-field{min-width:0}}

.pt-table th:first-child,.pt-table td:first-child{position:sticky;left:0;background:#fff;min-width:190px;box-shadow:2px 0 3px #d7e3ef;z-index:1}.pt-table th:first-child{background:#edf5fd}

.pt-orders-modal{position:fixed;inset:0;margin:auto;width:min(880px,calc(100vw - 32px));max-height:90vh;max-height:90dvh;padding:24px;border:0;border-radius:18px;background:#fff;color:#173d63;box-shadow:0 24px 80px #051b3e55;box-sizing:border-box;overflow:auto}
.pt-orders-modal::backdrop{background:#08234088}
.pt-orders-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.pt-orders-head h3{margin:0;font-size:23px;line-height:1.25;overflow-wrap:anywhere}.pt-orders-head p{margin:6px 0 0}.pt-orders-head .button{flex-shrink:0}
.pt-orders-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:16px}.pt-orders-table th,.pt-orders-table td{padding:11px 12px;text-align:left;vertical-align:middle;border-bottom:1px solid #dbe6f0;overflow-wrap:anywhere;line-height:1.3}.pt-orders-table th{background:#edf5fd;color:#173d63;font-size:14px}.pt-orders-table th:first-child{width:48%}.pt-orders-table th:nth-child(2){width:28%}.pt-orders-table th:last-child{width:24%}.pt-orders-table td:last-child,.pt-orders-table th:last-child{text-align:right}.pt-orders-table td:last-child{font-weight:750;font-variant-numeric:tabular-nums}.pt-orders-table tbody tr:nth-child(even){background:#f8fbfe}
.pt-orders-nav{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px}.pt-orders-nav[hidden]{display:none}.pt-orders-nav .button{padding:9px 12px}.pt-orders-nav span{text-align:center}
@media(max-width:600px){.pt-orders-modal{padding:15px;width:calc(100vw - 20px);border-radius:13px}.pt-orders-head{gap:10px}.pt-orders-head h3{font-size:18px}.pt-orders-head .button{padding:9px 10px;font-size:14px}.pt-orders-table{font-size:14px}.pt-orders-table th,.pt-orders-table td{padding:10px 7px}.pt-orders-table th{font-size:12px}.pt-orders-nav .button{padding:8px;font-size:13px}.pt-orders-nav span{font-size:12px}}

.ta-modal{width:min(900px,calc(100vw - 24px))}.ta-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:15px}.ta-table th,.ta-table td{padding:10px;border-bottom:1px solid #dbe6f0;text-align:left;overflow-wrap:anywhere}.ta-table th{background:#edf5fd}.ta-table th:first-child{width:48%}.ta-modal .actions{display:flex;flex-wrap:wrap;gap:12px}.ta-modal li{overflow-wrap:anywhere}.ta-modal .notice{font-size:16px}.ta-modal .button:disabled{opacity:.55;cursor:default}@media(max-width:600px){.ta-table{font-size:13px}.ta-table th,.ta-table td{padding:8px 5px}.ta-modal .actions .button{flex:1;min-width:100px}}

/* V61: motivo de valoración visible en el detalle de la producción. */
.pt-orders-table th:first-child{width:31%}.pt-orders-table th:nth-child(2){width:19%}.pt-orders-table th:nth-child(3){width:18%}.pt-orders-table th:nth-child(4){width:32%}
.pt-orders-table th:nth-child(3),.pt-orders-table td:nth-child(3){text-align:right;font-variant-numeric:tabular-nums;font-weight:750}
.pt-orders-table th:nth-child(4),.pt-orders-table td:nth-child(4){text-align:left;font-weight:400;overflow-wrap:anywhere}
@media(max-width:600px){.pt-orders-table th:first-child{width:27%}.pt-orders-table th:nth-child(2){width:19%}.pt-orders-table th:nth-child(3){width:21%}.pt-orders-table th:nth-child(4){width:33%}.pt-orders-table td:nth-child(4){font-size:12px}}
