
.gm-printer {
  // 全局样式
  background: whitesmoke;
  font-size: 12px;
  font-family: "Segoe UI","Lucida Grande",Helvetica,Arial,"Microsoft YaHei",FreeSans,Arimo,"Droid Sans","wenquanyi micro hei","Hiragino Sans GB","Hiragino Sans GB W3",FontAwesome,sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  line-height: 1.5;

  background: white;
  page-break-after: always;
  color: #000 !important;
}

// page
.gm-printer-page {
  overflow: hidden;
  page-break-after: always;

  + .gm-printer-page {
    page-break-before: always;
  }

  &-inner {
    position: relative;
  }
}

.gm-printer-page-fontFamily {
  font-family:STSong
}

// panel
.gm-printer-panel {
  position: relative;

  .gm-printer-panel-drag {
    display: none;
  }
}

// block
.gm-printer-block {
  position: relative;
  cursor: move;
  .gm-printer-block-text-edit {
    display: none;
  }
  img {
    display: inline-block;
    width: 100%;
    height: 100%;
  }
}

// table
.gm-printer-table {
  position: relative;

  table {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;

    th {
      font-weight: normal; // 覆盖浏览默认
    }
  }
}

// 分类数量
.gm-printer-counter {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  overflow: hidden;
  .gm-printer-counter-item {
    border: 1px solid black;
    margin: 2px 0;

    .gm-printer-counter-item-1 {
      border-top: 1px solid black;
    }

    div {
      padding: 3px;
      text-align: center;
    }
  }

  .gm-printer-counter-item + .gm-printer-counter-item {
    border-left: none;
  }
}

.gm-printer-table.gm-printer-table-classname-default {
  table {
    td,
    th {
      border: 1px solid black;
      padding: 2px 0;
    }
  }
}

.gm-printer-table.gm-printer-table-classname-className0 {
  table {
    td,
    th {
      border: 1px solid #ddd;
      padding: 2px 0;
    }
  }
}

.gm-printer-table.gm-printer-table-classname-className1 {
  table {
    td,
    th {
      border: 1px solid transparent;
      padding: 2px 0;
    }

    th {
      border-top: 1px solid black;
      border-bottom: 1px solid black;
    }
  }
}

.gm-printer-table.gm-printer-table-classname-className2 {
  table {
    td,
    th {
      border: none;
      padding: 2px 0;
    }
  }
}

.gm-printer-special-container {
  display: flex;
  justify-content: space-between;

  .gm-printer-special-container-box {
    flex: 1;
    padding: 2px;
  }

  .gm-printer-special-container-box + .gm-printer-special-container-box {
    border-left: 1px solid #000;
  }
}

@page {
  margin: 0;
}

.gm-printer-subtotal-UpperLowerCaseSeparate-outer{
  display:flex;
}
.gm-printer-subtotal-UpperLowerCaseSeparate-inter{
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
}
.gm-printer-subtotal-isUpperCaseBefore-inter{
  order:2;
}
.gm-flex-justify-between-page{
   justify-content: space-between;
}
.gm-flex-grow-page{
    flex-grow: 1;
}
.gm-flex-page{
  display:flex
}
