/*
 * Nam Sung V3 - unified dimensions for controls used in Add/Edit mode.
 * One shared declaration across the 12 editing modules, on PC and mobile.
 * Table row remains 30px; control fits INSIDE it at 28px.
 * Column width is intentionally not changed (100% of its existing cell).
 * Search, filters, native date-picker triggers, file pickers, login and
 * the Admin checkbox are outside the selector and stay unchanged.
 */
:root {
  --ns-edit-control-height: 28px;
}

/* Editor fields placed directly in editing table rows, including date,
   number, text and select controls.  Also covers Kiểm tra and Kiểm kho. */
body.app-body .items-table tbody tr.editing-row :is(
  input.inline-input,
  select.inline-input,
  textarea.inline-input,
  input.check-chemical-input
),
/* Auxiliary Materials has 50 editable amount columns and its own row class. */
body.app-body.nvlp-page #itemsTable tbody tr.nvlp-editing td > input,
/* Quản trị uses a form instead of an inline table editor. */
body.app-body.admin-page #editorForm .admin-fields :is(input:not([type="checkbox"]), select),
body.app-body.admin-page .admin-modal-form input:not([type="checkbox"]) {
  box-sizing: border-box !important;
  height: var(--ns-edit-control-height) !important;
  min-height: var(--ns-edit-control-height) !important;
  max-height: var(--ns-edit-control-height) !important;
  line-height: 24px !important;
  font-size: 12px !important;
}

/* The optional text-date + calendar-button wrapper is part of an editor.
   Resize the wrapper too; keep the actual calendar button unchanged. */
body.app-body .items-table tbody tr.editing-row .mobile-date-field {
  box-sizing: border-box;
  height: var(--ns-edit-control-height) !important;
  min-height: var(--ns-edit-control-height) !important;
  max-height: var(--ns-edit-control-height) !important;
}
