.equipment-page-title {
  margin-bottom: 14px;
}
.equipment-query-bar {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.2fr 1fr 0.9fr 1.75fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid #d8e2ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(25, 54, 91, 0.04);
}
.equipment-query-bar label,
.equipment-field-grid label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}
.equipment-query-bar label > span,
.equipment-field-grid label > span {
  color: #53687f;
  font-size: 10px;
  font-weight: 800;
}
.equipment-query-bar input,
.equipment-query-bar select,
.equipment-field-grid input,
.equipment-field-grid select {
  width: 100%;
  height: 36px;
  border: 1px solid #ccd8e5;
  border-radius: 7px;
  background: #fff;
  padding: 0 9px;
  color: #263c55;
  font: inherit;
  font-size: 11px;
  outline: none;
}
.equipment-query-bar input:focus,
.equipment-query-bar select:focus,
.equipment-field-grid input:focus,
.equipment-field-grid select:focus,
.equipment-detail-table textarea:focus,
.equipment-overall-note textarea:focus {
  border-color: #2471df;
  box-shadow: 0 0 0 3px rgba(36, 113, 223, 0.1);
}
.equipment-query-bar input[readonly] {
  background: #f3f6f9;
  color: #4e6176;
}
.equipment-date-range > div {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 5px;
}
.equipment-date-range i {
  color: #8795a7;
  font-style: normal;
}
.equipment-query-bar > .solid-btn {
  height: 36px;
  padding: 0 18px;
}
.equipment-workbench {
  display: grid;
  grid-template-columns: minmax(410px, 36%) minmax(650px, 64%);
  min-height: 690px;
  border: 1px solid #d8e2ed;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(21, 46, 80, 0.05);
  overflow: hidden;
}
.equipment-master-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid #d8e2ed;
  background: #fbfcfe;
}
.equipment-master-pane > header,
.equipment-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 77px;
  padding: 15px 17px;
  border-bottom: 1px solid #dce5ee;
  background: #fff;
}
.equipment-master-pane > header > div > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.equipment-master-pane h2,
.equipment-detail-head h2 {
  margin: 0;
  color: #142d4b;
  font-size: 16px;
}
.equipment-master-pane > header span {
  padding: 3px 7px;
  border-radius: 99px;
  background: #eaf3ff;
  color: #1767ce;
  font-size: 10px;
  font-weight: 800;
}
.equipment-master-pane > header p {
  max-width: 190px;
  margin: 0;
  color: #7b8a9d;
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}
.equipment-master-scroll {
  max-height: 362px;
  overflow: auto;
  border-bottom: 1px solid #d8e2ed;
}
.equipment-master-table,
.equipment-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.equipment-master-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 7px;
  border-bottom: 1px solid #d7e1ec;
  background: #edf3f8;
  color: #52667c;
  font-size: 9px;
  text-align: center;
}
.equipment-master-table td {
  padding: 9px 7px;
  border-bottom: 1px solid #e2e8ef;
  color: #40546b;
  font-size: 10px;
  text-align: center;
}
.equipment-master-table th:nth-child(1) {
  width: 38px;
}
.equipment-master-table th:nth-child(2) {
  width: 142px;
}
.equipment-master-table th:nth-child(5) {
  width: 42px;
}
.equipment-master-table td:nth-child(2) {
  text-align: left;
}
.equipment-master-table td b,
.equipment-master-table td small {
  display: block;
}
.equipment-master-table td b {
  color: #263f5a;
  font-size: 10px;
}
.equipment-master-table td small {
  margin-top: 3px;
  color: #8a98a8;
  font-size: 8px;
}
.equipment-master-table tbody tr[data-eq-select] {
  cursor: pointer;
}
.equipment-master-table tbody tr[data-eq-select]:hover {
  background: #eff6ff;
}
.equipment-master-table tbody tr.is-active {
  background: #e7f2ff;
  box-shadow: inset 3px 0 #176bd5;
}
.equipment-master-table tbody tr.is-active td b {
  color: #075ec8;
}
.equipment-no-result {
  height: 100px !important;
  color: #7d8da0 !important;
}
.equipment-basic-fields {
  padding-bottom: 15px;
}
.equipment-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 9px;
}
.equipment-subhead h3 {
  margin: 0;
  color: #203a58;
  font-size: 13px;
}
.equipment-subhead span {
  color: #718399;
  font-size: 9px;
}
.equipment-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px;
}
.equipment-field-grid label:first-child {
  grid-column: 1/-1;
}
.equipment-detail-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #fff;
}
.equipment-detail-head {
  min-height: 92px;
  padding: 12px 17px;
}
.equipment-detail-head small {
  display: block;
  margin-bottom: 4px;
  color: #176bd5;
  font-size: 9px;
  font-weight: 800;
}
.equipment-detail-head h2 {
  font-size: 17px;
}
.equipment-detail-head p {
  margin: 5px 0 0;
  color: #708196;
  font-size: 10px;
}
.equipment-detail-head > img {
  width: 150px;
  height: 66px;
  border: 1px solid #d4dee9;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.equipment-no-reference {
  display: flex;
  width: 150px;
  height: 66px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #bcc9d6;
  border-radius: 8px;
  background: #f7f9fb;
  color: #77899d;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}
.equipment-detail-scroll {
  flex: 1;
  max-height: 650px;
  overflow: auto;
}
.equipment-detail-table {
  min-width: 960px;
}
.equipment-detail-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 6px;
  border: 1px solid #ccd8e4;
  background: #eaf0f6;
  color: #40566e;
  font-size: 9px;
  text-align: center;
}
.equipment-detail-table td {
  height: 92px;
  padding: 6px;
  border: 1px solid #d8e1eb;
  color: #3e5269;
  font-size: 9px;
  vertical-align: top;
}
.equipment-detail-table th:nth-child(1) {
  width: 38px;
}
.equipment-detail-table th:nth-child(2) {
  width: 98px;
}
.equipment-detail-table th:nth-child(3) {
  width: 210px;
}
.equipment-detail-table th:nth-child(4) {
  width: 84px;
}
.equipment-detail-table th:nth-child(5),
.equipment-detail-table th:nth-child(6) {
  width: 180px;
}
.equipment-detail-table td:first-child {
  text-align: center;
  font-weight: 800;
}
.equipment-standard-photo {
  text-align: center;
}
.equipment-standard-photo img {
  width: 84px;
  height: 76px;
  border-radius: 4px;
  background: #f3f5f7;
  object-fit: contain;
}
.equipment-standard-photo span {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c7d2de;
  color: #96a3b1;
}
.equipment-standard-copy b {
  display: block;
  margin-bottom: 5px;
  color: #163b67;
  font-size: 10px;
}
.equipment-standard-copy p {
  margin: 0;
  color: #3e5269;
  font-size: 9px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.equipment-result-buttons {
  display: grid;
  gap: 4px;
}
.equipment-result-buttons button {
  height: 24px;
  border: 1px solid #cbd6e1;
  border-radius: 5px;
  background: #fff;
  color: #617489;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}
.equipment-result-buttons button:hover {
  border-color: #3d82d8;
  color: #1769cd;
}
.equipment-result-buttons button.is-active {
  border-color: #1970d5;
  background: #e9f3ff;
  color: #0e5fbe;
}
.equipment-result-buttons button.is-active.is-bad {
  border-color: #db4a4a;
  background: #fff0f0;
  color: #bd3030;
}
.equipment-photo-cell {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 6px;
}
.equipment-photo-cell textarea {
  width: 100%;
  min-height: 76px;
  border: 1px solid #cfdae5;
  border-radius: 6px;
  padding: 6px;
  color: #34495f;
  font: inherit;
  font-size: 9px;
  resize: vertical;
  outline: none;
}
.equipment-photo-upload {
  display: flex;
  width: 68px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #9aafc4;
  border-radius: 6px;
  background: #f4f8fc;
  color: #37698f;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}
.equipment-photo-upload input {
  display: none;
}
.equipment-upload-preview {
  position: relative;
  width: 68px;
  height: 76px;
  border: 1px solid #d2dce6;
  border-radius: 6px;
  background: #f6f8fa;
  overflow: hidden;
}
.equipment-upload-preview img,
.equipment-upload-preview [data-ca-blob-preview] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.equipment-upload-preview [data-ca-blob-preview] {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #8493a3;
  font-size: 8px;
}
.equipment-upload-preview button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 42, 68, 0.82);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}
.equipment-overall-note {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #d8e2ed;
  background: #f8fafc;
}
.equipment-overall-note span {
  color: #415770;
  font-size: 10px;
  font-weight: 800;
}
.equipment-overall-note textarea {
  width: 100%;
  border: 1px solid #ccd8e5;
  border-radius: 7px;
  padding: 7px;
  color: #34495f;
  font: inherit;
  font-size: 10px;
  resize: vertical;
  outline: none;
}
.equipment-query-bar label > span,
.equipment-field-grid label > span {
  font-size: 11px;
}
.equipment-query-bar input,
.equipment-query-bar select,
.equipment-field-grid input,
.equipment-field-grid select {
  font-size: 12px;
}
.equipment-master-scroll {
  max-height: 430px;
}
.equipment-master-pane > header p {
  max-width: 240px;
  font-size: 11px;
}
.equipment-master-table th {
  font-size: 10px;
}
.equipment-master-table td {
  padding: 10px 7px;
  font-size: 11px;
}
.equipment-master-table td b {
  font-size: 11px;
}
.equipment-master-table td small {
  font-size: 9px;
}
.equipment-no-result {
  height: 150px !important;
}
.equipment-no-result b,
.equipment-no-result span {
  display: block;
  margin: 4px auto;
}
.equipment-no-result b {
  color: #344b65;
}
.equipment-progress {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 99px;
  background: #e8f2ff;
  color: #1768c9;
}
.equipment-progress.has-defect {
  background: #fff0f0;
  color: #bd3030;
}
.equipment-subhead [data-eq-save-state].is-dirty {
  padding: 3px 7px;
  border-radius: 99px;
  background: #fff3d6;
  color: #9b6500;
  font-weight: 800;
}
.equipment-detail-table th {
  font-size: 10px;
}
.equipment-detail-table td {
  font-size: 10px;
}
.equipment-standard-copy b {
  font-size: 11px;
}
.equipment-standard-copy p {
  font-size: 10px;
}
.equipment-result-buttons button {
  height: 32px;
  font-size: 10px;
}
.equipment-result-buttons button:focus-visible,
.equipment-master-table tr:focus-visible {
  outline: 3px solid rgba(36, 113, 223, 0.28);
  outline-offset: 1px;
}
.equipment-detail-table tr.has-defect td {
  background: #fffafa;
}
.equipment-detail-table tr.has-defect .equipment-standard-copy b {
  color: #ba3434;
}
.equipment-photo-cell textarea {
  font-size: 10px;
}
@media (max-width: 1380px) {
  .equipment-query-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .equipment-query-bar > .solid-btn {
    justify-self: end;
  }
  .equipment-workbench {
    grid-template-columns: minmax(390px, 40%) minmax(620px, 60%);
  }
}
@media (max-width: 1080px) {
  .equipment-workbench {
    grid-template-columns: 1fr;
  }
  .equipment-master-pane {
    border-right: 0;
    border-bottom: 1px solid #d8e2ed;
  }
  .equipment-master-scroll {
    max-height: 300px;
  }
  .equipment-detail-scroll {
    max-height: none;
  }
  .equipment-query-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .equipment-query-bar {
    grid-template-columns: 1fr 1fr;
  }
  .equipment-date-range {
    grid-column: 1/-1;
  }
  .equipment-workbench {
    min-height: 0;
  }
  .equipment-field-grid {
    grid-template-columns: 1fr;
  }
  .equipment-field-grid label:first-child {
    grid-column: auto;
  }
  .equipment-master-pane > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .equipment-master-pane > header p {
    max-width: none;
    text-align: left;
  }
}
.equipment-detail-table {
  min-width: 0;
}
.equipment-detail-scroll {
  overflow-x: hidden;
}
.equipment-detail-table th,
.equipment-detail-table td {
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.equipment-history-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px;
  border-top: 1px solid #dce5ee;
  background: #f7faff;
}
.equipment-history-pager button {
  height: 25px;
  border: 1px solid #c9d7e6;
  border-radius: 5px;
  background: #fff;
  padding: 0 9px;
  color: #315b88;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}
.equipment-history-pager button:disabled {
  cursor: default;
  opacity: 0.4;
}
.equipment-history-pager span {
  min-width: 34px;
  color: #60748a;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}
@media screen and (min-width: 1081px) {
  #content:has(.equipment-workbench) {
    max-width: none;
    padding: 18px 20px 24px;
  }
  .equipment-page-title {
    align-items: center;
    margin-bottom: 8px;
  }
  .equipment-page-title h1 {
    font-size: 22px;
  }
  .equipment-page-title p {
    margin-top: 3px;
    font-size: 10px;
  }
  .equipment-page-title .actions {
    gap: 6px;
  }
  .equipment-page-title .outline-btn,
  .equipment-page-title .solid-btn {
    height: 32px;
    padding: 0 12px;
  }
  .equipment-query-bar {
    grid-template-columns:
      minmax(78px, 0.75fr) minmax(90px, 1fr) minmax(110px, 1.05fr) minmax(95px, 0.9fr)
      minmax(75px, 0.72fr) minmax(210px, 1.65fr) auto;
    gap: 7px;
    margin-bottom: 8px;
    padding: 7px 9px;
    border-radius: 9px;
  }
  .equipment-query-bar label {
    gap: 3px;
  }
  .equipment-query-bar label > span {
    font-size: 9px;
  }
  .equipment-query-bar input,
  .equipment-query-bar select,
  .equipment-query-bar > .solid-btn {
    height: 31px;
    font-size: 10px;
  }
  .equipment-query-bar > .solid-btn {
    padding: 0 13px;
  }
  .equipment-workbench {
    grid-template-columns: clamp(350px, 29%, 410px) minmax(0, 1fr);
    min-height: 0;
    align-items: stretch;
  }
  .equipment-master-pane > header,
  .equipment-detail-head {
    min-height: 56px;
    padding: 7px 10px;
  }
  .equipment-master-pane h2,
  .equipment-detail-head h2 {
    font-size: 14px;
  }
  .equipment-master-pane > header p {
    max-width: 190px;
    font-size: 9px;
    line-height: 1.3;
  }
  .equipment-master-scroll,
  .equipment-detail-scroll {
    max-height: none;
    overflow: visible;
    min-width: 0;
  }
  .equipment-master-table {
    table-layout: fixed;
  }
  .equipment-master-table th,
  .equipment-master-table td {
    padding: 5px 3px;
  }
  .equipment-master-table th {
    font-size: 8px;
  }
  .equipment-master-table td,
  .equipment-master-table td b {
    font-size: 9px;
  }
  .equipment-master-table td small {
    margin-top: 1px;
    font-size: 8px;
  }
  .equipment-master-table th:nth-child(1) {
    width: 7%;
  }
  .equipment-master-table th:nth-child(2) {
    width: 29%;
  }
  .equipment-master-table th:nth-child(3) {
    width: 27%;
  }
  .equipment-master-table th:nth-child(4) {
    width: 20%;
  }
  .equipment-master-table th:nth-child(5) {
    width: 17%;
  }
  .equipment-no-result {
    height: 90px !important;
  }
  .equipment-basic-fields {
    padding-bottom: 8px;
  }
  .equipment-subhead {
    padding: 7px 10px 5px;
  }
  .equipment-subhead h3 {
    font-size: 11px;
  }
  .equipment-field-grid {
    gap: 5px 7px;
    padding: 0 10px;
  }
  .equipment-field-grid label {
    gap: 3px;
  }
  .equipment-field-grid label > span {
    font-size: 9px;
  }
  .equipment-field-grid input,
  .equipment-field-grid select {
    height: 29px;
    padding: 0 7px;
    font-size: 10px;
  }
  .equipment-detail-head small {
    margin-bottom: 2px;
    font-size: 8px;
  }
  .equipment-detail-head p {
    margin-top: 2px;
    font-size: 9px;
  }
  .equipment-detail-head > img,
  .equipment-no-reference {
    width: 96px;
    height: 44px;
  }
  .equipment-detail-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .equipment-detail-table th {
    padding: 5px 2px;
    font-size: 8px;
  }
  .equipment-detail-table td {
    height: 52px;
    padding: 3px;
    font-size: 9px;
  }
  .equipment-detail-table th:nth-child(1) {
    width: 4%;
  }
  .equipment-detail-table th:nth-child(2) {
    width: 9%;
  }
  .equipment-detail-table th:nth-child(3) {
    width: 27%;
  }
  .equipment-detail-table th:nth-child(4) {
    width: 10%;
  }
  .equipment-detail-table th:nth-child(5),
  .equipment-detail-table th:nth-child(6) {
    width: 25%;
  }
  .equipment-standard-photo img,
  .equipment-standard-photo span {
    width: 48px;
    height: 44px;
    margin: auto;
  }
  .equipment-standard-copy b {
    margin-bottom: 2px;
    font-size: 9px;
  }
  .equipment-standard-copy p {
    font-size: 8px;
    line-height: 1.28;
  }
  .equipment-result-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
  .equipment-result-buttons button {
    height: 25px;
    padding: 0 1px;
    font-size: 8px;
  }
  .equipment-photo-cell {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 3px;
  }
  .equipment-photo-upload,
  .equipment-upload-preview {
    width: 42px;
    height: 44px;
  }
  .equipment-photo-cell textarea {
    min-height: 44px;
    padding: 4px;
    font-size: 8px;
    resize: none;
  }
  .equipment-overall-note {
    grid-template-columns: 64px 1fr;
    gap: 6px;
    padding: 5px 9px;
  }
  .equipment-overall-note span {
    font-size: 9px;
  }
  .equipment-overall-note textarea {
    height: 36px;
    min-height: 36px;
    padding: 5px;
    font-size: 9px;
    resize: none;
  }
}
@media screen and (min-width: 1081px) and (max-height: 900px) {
  #content:has(.equipment-workbench) {
    padding-top: 11px;
  }
  .equipment-page-title > div > p {
    display: none;
  }
  .equipment-page-title h1 {
    font-size: 19px;
  }
  .equipment-detail-table td {
    height: 45px;
    padding: 2px;
  }
  .equipment-standard-photo img,
  .equipment-standard-photo span,
  .equipment-photo-upload,
  .equipment-upload-preview {
    height: 38px;
  }
  .equipment-standard-photo img,
  .equipment-standard-photo span {
    width: 42px;
  }
  .equipment-photo-upload,
  .equipment-upload-preview {
    width: 38px;
  }
  .equipment-photo-cell {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .equipment-photo-cell textarea {
    min-height: 38px;
    height: 38px;
  }
}
.equipment-query-bar > [data-eq-reset] {
  height: 30px;
  padding: 0 10px;
  font-size: 10px;
  white-space: nowrap;
}
.equipment-page-title [data-eq-save]:disabled {
  opacity: 0.65;
  cursor: wait;
}
@media screen and (min-width: 1081px) {
  .equipment-query-bar {
    grid-template-columns: 0.75fr 1fr 1fr 0.9fr 0.7fr minmax(210px, 1.7fr) auto auto;
  }
}
@media print {
  .equipment-page-title,
  .equipment-query-bar,
  .equipment-master-pane {
    display: none !important;
  }
  .equipment-workbench {
    display: block;
    border: 0;
    box-shadow: none;
  }
  .equipment-detail-pane {
    border: 0;
  }
  .equipment-detail-head {
    padding: 5mm 4mm;
  }
  .equipment-detail-scroll {
    max-height: none;
    overflow: visible;
  }
  .equipment-detail-table {
    min-width: 0;
  }
  .equipment-detail-table th,
  .equipment-detail-table td {
    font-size: 7pt;
  }
  .equipment-detail-table td {
    height: auto;
  }
  .equipment-standard-photo img {
    width: 55px;
    height: 45px;
  }
  .equipment-photo-cell {
    grid-template-columns: 45px 1fr;
  }
  .equipment-photo-upload {
    display: none;
  }
  .equipment-upload-preview {
    width: 45px;
    height: 45px;
  }
  .equipment-photo-cell textarea {
    min-height: 45px;
  }
  .equipment-overall-note {
    padding: 3mm;
  }
}
