/* SEC ERP V5.70 — compact table action/status standard
   Compact controls only; never forces data columns to collapse. */
:root{--sec-row-h:28px;--sec-action-h:20px;--sec-action-font:9px;--sec-status-h:20px;--sec-status-font:9px}
table.sec-standard-table{width:100%;max-width:100%;border-collapse:collapse}
table.sec-standard-table thead th{white-space:nowrap}
table.sec-standard-table th,table.sec-standard-table td{vertical-align:middle!important}
table.sec-standard-table tbody tr{height:var(--sec-row-h)!important}
table.sec-standard-table td.sec-action-cell{white-space:nowrap!important;padding:2px 4px!important}
table.sec-standard-table td.sec-action-cell .sec-action-wrap,table.sec-standard-table td.sec-action-cell .row-actions,table.sec-standard-table td.sec-action-cell .actions,table.sec-standard-table td.sec-action-cell .workorder-cell{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:2px!important;margin:0!important}
table.sec-standard-table td.sec-action-cell button,table.sec-standard-table td.sec-action-cell .btn,table.sec-standard-table td.sec-action-cell a.btn,table.sec-standard-table td.sec-action-cell input[type=button],table.sec-standard-table td.sec-action-cell input[type=submit]{box-sizing:border-box!important;width:auto!important;min-width:0!important;max-width:none!important;height:var(--sec-action-h)!important;min-height:var(--sec-action-h)!important;padding:0 4px!important;margin:0!important;border-radius:3px!important;font-size:var(--sec-action-font)!important;line-height:18px!important;white-space:nowrap!important;vertical-align:middle!important}
table.sec-standard-table td.sec-action-cell button:disabled,table.sec-standard-table td.sec-action-cell .btn.disabled,table.sec-standard-table td.sec-action-cell [aria-disabled=true]{opacity:.35!important;cursor:not-allowed!important}
table.sec-standard-table td.sec-status-cell{text-align:center!important;white-space:nowrap!important;padding:2px 4px!important;background:transparent!important;color:inherit!important;font-weight:400!important}
table.sec-standard-table td.sec-status-cell .status-badge,table.sec-standard-table td.sec-status-cell .sec-status-pill,table.sec-standard-table td.sec-status-cell .badge,table.sec-standard-table td.sec-status-cell .pill,table.sec-standard-table td.sec-status-cell .flow-step{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:auto!important;min-width:52px!important;max-width:none!important;height:var(--sec-status-h)!important;padding:0 7px!important;margin:0!important;border:1px solid transparent!important;border-radius:10px!important;font-size:var(--sec-status-font)!important;font-weight:700!important;line-height:18px!important;white-space:nowrap!important;overflow:visible!important}
table.sec-standard-table td.sec-status-cell .status-badge.status-confirmed,table.sec-standard-table td.sec-status-cell[data-sec-status=active] .sec-status-pill,table.sec-standard-table td.sec-status-cell[data-sec-status=done] .sec-status-pill{background:#e4f7ea!important;color:#146b3a!important;border-color:#9ed8b1!important}
table.sec-standard-table td.sec-status-cell .status-badge.status-po,table.sec-standard-table td.sec-status-cell .status-badge.status-draft,table.sec-standard-table td.sec-status-cell[data-sec-status=waiting] .sec-status-pill{background:#fff3d3!important;color:#765100!important;border-color:#e8ca72!important}
table.sec-standard-table td.sec-status-cell[data-sec-status=progress] .sec-status-pill,table.sec-standard-table td.sec-status-cell .status-badge.status-progress{background:#e7f1ff!important;color:#175a91!important;border-color:#a8c7e8!important}
table.sec-standard-table td.sec-status-cell .status-badge.status-fail,table.sec-standard-table td.sec-status-cell .status-badge.status-cancel,table.sec-standard-table td.sec-status-cell[data-sec-status=cancel] .sec-status-pill{background:#fde9e9!important;color:#a12c2c!important;border-color:#e8aaaa!important}
table.sec-standard-table td.sec-status-cell[data-sec-status=neutral] .sec-status-pill{background:#eef2f5!important;color:#47545e!important;border-color:#cad3da!important}
table.sec-standard-table tbody td input:not([type=checkbox]):not([type=radio]),table.sec-standard-table tbody td select{min-height:22px}
.brand .brand-sec{color:#d71920!important}


/* V5.72 — summary toolbar standard: add button left, search/filter right on one row */
.summary-toolbar{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;width:100%!important;margin-bottom:8px!important}
.summary-toolbar>.inline-summary-field{display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;white-space:nowrap!important}
.summary-toolbar>.inline-summary-field:first-of-type{margin-left:auto!important}
.summary-toolbar>.inline-summary-field label{margin:0!important;white-space:nowrap!important}
.summary-toolbar>.inline-summary-field input{width:260px!important;max-width:32vw!important;min-width:150px!important}
.summary-toolbar>.inline-summary-field select{width:auto!important;min-width:120px!important}
@media(max-width:900px){.summary-toolbar{flex-wrap:wrap!important}.summary-toolbar>.inline-summary-field:first-of-type{margin-left:0!important}.summary-toolbar>.inline-summary-field input{max-width:100%!important}}

/* V5.74 — form action toolbar style, aligned with Today-like sales form buttons */
.sec-form-toolbar{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin-bottom:10px!important}
.sec-form-toolbar button,.sec-form-toolbar .btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;min-width:0!important;height:34px!important;min-height:34px!important;
  padding:0 13px!important;margin:0!important;border:1px solid #9fbfd7!important;
  border-radius:5px!important;background:#e8f3fb!important;color:#17344d!important;
  font-size:14px!important;font-weight:700!important;line-height:32px!important;
  white-space:nowrap!important;box-shadow:none!important;cursor:pointer!important
}
.sec-form-toolbar button:hover,.sec-form-toolbar .btn:hover{background:#dcecf8!important;border-color:#7fa9c7!important}
.sec-form-toolbar button:disabled,.sec-form-toolbar .btn:disabled,.sec-form-toolbar [aria-disabled="true"]{
  opacity:.42!important;cursor:not-allowed!important;filter:grayscale(.15)!important
}
.sec-form-toolbar .btn-danger,.sec-form-toolbar button.btn-danger{
  background:#fff0f0!important;border-color:#e4b0b0!important;color:#9c2d2d!important
}
.sec-form-toolbar .btn-danger:hover,.sec-form-toolbar button.btn-danger:hover{background:#fde3e3!important;border-color:#d58f8f!important}
.sec-form-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-right:7px!important;font-size:15px!important;line-height:1!important}
.sec-form-label{display:inline-block!important;line-height:1!important}
