#editor .service-filter-status-columns,
#editor .service-filter-status-field {
  grid-template-columns: minmax(160px, 1.8fr) repeat(3, minmax(70px, 1fr)) minmax(104px, 1.1fr);
}
#editor .service-filter-customer-option {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-left: 1px solid var(--line);
}
#editor .service-filter-customer-option input,
#editor .material-origin-check input[type="checkbox"] {
  appearance: auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: #c90035;
}
#editor .service-filter-customer-option input:disabled { opacity: .35; }
#editor .service-filter-customer-mobile { display: none; }
#editor .material-origin-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  min-height: 26px;
  padding: 4px 0;
}
#editor .material-origin-check input { margin-top: 1px; }
#editor .material-origin-check span { min-width: 0; }
#editor .material-client-legend {
  padding: 10px 12px;
  background: #f2f5f5;
  border-radius: 4px;
  color: var(--ink);
}
#editor .used-part-info .material-origin-check { margin: 2px 0 0; }
#editor [data-service-fluid-custom][hidden] { display: none; }

#editor .order-service-oils-grid {
  display: block;
  border: 1px solid #d7dee1;
  border-radius: 6px;
  overflow: hidden;
}
#editor .service-oils-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
}
#editor .service-oil-label-column { width: 22%; }
#editor .service-oil-quantity-column { width: 100px; }
#editor .service-oil-origin-column { width: 140px; }
#editor .service-oils-table thead { background: #f3f6f7; }
#editor .service-oils-table thead th {
  color: #65737b;
  font-size: 11px;
  font-weight: 800;
  padding: 10px;
  text-align: left;
  text-transform: uppercase;
}
#editor .service-oils-table thead th:last-child { text-align: center; }
#editor .service-oil-field { display: table-row; }
#editor .service-oil-field > th,
#editor .service-oil-field > td {
  padding: 10px;
  border: 0;
  border-top: 1px solid #e1e6e8;
  vertical-align: middle;
  background: var(--panel);
  overflow-wrap: anywhere;
}
#editor .service-oil-field > th { text-align: left; }
#editor .service-oil-field > th label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
#editor .service-oil-field select,
#editor .service-oil-field input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cbd5da;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
#editor .service-oil-quantity-control { position: relative; }
#editor .service-oil-quantity-control input {
  padding-right: 24px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
#editor .service-oil-quantity-control input::-webkit-inner-spin-button { appearance: none; }
#editor .service-oil-quantity-control > span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}
#editor .service-oil-quantity-control input:disabled { background: #eef1f2; color: #9aa5aa; }
#editor .service-oil-origin .material-origin-check {
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0;
  margin: 0;
}
#editor .service-oil-origin .material-origin-check > span { display: none; }
#editor .service-oil-product-name { display: none; }
#editor .service-oil-product [data-service-fluid-custom]:not([hidden]),
#editor .service-oil-product [data-service-fluid-status]:not([hidden]) { display: block; margin-top: 8px; }
#editor .service-oil-product [data-service-fluid-status][hidden] { display: none; }
#editor .service-oil-field [data-service-fluid-custom][hidden] { display: none; }
#editor .service-oils-stock-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
}
@media (max-width: 760px) {
  #editor .service-oils-table,
  #editor .service-oils-table tbody { display: block; }
  #editor .service-oils-table colgroup,
  #editor .service-oils-table thead { display: none; }
  #editor .service-oil-field {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 14px;
    border-top: 1px solid #e1e6e8;
    background: var(--panel);
  }
  #editor .service-oil-field:first-child { border-top: 0; }
  #editor .service-oil-field > th,
  #editor .service-oil-field > td { display: block; padding: 0; border: 0; }
  #editor .service-oil-field > th,
  #editor .service-oil-field .service-oil-product { grid-column: 1 / -1; }
  #editor .service-oil-product::before,
  #editor .service-oil-quantity::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
  #editor .service-oil-product-name:not(:empty) { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
  #editor .service-oil-origin { align-self: end; }
  #editor .service-oil-origin .material-origin-check { justify-content: flex-end; gap: 10px; }
  #editor .service-oil-origin .material-origin-check > span { display: block; }
  #editor .service-oil-field select,
  #editor .service-oil-field input:not([type="checkbox"]) { height: 44px; min-height: 44px; font-size: 16px; }
  #editor .service-filter-status-columns { display: none; }
  #editor .service-filter-status-field { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); }
  #editor .service-filter-name { grid-column: 1 / -1; }
  #editor .service-filter-option { flex-direction: column; border-left: 0; gap: 7px; justify-content: flex-start; }
  #editor .service-filter-option::before { content: attr(title); font-size: 0; }
  #editor .service-filter-option.is-na::before { content: 'No aplica'; font-size: 11px; }
  #editor .service-filter-option.is-reviewed::before { content: 'Revisado'; font-size: 11px; }
  #editor .service-filter-option.is-changed::before { content: 'Cambiado'; font-size: 11px; }
  #editor .service-filter-customer-option { flex-direction: column; border-left: 0; gap: 6px; padding: 8px 2px; justify-content: flex-start; }
  #editor .service-filter-customer-mobile { display: block; text-align: center; font-size: 11px; }
}
@media (pointer: coarse) {
  #editor .material-origin-check { min-height: 44px; align-items: center; }
  #editor .service-oil-field select,
  #editor .service-oil-field input:not([type="checkbox"]) { min-height: 44px; font-size: 16px; }
}
