/* tqq-admin-viewport-fit 20260927c
   1920x1080 at Windows 150% is about 1280 CSS px.
   Fit the audit shell and every inner page from phone width
   through 1366, 1280, 1440, 1536 and 1920. */

html,
body {
  max-width: 100% !important;
  min-width: 0 !important;
}

.container-fluid,
.card,
.card-body,
.card-header,
.card-toolbar,
.row,
.row > [class*="col-"],
form,
.search-bar,
.input-group {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.card {
  overflow: hidden !important;
}

.card-toolbar .input-group,
.search-bar .input-group,
.tqq-toolbar-form,
.input-group {
  flex-wrap: wrap !important;
  max-width: 100% !important;
}

.card-toolbar .form-control,
.search-bar .form-control,
.input-group > .form-control,
.input-group > select.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

img,
video,
canvas,
svg,
pre,
iframe {
  max-width: 100%;
}

html body .table-responsive,
html body .card-body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
}

html body table.table,
html body .table,
html body .tqq-goods-audit-table,
html body .tqq-sup-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

html body .table th,
html body .table td,
html body .table th:last-child,
html body .table td:last-child {
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  box-sizing: border-box !important;
}

html body .table th:last-child,
html body .table td:last-child {
  width: 14% !important;
  position: sticky !important;
  right: 0 !important;
  z-index: 2 !important;
  background: #fff !important;
  box-shadow: -8px 0 12px rgba(15, 23, 42, 0.06) !important;
}

html body .table thead th:last-child {
  z-index: 3 !important;
  background: #f8fafc !important;
}

html body .table td:last-child .btn,
html body .table td:last-child .btn.btn-xs,
html body .tqq-action-buttons .btn {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 3px 0 !important;
  padding: 0 6px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

html body .tqq-action-buttons,
html body .tqq-apply-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  gap: 4px !important;
}

html body .tqq-apply-op {
  width: 16% !important;
}

html body .tqq-apply-actions form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

html body .tqq-apply-actions input,
html body .tqq-apply-actions .form-control {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 4px !important;
  box-sizing: border-box !important;
}

html body .tqq-goods-audit-table .col-id { width: 7% !important; }
html body .tqq-goods-audit-table .col-product { width: 30% !important; }
html body .tqq-goods-audit-table .col-supplier { width: 16% !important; }
html body .tqq-goods-audit-table .col-time { width: 12% !important; }
html body .tqq-goods-audit-table .col-status { width: 10% !important; }
html body .tqq-goods-audit-table .col-admin { width: 8% !important; }
html body .tqq-goods-audit-table .col-action { width: 14% !important; }

/* Phone cards already restack the table. Do not force a fixed desktop table there. */
@media (max-width: 768px) {
  html body .table-responsive > table.table,
  html body table.tqq-goods-audit-table,
  html body table.tqq-sup-table,
  html body table.tqq-m-table {
    table-layout: auto !important;
    min-width: 0 !important;
  }

  html body .table th:last-child,
  html body .table td:last-child {
    position: static !important;
    width: auto !important;
    box-shadow: none !important;
  }
}

@media (max-width: 1200px) {
  .container-fluid {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .card-body,
  .card-toolbar,
  .card-header {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Outer frame. These rules are for index.html, not the inner iframe.
   150% of 1920 is 1280. 125% of 1366 is about 1093. 100% of 1366 stays 1366.
   html body beats the short-window rule that widens the sidebar to 38vw. */
@media (max-width: 1600px) {
  html body .lyear-layout-sidebar {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
  }

  html body .lyear-layout-header,
  html body .lyear-layout-content,
  html body .lyear-layout-sidebar-close .lyear-layout-header,
  html body .lyear-layout-sidebar-close .lyear-layout-content {
    padding-left: 220px !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body .lyear-layout-sidebar-close .lyear-layout-sidebar {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
  }

  html body .lyear-layout-sidebar-close .lyear-layout-header,
  html body .lyear-layout-sidebar-close .lyear-layout-content {
    padding-left: 68px !important;
  }
}

@media (max-width: 1280px) {
  html body .lyear-layout-sidebar {
    width: 196px !important;
    min-width: 196px !important;
    max-width: 196px !important;
  }

  html body .lyear-layout-header,
  html body .lyear-layout-content,
  html body .lyear-layout-sidebar-close .lyear-layout-header,
  html body .lyear-layout-sidebar-close .lyear-layout-content {
    padding-left: 196px !important;
  }

  .nav-drawer > li.nav-item > a {
    padding-left: 10px !important;
    padding-right: 8px !important;
    column-gap: 6px !important;
  }

  .sidebar-header img {
    max-width: 150px !important;
  }

  html body .lyear-layout-sidebar-close .lyear-layout-sidebar {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
  }

  html body .lyear-layout-sidebar-close .lyear-layout-header,
  html body .lyear-layout-sidebar-close .lyear-layout-content {
    padding-left: 68px !important;
  }
}

/* Phone drawer stays full-bleed. Do not keep the desktop sidebar gutter. */
@media (max-width: 768px) {
  html body .lyear-layout-header,
  html body .lyear-layout-content,
  html body .lyear-layout-sidebar-close .lyear-layout-header,
  html body .lyear-layout-sidebar-close .lyear-layout-content,
  html.tqq-phone-admin .lyear-layout-header,
  html.tqq-phone-admin .lyear-layout-content {
    padding-left: 0 !important;
  }

  html body .lyear-layout-sidebar {
    width: min(280px, 82vw) !important;
    min-width: 0 !important;
    max-width: min(280px, 82vw) !important;
  }
}

.lyear-layout-header .navbar,
.navbar-right,
.mt-nav,
.mt-nav-bar,
.mt-nav-panel {
  min-width: 0 !important;
  max-width: 100% !important;
}

.lyear-layout-content {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

.lyear-layout-content,
.lyear-layout-content #iframe-content,
.lyear-layout-content .mt-tab-content,
.lyear-layout-content .tab-pane,
.lyear-layout-content iframe {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

html body .tqq-ip-page table.tqq-src-table {
  table-layout: auto !important;
}

html body .tqq-ip-page .tqq-src-table th:last-child,
html body .tqq-ip-page .tqq-src-table td:last-child {
  position: static !important;
  width: auto !important;
  min-width: 72px !important;
  box-shadow: none !important;
  text-align: right !important;
  white-space: nowrap !important;
  font-weight: 800 !important;
}

/* Admin list: phone cards. Desktop stays a table. */
@media (max-width: 768px) {
  html body .tqq-admin-page .card {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  html body .tqq-admin-page .card-header {
    background: transparent !important;
    border: 0 !important;
    padding: 4px 2px 8px !important;
  }

  html body .tqq-admin-page .card-title {
    font-size: 18px !important;
    font-weight: 900 !important;
  }

  html body .tqq-admin-page .card-toolbar,
  html body .tqq-admin-page .search-bar,
  html body .tqq-admin-page .toolbar-btn-action,
  html body .tqq-admin-page .toolbar-btn-action .btn {
    width: 100% !important;
  }

  html body .tqq-admin-page .toolbar-btn-action {
    margin-top: 8px !important;
  }

  html body .tqq-admin-page .table-responsive {
    overflow: visible !important;
  }

  html body table.table.tqq-admin-list {
    table-layout: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    border: 0 !important;
  }

  html body table.table.tqq-admin-list thead {
    display: none !important;
  }

  html body table.table.tqq-admin-list,
  html body table.table.tqq-admin-list tbody,
  html body table.table.tqq-admin-list tr,
  html body table.table.tqq-admin-list td,
  html body table.table.tqq-admin-list td:last-child {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
    box-shadow: none !important;
    float: none !important;
  }

  html body table.table.tqq-admin-list tr {
    margin: 0 0 12px !important;
    padding: 8px 14px !important;
    border: 1px solid #e7eef8 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
  }

  html body table.table.tqq-admin-list td,
  html body table.table.tqq-admin-list td:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #0f172a !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  html body table.table.tqq-admin-list td:before {
    content: attr(data-label);
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
  }

  html body table.table.tqq-admin-list td[data-label="用户名"] {
    font-size: 16px !important;
    font-weight: 900 !important;
  }

  html body table.table.tqq-admin-list td:last-child .btn,
  html body table.table.tqq-admin-list td:last-child .btn.btn-xs {
    width: auto !important;
    min-width: 36px !important;
    max-width: none !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 10px !important;
  }

  html body table.table.tqq-admin-list .btn-group {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    gap: 8px !important;
  }
}

/* Company certification: license, stats, date and status stack inside
   their own columns. Fixed min-widths and nowrap were painting over the next cell. */
@media (min-width: 769px) {
  html body table.table.tqq-company-audit-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body .tqq-company-audit-table th,
  html body .tqq-company-audit-table td,
  html body .tqq-company-audit-table th:last-child,
  html body .tqq-company-audit-table td:last-child {
    position: static !important;
    overflow: visible !important;
    min-width: 0 !important;
    box-shadow: none !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    vertical-align: middle !important;
  }

  html body .tqq-company-audit-table th:nth-child(1),
  html body .tqq-company-audit-table td:nth-child(1) { width: 6% !important; }
  html body .tqq-company-audit-table th:nth-child(2),
  html body .tqq-company-audit-table td:nth-child(2) { width: 14% !important; }
  html body .tqq-company-audit-table th:nth-child(3),
  html body .tqq-company-audit-table td:nth-child(3) { width: 17% !important; }
  html body .tqq-company-audit-table th:nth-child(4),
  html body .tqq-company-audit-table td:nth-child(4),
  html body .tqq-company-audit-table td.supplier-stat-cell { width: 26% !important; }
  html body .tqq-company-audit-table th:nth-child(5),
  html body .tqq-company-audit-table td:nth-child(5) { width: 13% !important; }
  html body .tqq-company-audit-table th:nth-child(6),
  html body .tqq-company-audit-table td:nth-child(6) { width: 10% !important; }
  html body .tqq-company-audit-table th:nth-child(7),
  html body .tqq-company-audit-table td:nth-child(7) { width: 6% !important; }
  html body .tqq-company-audit-table th:last-child,
  html body .tqq-company-audit-table td:last-child { width: 8% !important; }

  html body .tqq-company-audit-table .tqq-license-status-mini {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 8px 8px !important;
    box-sizing: border-box !important;
    position: static !important;
  }

  html body .tqq-company-audit-table .tqq-license-status-mini .main,
  html body .tqq-company-audit-table .tqq-license-status-mini .sub,
  html body .tqq-company-audit-table .tqq-license-status-mini a {
    display: block !important;
    position: static !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    height: auto !important;
  }

  html body .tqq-company-audit-table .tqq-license-status-mini a {
    display: inline-block !important;
  }

  html body .tqq-company-audit-table .tqq-license-status-mini .main {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  html body .tqq-company-audit-table .supplier-stat-cell,
  html body .tqq-company-audit-table .supplier-stat-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    position: static !important;
  }

  html body .tqq-company-audit-table .supplier-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  html body .tqq-company-audit-table .supplier-stat-chip {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 6px 4px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    position: static !important;
  }

  html body .tqq-company-audit-table .supplier-stat-chip b,
  html body .tqq-company-audit-table .supplier-stat-chip span {
    display: block !important;
    position: static !important;
    height: auto !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body .tqq-company-audit-table .supplier-stat-chip b {
    font-size: 15px !important;
    line-height: 1.15 !important;
  }

  html body .tqq-company-audit-table .supplier-stat-chip span {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  html body .tqq-company-audit-table .tqq-company-action-buttons {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .tqq-company-audit-table td:last-child .btn,
  html body .tqq-company-audit-table td:last-child .btn.btn-xs,
  html body .tqq-company-audit-table .tqq-company-action-buttons .btn {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 30px !important;
    margin: 0 !important;
    position: static !important;
    box-sizing: border-box !important;
  }

  html body .tqq-company-audit-table td:nth-child(6) .btn,
  html body .tqq-company-audit-table td:nth-child(6) .tqq-company-status-link {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 26px !important;
    margin: 2px 0 !important;
    position: static !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  html body .tqq-company-audit-table .supplier-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  html body table.table.tqq-company-audit-table {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body .tqq-company-audit-table th:last-child,
  html body .tqq-company-audit-table td:last-child {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    box-shadow: none !important;
  }
}


/* tqq-phone-list-cards-20260927-mobile
   Certificate and video lists stayed desktop tables on a phone,
   so columns crushed together and the action column sat past the screen. */
@media (max-width: 768px) {
  html body .table-responsive > table.table.tqq-cert-audit-table,
  html body .table-responsive > table.table.tqq-video-audit-table,
  html body table.table.tqq-cert-audit-table,
  html body table.table.tqq-video-audit-table {
    table-layout: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: 0 !important;
  }

  html body table.table.tqq-cert-audit-table colgroup,
  html body table.table.tqq-video-audit-table colgroup,
  html body table.table.tqq-cert-audit-table thead,
  html body table.table.tqq-video-audit-table thead {
    display: none !important;
  }

  html body table.table.tqq-cert-audit-table tbody,
  html body table.table.tqq-video-audit-table tbody,
  html body table.table.tqq-cert-audit-table tr,
  html body table.table.tqq-video-audit-table tr,
  html body table.table.tqq-cert-audit-table td,
  html body table.table.tqq-video-audit-table td,
  html body table.table.tqq-cert-audit-table td:last-child,
  html body table.table.tqq-video-audit-table td:last-child {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    position: static !important;
    float: none !important;
    right: auto !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
  }

  html body table.table.tqq-cert-audit-table tr,
  html body table.table.tqq-video-audit-table tr {
    margin: 0 0 12px !important;
    padding: 12px 14px 10px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
  }

  html body table.table.tqq-cert-audit-table td,
  html body table.table.tqq-video-audit-table td,
  html body table.table.tqq-cert-audit-table td.cert-image-cell {
    border: 0 !important;
    padding: 7px 0 !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    background: transparent !important;
  }

  html body table.table.tqq-cert-audit-table td:before,
  html body table.table.tqq-video-audit-table td:before {
    display: block !important;
    margin: 0 0 3px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    content: "";
  }

  html body table.table.tqq-cert-audit-table td:nth-child(1):before { content: "ID"; }
  html body table.table.tqq-cert-audit-table td:nth-child(2):before { content: "供应商"; }
  html body table.table.tqq-cert-audit-table td:nth-child(3):before { content: "资质名称"; }
  html body table.table.tqq-cert-audit-table td:nth-child(4):before { content: "图片"; }
  html body table.table.tqq-cert-audit-table td:nth-child(5):before { content: "状态"; }
  html body table.table.tqq-cert-audit-table td:nth-child(6):before { content: "AI预审状态"; }
  html body table.table.tqq-cert-audit-table td:nth-child(7):before { content: "更新时间"; }
  html body table.table.tqq-cert-audit-table td:nth-child(8):before { content: "操作"; }

  html body table.table.tqq-video-audit-table td:nth-child(1):before { content: "编号"; }
  html body table.table.tqq-video-audit-table td:nth-child(2):before { content: "视频标题"; }
  html body table.table.tqq-video-audit-table td:nth-child(3):before { content: "供应商信息"; }
  html body table.table.tqq-video-audit-table td:nth-child(4):before { content: "提交时间"; }
  html body table.table.tqq-video-audit-table td:nth-child(5):before { content: "状态"; }
  html body table.table.tqq-video-audit-table td:nth-child(6):before { content: "审核员"; }
  html body table.table.tqq-video-audit-table td:nth-child(7):before { content: "操作"; }

  html body table.table.tqq-cert-audit-table td:last-child .btn,
  html body table.table.tqq-video-audit-table td:last-child .btn,
  html body table.table.tqq-cert-audit-table .tqq-cert-actions .btn,
  html body table.table.tqq-video-audit-table td:last-child .btn.btn-xs {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 36px !important;
    margin: 4px 8px 0 0 !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    float: none !important;
    position: static !important;
  }

  html body table.table.tqq-video-audit-table td:last-child > div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  html body table.table.tqq-cert-audit-table .cert-img,
  html body table.table.tqq-cert-audit-table img,
  html body table.table.tqq-cert-audit-table .cert-img-wrap {
    max-width: 100% !important;
    height: auto !important;
  }

  html body table.table.tqq-cert-audit-table .cert-img-wrap {
    width: 112px !important;
    height: 82px !important;
  }
}
