.ot-heading-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
#load-manual-order[hidden], #edit-manual-order[hidden], #detail-imported-section[hidden], #detail-manual-section[hidden], #detail-materials-section[hidden], #detail-observations-section[hidden], #maintenance-manual-details[hidden], #manual-order-error[hidden] { display: none !important; }
.ot-materials-modal, .manual-order-modal { border: 0; border-radius: 8px; padding: 0; max-height: calc(100dvh - 24px); overflow: auto; background: #fff; }
.ot-materials-modal { width: min(520px, calc(100vw - 24px)); }
.manual-order-modal { width: min(1000px, calc(100vw - 24px)); }
.ot-materials-modal::backdrop, .manual-order-modal::backdrop { background: rgba(18, 30, 45, .58); }
.ot-materials-modal .modal-head h2 { font-size: 1.3rem; }
.ot-materials-body, .manual-order-body { padding: 20px; }
.ot-materials-inputs { display: grid; gap: 12px; }
.ot-material-stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e5eaf0; }
.ot-material-stepper-row > label { margin: 0; color: #213247; font-size: 1rem; font-weight: 700; text-transform: none; }
.ot-material-stepper { display: grid; grid-template-columns: 42px 85px 42px; align-items: center; gap: 8px; }
.ot-material-stepper .icon-button { width: 42px; height: 42px; min-height: 42px; padding: 9px; }
.ot-material-stepper input { width: 100%; height: 42px; min-width: 0; text-align: center; padding: 6px 2px; border: 1px solid #d8e1eb; border-radius: 6px; font-size: 1rem; font-weight: 700; -moz-appearance: textfield; }
.ot-material-stepper input::-webkit-inner-spin-button, .ot-material-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ot-material-summary { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); gap: 12px; }
.ot-material-summary-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5eaf0; color: #33465a; }
.ot-material-summary-item strong { font-size: 1.1rem; color: #14263d; }
.ot-observations-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ot-manual-form-details { padding: 18px 24px; background: #fff; border-bottom: 1px solid #e2e8ef; }
.manual-order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.manual-order-grid label { display: grid; gap: 7px; color: #516477; font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.manual-order-grid input, .manual-order-grid select, .manual-order-grid textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #d8e1eb; border-radius: 6px; color: #1c3046; font: inherit; font-size: .96rem; font-weight: 500; text-transform: none; }
.manual-order-grid input[readonly] { background: #f2f5f8; }
.manual-order-wide { grid-column: 1 / -1; }
.ot-workflow-error { padding: 12px; color: #9a1427; background: #fff1f3; border-radius: 6px; }
@media (max-width: 760px) { .manual-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ot-material-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ot-heading-actions { gap: 10px; } }
@media (max-width: 480px) { .manual-order-grid { grid-template-columns: 1fr; } .ot-material-stepper { grid-template-columns: 36px 68px 36px; gap: 5px; } .ot-material-stepper .icon-button { width: 36px; } .ot-materials-body, .manual-order-body { padding: 14px; } .ot-materials-body .form-actions, .manual-order-body .form-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 16px 0 0; } .ot-heading-actions { width: 100%; justify-content: flex-start; } }
