.cpt-global {
  min-height: 100%;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "tbr"
    "dbw";
  --card-padding-vert: 1.5rem;
  --card-padding-hor: 2.5rem;
  overflow-y: scroll;
  height: 100%;
}

#view {
  overflow: auto;
}

.cpt-graph-grid {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 1fr auto;
}

.cpt-top-bar {
  grid-area: tbr;
  /* max-height: 195.72; */
}

.cpt-dashboard-area {
  grid-area: dbw;
}

/* .cpt-global * {
  font-size: 1.75rem;
  font-family: "Futura PT Book";
  font-weight: normal;
  font-style: normal;
} */

.fa {
  font-family: "FontAwesome";
}

/* .cpt-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 1.5rem;
  max-width: 100%;
} */

.cpt-row {
  flex-direction: row;
}

.cpt-column {
  flex-direction: column;
}

.cpt-selection-area {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  max-width: 100%;
}

.cpt-column .cpt-selection-area {
  margin-bottom: 1em;
}

.cpt-input {
  border: 1px solid transparent;
  border-radius: 1em;
  background: #aaeeff77;
  outline: none;
  padding: 0px 1em;
}

/* .cpt-drop-down {
  position: relative;
  background: transparent;
  cursor: pointer;
  border-radius: 7px;
  border: none;
  font-size: 1.3em;
  text-align: center;
  text-align-last: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0.35em 0px;
}

.cpt-drop-down-wrapper:last-child {
  margin: 0px;
} */

.cpt-drop-down-wrapper {
  position: relative;
  border: 1px solid var(--font-secondary);
  border-radius: 7px;
  cursor: pointer;
  width: 400px;
  /* max-width: 25%; */
  margin: 0px 1em 0px 0px;
}

.cpt-drop-down-wrapper::after {
  font: normal normal normal 14px/1 FontAwesome;
  content: "\f078";
  position: absolute;
  top: 33.3333%;
  right: 1em;
  z-index: 0;
  color: var(--font-primary);
  pointer-events: none;
}

.cpt-drop-down>.cpt-trigger {
  font-size: 1em;
}

.cpt-drop-down>.cpt-menu {
  top: 100%;
  width: 100%;
  min-width: 400px;
}

.cpt-light .cpt-drop-down * {
  background: #fff;
}

.cpt-dark .cpt-drop-down * {
  background: var(--header-bg-primary);
}

.cpt-drop-down * {
  position: relative;
  color: inherit;
}

.cpt-fine-print * {
  text-align: center;
  font-size: 0.8em;
  margin: 0px;
}

.cpt-fine-print a {
  font-size: 1em;
}

.cpt-mail-link:hover {
  color: var(--font-secondary);
}

.cpt-last-update {
  background: rgb(var(--bg));
  color: rgb(var(--company-color));
  text-align: center;
  padding: 0.25em;
  /* font-size: 1.75em; */
  letter-spacing: 0.15em;
  margin: 0px;
}

.cpt-closed {
  display: none;
}

.cpt-menu {
  position: absolute;
  background: var(--bg-primary);
  border: 1px solid #000;
  border-bottom: 0px;
  left: 0px;
  z-index: 1;
  text-align: left;
  text-align-last: left;
  /* width: 100%; */
  /* max-width: 400px; */
}

.cpt-trigger {
  margin: 0px;
  cursor: pointer;
  user-select: none;
}

.cpt-trigger-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cpt-trigger .cpt-trigger-arrow {
  font-size: 0.8em;
}

.cpt-menu p,
.cpt-menu label {
  margin: 0px;
}

.cpt-menu-section {
  position: relative;
  border-bottom: 1px solid #000;
  padding: 0.5em;
  cursor: default;
  min-height: 46px;
}

.cpt-menu-input-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.cpt-menu-input-wrapper * {
  white-space: nowrap;
}

.cpt-menu-section * {
  font-size: 1em;
}

.cpt-menu .cpt-menu-input {
  border: 1px solid transparent;
  border-radius: 15% / 100%;
  background: #aaeeff77;
  outline: none;
  padding: 0px 1em;
}

.cpt-menu-input-wrapper .cpt-menu-input {
  width: 50%;
}

.cpt-menu-input:focus {
  border: 1px solid #a7b7be;
}

.cpt-sub-menu {
  position: absolute;
  top: -1px;
  left: 100%;
  /* transform: translate(-100%); */
}

.cpt-sub-menu.cpt-select-placement {
  border: 1px solid #000;
  width: 80%;
}

.cpt-sub-menu.cpt-pay-date-select {
  width: 80%;
  border: 1px solid #000;
  border-bottom: 0px;
  bottom: 0px;
}

.cpt-placement-option {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cpt-select {
  color: var(--font-secondary);
  cursor: pointer;
}

.cpt-sub-menu-reversed {
  top: unset;
  bottom: -1px;
  /* min-width: 200px; */
}

.cpt-option {
  cursor: pointer;
  user-select: none;
  /* min-width: 200px; */
  white-space: nowrap;
}

.cpt-placement-terms {
  position: unset;
}

.cpt-no-white-space {
  white-space: nowrap;
}

.cpt-sub-below {
  left: -1px;
  top: 100%;
  width: calc(100% + 2px);
}

.cpt-scroll-menu {
  /* max-height: 200px; */
  height: 400%;
  overflow-y: scroll;
}

.cpt-scroll-menu::-webkit-scrollbar {
  border-left: 1px solid #000;
}

.cpt-scroll-menu::-webkit-scrollbar-thumb {
  border: 1px solid #000;
  border-right: none;
  border-radius: 0px;
}

.cpt-menu-dates {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.cpt-date-column {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
}

.cpt-comment-section {
  overflow: auto;
}

.cpt-comment-heading {
  margin: 0px;
}

.cpt-drop-down .cpt-comment {
  background: #aaeeff77;
  resize: none;
  width: 100%;
}

.cpt-card {
  background: rgb(var(--bg));
  color: rgb(var(--primary));
  border-radius: 20px;
  box-shadow: 0px 0px 10px 0px #0005;
  padding: var(--card-padding-vert) var(--card-padding-hor);
  overflow-x: hidden;
  overflow-y: auto;
}

.cpt-card * {
  margin: 0px;
}

.cpt-top-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cpt-amount {
  color: rgb(var(--company-color));
  font-size: 2em;
  font-family: var(--company-font);
  font-weight: bold;
  margin-bottom: 0.5em;
}

.cpt-top-card h1 {
  /* color: var(--font-secondary);
  font-size: 2em;
  font-family: "Futura PT";
  font-weight: 500; */
}

.cpt-top-card h3 {
  color: rgb(var(--primary));
  font-size: 1.25em;
  letter-spacing: 0.08em;
}

.cpt-top-card-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 25%;
}

.cpt-card-side-text {
  display: block;
  height: 100%;
  /* display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start; */
  width: 75%;
}

.cpt-card-top-img {
  /* background-position: center;
  background-repeat: no-repeat;
  background-size: contain; */
  height: 64px;
  width: 64px;
  border-radius: 32px;
  box-shadow: 0px 0px 10px #14243422;
}

.cpt-light .cpt-net-commissions .cpt-card-top-img {
  background-image: url("../img/comp-tracker/Net-commission-icon.png");
}

.cpt-dark .cpt-net-commissions .cpt-card-top-img {
  background-image: url("../img/comp-tracker/Net-Comission-DM.png");
}

.cpt-light .cpt-gross-payout .cpt-card-top-img {
  background-image: url("../img/comp-tracker/Gross-payout-icon.png");
}

.cpt-dark .cpt-gross-payout .cpt-card-top-img {
  background-image: url("../img/comp-tracker/Gross-Payout-DM.png");
}

.cpt-light .cpt-new-commissions .cpt-card-top-img {
  background-image: url("../img/comp-tracker/New-commissions-icon.png");
}

.cpt-dark .cpt-new-commissions .cpt-card-top-img {
  background-image: url("../img/comp-tracker/New-Comission-DM.png");
}

.cpt-light .cpt-all-time-payout .cpt-card-top-img {
  background-image: url("../img/comp-tracker/All-time-payout-icon.png");
}

.cpt-dark .cpt-all-time-payout .cpt-card-top-img {
  background-image: url("../img/comp-tracker/All-time-payout-DM.png");
}

.cpt-revenue-heading {
  margin-top: var(--card-padding-vert);
  font-size: 1.5em;
  font-weight: bold;
}

.cpt-revenue-heading * {
  font-size: 1em;
  font-weight: bold;
}

.cpt-heading-right {
  float: right;
}

.cpt-highlighted {
  color: var(--font-secondary);
}

/* .cpt-light .cpt-table {
  --highlight-primary: #ddeeffaa;
}

.cpt-dark .cpt-table {
  --highlight-primary: #506576aa;
} */

.cpt-card .cpt-card-heading {
  font-size: 1.25em;
  /* letter-spacing: 0.15em; */
  /* margin-bottom: calc(var(--card-padding-vert) * 0.8); */
}

.cpt-card .cpt-card-sub-heading {
  margin: calc(var(--card-padding-vert) / 2) 0px;
}

.cpt-card-sub-heading+hr {
  margin-bottom: var(--card-padding-vert);
}

.cpt-card hr {
  position: relative;
  height: 1px;
  width: calc(100% + var(--card-padding-hor) * 2);
  left: calc(-1 * var(--card-padding-hor));
}

.cpt-light .cpt-card hr {
  color: #aaa;
  background: #aaa;
}

.cpt-dark .cpt-card hr {
  color: var(--font-primary);
  background: var(--font-primary);
}

.cpt-card .cpt-table {
  position: relative;
  border-collapse: collapse;
  width: calc(100% + var(--card-padding-hor) * 2);
  left: calc(var(--card-padding-hor) * -1);
  text-align: left;
}

.cpt-table a {
  color: var(--font-primary);
}

.cpt-light .cpt-table thead {
  border-bottom: 1px solid #aaa;
}

.cpt-dark .cpt-table thead {
  border-bottom: 1px solid var(--font-primary);
}

.cpt-table td {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8em;
}

.cpt-table th,
.cpt-table td {
  padding: calc(var(--card-padding-vert) / 2);
}

.cpt-table th:first-child,
.cpt-table td:first-child {
  padding-left: var(--card-padding-hor);
}

.cpt-table th:last-child,
.cpt-table td:last-child {
  padding-right: var(--card-padding-hor);
}

.cpt-table,
.cpt-table td {
  border: none;
}

.cpt-table tr:nth-child(odd),
.cpt-table tr:nth-child(odd) * {
  background: transparent;
}

.cpt-table tr:nth-child(even) {
  background: rgba(var(--company-color), 0.1);
  /* background: var(--highlight-primary); */
}

.cpt-editable-td {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cpt-td-input {
  max-width: 5em;
  border: 1px solid transparent;
  background: transparent
}

.cpt-td-input:hover {
  cursor: pointer;
  border: 1px solid #000;
}

.cpt-td-checkbox-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cpt-td-admin-controls {
  display: flex;
  flex-direction: row;
}

input[type="checkbox"].cpt-td-checkbox {
  margin: 0px;
}

.cpt-no-data {
  margin-top: var(--card-padding-vert);
}

.cpt-clickable {
  cursor: pointer;
}

.cpt-not-clickable {
  cursor: default;
}

.fa-save {
  cursor: pointer;
}

.cpt-tracker-year {
  border: none;
  width: 3em;
  font-size: 1.2em;
  background: transparent;
  color: var(--font-primary);
  letter-spacing: 0.15em;
}

.cpt-tracker-year::-webkit-inner-spin-button,
.cpt-tracker-year::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.cpt-tracker-year-wrapper {
  position: relative;
  display: inline;
  background: transparent;
  padding-right: 0.5em;
}

.fa.cpt-tracker-inc,
.fa.cpt-tracker-dec {
  position: absolute;
  right: -0.25em;
  font-size: 0.6em;
  cursor: pointer;
  color: var(--font-primary);
}

.cpt-tracker-inc {
  top: 0px;
}

.cpt-tracker-dec {
  bottom: 0px;
}

.cpt-tracker-options {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--card-padding-vert) / 2) 0px;
  color: var(--font-secondary);
}

.cpt-change-log-btn {
  margin: 0px;
  cursor: pointer;
  /* font-weight: bold; */
}

.cpt-tracker-options label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: normal;
}

#cpt-payouts-only-check {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  border: 1px solid rgb(var(--primary));
  border-radius: 0.25em;
  background-color: var(--bg);
  box-shadow: 0.5px 0.5px 0px 0.5px rgb(var(--primary));
  height: 1em;
  width: 1em;
  margin: 0px 0.5em 0px;
}

#cpt-payouts-only-check:checked::after {
  position: absolute;
  content: "\2714";
  font-size: 1em;
  top: -30%;
  right: 0px;
  color: var(--primary);
}

.cpt-input:disabled {
  cursor: not-allowed;
}

.cpt-modal-back {
  /* display: none; */
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: #00000055;
}

.cpt-modal-scroll {
  position: relative;
  left: calc(var(--card-padding-hor) * -1);
  max-height: 55vh;
  overflow-x: hidden;
  overflow-y: auto;
  width: calc(100% + var(--card-padding-hor) * 2);
}

.cpt-modal-scroll .cpt-table {
  width: 100%;
  left: 0px;
}

.cpt-exit-modal {
  float: right;
  font-size: 1.2em;
  cursor: pointer;
}

.cpt-modal-btn {
  background: var(--bg-primary);
  color: var(--font-secondary);
  border: 1px solid var(--font-secondary);
  border-radius: 1em;
  margin-top: var(--card-padding-vert);
  min-width: 125px;
}

.chip-wrapper {
  background: #aaeeff77;
  border-radius: 1em;
}

.cpt-card .chip {
  margin-right: 0.5em;
}

.cpt-card .chip-delete {
  margin: 0px 0.2em 0px 0.25em;
}

.cpt-modal>.cpt-card {
  padding: var(--card-padding-vert) var(--card-padding-hor) var(--card-padding-hor);
  overflow: hidden;
}

.cpt-special-modal-input {
  width: 100%;
  resize: none;
  padding: 0.45em 0.5em;
}

.cpt-special-modal-text-area {
  height: 8em;
}

.cpt-input:focus {
  outline: none;
}

.cpt-inner-card {
  margin-top: var(--card-padding-hor);
  box-shadow: 0px 0px 5px 0px #0005;
}

.cpt-send-email,
.cpt-add-to-list {
  float: right;
}

.cpt-add-to-list {
  margin: 0px;
}

.cpt-modal-input {
  resize: none;
  width: 100%;
  height: 2.5em;
  border: 1px solid #ddd;
  padding: 0.5em;
}

.cpt-modal-text-area {
  padding: 0.45em 0.5em;
}

.cpt-text-area-td {
  width: 80%;
}

.cpt-dashboard-wrapper {
  position: relative;
}

.cpt-dashboard {
  /* position: relative; */
  display: grid;
  width: 100%;
  padding: 30px;
  grid-template-columns: repeat(12, 1fr);
  gap: 33px;
  grid-template-rows: auto;
  grid-template-areas:
    "ntc ntc ntc ntc grp grp grp grp nwc nwc nwc nwc"
    "rel rel rel rel rel rel rel rec rec rec rec rec"
    "com com com com com com com com com com com com"
    "bna bna bna bna bna bna bnd bnd bnd bnd bnd bnd"
    "msa msa msa msa msa msa msd msd msd msd msd msd"
    "smb smb smb smb trk trk trk trk trk trk trk trk";
  overflow: auto;
  background: none;
}

.cpt-net-commissions {
  grid-area: ntc;
}

.cpt-gross-payout {
  grid-area: grp;
}

.cpt-new-commissions {
  grid-area: nwc;
}

.cpt-all-time-payout {
  grid-area: atp;
}

.cpt-revenue-line {
  grid-area: rel;
  overflow: hidden;
}

.cpt-revenue-circle {
  grid-area: rec;
}

.cpt-commisions {
  grid-area: com;
}

.cpt-bonus-additions {
  grid-area: bna;
}

.cpt-bonus-deductions {
  grid-area: bnd;
}

.cpt-misc-additions {
  grid-area: msa;
}

.cpt-misc-deductions {
  grid-area: msd;
}

.cpt-summary-breakdown {
  grid-area: smb;
}

.cpt-tracker {
  grid-area: trk;
}

.cpt-light .cpt-negative {
  color: #f00;
}

.cpt-dark .cpt-negative {
  color: var(--font-primary);
}

.cpt-placement-controls {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.cpt-placement-controls .cpt-modal-btn {
  padding-left: 1em;
  padding-right: 1em;
}

.cpt-danger-btn {
  color: #f00;
  border: 1px solid #f00;
}

.cpt-notif-btns {
  float: right;
}

.autocomplete {
  display: inline-block;
}

.cpt-rc-edit,
.cpt-sales-edit {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.cpt-tracker-update {
  width: 960px;
  max-width: 100%;
}

@media screen and (max-width: 1800px) {
  .cpt-dashboard {
    grid-template-areas:
      "ntc ntc ntc ntc grp grp grp grp nwc nwc nwc nwc"
      "rel rel rel rel rel rel rel rec rec rec rec rec"
      "com com com com com com com com com com com com"
      "bna bna bna bna bna bna bnd bnd bnd bnd bnd bnd"
      "msa msa msa msa msa msa msd msd msd msd msd msd"
      "smb smb smb trk trk trk trk trk trk trk trk trk";
  }
}

@media screen and (max-width: 1600px) {
  .cpt-dashboard {
    grid-template-areas:
      "ntc ntc ntc ntc grp grp grp grp nwc nwc nwc nwc"
      "rel rel rel rel rel rel rel rec rec rec rec rec"
      "com com com com com com com com com com com com"
      "bna bna bna bna bna bna bnd bnd bnd bnd bnd bnd"
      "msa msa msa msa msa msa msd msd msd msd msd msd"
      "smb smb smb smb trk trk trk trk trk trk trk trk";
  }
}

@media screen and (max-width: 1200px) {
  .cpt-dashboard {
    grid-template-areas:
      "ntc ntc ntc ntc grp grp grp grp nwc nwc nwc nwc"
      "rel rel rel rel rel rel rel rec rec rec rec rec"
      "com com com com com com com com com com com com"
      "bna bna bna bna bna bna bnd bnd bnd bnd bnd bnd"
      "msa msa msa msa msa msa msd msd msd msd msd msd"
      "smb smb smb smb trk trk trk trk trk trk trk trk";
  }

  .cpt-selection-area {
    flex-wrap: wrap;
  }

  .cpt-drop-down-wrapper {
    width: calc(50% - 0.5em);
  }

  .cpt-drop-down-wrapper:nth-child(even) {
    margin: 0px;
  }
}

@media screen and (max-width: 1080px) {
  .cpt-header {
    flex-direction: column;
  }

  .cpt-selection-area {
    margin-bottom: 1.5rem;
  }

  .cpt-dashboard {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "ntc ntc grp grp"
      "nwc nwc atp atp"
      "rel rel rel rel"
      "rec rec rec rec"
      "com com com com"
      "bna bna bna bna"
      "bnd bnd bnd bnd"
      "msa msa msa msa"
      "msd msd msd msd"
      "smb smb smb smb"
      "trk trk trk trk";
    overflow: auto;
  }
}

/* Calendar */
.cpt-calendar-heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cpt-calendar-left {
  margin-right: 1em;
}

.cpt-calendar-left,
.cpt-calendar-right {
  font-size: 0.8em;
  cursor: pointer;
}

.cpt-calendar-controls {
  user-select: none;
}

.calendar {
  width: 100%;
}

.calendar-td {
  cursor: pointer;
}

.calendar-td:hover {
  background: #aaaaaa33;
}

.calendar-td,
.calendar-th {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 5px;
}

.calendar-tr {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.calendar-tr::after {
  content: "";
  clear: both;
  display: table;
}

.calendar-table .cal-selected {
  background: #aadafa77;
}

.cal-not-current {
  color: #aaa;
}

.cal-selected.cal-not-current {
  background: #dddddd77;
}

/* Line graph */
#revenue-line {
  height: 350px;
}

#revenue-circle {
  height: 300px;
}

#revenue-line .line {
  stroke: rgb(var(--company-color));
}

#revenue-line .stop-left {
  stop-color: rgb(var(--company-color), 0.5);
}

#revenue-line .stop-right {
  stop-color: rgb(var(--company-color), 0);
}

.grid .tick * {
  stroke: var(--font-primary);
  opacity: 0.1;
}

/* Donut graph */
.cpt-all-time {
  fill: #ddd;
  background: #ddd;
}

.cpt-last-month {
  fill: rgb(var(--company-color));
  background: rgb(var(--company-color));
  /* fill: #00a; */
  /* background: #00a; */
}

.cpt-this-month {
  fill: var(--font-secondary);
  background: var(--font-secondary);
}

.cpt-graph-legend {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  /* @NOTE if a third is added change to space between*/
  align-items: center;
  font-size: 1.35em;
  /* width: 95%;
  margin: 0px auto; */
}

.cpt-graph-legend * {
  font-size: 1em;
}

.cpt-graph-key {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border-radius: 0.75em;
  /* background: #f00; */
}

.cpt-global .cpt-checkbox {
  background: var(--bg-primary);
  color: var(--font-primary);
}

.cpt-checkbox {
  cursor: pointer;
}

.cpt-change-log {
  width: 100%;
  max-width: 960px;
}

.cpt-bonus-log .cpt-card {
  overflow-x: hidden;
  overflow-y: hidden;
}

.cpt-card .cpt-delete-bonus {
  border: 1px solid #f00;
  border-radius: 1em;
  padding: 0.1em 1em;
  color: #f00;
  background: var(--bg-primary);
  margin-right: 1em;
  transition: all 0.25s;
}

.cpt-card .cpt-delete-bonus:hover {
  color: #fff;
  background: #f00;
}

.cpt-card .cpt-update-bonus {
  border: 1px solid var(--font-secondary);
  border-radius: 1em;
  padding: 0.1em 1em;
  color: var(--font-secondary);
  background: var(--bg-primary);
  transition: all 0.25s;
}

.cpt-card .cpt-update-bonus:hover {
  color: #fff;
  background: var(--font-secondary);
}

.cpt-bonus-amount,
.cpt-bonus-note {
  border: none;
  resize: none;
  width: 100%;
  background: transparent;
}

input.cpt-bonus-amount,
textarea.cpt-bonus-note {
  border: 1px solid transparent;
  padding: 0.25em;
}

input.cpt-bonus-amount:focus,
textarea.cpt-bonus-note:focus {
  border: 1px solid rgb(var(--primary));
}

.cpt-under-bar {
  position: relative;
  overflow: auto;
  background: rgb(var(--bg));
  /* padding-bottom: 0.25em; */
}

.cpt-tray-arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 0.6em;
  right: 33px;
}

.cpt-tray-arrow::after {
  position: absolute;
  content: "";
  display: block;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid rgb(var(--primary));
  border-bottom: 1px solid rgb(var(--primary));
  transform: translate(-50%, -75%) rotate(45deg);
  transition: transform 0.25s;
}

.cpt-tray-arrow.open::after {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.cpt-tray {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 33px;
  padding: 0px 33px;
  /* border: 1px solid rgb(var(--primary)); */
  background: rgb(var(--secondary));
  max-height: 0px;
  /* border: none; */
  overflow: hidden;
  transition: max-height 0.25s, padding 0.25s; /*, border 0.25s;*/
}

.cpt-tray.open {
  max-height: 50px;
  padding: 12px 33px;
  /* border-bottom: 1px solid #000;
  border-top: 1px solid #000; */
}

.cpt-tray-column {
  display: flex;
  flex-direction: column;
}

.cpt-table tr.cpt-current-date {
  background: rgb(var(--company-color), 0.4);
}

.cpt-modal {
  border-radius: 30px;
  background: rgb(var(--bg));
  overflow: auto;
}

.cpt-modal .mod-close {
  background: transparent;
}

.cpt-modal .mod-close::before,
.cpt-modal .mod-close::after {
  background: rgb(var(--company-font-color));
}

.cpt-bonus-modal {
  position: relative;
  max-width: 1080px;
  width: 100vw;
  height: 480px;
  display: flex;
  flex-direction: row;
  overflow-y: auto;
  overflow-x: hidden;
}

.cpt-change-log-modal {
  position: relative;
  max-width: 1080px;
  width: 100vw;
  /* height: 480px; */
  overflow: hidden;
}

.cpt-modal-heading {
  text-align: center;
  background: rgb(var(--company-color));
  color: rgb(var(--company-font-color));
  padding: 0.75em;
  margin: 0px;
  font-family: var(--company-font);
}

.cpt-modal .cpt-table {
  width: 100%;
}

.cpt-modal th:first-child,
.cpt-modal td:first-child {
  padding-left: var(--card-padding-hor);
}

.cpt-modal th:last-child,
.cpt-modal td:last-child {
  padding-right: var(--card-padding-hor);
}

.cpt-table th {
  white-space: nowrap;
  font-size: 11px;
  font-family:'WorkSans-Regular';
  color: rgb(var(--middle-gray));
}

.cpt-table td {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: rgb(var(--primary));
}

.cpt-modal th:nth-child(1),
.cpt-modal td:nth-child(1)
.cpt-modal th:nth-child(2),
.cpt-modal td:nth-child(2) {
  width: 15%;
}

.cpt-message-wrapper {
  max-height: 1.9em;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.25em;
}

.cpt-remove-padding {
  padding: 0px;
}

.cpt-expanded {
  max-height: none;
  display: block;
}

.cpt-expanded * {
  display: inline;
}

.cpt-expanded .cpt-note-short {
  word-break: normal;
}

.cpt-note-short {
  word-break: break-all;
}

span.cpt-show-more {
  line-height: normal;
  white-space: nowrap;
  color: rgb(var(--middle-gray));
}

.cpt-image-background {
  stroke: rgb(var(--bg));
  fill: rgb(var(--bg));
}

.cpt-image-foreground {
  stroke: rgb(var(--company-color));
}

.cpt-text-foreground {
  fill: rgb(var(--company-color));
  font-size: 30px;
}

.cpt-new-bonus-section {
  min-width: 30%;
  width: 30%;
  border-right: 1px solid rgb(var(--secondary));
  height: 100%;
}

.cpt-bonus-log-section {
  width: 100%;
}

.cpt-table-wrapper {
  width: 100%;
}

.cpt-wrapper-section {
  padding: 30px;
}

.cpt-input-label {
  display: block;
  font-weight: normal;
}

.cpt-button-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cpt-modal-cancel,
.cpt-modal-submit {
  margin: 0px;
  padding: 0.5em;
  border: 1px solid rgb(var(--secondary));
  /* border: 1px solid #e6e6e6; */
  border-radius: 3px;
  font-family: 'WorkSans-Regular';
}

.cpt-button-section .cpt-modal-cancel,
.cpt-button-section .cpt-modal-submit {
  width: 45%;
}

.dark .cpt-modal-cancel {
  background: linear-gradient(to bottom, rgb(var(--secondary)), rgb(var(--bg)));
  color: rgb(var(--primary));
}

.light .cpt-modal-cancel {
  background: linear-gradient(to bottom, rgb(var(--bg)), rgb(var(--secondary)));
}

.cpt-modal-submit{
  background: linear-gradient(to bottom, rgb(var(--company-color), 0.7), rgb(var(--company-color)));
  color: rgb(var(--company-font-color));
}

.dark .cpt-modal-submit:disabled {
  background: linear-gradient(to bottom, rgb(var(--secondary)), rgb(var(--bg)));
  color: rgb(var(--middle-gray));
}

.light .cpt-modal-submit:disabled {
  background: linear-gradient(to bottom, rgb(var(--bg)), rgb(var(--secondary)));
  color: rgb(var(--middle-gray));
}

.cpt-new-amount,
.cpt-new-note {
  width: 100%;
  resize: none;
  margin-bottom: 30px;
  padding: 0.25em;
}

.cpt-new-note {
  height: 10.75em;
}

.cpt-pay-period,
.cpt-pay-amount {
  padding: 0.25em;
}

.cpt-modal td {
  vertical-align: top;
}

.cpt-save-delete-section {
  width: 5em;
}

.cpt-action-btns {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

.cpt-action-btn {
  position: relative;
  width: 20px;
  height: 20px;
  /* padding: 8px 0px; */
}

.cpt-action-btn .fa {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
}

.cpt-action-btns .fa:hover {
  font-size: 20px;
}

.cpt-no-data {
  font-size: 18px;
}

.cpt-change-date,
.cpt-change-type,
.cpt-change-user,
.cpt-change-email {
  white-space: nowrap;
}

.cpt-change-log-modal .cpt-table-wrapper {
  height: 345px;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  border-bottom: 1px solid rgb(var(--primary));
}

.cpt-change-log-modal .cpt-table {
  width: 100%;
}

.cpt-bottom-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px 30px;
}

.cpt-bottom-buttons button,
.cpt-button-wrapper button {
  width: 160px;
}

.cpt-form-section {
  padding: 15px 30px 30px;
}

.cpt-tracker-email-modal {
  position: relative;
  max-width: 480px;
  width: 100vw;
  overflow: hidden;
}

.cpt-button-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.cpt-cc {
  border: 1px solid rgb(var(--middle-gray));
  border-radius: 0px;
  background: transparent;
}

.cpt-cc .chip {
  background: rgba(var(--company-color), 0.1);
  color: rgb(var(--primary));
}

.cpt-cc .chip:focus {
  background: rgba(var(--company-color), 0.3);
}

.cpt-cc .chip-delete {
  background: rgb(var(--secondary));
  border: 1px solid rgb(var(--primary));
  width: 1em;
  height: 1em;
  border-radius: 1em;
}

.cpt-cc .chip-delete::before,
.cpt-cc .chip-delete::after {
  background: rgba(var(--primary), 0.5);
}

.cpt-cc .chip-delete:focus,
.cpt-cc .chip-delete:hover {
  background: rgb(var(--middle-gray));
}

.cpt-form-input {
  width: 100%;
  resize: none;
  padding: 0.25em;
  margin-bottom: 0.5em;
}

textarea.cpt-form-input {
  height: 8em;
}

.cpt-label {
  font-weight: normal;
  cursor: pointer;
}

.cpt-email-select {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.cpt-email-select input[type="checkbox"],
.cpt-email-select label {
  margin: 0px;
}

.cpt-manual-payout-modal {
  width: 360px;
  /* height: 240px; */
}

.cpt-manual-wrapper {
  padding: 15px 30px 30px;
}

.cpt-net-commission-change,
.cpt-new-commission-change,
.cpt-gross-change {
  min-height: 1em;
}

.cpt-manual-payout-date {
  margin: 0px auto;
  width: 200px;
  margin-bottom: 30px;
  display: block;
}

.cpt-stat {
  margin-bottom: 0.5em;
}

.cpt-circle-wrapper {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpt-delete-td {
  width: 1em;
}

.cpt-td-save-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.cpt-save-wrapper {
  display: block;
  width: 20px;
  height: 20px;
  position: relative;
}

.cpt-save-wrapper .fa {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cpt-save-wrapper .fa:hover {
  font-size: 20px;
}