@media screen and (min-width: 1601px) {
  .grid,
  .grid td,
  .grid th,
  .classic,
  .classicv,
  .mp_table,
  input,
  textarea,
  select,
  span {
    padding: 0.05em 0.2em 0.05em 0.2em;
    font-size: 14px;
    line-height: 28px;
  }
  header {
    margin-bottom: 2px;
  }
  #content button {
    font-size: 14px;
  }
  .formt td,
  .formt th {
    padding: 0.05em 0.1em 0.05em 0.1em;
    font-size: 14px;
    line-height: 28px;
  }
  .floating {
    width: 350px;
    min-height: 410px;
  }
  #locs {
    left: 390px;
    height: 410px;
    width: calc(100% - 400px);
  }
  #cont {
    top: 440px;
    left: 390px;
    width: calc((100% - 410px) / 2);
  }
  #invo {
    top: 440px;
    width: calc((100% - 410px) / 2);
    left: calc((100% + 390px) / 2);
  }
  #pdfframe {
    width: 800px;
    height: 1200px;
  }
  #epdfframe {
    width: 800px;
    height: 1200px;
  }
  #imgframe {
    width: 800px;
    height: 1200px;
  }
}
@media screen and (min-width: 1201px) and (max-width: 1600px) {
  .grid,
  .grid td,
  .grid th,
  .classic,
  .classicv,
  .mp_table,
  input,
  textarea,
  select,
  span {
    padding: 0.05em 0.2em 0.05em 0.2em;
    font-size: 12px;
    line-height: 24px;
  }
  header {
    margin-bottom: 2px;
  }
  #content button {
    font-size: 10px;
  }
  .formt td,
  .formt th {
    padding: 0.05em 0.1em 0.05em 0.1em;
    font-size: 10px;
    line-height: 14px;
  }
  .floating {
    width: 350px;
    min-height: 340px;
  }
  #locs {
    left: 390px;
    height: 340px;
    width: calc(100% - 400px);
  }
  #cont {
    top: 375px;
    width: 48%;
  }
  #invo {
    top: 375px;
    width: 48%;
    left: 51%;
  }
  .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
    padding: 0.2em 0.6em;
  }
  #pdfframe {
    width: 800px;
    height: 1200px;
  }
  #epdfframe {
    width: 1200px;
    height: 800px;
  }
  #imgframe {
    width: 800px;
    height: 1200px;
  }
}
@media screen and (min-width: 1025px) and (max-width: 1200px) {
  .grid,
  .grid td,
  .grid th,
  .classic,
  .classicv,
  .mp_table,
  input,
  textarea,
  select,
  span {
    padding: 0.05em 0.2em 0.05em 0.2em;
    font-size: 12px;
    line-height: 18px;
  }
  header {
    margin-bottom: 2px;
  }
  #content button {
    font-size: 11px;
  }
  .formt td,
  .formt th {
    padding: 0.05em 0.2em 0.05em 0.2em;
    font-size: 11px;
    line-height: 22px;
  }
  .floating {
    width: 325px;
    min-height: 350px;
  }
  #locs {
    left: 350px;
    height: 350px;
    width: calc(100% - 400px);
  }
  #cont {
    top: 390px;
    width: 48%;
  }
  #invo {
    top: 390px;
    width: 48%;
    left: 51%;
  }
  #pdfframe {
    width: 800px;
    height: 1200px;
  }
  #epdfframe {
    width: 1200px;
    height: 800px;
  }
  #imgframe {
    width: 800px;
    height: 1200px;
  }
}
@media screen and (min-width: 1001px) and (max-width: 1024px) {
  .grid,
  .grid td,
  .grid th,
  .classic,
  .classicv,
  .mp_table,
  input,
  textarea,
  select,
  span {
    padding: 0.05em 0.2em 0.05em 0.2em;
    font-size: 11px;
    line-height: 22px;
  }
  header {
    margin-bottom: 2px;
  }
  #content button {
    font-size: 11px;
  }
  #content button.realsmall {
    padding-left: 10px;
    padding-right: 10px;
  }
  .formt td,
  .formt th {
    padding: 0.05em 0.2em 0.05em 0.2em;
    font-size: 11px;
    line-height: 22px;
  }
  .floating {
    width: 325px;
    height: 340px;
  }
  #locs {
    left: 350px;
    height: 340px;
    width: 450px;
  }
  #cont {
    top: 375px;
    width: 455px;
  }
  #invo {
    top: 375px;
    width: 320px;
    left: 480px;
  }
  #pdfframe {
    width: 800px;
    height: 1200px;
  }
  #epdfframe {
    width: 1200px;
    height: 800px;
  }
  #imgframe {
    width: 800px;
    height: 1200px;
  }
}
@media screen and (min-width: 737px) and (max-width: 1000px) {
  .grid,
  .grid td,
  .grid th,
  .classic,
  .classicv,
  .mp_table,
  input,
  textarea,
  select,
  span {
    padding: 0.05em 0.2em 0.05em 0.2em;
    font-size: 10px;
    line-height: 20px;
  }
  header {
    margin-bottom: 2px;
  }
  #content button {
    font-size: 10px;
  }
  #content button.realsmall {
    padding-left: 6px;
    padding-right: 6px;
  }
  .formt td,
  .formt th {
    padding: 0.05em 0.1em 0.05em 0.1em;
    font-size: 10px;
    line-height: 20px;
  }
  .floating {
    width: 45%;
    height: 42%;
  }
  #locs {
    left: 50%;
    height: 42%;
    width: 60%;
  }
  #cont {
    top: 50%;
    width: 45%;
  }
  #invo {
    top: 50%;
    width: 50%;
    left: 50%;
  }
  #pdfframe {
    width: 90%;
    height: 90%;
  }
  #epdfframe {
    width: 90%;
    height: 90%;
  }
  #imgframe {
    width: 90%;
    height: 90%;
  }
  #main header {
    display: none;
  }
  h2.headmobile {
    position: fixed;
    top: 0;
    right: 0;
    display: block;
    color: #dfdfdf;
    padding: 7px 10px 0 0;
  }
  .ident .reqmod,
  .ident .editable,
  .ident .editabledrop,
  .ident .label {
    width: 100%;
    white-space: nowrap;
  }
  .ident .label {
    text-align: left;
    padding-left: 0;
  }
  .reqmod {
    margin-left: 0;
  }
}
@media screen and (max-width: 736px) {
  .grid,
  .grid td,
  .grid th,
  .classic,
  .classicv,
  .mp_table,
  input,
  textarea,
  select,
  span {
    padding: 0.05em 0.2em 0.05em 0.2em;
    font-size: 8px;
    line-height: 16px;
  }
  header {
    margin-bottom: 2px;
  }
  #content .button,
  #content button {
    font-size: 1.2em;
  }
  #content .button.realsmall,
  #content button.realsmall {
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .formt td,
  .formt th {
    padding: 0.05em 0.1em 0.05em 0.1em;
    font-size: 8px;
    line-height: 16px;
  }
  .floating {
    left: 5%;
    top: 5%;
    width: 80%;
    height: 80%;
  }
  #locs {
    left: 5%;
    top: 5%;
  }
  #cont {
    top: 10%;
    left: 10%;
  }
  #invo {
    top: 15%;
    left: 15%;
  }
  #pdfframe {
    width: 90%;
    height: 90%;
  }
  #epdfframe {
    width: 90%;
    height: 90%;
  }
  #imgframe {
    width: 90%;
    height: 90%;
  }
  #main header {
    display: none;
  }
  h2.headmobile {
    position: fixed;
    top: 0;
    right: 0;
    display: block;
    color: #dfdfdf;
    padding: 7px 10px 0 0;
  }
  .ident .reqmod,
  .ident .editable,
  .ident .editabledrop,
  .ident .label {
    white-space: nowrap;
    overflow-x: scroll;
    width: 100%;
  }
  .ident .label {
    text-align: left;
    padding-left: 0;
  }
  .reqmod {
    margin-left: 0;
  }
}
