.ek-telephonyBox{
    position:fixed;
    right:0;
    top:150px;
    width:50px;
    height:60px;
    border: 1px solid #D9DEE4;
    background-color:#fff;
    border-radius:4px 0 0 4px;
    z-index:302;
}

.ek-telephonyBox .fa-phone{
    font-size: 30px;
    padding: 19px 0 13px 10px;
    margin-left: 5px;
}

.ek-telephonyBox .ek-telephonyBox-header{
    visibility: hidden;
}

.ek-telephonyBox.opened .ek-telephonyBox-header{
    visibility: visible;
    display: block;
    height: 20px;
    padding-top: 20px;
    float: right;
    line-height: 20px;
    width: 240px;
    text-align: left;
    font-size: 17px;
    padding-right: 8px;

}

.ek-telephonyBox .fa-phone{
    cursor:pointer;
}


.ek-telephonyBox.opened{
    width:310px;
    height:425px;
}

.ek-telephonyBox .fa-phone:hover{
    color: #1ebd9d;
}

.ek-telephonyBox.opened .fa-phone{
    color: #1ebd9d;
}

.ek-telephonyBox .msg-box{
    visibility: hidden;
}

.ek-telephonyBox.opened .msg-box{
    margin-left: 10px;
    margin-bottom: 7px;
    padding-left: 8px;
    padding-bottom: 8px;
    height:345px;
    visibility: visible;
}

.ek-telephonyBox .msg-box .msg{
    margin-bottom: 7px;
    background: #f7f7f7;
    padding: 2px 0 5px 10px;
    border: 1px solid #dedede;
}

.ek-telephonyBox .msg-box .event-time{
    color: #adadad;
    font-size: 0.7em;
    margin-bottom: 3px;
}

.ek-telephonyBox .msg-box .appoint-el{
    margin-top: 10px;
}

.ek-telephonyBox .msg-box .appoint-descr{
    margin-top: 1px;
}


.ek-telephonyBox .msg-box .from-now{
    color: #adadad;
}
/* ---------- БАЗОВАЯ КАРТОЧКА ---------- */
.pbx_card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin: 10px 0;
  display: flex;
  flex-direction: column;
}

.pbx_card--incoming {
  border: 1px solid #2e7d32;
  background: #e8f5e9;
}

.pbx_card--patient {}
.pbx_card--family {}
.pbx_card--new {}

/* ---------- ХЕДЕР ---------- */
.pbx_card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-direction: row-reverse;
}

.pbx_card__title a {
  font-size: 13px;
  font-weight: 600;
  color: rgb(0, 85, 128);
  text-decoration: none;
}

.pbx_card__phone {
  font-size: 16px;
  color: #000;
}

/* ---------- КОНТЕНТ ---------- */
.pbx_card__info {
  font-size: 14px;
  color: #555;
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 6px;
}

.pbx_card__appointment {
  font-size: 13px;
  margin-bottom: 8px;
}

/* ---------- ФУТЕР ---------- */
.pbx_card__footer {
  position: absolute;
  right: 12px;
  bottom: 2px;
  font-size: 12px;
  color: #999;
}

.pbx_card--incoming .pbx_card__footer {
  color: #33691e;
}

/* ---------- СЕМЕЙНЫЙ ---------- */
.pbx_card__members {
  display: flex;
  flex-direction: column;
}

.pbx_card__member {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}

.pbx_card__icon {
  margin-right: 8px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.pbx_card__member-info {
  display: flex;
  flex-direction: column;
}

.pbx_card__label {
  font-weight: 600;
  font-size: 14px;
}
.pbx_card__info {
  display: block;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  margin-bottom: 6px;
}
.pbx_card--new .pbx_card__header {
  justify-content: flex-end;
}

