/* TT24_D3_PRODUCTION_CASES_LIST_V1_BEGIN
   Desktop-only visual refinement of the existing Production files list.
   No route, role, permission, API, action, pagination or openFile logic is changed.
*/

@media (min-width: 881px) {
  body.tt24-internal-shell .tt24-d3-files-intro {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 112px;
    margin: 0 0 14px;
    padding: 20px 24px;
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 20px;
    background: linear-gradient(135deg,#ffffff 0%,#f7faff 62%,#edf5ff 100%);
    box-shadow: 0 12px 34px rgba(15,43,77,.07);
  }
  body.tt24-internal-shell .tt24-d3-files-intro::before {
    content: '';
    position: absolute;
    inset-inline-end: -65px;
    top: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(34,197,94,.10),rgba(34,197,94,0) 70%);
    pointer-events: none;
  }
  body.tt24-internal-shell .tt24-d3-files-intro h2 {
    margin: 0;
    color: #0f2f50;
    font-family: 'TT24 B Yekan Plus Bold','TT24 B Yekan Plus','B Yekan+',Tahoma,sans-serif;
    font-size: 23px;
    line-height: 1.45;
    font-weight: 700;
  }
  body.tt24-internal-shell .tt24-d3-files-intro p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
  }
  body.tt24-internal-shell .tt24-d3-files-card {
    padding: 18px !important;
    border: 1px solid #dbe5f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 34px rgba(15,43,77,.065) !important;
  }
  body.tt24-internal-shell .tt24-d3-files-toolbar {
    display: grid !important;
    grid-template-columns: minmax(300px,1fr) 190px auto auto;
    align-items: center;
    gap: 10px !important;
    margin-bottom: 16px !important;
    padding: 12px !important;
    border: 1px solid #e1e9f2;
    border-radius: 16px;
    background: #f8fafc;
  }
  body.tt24-internal-shell .tt24-d3-search-wrap {
    position: relative;
    min-width: 0;
  }
  body.tt24-internal-shell .tt24-d3-search-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    z-index: 1;
    transform: translateY(-51%);
    color: #6b8299;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
  }
  body.tt24-internal-shell .tt24-d3-files-toolbar .search {
    width: 100% !important;
    min-width: 0 !important;
    height: 44px !important;
    padding-inline-start: 42px !important;
    border-color: #d3deea !important;
    border-radius: 12px !important;
    background: #fff !important;
    font-size: 13.5px !important;
  }
  body.tt24-internal-shell .tt24-d3-files-toolbar select {
    width: 100% !important;
    max-width: none !important;
    height: 44px !important;
    border-color: #d3deea !important;
    border-radius: 12px !important;
    background-color: #fff !important;
    font-size: 13px !important;
  }
  body.tt24-internal-shell .tt24-d3-files-toolbar .btn {
    min-height: 44px !important;
    padding: 8px 17px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
  body.tt24-internal-shell .tt24-d3-new-btn {
    font-family: 'TT24 B Yekan Plus Bold','TT24 B Yekan Plus','B Yekan+',Tahoma,sans-serif !important;
    font-weight: 700 !important;
  }

  body.tt24-internal-shell .tt24-d3-files-table-wrap {
    overflow: hidden !important;
    border: 1px solid #dfe7f0 !important;
    border-radius: 16px !important;
    background: #fff;
  }
  body.tt24-internal-shell .tt24-d3-files-table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    min-width: 0 !important;
  }
  body.tt24-internal-shell .tt24-d3-files-table thead th {
    height: 48px !important;
    padding: 10px 11px !important;
    border-bottom: 1px solid #dbe5ef !important;
    background: #f3f7fb !important;
    color: #38536f !important;
    font-family: 'TT24 B Yekan Plus Bold','TT24 B Yekan Plus','B Yekan+',Tahoma,sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-align: right !important;
  }
  body.tt24-internal-shell .tt24-d3-files-table thead th:nth-child(1) { width: 11%; }
  body.tt24-internal-shell .tt24-d3-files-table thead th:nth-child(2) { width: 18%; }
  body.tt24-internal-shell .tt24-d3-files-table thead th:nth-child(3) { width: 23%; }
  body.tt24-internal-shell .tt24-d3-files-table thead th:nth-child(4) { width: 13%; }
  body.tt24-internal-shell .tt24-d3-files-table thead th:nth-child(5) { width: 14%; }
  body.tt24-internal-shell .tt24-d3-files-table thead th:nth-child(6) { width: 12%; }
  body.tt24-internal-shell .tt24-d3-files-table thead th:nth-child(7) { width: 9%; text-align:center !important; }
  body.tt24-internal-shell .tt24-d3-files-table tbody tr {
    cursor: pointer;
    transition: background-color .16s ease, box-shadow .16s ease;
    outline: none;
  }
  body.tt24-internal-shell .tt24-d3-files-table tbody tr:hover,
  body.tt24-internal-shell .tt24-d3-files-table tbody tr:focus-visible {
    background: #f8fbff !important;
    box-shadow: inset -3px 0 0 #1f6fb2;
  }
  body.tt24-internal-shell .tt24-d3-files-table tbody td {
    height: 58px !important;
    padding: 10px 11px !important;
    border-bottom: 1px solid #edf1f5 !important;
    color: #263b50 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    vertical-align: middle !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.tt24-internal-shell .tt24-d3-files-table tbody tr:last-child td { border-bottom: 0 !important; }
  body.tt24-internal-shell .tt24-d3-ref b {
    color: #0b69b7;
    font-family: 'TT24 B Yekan Plus Bold','TT24 B Yekan Plus','B Yekan+',Tahoma,sans-serif;
    font-size: 13.5px;
    font-weight: 700;
  }
  body.tt24-internal-shell .tt24-d3-goods span,
  body.tt24-internal-shell .tt24-d3-owner,
  body.tt24-internal-shell .tt24-d3-assigned {
    display: table-cell;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.tt24-internal-shell .tt24-d3-created {
    color: #64748b !important;
    font-size: 12px !important;
    text-align: right !important;
  }
  body.tt24-internal-shell .tt24-d3-status .badge-s {
    min-width: 92px;
    justify-content: center;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
  }
  body.tt24-internal-shell .tt24-d3-action,
  body.tt24-internal-shell .tt24-d3-action-head { text-align: center !important; }
  body.tt24-internal-shell .tt24-d3-action .btn {
    min-width: 68px;
    min-height: 32px;
    padding: 5px 10px !important;
    border-radius: 9px !important;
    font-size: 11.5px !important;
  }
  body.tt24-internal-shell .tt24-d3-files-card .pager {
    margin-top: 16px !important;
    justify-content: center;
  }
}

/* Keep the approved 360/390 Production mobile list visually unchanged. */
@media (max-width: 880px) {
  .tt24-d3-files-intro,
  .tt24-d3-desktop-only { display: none !important; }
}

/* TT24_D3_PRODUCTION_CASES_LIST_V1_END */
