/* Finance > Asset Inspections list + review ("Asset Inspections Workflow" design, Steps 3-4). */
.air-page { padding-bottom: 32px; }
.air-page h1 { margin: 0 0 4px; font-size: 30px; font-weight: 800; }
.air-lead { margin: 0 0 16px; color: #555; }

/* ---- List ---- */
.air-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.air-ranges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.air-ranges .btn { min-height: 36px; }
.air-ranges .btn.active { background: #337ab7; border-color: #2e6da4; color: #fff; font-weight: 700; box-shadow: none; }
.air-field { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; color: #444; }
.air-field .form-control { width: auto; min-width: 120px; font-weight: 400; }
.air-field--grow { flex: 1 1 260px; }
.air-field--grow .form-control { flex: 1; }
.air-table { margin-bottom: 0; }
.air-table > thead > tr > th { background: #eee; font-size: 12px; font-weight: 800; white-space: nowrap; }
.air-table > tbody > tr { cursor: pointer; }
.air-table > tbody > tr > td { vertical-align: middle; }
.air-rego { font-weight: 700; }
.air-pass { color: #1e7e34; font-weight: 800; }
.air-fail { color: #c62828; font-weight: 800; }
.air-muted { color: #888; }
.air-view { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #333; }
.air-view:hover { color: #337ab7; }
.air-empty { padding: 40px 16px; text-align: center; color: #666; }
.air-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; color: #555; font-size: 13px; }
.air-footer .pagination { margin: 0; }

/* ---- Asset class badge (Asset Registry list + detail) ---- */
.ar-class { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; background: #f1f3f5; color: #475467; }
.ar-class .fa { font-size: 12px; opacity: .85; }
.ar-class__type, .ar-class__sub { text-transform: capitalize; }
.ar-class__sub { padding-left: 7px; border-left: 1px solid currentColor; font-weight: 500; opacity: .85; }
.ar-class--vehicle { background: #e8f1fb; color: #1d4f91; }
.ar-class--plant { background: #fff4e5; color: #8a4b00; }
.ar-class--equipment { background: #f3eefc; color: #5b3a99; }
.ar-class--other { background: #f1f3f5; color: #475467; }

/* ---- Asset Detail: Out of Service banner + history (O4TD-350) ---- */
/* Bootstrap's fixed 750/970 px .container overflows beside the sidebar on tablets: fit the space instead. */
.air-detail.container { width: auto; max-width: 1170px; }
.air-oos-badge { background: #c62828; font-size: 12px; vertical-align: middle; letter-spacing: .4px; }
.air-oos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #F2B8B2; border-left: 4px solid #c62828; border-radius: 4px; background: #FDECEA; color: #5C130D; }
.air-oos > .fa { font-size: 20px; color: #c62828; }
.air-oos__text { flex: 1 1 320px; min-width: 0; line-height: 1.45; }
.air-history { margin-top: 24px; }
.air-history h3 { font-weight: 800; }

/* ---- Review ---- */
.air-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.air-head h1 { margin: 0; font-size: 26px; }
.air-head__type { margin-left: auto; color: #555; font-size: 13px; }
.air-status { font-size: 11px; letter-spacing: .4px; padding: 5px 9px; }
.air-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid #ddd; border-radius: 4px; margin-bottom: 10px; background: #fff; }
.air-strip > div { padding: 10px 14px; border-right: 1px solid #eee; min-width: 0; }
.air-strip > div:last-child { border-right: 0; }
.air-strip dt { font-size: 11px; font-weight: 400; color: #555; }
.air-strip dd { margin: 0; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.air-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.air-flag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 3px; background: #fff8e1; border: 1px solid #f0c36d; color: #6B3A00; }
.air-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.air-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 8px; }
.air-section-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.air-answer { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 3px; color: #fff; letter-spacing: .3px; }
.air-answer--pass { background: #1e7e34; }
.air-answer--fail { background: #c62828; }
.air-answer--na { background: #5f6368; }
.air-row--fail > td { background: #fff5f5 !important; }
.air-photo-link { font-size: 12px; font-weight: 700; padding: 0; border: 0; background: none; color: #1565c0; }
.air-unresolved { font-size: 11px; font-weight: 800; color: #9b1c1c; }
.air-resolved { font-size: 12px; font-weight: 700; color: #1e7e34; }
.air-resolved__note { font-weight: 400; color: #444; overflow-wrap: anywhere; }
.air-resolve { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.air-resolve__open { padding: 0; font-weight: 700; }
.air-resolve__form { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.air-resolve__form .form-control { flex: 1 1 160px; min-width: 0; }
.air-damage { margin-top: 12px; padding: 12px 14px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
.air-damage h3 { margin: 0 0 4px; font-size: 13px; font-weight: 800; }
.air-damage p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.air-result { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 3px; }
.air-result--go { background: #E3F4EA; color: #005C28; }
.air-result--hold { background: #FFF3DF; color: #6B3A00; }
.air-result--stop { background: #FDECEA; color: #7A1A12; }

.air-panel { border: 1px solid #ddd; border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.air-panel h2 { margin: 0; font-size: 17px; font-weight: 800; }
.air-signoff { display: flex; flex-direction: column; gap: 12px; }
.air-panel fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.air-panel legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; border: 0; }
.air-option { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; font-weight: 400; padding: 10px; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }
.air-option input { margin: 2px 0 0; accent-color: #1565c0; }
.air-option--tagout input { accent-color: #c62828; }
.air-option.on { border-width: 2px; padding: 9px; border-color: #1565c0; background: #f2f7fd; }
.air-option--tagout.on { border-color: #c62828; background: #fdecea; }
.air-panel label.air-label { font-size: 13px; font-weight: 700; margin: 0; display: flex; flex-direction: column; gap: 6px; }
/* Same as the Employee Portal fix: no resize grip or sideways scroll; grows with the text, scrolls only past max-height. */
/* the label is bold; the field and its placeholder are not */
.air-panel label.air-label textarea { font-weight: 400; }
.air-panel textarea::placeholder { font-weight: 400; }
.air-panel textarea { resize: none; overflow-x: hidden; overflow-y: auto; overflow-wrap: anywhere; field-sizing: content; min-height: 90px; max-height: 240px; }
.air-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px; border: 1px solid #bbb; border-radius: 4px; background: #f7f9fc; font-size: 13px; font-weight: 400; cursor: pointer; }
.air-confirm input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; }
.air-missing { border-color: #FA9D11 !important; box-shadow: 0 0 0 1px #FA9D11; }
.air-signer { font-size: 12px; color: #555; }
.air-btn-signoff { min-height: 44px; font-weight: 800; }
.air-note { margin: 0; font-size: 12px; color: #444; background: #fff8e1; border: 1px solid #f0c36d; border-radius: 4px; padding: 8px 10px; }
.air-error { margin: 0; font-size: 12px; font-weight: 700; color: #9b1c1c; }
.air-record { display: flex; flex-direction: column; gap: 14px; }
.air-record__state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: #1e7e34; }
.air-record__state .fa { font-size: 16px; }
.air-decision { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; border: 1px solid; }
.air-decision .fa { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 14px; }
.air-decision--FIT_FOR_USE { background: #E3F4EA; border-color: #A9DDBE; color: #003D1A; }
.air-decision--FIT_FOR_USE .fa { background: #1e7e34; }
.air-decision--TAG_OUT { background: #FDECEA; border-color: #F2B8B2; color: #5C130D; }
.air-decision--TAG_OUT .fa { background: #c62828; }
.air-decision__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; opacity: .75; }
.air-decision__title { font-size: 16px; font-weight: 800; line-height: 1.25; }
.air-decision__sub { font-size: 13px; }
.air-person { display: flex; align-items: center; gap: 10px; }
.air-avatar { width: 36px; height: 36px; border-radius: 50%; background: #1565c0; color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.air-person__name { font-size: 14px; font-weight: 800; }
.air-person__meta { font-size: 12px; color: #555; }
.air-comment { margin: 0; }
.air-comment figcaption { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #555; margin-bottom: 4px; }
.air-comment blockquote { margin: 0; padding: 10px 12px; border: 0; border-left: 3px solid #1565c0; border-radius: 0 4px 4px 0; background: #f7f9fc; font-size: 13px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.air-callout { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 4px; font-size: 13px; line-height: 1.4; }
.air-callout .fa { margin-top: 2px; }
.air-callout--open { background: #fff8e1; border: 1px solid #f0c36d; color: #4A2800; }
.air-callout--closed { background: #f1f3f4; border: 1px solid #d5d8db; color: #3c4043; }

.air-viewer { position: fixed; inset: 0; z-index: 1050; background: rgba(0, 0, 0, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 16px 24px; gap: 12px; }
.air-viewer img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; }
.air-viewer__caption { color: #fff; font-weight: 600; text-align: center; }
.air-viewer__close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; }

/* Tablet: sign-off panel below the checklist; strip in 3 columns. */
@media (max-width: 1100px) {
  .air-layout { grid-template-columns: 1fr; }
  .air-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .air-strip > div:nth-child(3n) { border-right: 0; }
  .air-strip > div:nth-child(-n+3) { border-bottom: 1px solid #eee; }
}
/* Phone: stacked filters, 2-column strip, tables become cards. */
@media (max-width: 767px) {
  .air-page h1 { font-size: 24px; }
  .air-filters { flex-direction: column; flex-wrap: nowrap; align-items: stretch; } /* column+wrap makes Chrome size rows as if every button stacked */
  .air-ranges .btn { flex: 1 1 calc(50% - 6px); min-height: 44px; }
  .air-field, .air-field--grow { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; flex: 0 0 auto; }
  .air-field .form-control { width: 100%; min-width: 0; min-height: 44px; }
  .air-filters > .btn { min-height: 44px; }
  .air-head__type { margin-left: 0; width: 100%; }
  .air-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .air-strip > div { border-right: 0; border-bottom: 1px solid #eee; }
  .air-cards thead { display: none; }
  .air-cards, .air-cards tbody { display: block; }
  .air-cards > tbody > tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; border-bottom: 1px solid #ddd; }
  /* Bootstrap 3 forces nowrap on cells inside .table-responsive below 768px; cards must wrap. */
  .air-cards > tbody > tr > td { display: block; border: 0 !important; padding: 0 !important; white-space: normal !important; overflow-wrap: anywhere; }
  .air-cards { width: 100%; }
  .air-cards > tbody > tr > td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: #555; }
  .air-cards .air-card-title { grid-column: 1; order: -2; font-size: 16px; }
  .air-cards .air-card-status { grid-column: 2; order: -1; text-align: right; }
  .air-cards .air-card-view { display: none !important; } /* the whole card opens the review */
  .air-cards > tbody > tr.air-row--fail { background: #fff5f5; border-left: 3px solid #c62828; }
  .air-cards > tbody > tr.air-row--fail > td { background: transparent !important; }
  .air-cards .air-card-full { grid-column: 1 / -1; }
  .air-view, .air-btn-signoff, .air-photo-link, .air-resolve .btn, .air-resolve .form-control { min-height: 44px; min-width: 44px; }
}
.air-last-reading { margin: -4px 0 12px; font-size: 13px; color: #374151; }
.air-option-note { margin: 0; font-size: 12px; }
.air-delete { align-self: flex-start; padding: 6px 0; color: #b91c1c; font-size: 13px; }
.air-delete:hover, .air-delete:focus { color: #7f1d1d; }
