// iconfont使用
@import '../font/iconfont.css';

// 护士站公共样式
.nurse-station-common {
  font-weight: normal;
  color: #333;

  .span-color-block {
    display: inline-block;
    width: 80%;
    height: 20px;
    border-radius: 4px;
    margin-top: 4px;
  }

  .span-color-border {
    display: inline-block;
    width: 15px;
    height: 15px;
    line-height: 12px;
    border-radius: 2px;
    font-weight: normal;
    text-align: center;
    font-size: 12px;
  }

  .span-color-border-hover:hover {
    width: 17px;
    height: 17px;
    line-height: 15px;
  }

  // 床位
  .bed-item {
    width: 100%;

    .bed-item-header {
      height: 30px;
      border-radius: 4px 4px 0 0;
      color: #fff;
      font-size: 12px;

      .bed-item-keywords-icon {
        background-color: #fff;
      }

      .span-color-border {
        font-weight: normal;
      }

      .bed-item-header-room {
        width: 76px;
      }

      .bed-item-header-name {
        text-align: center;
      }

      .bed-item-header-icon {
        max-width: 76px;
      }
    }

    .bed-item-header,
    .bed-item-footer {
      padding: 0 6px;

      .bed-item-keywords-icon {
        margin-right: 4px;
      }

      .bed-item-keywords-icon:last-child {
        margin-right: 0;
      }
    }

    .bed-item-footer {
      .bed-item-keywords-icon {
        margin-right: 6px;
      }
    }

    // 床位图头部icon迷你版
    .bed-item-mini-icon {
      .span-color-border {
        width: 13px;
        height: 13px;
        line-height: 12px;
        border-radius: 2px;
        margin-top: 2px;
      }
    }

    .bed-item-content {
      width: 100%;
      font-size: 12px;
      overflow: hidden;
      position: relative;

      .bed-item-content-item {
        width: 100%;
        height: 100%;
      }

      .bed-item-body {
        &>div {
          display: flex;
          align-items: center;
          width: 100%;
        }
      }
    }

    .bed-item-content-icon {
      display: inline-block;
      width: 28px;
      text-align: center;

      i {
        font-size: 14px;
        color: #B9B9B9;
      }
    }

    .bed-item-content-title {
      width: calc(~"100% - 28px");
      line-height: 22px;
    }

    .bed-item-content-diag:hover {
      white-space: wrap;
      line-clamp: 3;
      -webkit-line-clamp: 3;
    }

    .bed-item-content-first-title {
      line-height: 20px;
    }

    .bed-item-footer {
      height: 26px;
      border-radius: 0 0 4px 4px;
      border: 1px solid #D3D3D3;
      border-top: none;
      background-color: #F6F6F6;
    }

    // 包床
    .bic-wrapped-bed {
      .bic-wrapped-bed-day {
        font-size: 12px;

        .bic-wrapped-bed-num {
          margin: 0 4px;
        }
      }

      .bic-wrapped-bed-time {
        margin-top: 10px;
      }
    }
  }

  // 空床 | 占床
  .bic-empty-bed {
    color: #999;

    i {
      font-size: 42px;
      margin-bottom: 16px;
      color: #999;
    }

    img {
      width: 38px;
      height: 28px;
      margin-bottom: 6px;
    }
  }

  // 占床
  .bic-bed-occupancy {
    color: #333;

    i {
      font-size: 42px;
      margin-bottom: 16px;
    }
  }

  // 床位悬浮操作按钮
  .bic-float-btn {
    position: absolute;
    top: 0;
    left: calc(~'50% - 43px');
    height: 100%;
    width: 86px;

    &>.ant-btn {
      width: 86px;
      text-align: center;
      opacity: 0.7;
      background: rgba(0, 0, 0, 1);
      border-color: rgba(0, 0, 0, 1);
    }

    &>.ant-btn:hover {
      opacity: 1;
    }

    &>.ant-btn-primary:hover {
      background-color: #1890ff;
      border-color: #1890ff;
    }

    &>.ant-btn-danger:hover {
      background-color: #ff4d4f;
      border-color: #ff4d4f;
    }
  }

  // 床位费
  .bic-fee {
    width: 60px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 10px 0 0 10px;
    position: absolute;
    bottom: 4px;
    right: 0;
    font-size: 12px;
    background: #F6F6F6;
  }

  // .bed-item-active,
  // .bed-item:hover {
  //   box-shadow: 0px 2px 10px 2px rgba(0, 0, 0, 0.15);
  // }

  // 超出两行 ... 展示
  .two-lines-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .one-lines-ellipsis {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}

// 床位费用明细
.bic-steps {
  .ant-steps-item-content {
    min-height: 42px;
  }
}