@import "{ohif:design}/app"

.measurementTableRow
  display: flex
  margin-left: -6px
  margin-top: 2px
  padding-left: 6px
  // required transformation to make inner fixed elements relative to this one
  transform(scale(1))
  width: calc(100% + 6px)

  &.active

    .measurementRowSidebar
      theme('color', '$activeColor')

    .rowOptions
      height: 35px
      visibility: visible

  &.response-status .measurementRowSidebar .response-status-icon
    theme('background-color', '$defaultColor')
    theme('color', '$uiGray')
    border-radius: 11px
    font-size: 12px
    font-weight: 700
    height: 21px
    line-height: 22px
    margin: 5px auto 0
    text-align: center
    width: 21px

  &.warning .measurementRowSidebar
    theme('background-color', '$uiYellow')
    theme('color', '$textPrimaryColor')

    .warning-icon, svg
      width: 22px
      height: 20px
      pointer-events: inherit

    .warning-icon
      margin: 7px auto 0

    svg
      theme('fill', '$textPrimaryColor')

  .rowOptions
    theme('background-color', '$uiGrayDarker')
    height: 0
    overflow: hidden
    transition(all 0.3s ease)
    visibility: hidden

    .rowAction
      theme('color', '$defaultColor')
      cursor: pointer
      line-height: 35px
      transition(all 0.3s ease)

      &:hover, &:active
        theme('color', '$textPrimaryColor')

        svg
          theme('fill', '$textPrimaryColor')
          theme('stroke', '$textPrimaryColor')

    svg
      theme('fill', '$defaultColor')
      theme('stroke', '$defaultColor')
      transition(all 0.3s ease)

      &.edit-icon
        width: 14px
        height: 13px

      &.close-icon
        width: 11px
        height: 11px

  .measurementRowSidebar
    theme('background', '$uiGray')
    theme('color', '$textSecondaryColor')
    cursor: pointer
    flex: 1
    max-width: 30px
    transition(all 0.3s ease)

    .measurementNumber
      font-size: 14px
      font-weight: 400
      margin-right: 5px
      padding-top: 10px
      text-align: center

  .measurementDetails
    flex: 1
    padding: 5px 2px 0 0

    &>*
      padding-left: 14px

    .location
      font-weight: 400
      font-size: 14px
      theme('color', '$textSecondaryColor')
      height: 30px
      line-height: 30px
      margin-left: -2px
      width: 100%

    .timepointData
      display: flex
      min-height: 27px
      margin-top: 1px

      div
        flex: 1
        font-size: 14px
        font-weight: 400
        justify-content: space-around
        line-height: 18px
        padding-bottom: 4px
