#firmware { letter-spacing: 0; }
#firmware [hidden] { display: none !important; }
#firmware .fw-heading, #firmware .fw-actions, #firmware .fw-pager { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#firmware .fw-heading { justify-content: space-between; margin-bottom: 18px; }
#firmware h2 { margin: 0; font-size: 22px; }
#firmware .fw-tabs { display: flex; border-bottom: 1px solid #cfdadc; margin-bottom: 18px; gap: 16px; }
#firmware .fw-tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 10px 4px; font: inherit; color: #53666b; cursor: pointer; }
#firmware .fw-tabs button[aria-selected="true"] { color: #007c73; border-color: #007c73; font-weight: 700; }
#firmware .fw-filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(110px, 1fr)); gap: 12px; margin: 16px 0; }
#firmware label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
#firmware input:not([type="checkbox"]), #firmware select { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #b8c9cd; border-radius: 5px; background: white; color: #172b32; padding: 8px 10px; font: inherit; }
#firmware input[type="checkbox"] { width: 18px; height: 18px; accent-color: #007c73; }
#firmware .fw-icon { width: 40px; height: 40px; padding: 0; font-size: 22px; flex: 0 0 40px; }
#firmware .fw-actions { margin: 14px 0; }
#firmware label.fw-select-all { flex-direction: row; align-items: center; gap: 8px; min-height: 40px; cursor: pointer; }
#firmware .fw-actions .fw-selection { font-size: 14px; color: #53666b; }
#firmware .fw-pager { justify-content: flex-end; margin-top: 12px; }
#firmware .fw-pager span { margin-right: auto; font-size: 14px; }
#firmware table { min-width: 920px; }
#firmware th, #firmware td { vertical-align: top; font-size: 13px; padding: 10px; }
#firmware td { max-width: 320px; overflow-wrap: anywhere; }
#firmware .fw-package { display: block; color: #65767d; margin-top: 4px; font-size: 12px; }
#firmware .fw-check { width: 40px; }
#firmware .fw-code { font-family: Consolas, monospace; white-space: nowrap; }
#firmware .fw-state { font-weight: 600; }
#firmware .fw-state.available { color: #087548; }
#firmware .fw-state.not_catalogued, #firmware .fw-state.missing_file { color: #a43c2f; }
#firmware .fw-state.no_data { color: #805c0a; }
#firmware .fw-message { padding: 12px 0; color: #176b63; overflow-wrap: anywhere; }
#firmware .fw-message[data-error="true"] { color: #a32935; }
#firmware .fw-vin-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
#firmware .fw-vin-form label { flex: 0 1 330px; }
#firmware .fw-report { margin: 16px 0; max-width: 760px; }
#firmware .fw-summary { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 14px 0; border-top: 1px solid #cfdadc; border-bottom: 1px solid #cfdadc; }
#firmware .fw-warning { margin: 12px 0; color: #805c0a; }
#firmware .fw-analysis-filter { max-width: 330px; }
#firmware .table-wrap { overflow-x: auto !important; max-width: 100%; }
#firmware table { display: table !important; min-width: 920px !important; width: 100%; table-layout: auto; }
#firmware thead { display: table-header-group !important; }
#firmware tbody { display: table-row-group !important; }
#firmware tr { display: table-row !important; margin: 0; border-radius: 0; box-shadow: none; }
#firmware th, #firmware td { display: table-cell !important; width: auto; }
#firmware td::before { display: none !important; }
@media (max-width: 1100px) { #firmware .fw-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  #firmware .fw-filters { grid-template-columns: minmax(0, 1fr); }
  #firmware .fw-vin-form label { flex: 1 1 100%; }
  #firmware .fw-actions .btn { max-width: 100%; white-space: normal; }
  #firmware .fw-heading h2 { font-size: 20px; }
}
