@charset "UTF-8";
/* Supplementary workspace layout rules (Grid/List toggle & Mobile Diagnostic Cards) */

.ui-view-toggle {
  display: inline-flex;
  align-items: center;
}
.ui-view-toggle button {
  padding: 6px 10px;
  min-width: 36px;
}
.ui-view-toggle .icon {
  width: 16px;
  height: 16px;
}

/* Sleek Floating Row List Mode for Product Management (20 items/page) */
@media (min-width: 1100px) {
  .product-grid.ui-list-view {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-grid.ui-list-view > .product-card {
    display: grid;
    grid-template-columns: 130px minmax(260px, 1fr) 290px;
    grid-template-rows: auto auto;
    min-height: 132px;
    align-items: stretch;
    border-radius: 18px;
  }
  .ui-list-view .product-card-top-bar {
    grid-column: 1;
    grid-row: 1 / 3;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .ui-list-view .product-top-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ui-list-view .product-card-main {
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
    padding: 16px 20px;
    align-items: center;
  }
  .ui-list-view .product-photo {
    width: 84px;
    height: 92px;
  }
  .ui-list-view .product-posted-bar {
    grid-column: 3;
    grid-row: 1;
    margin: 14px 16px 4px 0;
    align-self: end;
    min-height: 36px;
  }
  .ui-list-view .posted-bar-names {
    display: none;
  }
  .ui-list-view .product-card-footer {
    grid-column: 3;
    grid-row: 2;
    border: 0;
    background: transparent;
    padding: 6px 16px 14px 0;
    align-content: start;
    height: auto;
  }
  .ui-list-view .product-card-actions {
    justify-content: flex-end;
    gap: 6px;
  }
}

/* Diagnostic Table Checkbox & Mobile Responsive Card View */
.ui-diagnostic-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  cursor: pointer;
}
.ui-diagnostic-select > span {
  display: none;
}

@media (max-width: 1099px) {
  .ui-view-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .diagnostic-table {
    display: block;
    min-width: 0 !important;
    width: 100%;
    border-spacing: 0;
  }
  .diagnostic-table thead {
    display: none;
  }
  .diagnostic-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .diagnostic-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: var(--surface-sub);
  }
  .diagnostic-table tbody td {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
  }
  .diagnostic-table tbody td::before {
    content: attr(data-ui-label);
    font-size: 10px;
    font-weight: 700;
    color: var(--subtle);
    letter-spacing: .3px;
  }
  .diagnostic-table tbody td.cell-check {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: auto;
    align-items: flex-start;
    border-bottom: 1px solid var(--line) !important;
    padding-bottom: 10px !important;
  }
  .diagnostic-table tbody td:first-child::before,
  .diagnostic-table tbody td:last-child::before {
    display: none;
  }
  .ui-diagnostic-select {
    min-height: 32px;
    justify-content: flex-start;
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
  }
  .ui-diagnostic-select > span {
    display: inline;
  }
  .diagnostic-table tbody td:nth-child(2),
  .diagnostic-table tbody td:nth-last-child(2),
  .diagnostic-table tbody td:last-child {
    grid-column: 1 / -1;
  }
  .diagnostic-table .cell-actions {
    justify-content: flex-start;
    padding-top: 6px;
  }
}
