table.easy-timesheet-table {
  width: 100%;
  border-collapse: collapse;
  background: $color-foreground;
  td,th{
    height: 28px;
    padding: $gap;
    &:first-child{
      padding-left: $box-padding;
    }
    &:last-child{
      padding-right: $box-padding;
    }
    &.buttons{
      padding-right: $gap;
      a{
        @extend %button-link;
      }
    }
  }
  th{
    &.name,&.border{
      background-color: mix($color-background,$color-foreground);
    }
  }
  td{
    &.estimated, &.buttons {
      text-align: center;
    }
  }
  thead{
    td{
      background-color: mix($color-background,$color-foreground);
    }
  }
  tbody{
    td{
      border: 1px solid $color-border-minor;
      &.subject,&.project-name{
        a{
          margin: 0 5px;
          max-width: 300px;
          display: block;
          @extend %truncate;
        }
      }
      &:first-child{
        border-left: none;
      }
      &:last-child{
        border-right: none;
      }

    }
    tr{
      &:last-child{
        td{
          border-bottom: none;
        }
      }
      &:nth-child(even), .time-entry-hour:nth-child(even){
        background-color: rgba(mix($color-background,$color-foreground),0.5);
      }
      &:nth-child(odd){
        background-color:#fff;
      }
      &.invalid-row {
        border: 2px dashed #f00;
      }
      &.is-new-row{
        background-color: $color-highlight;
      }
      &:not(.is-new-row).invalid-row {
        td:first-child:before {
          content: "\2691";
          color: #f00;
          font-size: 18px;
        }
      }
    }
  }
  input {
    @include small;
  }
  .plan-hour{
    border-left: 1px solid $color-border-minor;
    border-right: none;
  }
  .time-entry{
    &-hour{
      border-right: 1px solid $color-border-minor;
      border-left: 1px solid $color-border-minor;
      text-align: center;
      vertical-align: middle;
      &.cell-data {
        min-width: 120px;
        p {
          height: 32px;
          margin-top: 3px;
        }
      }
    }
    &-input-comments{
      width: 100%;
    }
    &-input-hours{
      text-align: center;
    }
  }
}

table.easy-timesheet-table tbody td .icon-edit {
  cursor: pointer;
}


table.easy-timesheet-table td.comment input, table.easy-timesheet-table input.time-entry-input-comments {
  //display: block;
  //margin: auto;
  //width: 90%;
}
table.easy-timesheet-table *[class*=hour], table.easy-timesheet-table td.buttons {
  //text-align: center;
}
table.easy-timesheet-table th[class*=hour] {
  //font-size: 80%;
  //color: #595959;
}
table.easy-timesheet-table tfoot tr > * {
  //border-top: 1px solid #d7d7d7;
}
table.easy-timesheet-table th.day-name {
  //border-color: #d7d7d7;
  //border-style: solid;
  //border-width: 1px 1px 0 1px;
}
