/* ORKIDEM-SELLER-ORDERS-MOBILE-RUNTIME-FINAL-R7
   Phone-only final runtime closure.
   Purpose: dense native-like seller operation rows without removing order data.
*/

@media (max-width: 600px) {

  /* Extremely high specificity on purpose: this must beat late Orders CSS. */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr {
    display: grid !important;
    grid-template-columns: 28px minmax(0,1fr) 96px !important;
    grid-template-rows: 44px 22px 22px 22px !important;
    column-gap: 8px !important;
    row-gap: 2px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 122px !important;
    max-height: 136px !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #dde4e0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td {
    position: static !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Kill legacy mobile-card labels which inflate every cell. */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td::before {
    content: none !important;
    display: none !important;
  }

  /* 1 Selection */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(1) {
    display: flex !important;
    grid-column: 1 !important;
    grid-row: 1 / span 4 !important;
    align-self: start !important;
    justify-self: center !important;
    justify-content: center !important;
    padding-top: 10px !important;
    overflow: visible !important;
  }

  /* 2 Product */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(2) {
    display: block !important;
    grid-column: 2 / 4 !important;
    grid-row: 1 !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    padding-right: 44px !important;
  }

  /* 3 Quantity */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(3) {
    display: flex !important;
    grid-column: 2 !important;
    grid-row: 4 !important;
    min-height: 20px !important;
    max-height: 22px !important;
    align-items: center !important;
  }

  /* 4 Order no */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(4) {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-height: 20px !important;
    max-height: 22px !important;
    white-space: nowrap !important;
  }

  /* 5 Status */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(5) {
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 2 !important;
    min-height: 20px !important;
    max-height: 22px !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  /* 6 Delivery */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(6) {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 3 !important;
    min-height: 20px !important;
    max-height: 22px !important;
    white-space: nowrap !important;
  }

  /* 7 Price */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(7) {
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 3 !important;
    min-height: 20px !important;
    max-height: 22px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: right !important;
    font-weight: 700 !important;
  }

  /* 8 Buyer */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(8) {
    display: block !important;
    grid-column: 3 !important;
    grid-row: 4 !important;
    min-height: 20px !important;
    max-height: 22px !important;
    white-space: nowrap !important;
    text-align: right !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 9 Detail */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td:nth-child(9),
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td.orders-v7-detail-cell {
    display: flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    overflow: visible !important;
    z-index: 3 !important;
  }

  /* Final kebab hit-area. */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table
  .orders-v7-detail-cell .orders-v7-more {
    display: grid !important;
    place-items: center !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
  }

  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  .orders-v7-detail-cell .orders-v7-more > svg {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
  }

  /* Product block */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page .orders-v7-product-cell {
    display: grid !important;
    grid-template-columns: 44px minmax(0,1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    overflow: hidden !important;
    font-size: 11.5px !important;
    line-height: 1.15 !important;
  }

  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page img.orders-v7-thumb {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    object-fit: cover !important;
  }

  /* Nested blocks must not re-inflate the row. */
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr > td > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
  }
}

@media (max-width: 360px) {
  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page
  table.orders-v7-table.orkidem-r17-card-table > tbody > tr {
    grid-template-columns: 28px minmax(0,1fr) 88px !important;
  }

  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page .orders-v7-product-cell {
    grid-template-columns: 40px minmax(0,1fr) !important;
    gap: 7px !important;
  }

  html body.seller-master-v2[data-panel-surface="seller"].seller-page--siparisler-liste
  #ana-icerik#ana-icerik .orders-v7-page img.orders-v7-thumb {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
  }
}
