/* Qomar: shared phone, tablet and desktop safeguards. */
html{min-width:0;max-width:100%;overflow-x:hidden;overflow-x:clip}
body{min-width:0;max-width:100%;overflow-x:hidden;overflow-x:clip}
img,video,canvas,svg{max-width:100%}
input,select,textarea,button{max-width:100%}
.field-grid,.g26-grid,.catalog-manager-grid,.dashboard-grid,.fields{min-width:0}
.g26-editor,.g26-editor fieldset{min-width:0;max-width:100%}
.g26-editor input,.g26-editor select{width:100%}

@media (max-width:820px){
  .dashboard{min-width:0!important}
  .admin-header,.dashboard-title,.list-head{gap:12px;align-items:flex-start;flex-wrap:wrap}
  .dashboard-title>div:first-child{min-width:0;flex:1 1 230px}
  .dashboard-title h1{overflow-wrap:anywhere}
  .catalog-manager{border-radius:16px}
  .catalog-manager-grid,.field-grid,.dashboard-grid{grid-template-columns:minmax(0,1fr)!important}
  .catalog-manager form,.product-editor,.product-list-wrap{min-width:0!important;width:100%!important}
  .editor-list-grid,.products-layout,.dashboard-content{grid-template-columns:minmax(0,1fr)!important}
  .vehicle-fitment select{width:100%;min-width:0}
  .add-catalog-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px}
  .form-actions,.order-actions{flex-wrap:wrap}
  .form-actions>*,.order-actions>*{flex:1 1 150px}
  dialog{width:calc(100% - 18px)!important;max-height:calc(100dvh - 18px)!important;margin:auto}
  table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

@media (max-width:520px){
  h1{font-size:clamp(24px,8vw,34px)}
  h2{font-size:clamp(19px,6vw,27px)}
  .admin-header,.dashboard-title,.catalog-manager,.product-editor,.product-list-wrap{padding-left:14px!important;padding-right:14px!important}
  .catalog-manager summary{align-items:flex-start;gap:5px}
  .catalog-manager summary span{display:block}
  .g26-grid,.fields,.report-grid,.stats{grid-template-columns:minmax(0,1fr)!important}
  .g26-editor{padding:14px!important;border-radius:15px!important}
  .g26-editor fieldset{padding:12px!important}
  .i-two-fields,.sa-stats,.o161-grid{grid-template-columns:minmax(0,1fr)!important}
  .card,.i-card,.sa-sales{border-radius:16px}
  .content{width:100%;max-width:100%;padding-left:14px!important;padding-right:14px!important}
  .top{padding-left:14px!important;padding-right:14px!important}
  .product{min-width:0}
  .product .body,.order-line>*{min-width:0;overflow-wrap:anywhere}
}

@media (min-width:821px){
  #app{min-width:0}
  .content{width:auto}
  .g26-editor{max-width:100%}
  #main>.m103,#main>.sa-page,#main>.i-page{max-width:1120px;margin-left:auto;margin-right:auto}
}
