
/*Вывод views*/


/*Общая разметка записей */
DIV.V_VIT_CARDS
{
  display:flex;
  flex-wrap: wrap;
  gap:10px;
}

DIV.V_VIT_COLUMN
{
  display:flex;
  flex-direction: column;
  gap:10px;
}


DIV.V_VIT_TABLE
{
  padding:40px 15px 15px 15px;
  xbackground:yellow;
  xdisplay: flex;
  xjustify-content: center;
}
DIV.V_VIT_TABLE_IN /*Чтобы доступный размер по ней определять*/
{
  width:100%;height:100%;overflow: hidden;
}


DIV.V_VIT_FULL /*Весь - экран, например сплит*/
{
  width:100%;
  height:100%;
}

DIV.V_VIT_MARGIN15
{
  padding-bottom:15px;
}


DIV.V_VIT_LIST
{
  background: white;
  border-radius: 6px;
  padding:5px 0px 5px 2px;
  margin:0 0 0px 15px;
  width:200px;
  box-shadow: 0 0 7px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap:3px;
  max-height: 100%;
}

DIV.V_VIT_LIST_FULL
{
  flex-grow:1;
  margin-right:10px;
  height:100%;
  display:flex;
  flex-direction: column;
  justify-content: center;
}

DIV.V_VIT_LIST_FULL DIV.V_VIT_ONE
{
  min-height:0;
  overflow: hidden;  
}
DIV.V_VIT_LIST_FULL DIV.V_MEM_CONT
{
  height:100%;
}

DIV.V_VIT_LIST_FULL DIV.V_CONT
{
  height:100%;
  overflow: hidden; 
  display:flex; 
  flex-direction: column;
}
DIV.V_VIT_LIST_FULL DIV.V_BODY
{
  overflow: hidden;  
  flex-grow:1;
  min-height:0;
  display: flex;
  flex-direction: column;
}

DIV.V_VIT_LIST_FULL DIV.V_LAY
{
  flex-grow:1;
  min-height:0;
  overflow: hidden; 
  display:flex; 
  flex-direction: column;
}


DIV.V_VIT_ONE_STRETCH
{
  height:100%;
}

DIV.V_VIT_ONE_STRETCH DIV.V_MEM_CONT
{
  height:100%;
}

DIV.V_VIT_RESIZE_W
{
  width:15px;
  min-width: 15px;
  height:100%;
  cursor: ew-resize;
}




/*Вывод самой записи*/
DIV.V_CONT
{
  overflow:hidden;
  box-sizing: border-box;
}

DIV.V_CONT_ROUNDW
{
  border-radius:8px;
  background:white;
}

DIV.V_CONT_DRAG_OVER
{
  outline: 3px solid #000000;
}

DIV.V_CONT_SIZE_H
{
  xborder-radius:0px 0px 8px 8px;
  height:12px;
  min-height: 12px;
  max-height: 12px;
  flex-shrink: 0;
  cursor: ns-resize;
}

DIV.V_CONT_SIZE_H:hover
{
  background: #DDD;
}

DIV.V_CONT:hover DIV.V_CONT_SIZE_H
{
  xbackground: rgb(243, 243, 243);
}


DIV.V_BODY
{
  padding:10px;
}

DIV.V_PAD_10
{
  padding: 10px;
}

DIV.V_CONT_STRETCH
{
  height:100%;  
}

DIV.V_CONT_STRETCH DIV.V_BODY
{
  height:100%;display:flex;flex-direction:column;gap:10px;
}
DIV.V_CONT_STRETCH DIV.V_LAY
{
  flex-grow:1;
  xbackground: red;
  min-height:0;
  overflow:hidden;
}

DIV.V_CONT_STRETCH DIV.A_LAYF_CONT
{
  xbackground: blue;
}





DIV.V_STUB IMG
{
  width:22px;
  height:22px;
}

.V_STUB IMG,
.V_CONT:hover .V_CONT .V_STUB IMG  /*Эти двойные cont, т.к. в mem могут mem показывать, например rel*/
{
  opacity:0;
}
.V_CONT:hover .V_STUB IMG,
.V_CONT .V_CONT:hover .V_STUB IMG
{
  opacity:0.3;
}


DIV.V_STUB DIV.AM_CHECKBOX_1 IMG                    {opacity:1;}
DIV.V_STUB DIV.AM_CHECKBOX_1 IMG:hover              {opacity:1;}
DIV.V_CONT:hover DIV.AM_CHECKBOX_1 IMG              {opacity:1;}
.V_CONT:hover .V_CONT .V_STUB DIV.AM_CHECKBOX_1 IMG {opacity:1;}

DIV.V_STUB_LEFT
{
  display:flex;
  flex-direction:column;
  padding:8px 5px 0 5px;
  gap:2px;
}

DIV.V_STUB_BOT
{
  margin-top:5px;
  display:flex;
  gap:2px;
  padding:3px 10px 2px 10px;
}
DIV.V_STUB_BOT IMG
{
  width:18px;
  height:18px;
}

DIV.V_STUB_LIST
{
    
}
DIV.V_STUB_LIST IMG
{
  width:16px;
  height:16px;
  padding: 1px 3px 1px 1px;
}




DIV.V_TIMELINE_center
{
  width:10px;
  min-width: 10px;  
  background: rgba(255,255,255,0.7);
  border-radius: 5px;
}

DIV.V_TIMELINE_left, DIV.V_TIMELINE_right
{
  display:flex;
  flex-direction: column;
  gap:20px;
  padding-bottom: 10px;
}

DIV.V_TIMELINE_right
{
  padding-top:145px;
}
DIV.V_TIMELINE_left
{
  padding-top:10px;
}


DIV.V_TIMELINE_MEM_left
{
  display:flex;
  flex-direction: row;
  align-items: center;
}
DIV.V_TIMELINE_MEM_right
{
  display:flex;
  flex-direction: row-reverse;
  align-items: center;
}

DIV.V_TIMELINE_STROKE_left, DIV.V_TIMELINE_STROKE_right
{
  width:10px;
  min-width:10px;
  height:10px;
  background: rgba(255,255,255,0.7);
}


DIV.V_MAP_ZZ
{
  width:100%;
  height:100%;
}
DIV.V_MAP
{
  width:100%;
  height:100%;
}

DIV.V_MAP_B_TEXT
{
  position:absolute;
  left:50%;                        
  transform:translateX(-50%);      
  white-space:nowrap;
  padding:2px 2px;
  border-radius:5px;
  background:rgba(255,255,255,0.9); 
  xbackground:red;
  color:#000;
  font-size:11px;
  line-height:1.2;
}


DIV.V_SEP_CONT
{
  display:flex;
  margin:15px 0 15px 0;
  align-items:center;
  cursor: pointer;
}

DIV.V_SEP_LEFT,DIV.V_SEP_RIGHT
{
  width:25px;
  flex-shrink: 0;
  text-align: center;
}
DIV.V_SEP_MID
{
  flex-grow:1;
  border-radius:3px;
  overflow:hidden;
  xdisplay: flex;
  xjustify-content: center;
}

DIV.V_SEP_EMPTY
{
  width:100%;
  height:10px;
}
DIV.V_SEP_TEXT
{
  text-align:center;
  padding:4px 0 4px 0;
}

DIV.V_SEP_LIST_CONT
{
  display:flex;
  cursor: pointer;
  align-items:center;
  border-radius: 3px;
  overflow: hidden;
}

DIV.V_SEP_LIST_CONT DIV.V_SEP_EMPTY
{
  height:2px;
  border-radius: 3px;
}

DIV.V_SEP_LIST_CONT DIV.V_SEP_TEXT
{
  font-size:11px;
  border-radius: 3px;
  padding:1px 0 1px 0;
}


DIV.V_SEP_LIST_STUB 
{
  width:20px;
}

DIV.V_SEP_LIST_MID
{
  flex-grow:1;
  position:relative;
}

DIV.V_SEP_LIST_TITLE
{
  xposition:absolute;
  width:100%;
  xheight:100%;
}

DIV.V_SEP_LIST_BTNS
{
  position: absolute;
  right: 0px;
  top:0px;
}

DIV.V_SEP_LIST_BTNS img
{
  width:14px;
  height:14px;
  opacity:0.5;
  padding:1px 3px 1px 1px;
}
DIV.V_SEP_LIST_BTNS img:hover
{
  opacity:1;
}

DIV.V_SEP_RIGHT img
{
  width:18px;
  height:18px;
  opacity:0.5;
}

DIV.V_SEP_RIGHT img:hover 
{
  opacity:1;
}



/****************** RELATIONAL VIEW *************************************/
DIV.XRM_LIST
{
  display: flex;
  flex-wrap: wrap;
  gap:0px;
}

DIV.XRM_LIST DIV.V_MEM_CONT
{
  padding:0 4px 0 4px;
  border-radius: 3px;
}
DIV.XRM_LIST DIV.XRM_LIST_BTN
{
  padding:4px 4px 0 10px;
  flex-grow: 0;
}




/****************** ТАБЛИЦА *************************************/

/*
  T_CONT - размеры задаем жестко
  Прокрутка идет внутри T_RECS_CONT (добавляем стили скроллов)
  T_HEAD_CONT - сдвигается при скролле - скриптом

*/

DIV.T_CONT
{
  position: relative;  
  overflow: hidden;
}

DIV.T_HEAD_CONT
{
  width:100%;
  position: absolute;
  z-index: 1;
  left:0px;
  top:0px; 
}

DIV.T_RECS_CONT
{
  position: absolute;
  left:0px;
  width: 100%;
  height:100%;
  overflow: hidden;

}


TABLE.T_RECS_CONT, TABLE.T_HEAD_CONT
{
  border-collapse: collapse;
  border:0px;
}

TABLE.T_HEAD_CONT TH, TABLE.T_RECS_CONT TD
{
  border-right:0.5px solid #999999;
}

TABLE.T_HEAD_CONT TR TH:last-child, TABLE.T_RECS_CONT TR TD:last-child
{
  border:0px;
}



TABLE.T_HEAD_CONT TH
{
  
  background:white;
  cursor: pointer;
  box-sizing: border-box;
  padding: 3px 0 3px 0;
  color:#777;
}

TABLE.T_HEAD_CONT TH:hover
{
  background: #CCC;
  color: black;
}


DIV.T_HF_CONT
{
  display:flex;
}
DIV.T_HF_TITLE
{
  flex-grow:1;
  white-space:nowrap;
  text-overflow: ellipsis;  
  margin-left:5px;
  overflow: hidden;
  flex-shrink: 1;
  
}
DIV.T_HF_DRAG
{
  flex-shrink: 0;
  min-width:10px;
  cursor: ew-resize;
  margin-right:-5px;
  z-index:1;
}

TABLE.T_RECS_CONT TR:hover
{
  cursor:pointer;
  xbackground:#EEEEEE;
}


TABLE.T_RECS_CONT TD
{
  overflow:hidden;
  padding:5px;
  box-sizing: border-box;
}

TABLE.T_RECS_CONT TD > div
{
  xmax-height:100px;
  overflow: hidden;
}

TABLE.T_RECS_CONT TD .ZZP_CONT
{
  height:100%;
  width: 100%;
}

TABLE.T_RECS_CONT TD .ZZP_FILE
{
  height:100%;
  width: 100%;
}

TABLE.T_RECS_CONT TD IMG.ZZP_IMG 
{
  xmax-height:100px;
  width: 100%;
  object-fit: contain;
  object-position: center;
}


DIV.T_STUB 
{
  text-align: center;
  xbackground:red;
  xheight: 100%;      /*height - не работает :(*/
  xmin-height: 100%;
  xdisplay: flex; xflex-direction: column;
}


DIV.T_STUB  IMG
{
  width:20px;
  height:20px;
  opacity: 0;
}

TABLE.T_RECS_CONT TR:hover DIV.T_STUB IMG
{
  opacity: 0.5;
}

DIV.T_STUB DIV.AM_CHECKBOX_1 IMG  {opacity:1;}
TABLE.T_RECS_CONT TR:hover DIV.AM_CHECKBOX_1 IMG  {opacity:1;}

DIV.T_COMBINED
{
  padding: 5px 0 0 0;
}