/* Keep count actions reachable: the shared sticky first column covered them on narrow screens. */
@media (max-width:700px){
  #inventoryRoot .ic-table{display:block;min-width:0;width:100%;background:transparent}
  #inventoryRoot .ic-table thead{display:none}
  #inventoryRoot .ic-table tbody{display:grid;gap:12px}
  #inventoryRoot .ic-table tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #dce7e2;border-radius:12px;overflow:hidden;background:#fff}
  #inventoryRoot .ic-table td{display:block;border:0;padding:10px 13px;min-width:0;white-space:normal;overflow-wrap:anywhere}
  #inventoryRoot .ic-table td:first-child{position:static;min-width:0;max-width:none;box-shadow:none;background:transparent}
  #inventoryRoot .ic-table td:nth-child(2)::before,#inventoryRoot .ic-table td:nth-child(3)::before{display:block;font-size:11px;font-weight:600;color:#6c817b;margin-bottom:7px}
  #inventoryRoot .ic-table td:nth-child(2)::before{content:"Durum"}
  #inventoryRoot .ic-table td:nth-child(3)::before{content:"Başlangıç / sayım"}
  #inventoryRoot .ic-table td:nth-child(3) strong{display:inline}
  #inventoryRoot .ic-table td:last-child{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #e5ece8}
  #inventoryRoot .ic-table td:last-child button{flex:1;min-width:0;margin:0}

  /* Show catalog prices and ordering controls together instead of behind a wide product column. */
  #publicationRoot .pub-table{display:block;min-width:0;width:100%}
  #publicationRoot .pub-table thead{display:none}
  #publicationRoot .pub-table tbody{display:grid;gap:12px}
  #publicationRoot .pub-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dce7e2;border-radius:12px;overflow:hidden;background:#fff}
  #publicationRoot .pub-table td{display:block;min-width:0;padding:12px;border:0;white-space:normal;overflow-wrap:anywhere}
  #publicationRoot .pub-table td:first-child{position:static;grid-column:1/-1;min-width:0;width:auto;max-width:none;background:transparent}
  #publicationRoot .pub-product{min-width:0;gap:10px}
  #publicationRoot .pub-product>div{min-width:0}
  #publicationRoot .pub-product strong{white-space:normal;overflow-wrap:anywhere}
  #publicationRoot .pub-table td:nth-child(n+2)::before{display:block;font-size:11px;font-weight:600;color:#6c817b;margin-bottom:7px}
  #publicationRoot .pub-table td:nth-child(2)::before{content:"Grup"}
  #publicationRoot .pub-table td:nth-child(3)::before{content:"Kursoft liste"}
  #publicationRoot .pub-table td:nth-child(4)::before{content:"Kontrol"}
  #publicationRoot .pub-table td:nth-child(4),#publicationRoot .pub-table td:nth-child(5){grid-column:1/-1}
  #publicationRoot .pub-table td:nth-child(5){border-top:1px solid #e5ece8}
  #publicationRoot .pub-table td:nth-child(5)::before{content:"Sıra"}
  #publicationRoot .pub-table td:last-child:has(.pub-row-actions:empty){display:none}
  #publicationRoot .pub-row-actions{justify-content:flex-end;gap:8px}
  #publicationRoot .pub-row-actions button{min-width:44px;min-height:44px}

  #publicationEditor>header,#publicationGroups>header{align-items:flex-start;gap:12px}
  #publicationEditor>header>div,#publicationGroups>header>div{min-width:0;flex:1}
  #publicationEditor>header h2,#publicationGroups>header h2{overflow-wrap:anywhere}
  #publicationEditor>header>button,#publicationGroups>header>button{flex-shrink:0;white-space:nowrap}
}
