/*
 M.EMAM SHSS
 Revenue Responsive Performance Final
 Scoped only to standalone revenue screen.
 No calculations, columns or data are changed.
*/

html.memam-revenue-standalone {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

html.memam-revenue-standalone body {
  width: 100%;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
}

html.memam-revenue-standalone body > *,
html.memam-revenue-standalone main,
html.memam-revenue-standalone header,
html.memam-revenue-standalone section,
html.memam-revenue-standalone .container,
html.memam-revenue-standalone .content,
html.memam-revenue-standalone .page,
html.memam-revenue-standalone .app {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

html.memam-revenue-standalone
.revenue-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

html.memam-revenue-standalone
.revenue-table-scroll table {
  width: max-content;
  min-width: max(100%, 1380px);
  table-layout: auto;
}

html.memam-revenue-standalone
.revenue-table-scroll th,
html.memam-revenue-standalone
.revenue-table-scroll td {
  white-space: nowrap;
}

html.memam-revenue-standalone
button,
html.memam-revenue-standalone
select,
html.memam-revenue-standalone
input {
  min-height: 42px;
  max-width: 100%;
  box-sizing: border-box;
}

html.memam-revenue-standalone
input,
html.memam-revenue-standalone
select {
  font-size: 16px;
}

/*
 الشاشات الكبيرة واللاب توب
*/
@media (min-width: 1200px) {
  html.memam-revenue-standalone body {
    width: 100%;
  }

  html.memam-revenue-standalone
  .revenue-table-scroll table {
    min-width: 100%;
  }
}

/*
 التابلت
*/
@media (min-width: 700px) and
       (max-width: 1199px) {
  html.memam-revenue-standalone {
    font-size: 15px;
  }

  html.memam-revenue-standalone
  header,
  html.memam-revenue-standalone
  .toolbar,
  html.memam-revenue-standalone
  .actions,
  html.memam-revenue-standalone
  .controls {
    gap: 10px;
  }

  html.memam-revenue-standalone
  .revenue-table-scroll table {
    min-width: 1320px;
  }
}

/*
 الهاتف
*/
@media (max-width: 699px) {
  html.memam-revenue-standalone {
    font-size: 14px;
  }

  html.memam-revenue-standalone body {
    padding-inline: 0 !important;
  }

  html.memam-revenue-standalone
  header,
  html.memam-revenue-standalone
  .toolbar,
  html.memam-revenue-standalone
  .actions,
  html.memam-revenue-standalone
  .controls {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  html.memam-revenue-standalone
  header > *,
  html.memam-revenue-standalone
  .toolbar > *,
  html.memam-revenue-standalone
  .actions > *,
  html.memam-revenue-standalone
  .controls > * {
    min-width: 0;
  }

  html.memam-revenue-standalone
  button {
    min-height: 44px;
  }

  html.memam-revenue-standalone
  select {
    width: 100%;
  }

  html.memam-revenue-standalone
  .revenue-table-scroll {
    border-radius: 12px;
  }

  html.memam-revenue-standalone
  .revenue-table-scroll table {
    min-width: 1280px;
  }

  html.memam-revenue-standalone
  .revenue-table-scroll th,
  html.memam-revenue-standalone
  .revenue-table-scroll td {
    padding: 7px 6px;
  }

  html.memam-revenue-standalone
  #memamRevenueOwnerBack {
    min-width: 132px;
    max-width: calc(100vw - 20px);
  }
}

/*
 هواتف صغيرة جدًا
*/
@media (max-width: 430px) {
  html.memam-revenue-standalone
  .revenue-table-scroll table {
    min-width: 1240px;
  }

  html.memam-revenue-standalone
  button {
    font-size: 14px;
  }
}

/*
 دعم تدوير الهاتف
*/
@media (max-height: 520px) and
       (orientation: landscape) {
  html.memam-revenue-standalone
  header {
    position: relative;
  }

  html.memam-revenue-standalone
  .revenue-table-scroll {
    max-height: none;
  }
}
