/* ComponentERP beta, T2794 B9 Part-history panels & dashboard counts (PH-1, RQ-15, DB-1): styles for ce-parthistory.js. Stub created by B0; owned by that batch. */
.ph-host { display: block; min-width: 0; }
.ph-loading, .ph-error { margin: 8px 0; color: var(--muted, #667085); font-size: 13px; }
.ph-error { color: #b42318; }
.ph-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 12px; margin: 4px 0 8px; }
.ph-field { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted, #667085); }
.ph-field input { width: 200px; max-width: 100%; text-transform: uppercase; }
.ph-field select, .ph-field input { min-height: 30px; font-size: 13px; }
.ph-per select { width: 70px; }
.ph-search .check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; min-height: 30px; white-space: nowrap; }
.ph-buttons { display: inline-flex; gap: 6px; }
.ph-buttons button, .ph-actions button, .ph-pager button { min-height: 28px; padding: 2px 10px; font-size: 12px; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.ph-actions .muted { font-size: 12px; }
.ph-table { max-height: 360px; overflow: auto; }
.ph-table table { min-width: 100%; }
.ph-table th, .ph-table td { white-space: nowrap; }
.ph-table td.numeric, .ph-table th.numeric { text-align: right; }
.ph-table td.notes { white-space: normal; min-width: 160px; max-width: 320px; }
.ph-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph-part { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.ph-flag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 9px; background: var(--stripe, #f2f4f7); color: var(--muted, #667085); }
.ph-table tr[data-ph-row] { cursor: pointer; }
.ph-table tr[data-ph-row]:focus-visible { outline: 2px solid var(--blue, #2563eb); outline-offset: -2px; }
.ph-table tr.is-selected td { background: color-mix(in srgb, var(--blue, #2563eb) 14%, transparent); }
.ph-pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 6px; font-size: 12px; color: var(--muted, #667085); }
.ph-pager > span:first-child { margin-right: auto; }
.ph-pager:empty { display: none; }
.ph-count { font-weight: 400; opacity: .8; }
.ph-pics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ph-pics li { display: flex; flex-direction: column; gap: 4px; font-size: 12px; word-break: break-all; }
.ph-thumb { display: flex; align-items: center; justify-content: center; min-height: 110px; border: 1px solid var(--line, #d0d5dd); border-radius: 6px; color: var(--muted, #667085); text-align: center; padding: 6px; }
.ph-thumb img { max-width: 100%; max-height: 160px; }
.qw-vp .ph-host { margin-top: 6px; }
/* dashboard: server counts and loading notes (DB-1) */
.dash-ops-note { font-size: 12px; color: var(--muted, #667085); }
.dash-ops-loading { padding: 18px; color: var(--muted, #667085); }
.dash-server-count { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted, #667085); }
/* T2827: page content follows the width #content has (container "main", base.css), not the viewport; the @media copy keeps dialogs/menus outside #content on the viewport */
@container main (max-width:576px){
  .ph-field input { width: 150px; }
  .ph-table { max-height: 300px; }
}
@media (max-width: 600px){.ph-field input:where(:not(#content *)){ width: 150px; }.ph-table:where(:not(#content *)){ max-height: 300px; }}
