:root 
{
  --colorNeutral: #323232; 
  --ColorDisable: #b8b8b8;

  --colorBackground1: #ffffff;
  --colorBackground2: #eaeaea;
  
  --colorHighLighted1:#eaeaea;
  --colorHighLighted2: #b8b8b8;

  --colorBorder1: #b8b8b8;
  --colorBorder2: #eaeaea;

  /*--colorAccent:#2563eb;
  --colorSelectionBackground:#cce8ff;*/
  --colorAccent: #8EC5E8;
  --colorSelectionBackground: #8EC5E8;
  --colorSelectionBorder:#323232;

  --icon-primary: #3b82f6;
  --icon-success: #030303;
  --icon-warning: #F59E0B;
  --colorError: #EF4444;
  --icon-info: #8B5CF6;
}

* 
{
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE/Edge älter */
}


html, body 
{
  overscroll-behavior: none;
  touch-action: none;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;

}

body 
{
    font-family: arial;
    font-size: 13px !important;
    margin: 0;
    padding: none;
    height: 100%;
    width: 100%;
    background-color: var(--colorBackground2);
    color: var(--colorNeutral);
}

body.dark 
{
    --colorNeutral: #eaeaea;
    --colorDisable: #727272;

    --colorBackground1: #525252;
    --colorBackground2: #3b3b3b;  
    
    --colorHighLighted1:#3b3b3b;
    --colorHighLighted2:#121212;

    --colorBorder1: #727272;
    --colorBorder2: #727272;

    --colorAccent:#3b82f6;

    /*--colorSelectionBackground:#727272;*/
    --colorSelectionBackground:#3b82f6;
    --colorSelectionBorder:#949494;
}

body.dark ::-webkit-scrollbar-track 
{
  background-color: var(--colorBackground2);
}

body.dark ::-webkit-scrollbar-thumb 
{
  background-color: var(--colorBackground1);
  border-radius: 6px;
  border: 2px solid var(--colorBackground2);
}

body.dark ::-webkit-scrollbar-thumb:hover 
{
    background-color: var(--colorBorder1);
}


body.dark /* Firefox */
{
  scrollbar-color: var(--colorBackground1) var(--colorBackground2); 
  scrollbar-width: thin;
}


.icon
{
    color: var(--colorNeutral);
}

.red 
{ 
    color:var(--colorError);
}

.disabled 
{
   opacity: 0.4;
   pointer-events: none;
}

.arrow-right 
{
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid var(--colorNeutral);
}

.arrow-left 
{
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 9px solid var(--colorNeutral);
}

.arrow-down 
{
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--colorNeutral);
}

.arrow-up 
{
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 9px solid var(--colorNeutral);
}

div
{
    margin: 0px;
    padding: 0px;
    outline: none;
    box-sizing: border-box;
}

div.splash
{
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    left:0px;
    right:0px;
    top:0px;
    bottom:0px;
    background-color: rgba(255, 255, 255, 0.2);

    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto;    
    background-image:url(../img/biicado_splash_400.png); 

    z-index: 2000;
}

div.spinnerContainer 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; 
    box-sizing: border-box;
}

div.spinnerText 
{
    font-size: 16px !important;
    box-sizing: border-box;
    color:#ffffff;
}

div.spinner
{
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2); 
    border-top: 4px solid #ffffff;                  
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-sizing: border-box;
}

@keyframes spin 
{
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

div.overlay
{
    position: fixed;
    left:0px;
    right:0px;
    top:0px;
    bottom:0px;
    z-index:3000;
}

div.keyboard
{
    position: fixed;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    padding-top: 4px;
    gap:4px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 100px;

    border-top: 1px solid var(--colorBorder1);
    background-color: var(--colorBackground2);
}

div.key
{
    display: flex;
    justify-content: center;
    align-items: center;
    width:48px;
    height:48px;
    border-radius: 4px; 
    border: 1px solid var(--colorBorder1);
    font-size: 14px !important;
    font-weight: bold;    
}

div.key:active 
{
    background-color: var(--colorSelectionBackground);
}

div.key.pressed
{
    background-color: var(--colorSelectionBackground);
}

div.seperatorHor
{
    position:absolute;
    top:0px;
    left:0px;
    right:0px;
    height:1px;    
    background-color:  var(--colorBorder1);
}


div.mainContainer
{
    position: fixed;
    display: flex; 
    flex-direction: row; 
    left:4px;
    right:4px;
    top:143px;    
    bottom:44px;
    overflow: hidden;
    border-top: 0px solid var(--colorBorder1);
}

div.mainContainer.ios
{
    bottom:56px;
}

div.mainContainer.ribbonOff
{
   top:42px;  
}

div.leftContainer
{
    position: absolute;

    left:0px;
    top:6px;
    /*height:calc(100% - 6px);*/
    bottom: 0px;
    width:40px;
    overflow: hidden;
}

div.leftControl
{
    position: absolute;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0px;
    top:0px;
    left:0px;
    height:100%;
    width:40px;
    box-sizing: border-box;
    padding:0px 2px 0px 2px;
    border-right: 1px solid var(--colorBorder1);
}

div.icon32
{
    display:flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    width:34px;
    height:34px;
    border-radius: 4px;
}

div.icon32.selected
{
    background-color: var(--colorHighLighted2);
}

div.icon32.hover
{
    background-color: var(--colorSelectionBackground);
}

div.dragbar
{
    position: absolute;
    display: block;
    top:6px;
    left:250px;
    bottom:0px;    
    width:5px;
    
    cursor: col-resize;
    box-sizing: border-box; 
}

div.dragbar.hover
{
    background-color: var(--colorAccent);
}

div.dragbarLine
{
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 2px;
  width: 1px; 
  z-index:2000;
  box-sizing: border-box; 
  background-color: var(--colorBorder1);
}

div.dragbar.hover div.dragbarLine
{
    background-color: var(--colorAccent);
}

div.rightContainer
{
    position:absolute;
    top:6px;
    bottom: 0px;
    left:40px; 
    right:0px; 
    overflow: hidden;
}

div.canvasContainer
{
    position:absolute;
    top:0px;
    bottom: 0px;
    left:5px;
    right:2px;
    overflow: hidden;
    cursor: none;
    border: 0px solid transparent;
    border-radius: 8px;     
}

div.canvasContainer canvas
{
    outline: none;
    width: 100%;
    height: 100%;
    border: 0px solid transparent;
    border-radius: 8px;  
    background-color: #2d2d2d; 
}


div.outputContainer
{
    position: absolute;         
    font-size: 13px !important;
    user-select: none;  
    pointer-events: none;  
    left:5px;
    right:5px;  
    bottom: 100%;
    padding: 4px 4px;
    margin: 0 auto;
    z-index: 4000;
    color:#cccccc;
}

div.outputContainer span
{
    line-height: 17px;
    background-color: #323232;
}

div.outputContainer span.error
{
    color:#ffa500;
}



div.outputWindow_outside
{
    position: absolute;
    
    left:0px;
    width:200px;
    bottom:100px;
    overflow-y: hidden;
    outline: none;
    box-sizing: border-box; 
    border-radius: 4px;
    background-color:var(--colorBackground2);       
}

div.outputWindow_inside
{
    position: absolute; 
    font-size: 13px !important;
    user-select: none; 
    padding:4px;   
    left:0px;
    top:0px;
    width:200px;
    height:200px;
    overflow-y: auto; 
}

div.inputContainer
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);    
    display: flex; 
    left: 5px;
    right: 2px;
    height:30px;
    padding: 0 4px;
    align-items: center;
    outline: none;
    box-sizing: border-box;  
    z-index: 4000;  
    border-top-left-radius: 4px; 
    border-top-right-radius: 4px;     
    border-bottom-left-radius: 4px; 
    border-bottom-right-radius: 4px;     
    border: 0px solid transparent;
    background-color: var(--colorBackground1);
}


div.inputContainer label
{
    font-size: 13px !important;
    user-select: none;
}

div.inputContainer span.option
{
    margin:0px;
    padding:0px;   
    cursor: pointer;
    user-select: none; 
    color:var(--colorAccent);
}

div.inputContainer span.option:hover
{
    background-color: var(--colorHighLighted2);
}



div.inputContainer input
{
    flex:1;
    min-width: 60px;
    font-size: 13px !important;
    margin:0px 4px 0px 4px;
    padding:0px 0px 0px 0px;
    border: none;
    outline:none;
    background-color: transparent; 
    color: var(--colorNeutral);
}

div.inputContainer input:focus
{
    border: none;
    outline:none;  
}

div.arrow
{
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
    width: 24px;
    height:24px;
    border-radius: 2px; 
}

div.arrow.hover
{
    background-color: var(--colorHighLighted2);
}

div.statusbar
{
    position: fixed;
    /*display: flex;
    flex-direction: column;
    align-items: center;*/
    font-size: 13px !important;
    left:4px;
    right:4px;
    bottom:0px;
    height:44px;
    padding-left: 8px;
    background-color: var(--colorBackground2);
}

div.statusbar.ios
{
    bottom:24px;
}

span.statusbar-coordinates
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 220px;
}



div.dialog-button
{
    position:relative;
    height:32px;
    line-height: 32px;
    min-width: 32px;
    padding-left: 8px;
    padding-right: 8px;
    outline: none;
    box-sizing: border-box;
    font-size:14px !important;
    font-weight: normal;
    user-select: none;
    border-radius: 4px;
    border: 1px solid var(--colorBorder1);   
}


div.dialog-button.hover
{
    background-color:var(--colorHighLighted2);
}


div.dialog-overlay
{
    position:absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom:0px;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.5);    
}


div.messageBox
{
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);      
    user-select: none;;
    box-sizing: border-box; 
    border-radius: 4px;
    border: 1px solid var(--colorBorder1);
    background-color: var(--colorBackground2);            
}


div.messageBox-title
{
    position: relative;
    padding-left: 8px;
    padding-right: 8px;
    left:0px;
    right:0px;
    height:24px;
    line-height: 24px;
    font-size: 14px !important;
    font-weight: bold; 
}

div.messageBox-content
{
    position: relative;
    display:flex;
    justify-content: center;
    align-items: center;    
    padding-left: 8px;
    padding-right: 8px;
    left:0px;
    right:0px;
    min-height:80px;
    min-width: 250px;
    font-size: 14px !important;
    background-color: var(--colorBackground1); 
}

div.messageBox-content-list
{
    position: relative;
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-top:8px;
    margin-bottom: 8px;    
    padding: 4px;
    left:0px;
    right:0px;
    min-width: 250px;
    font-size: 14px !important;
    background-color: var(--colorBackground1);
}

div.messageBox-content-list-item
{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;    
    gap:8px;
    width:100%;
    height: 48px;
    padding-right: 8px;
    padding-left: 8px;      
    border-bottom: 1px solid var(--colorBorder1);   
}

div.messageBox-content-list-item.icon
{
    padding-left: 48px;
    background-position: 8px 8px;
    background-size:32px 32px;
    background-repeat:no-repeat;          
}

div.messageBox-content-list-item.hover
{
    background-color: var(--colorHighLighted1);
}


div.messageBox-footer
{
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    padding-right: 8px;
    padding-left: 8px;
    left:0px;
    right:0px; 
    height:48px;  
}

fieldset.groupBox
{
    padding: 8px; /* 4px 4px 4px;*/
    user-select: none;
    box-sizing: border-box; 
    border-radius: 4px;
    border: 1px solid var(--colorBorder1);
}

legend.groupBox 
{
    padding: 0 4px;
    font-size: 13px !important;
    font-weight: normal;
}

input::selection 
{
    background-color: var(--colorSelectionBackground);
}

input[type="text"].text
{
    appearance: none;        /* Browser-Styles entfernen */
    -webkit-appearance: none;
    border: none;
    outline: none;
    height: 32px;
    min-width: 32px;
    padding-left: 4px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid var(--colorBorder1); 
    background-color: var(--colorBackground1);
    color: var(--colorNeutral);
    font-size: 13px !important;
}

textarea.text
{
    padding-left: 4px;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid var(--colorBorder1); 
    background-color: var(--colorBackground1);
    color: var(--colorNeutral);       
}

textarea.text:focus
{
    outline: none;
    border: 1px solid var(--colorBorder1); 
    background-color: var(--colorBackground1);
    color: var(--colorNeutral);    
}

div.groupBox
{
    position: relative;
    display: flex;
    flex-direction: column;
    gap:4px;
}

div.groupBox-row
{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:4px;
    font-size: 13px !important;
    font-weight: normal;
}

div.groupBox.border
{
    padding:8px;
    border-radius: 4px;
    border: 1px solid var(--colorBorder1);    
}

div.comboBox
{
    display: grid;
    align-items: center;
    height: 32px;
    width: 200px;
    font-size: 13px !important;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid var(--colorBorder1); 
    background-color: var(--colorBackground1);
    color: var(--colorNeutral);    
}

div.comboBoxIcon
{
    height: 32px;
    width: 32px;   

    min-width: 0;
    overflow: hidden; 
    text-overflow: hidden;   
    white-space: nowrap;    
}

div.comboBoxButton
{
    height: 32px;
    width: 24px;
    line-height: 32px;
    text-align: center;
    user-select: none;
    /*cursor: pointer;*/
    box-sizing: border-box;
    font-size: 12px !important; 
    
    min-width: 0;
    overflow: hidden; 
    text-overflow: hidden;   
    white-space: nowrap;    
}

div.comboBoxLabel
{
    /*display:flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex:1;*/
    user-select: none;
    height:32px;
    min-width: 0px;
    line-height: 32px;
    user-select: none;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 13px !important;
    color: var(--colorNeutral);
    overflow: hidden;
    
    min-width: 0;
    overflow: hidden; 
    text-overflow: hidden;   
    white-space: nowrap;   
}

div.comboBoxList
{
    position: absolute;  
    display:flex;
    flex-direction: column;  
    top: 0px; 
    left: 0px;  
    user-select: none;
    border-radius: 4px;
    min-height:32px;
    border: 1px solid var(--colorBorder1);
    background-color:var(--colorBackground1);
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 13px !important;
    font-weight: normal;

}

div.comboBoxItem2
{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 4px;
    padding-right:4px;
    height: 32px;
    line-height: 32px;
    font-size: 13px !important;
    box-sizing: border-box;
    color: var(--colorNeutral);    
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;    
    gap: 4px;
}

div.comboBoxItem2.hover
{
    background-color:var(--colorHighLighted1);
}


div.comboBoxItem
{
    display:flex;
    flex-direction: row;
    align-items: center;
    line-height: 32px;
    padding-left: 4px;
    padding-right: 4px;
    user-select: none;
    cursor: pointer;
    gap: 8px;
}

div.comboBoxItem.hover
{
    background-color:var(--colorHighLighted1);
}


div.comboBoxItem.selected
{
    background-color:var(--colorSelectionBackground);
    border: 1px solid var(--colorSelectionBorder);
}

div.listBox
{
    display:flex;
    flex-direction: column;
    box-sizing: border-box; 
    min-height: 32px;
    border: 1px solid var(--colorBorder1);
    background-color:var(--colorBackground1);
    overflow-y: auto;
    font-size: 13px !important;
    font-weight: normal;    
}

div.listBoxItem
{
    display:flex;
    flex-direction: row;
    align-items: center;
    line-height: 32px;
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
    border: 1px solid transparent;
    gap: 8px;
}

div.listBoxItem.hover
{
    background-color:var(--colorHighLighted1);
}


div.listBoxItem.selected
{
    background-color:var(--colorSelectionBackground);
    border: 1px solid var(--colorSelectionBorder);
}

div.tableWrapper
{
    border-radius: 4px;
    border: 1px solid var(--colorBorder1); 
    background-color:var(--colorBackground1);
    overflow: hidden;
}

div.table
{ 
    padding-bottom: 4px;
    font-size: 13px !important;
    font-weight: normal;    
    overflow: auto;
}

div.tableRow
{
    display: grid;
    align-items: center;
    height:32px;
}

div.tableRow.background1
{
    background-color:var(--colorBackground1);
}

div.tableRow.selected
{
    background-color:var(--colorSelectionBackground);
}

div.tableRow.option
{
    --resizePos: 200px;
}

/*div.tableRow.selected > * 
{
  background-color: inherit;
}*/

div.tableRow.hover
{
    background-color:var(--colorHighLighted1);
}

div.tableRow.hover > * 
{
    background-color: inherit;
}


div.tableHeader
{
    display: grid;
    align-items: center;
    height:32px;    
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--colorBackground2);
    width: max-content;
    text-align: center;
}

div.tableResizeBar
{
    height: 32px;
    width: 1px;
    background-color: var(--colorBackground2);
}

div.tableCell 
{
    display: flex;
    align-items: center;    
    height:32px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--colorBorder1);
    border-right: 1px solid var(--colorBorder1);
    overflow: hidden;
}

div.tableCell:last-child
{
    border-right: none;
}

div.tableCell > span 
{
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left:4px;
    padding-right:4px;    
}

div.tableCell.resizing
{
    cursor: col-resize;
    background-color: var(--colorAccent);
}

div.tableCell.resizing > div.tableResizeBar
{
    background-color: var(--colorAccent);
}

div.layerColumns
{
   grid-template-columns: 
      36px   /*Status*/
      36px   /*Show*/
      36px   /*Freeze*/ 
      36px   /*Lock*/     
      120px  /*Name*/
      120px  /*LineColor*/
      120px  /*LineType*/
      120px  /*LineWeight*/
      120px  /*Transparency*/
      120px  /*PlotStyle*/
      36px   /*Plot*/
      120px; /*Description*/    
}

div.linetypeColumns
{
   grid-template-columns: 
      36px   /*Status*/
      174px   /*Name*/
      250px   /*Description*/ 
}

div.colorRow
{
    display: grid;
    align-items: center;
    height:29px;
    gap:1px;
}

div.colorCell 
{
    display: flex;
    align-items: center;    
    height:29px;
    box-sizing: border-box;
    border: 1px solid var(--colorBorder1);
}

div.colorCell.selected
{
    border: 2px solid var(--colorAccent);
}

div.colorCell.hover
{
    border: 2px solid var(--colorAccent);
}

div.colorRectangle
{
    max-width: 18px;
    max-height: 18px;
    box-sizing: border-box;
    border: 1px solid var(--colorNeutral);
}

div.checkBox
{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 20px;
    font-size: 13px !important;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid var(--colorNeutral); 
    /*background-color: var(--colorBackground1);*/
    color: var(--colorNeutral);    
    cursor: pointer;
}

div.checkBox-row
{
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 13px !important;
    line-height: 24px;
    color: var(--colorNeutral); 
    gap:8px;   
}

div.iconButton
{
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 13px !important;
    line-height: 24px;
    color: var(--colorNeutral); 
    gap:8px;
    cursor: pointer;  
}

div.iconButton.hover
{
    background-color:var(--colorHighLighted2);    
}


div.radioButton
{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    width: 20px;
    font-size: 13px !important;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px solid var(--colorNeutral); 
    /*background-color: var(--colorBackground1);*/
    color: var(--colorNeutral);    
    cursor: pointer;
}

div.radioButton span
{
    display:inline-block;
    width:10px;
    height:10px;
    box-sizing: border-box;
    border-radius:50%;
    border: 1px solid var(--colorNeutral); 
    background-color: var(--colorNeutral);
}

div.radioButton-row
{
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 13px !important;
    line-height: 24px;
    color: var(--colorNeutral);  
    gap:8px;  
}

div.label
{
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 13px !important;
    line-height: 24px;
    color: var(--colorNeutral);  
}

div.centerHorVer
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

div.tabContainer
{
    display: flex;
    flex-direction: column;
    box-sizing: border-box; 
    color: var(--colorNeutral);
    gap:4px;
}

div.tabHeader
{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:4px;
    padding-left:4px;
    height:40px;
    box-sizing: border-box;
    border: 1px solid var(--colorBorder1);
}

div.tabHeader-tab
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
    /*margin-top:2px;*/
    font-size: 13px !important;
    color: var(--colorNeutral);  
    height: 32px;
    box-sizing: border-box;
    border-radius: 4px;   
    border: 1px solid var(--colorBorder1);
}

div.tabHeader-tab.selected
{
    border: 1px solid var(--colorAccent);
    background-color: var(--colorBackground1); 
}

div.tabContent
{
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
    border-left: 1px solid var(--colorBorder1);
    border-right: 1px solid var(--colorBorder1);
    border-bottom: 1px solid var(--colorBorder1);
    border-top: 1px solid var(--colorBorder1);
    background-color: var(--colorBackground1);
}

div.tabPanel
{
    display: flex;
    gap: 4px;
    box-sizing: border-box;    
}


div.dialog-frame
{
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);    
    user-select: none;
    box-sizing: border-box; 
    border-radius: 4px;
    border: 1px solid var(--colorBorder1);
    background-color: var(--colorBackground2);
}

div.dialog-header
{
    position: relative;
    padding-left: 8px;
    padding-right: 16px;
    left:0px;
    right:0px;
    height:32px;
    line-height: 32px;
    font-size: 15px !important;
    font-weight: normal;   
}

div.dialog-content
{
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap:4px;
    left:0px;
    right:0px;
    font-size: 13px !important;
    font-weight: normal; 
}

div.dialog-content-row
{
    position: relative;
    display: flex;
    flex-direction: row;   
    align-items: center; 
    gap:4px;
}

div.dialog-footer
{
    position: relative;
    display: flex;
    flex-direction: row;
    /*justify-content: flex-end;*/
    align-items: center;
    gap: 8px;
    padding-right: 8px;
    padding-left: 8px;
    left:0px;
    right:0px; 
    height:48px;      
}

div.pdfContainer
{
    display: flex;
    justify-content: center;
    align-items: center;    
    padding:8px;
    background-color: var(--colorBorder1);
}
div.propertyWindow
{
    position:absolute;
    display:none;
    flex-direction: column; 
    gap: 1px;
    top:5px;
    bottom: 7px;
    left:44px;
    right:5px;
    overflow: hidden;
    border: 0px solid transparent;
    /*border-radius: 8px;*/
}

div.property_elementtype
{
    display:flex;
    flex-direction: row; 
    align-items: center;
    gap: 1px;
    left: 0px;
    right: 0px;
    height:32px;
    line-height: 32px;
    font-size: 13px;
    font-weight: bold;
    padding-left: 8px;
    background-color: var(--colorBackground1);
}

div.property_container
{
    display:flex;
    flex-direction: column; 
    flex: 1;
    gap: 1px;
    left: 0px;
    right: 0px;
    overflow-y: auto;
    overflow-x: hidden;
}

div.property_group
{
    display: flex; 
    flex-direction: column; 
    gap:1px;
    left:0px;
    right:0px;    
}

div.property_group span.hover
{
    background-color: var(--colorHighLighted2);
}

div.property_group_header
{
    display: flex; 
    flex-direction: row;
    align-items: center;
    line-height: 32px;
    left:0px;
    right:0px;
    height:32px;
    font-size: 13px;
    font-weight: bold;
}


div.property_panel
{
    display: flex; 
    flex-direction: row; 
    gap:0px;
    left:0px;
    right:0px;
    height:32px;
    font-size: 13px;
    background-color: var(--colorBackground1);
}

div.property_panel.hover
{
    background-color:var(--colorHighLighted2);
}

div.property_panel.selected
{
    background-color:var(--colorSelectionBackground);
}

div.property_label
{
    align-items: center;
    line-height: 32px;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    user-select: none;   
    top:0px;
    left:0px;
    height:32px;
    width:120px;
    padding-left: 8px;
    padding-right: 2px;
    border: 1px solid transparent;
    /*background-color: var(--colorBackground1);*/
}



div.property_dragbar
{
    width:5px;
    height:32px;
    cursor: col-resize;
    background-color: transparent;
    /*border-left: 2px solid var(--colorBackground2);
    border-right: 2px solid var(--colorBackground2);*/

}

div.property_dragbar_line
{    
    margin-left:2px;
    height:100%;
    width: 1px;
    content: "";
    background: var(--colorBackground2);
}

div.property_dragbar.hover
{ 
    background-color: var(--colorAccent);
}

div.property_dragbar.hover > div.property_dragbar_line
{
    background-color: var(--colorAccent);
}

div.property_value
{
    display:flex;
    flex-direction: row; 
    align-items: center;
    gap: 4px;
    user-select: none;
    flex:1;
    height:32px;
    min-width: 40px;
    padding-left: 4px;
    padding-right: 1px;
    font-size: 13px;
    border: 1px solid transparent;
    background-color: transparent;
    /*background-color: var(--colorBackground1);*/
}

div.property_value.selected
{
    border: 1px solid var(--colorAccent)
}


div.property_value span.button
{
    height:28px;
    width:24px;
    line-height: 28px;
    text-align: center;
    user-select: none;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 12px;
    visibility: hidden;
}

div.property_value.readonly span.button
{
    opacity: 0.4;
}

div.property_value.selected span.button
{
    visibility: visible;
}

div.property_value span.button.hover
{
    background-color: var(--colorHighLighted2);
}


div.property_value span.property_value
{
    flex:1;
}

div.property_value.readonly span.property_value
{
    opacity: 0.4;
}

span.property_color_rectangle
{
    width:16px;
    height:16px;
    border: 1px solid var(--colorBorder1);
}



div.property_dropdown_box
{
  position: absolute;  
  top: 0px; 
  left: 0px;  
  /*border-radius: 4px;*/
  min-height:32px;
  z-index: 1001;
  border: 1px solid var(--colorBorder1);
  background-color:var(--colorBackground1);
  overflow-y: auto;
}

div.property_dropdown_box div.property_value.hover
{
    background-color: var(--colorHighLighted1);
}

div.property_dropdown_box div.property_value.highlighted
{
    background-color: var(--colorSelectionBackground);
    border: 1px solid var(--colorSelectionBorder);
}

input.property_value
{
    position: absolute;  
    top: 0px; 
    left: 0px;  
    height:30px;
    z-index: 1001;
    font-size: 13px;
    border: 1px solid transparent;
    outline:none;
    margin:0px;
    padding:0px 4px;
    box-sizing: border-box;
    background-color:var(--colorBackground1);
    color: var(--colorNeutral);
}

input.property_value.invalid
{
    border: 2px solid var(--colorError);
}


div.layerWindow
{
    position:absolute;
    display:none;
    flex-direction: column; 
    gap: 1px;
    top:5px;
    bottom: 7px;
    left:44px;
    right:5px;
    overflow: hidden;
    border: 0px solid transparent;
}

div.layerTable
{
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: normal;    
    overflow-x: hidden;
    overflow-y: auto;   
}


div.layerTableHeader
{
    display: grid;
    align-items: center;
    height:32px;    
    position: sticky;
    flex: 1;
    top: 0;
    z-index: 10;
    background-color: var(--colorHighLighted2);
    text-align: center;
}

div.layerTableRow
{
    display: grid;
    align-items: center;
    height:32px;
    border-bottom: 1px solid var(--colorBorder1);
    background-color: var(--colorBackground1);
}

div.layerTableRow:last-child
{
    border-bottom: none;
}


div.layerTableRow.selected
{
    background-color:var(--colorSelectionBackground);
}

div.layerTableRow.hover
{
    background-color:var(--colorHighLighted2);
}

div.layerTableCell 
{
    display: flex;
    align-items: center;    
    height:32px;
    box-sizing: border-box;  
    border-right: 1px solid var(--colorBorder2);
}

div.layerTableCell:last-child
{
    border-right: none;
}

div.layerTableCell > span 
{
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-left:4px;
    padding-right:4px;    
}
div.optionWindow
{
    position:absolute;
    display:none;
    flex-direction: column; 
    gap: 1px;
    top:5px;
    bottom: 7px;
    left:44px;
    right:5px;
    overflow: hidden;
    border: 0px solid transparent;
}

div.optionTable
{
    padding-bottom: 4px;
    font-size: 13px;
    font-weight: normal;    
    overflow-x: hidden;
    overflow-y: auto;   
}


div.ribbon-tab-container 
{
    position: fixed;
    display: flex; 
    flex-direction: row; 
    top:0px;
    left:4px;
    right:4px;
    height:36px;
    user-select: none;    
    z-index: 1000;
}

div.ribbon-tab-button
{
    margin: 2px 4px 0px 4px;
    padding: 8px 8px;
    background-color: Transparent;
    height: 32px;   
    border-bottom: 2px solid transparent;
    font-size: 13px;    
    cursor:pointer;
}

div.ribbon-tab-button.hover
{
    background-color: var(--colorHighLighted2);
}

div.ribbon-tab-button.active
{
    border-bottom: 2px solid var(--colorAccent);
}

div.ribbon-settings
{
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px; 
    right:6px;
    height: 32px;   
    margin-top:2px;
    font-size: 16px;
    font-weight: bold;
}

div.ribbon-settings-item
{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 32px;  
    padding-left: 4px;
    padding-right: 4px; 
    cursor: "pointer";      
}

div.ribbon-settings-item.hover
{    
    background-color: var(--colorHighLighted2);
}

div.ribbon-content-container
{
    position:fixed;
    top:40px;
    left:4px;
    right:4px;
    height:98px;    
    border: 1px solid var(--colorBackground2);
    border-radius: 8px;
    z-index: 1000;   
    background-color: var(--colorBackground1);
}

div.ribbon-content-container::-webkit-scrollbar 
{
    display: none;
}

div.ribbon-content-container.ribbonOff
{
    box-shadow: 0 4px 6px -2px var(--colorBorder1); 
}

div.ribbon-content 
{
    position:absolute;
    top:0px;
    left:0px;
    right:36px;
    height:98px;
    display: none;
    padding: 0px;
    outline:none;  
    border:none;   
    
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;    
}



div.ribbon-content.active 
{
    display: flex;
}

div.ribbon-content-button 
{
    position: absolute;
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; 
    font-size: 12px;   
    padding-top: 2px;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 1010;
}

div.ribbon-content-button.hover
{
    background-color: var(--colorHighLighted1);
}

div.ribbon-group-container
{
    display: flex;   
    flex-direction: column;
    height: 92px;
    margin-top:2px;
    margin-bottom: 2px;
    border-right: 1px solid var(--colorBorder1);
}

div.ribbon-group-label 
{
    display: flex;   
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    height:20px;
    padding-bottom:2px;
    font-size: 12px;
}

div.ribbon-group 
{
    position: relative;
    display: flex;   
    flex-direction: row; 
    padding-right: 4px;
    padding-left:4px;  
}

div.ribbon-button-container 
{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 72px;
    border: 0px solid transparent;
    border-radius:4px;
    cursor:pointer;
}

div.ribbon-button-container.XX.hover
{
    background-color: var(--colorHighLighted1);
}

div.ribbon-button
{
    position: relative;
    padding-top: 2px;
    padding-left:4px;
    padding-right:4px;
    text-align: center;
    font-size: 12px;
    height:36px;
    border: 0px solid transparent;
    border-radius:4px;    
    user-select: none;
    filter:none;
}

div.ribbon-button.XX.hover
{
        background-color: var(--colorHighLighted1);
}


div.ribbon-button-text
{
    position: relative;
    padding-top:4px;
    padding-left:4px;
    padding-right:4px;    
    text-align: center;
    font-size: 12px !important;
    line-height: 16px;
    height:36px; 
    min-width: 48px;
    max-width: 92px;  
    border: 0px solid transparent;
    border-radius:4px;
    user-select: none;
    filter:none;  
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

div.ribbon-button-text.XX.hover
{
    background-color: var(--colorHighLighted1);
}



div.ribbon-dropdown-box
{
  position: absolute;  
  top: 0px; 
  left: 0px;  
  border-radius: 4px;
  min-height:32px;
  z-index: 1001;
  border: 1px solid var(--colorBorder1);
  background-color:var(--colorBackground1);
  overflow-y: auto;
}

div.ribbon-dropdown-separator
{
    display: flex;
    margin:1px;
    height:1px;
    left:0px;
    right:0px;
    background-color: var(--colorBorder1);
}

div.ribbon-dropdown-item
{
    display: flex;
    flex-direction: row;
    align-items: center; 
    gap:8px;
    margin:1px;
    padding-left:8px;
    padding-right:8px;
    height:40px;
    min-width:48px;  
    font-size: 13px;    
    user-select: none;
    white-space: nowrap;
}

div.ribbon-dropdown-item.hover
{
    background-color: var(--colorHighLighted1);
}

.snap_endpoint     { background-image:url(../img/snap_endpoint.png);}
.snap_midpoint     { background-image:url(../img/snap_midpoint.png);}
.snap_cenpoint     { background-image:url(../img/snap_cenpoint.png);}
.snap_quadpoint    { background-image:url(../img/snap_quadpoint.png);}
.snap_intersection { background-image:url(../img/snap_intersection.png);}
.snap_perppoint    { background-image:url(../img/snap_perppoint.png);}
.snap_tanpoint     { background-image:url(../img/snap_tanpoint.png);}
.centermark        { background-image:url(../img/centermark.png);}
.crosshair         { background-image:url(../img/crosshair.png);}
.crosshair_pickbox { background-image:url(../img/crosshair_pickbox.png);}
.pickbox           { background-image:url(../img/pickbox.png);}

div.grippoint
{
  background-color:#0000ff;
  border: 1px solid #909090;
}

div.grippoint1
{
  background-color:#00ff00;
  border: 1px solid #909090;
}

div.grippoint2
{
  background-color:#ff0000;
  border: 1px solid #909090;
}

div.zoomWindow_white
{
  background-color: rgba(240, 240, 240, 0.2);
  border: 1px solid #ffffff;
}

div.selectionWindow_blue
{
  background-color: rgba(0, 0, 255, 0.2);
  border: 1px solid #ffffff;
}

div.selectionWindow_green
{
  background-color: rgba(0, 255, 0, 0.2);
  border: 1px dashed #ffffff;
}



div.dragger
{
    position: absolute;
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    height: 32px;
    pointer-events: none;
    border:none;
    outline: none;
    box-sizing: border-box;
    font-size: 13px;
    padding-left: 2px;
    padding-right: 2px;
    padding-top:2px;
    border-top: 6px solid transparent;
    border-bottom: 7px solid transparent;    
    background-color: rgba(192, 192, 192, 0.7);
    background-clip: padding-box;
    color:#000000;
    z-index: 4201;    
}

div.dragger.locked
{
    padding-right: 20px;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto;    
    background-image:url(../img/lock_16.png);
}

div.dragger.options
{
    padding-right: 20px;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto;    
    background-image:url(../img/arrow_bottom_16.png);
}

div.dragger span
{
    font-size: 13px;   
    color: #000000;
}

div.dragger span.highlighted
{
    background-color: rgba(22, 81, 121, 0.7);
    color:#ffffff;
}

div.dragger-dropdown-box
{
    position: absolute;
    white-space: nowrap;
    min-height: 32px;
    border:none;
    outline: none;
    box-sizing: border-box;
    z-index: 1010;
    background-color:#242424;    
}

div.dragger-dropdown-item
{
    display: flex;
    margin:1px;
    padding-left:8px;
    padding-right:8px;
    height:32px;
    min-width:48px;
    align-items: center; 
    font-size: 13px;
    user-select: none;
    box-sizing: border-box;    
    background-color:#ffffff;
    color:#242424;

}

div.dragger-dropdown-item.selected
{
    background-color:  #258292;
    color:#ffffff;    
}

div.dragger-dropdown-item.hover
{
    background-color:  #258292;
    color:#ffffff;
}

input.dragger
{
    position: absolute;    
    font-size: 13px; 
    height: 32px;
    
    outline: none;
    box-sizing: border-box;
    padding-left: 4px; 

    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-top: 6px solid transparent;
    border-bottom: 7px solid transparent; 
    background-clip: padding-box;
    color: #000000;  
    z-index: 1010;     
}

input.dragger.error
{
    color: #ff0000;
}

div.draggerCaret
{
    position: absolute;
    height:32px;
    width: 2px;
    pointer-events: none;

    border-top: 7px solid transparent;
    border-bottom: 8px solid transparent; 
    background-clip: padding-box;    
    background-color:#000000;
    z-index: 1020; 

    animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink 
{
  50% {
    opacity: 0;
  }
}
    /*div.picker
    {
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 10px;
        display:flex;
        gap:10px;
        box-shadow: 0 10px 30px rgba(0,0,0,.35);
    }*/

    div.colorpicker
    {
        position:relative;
        width: 560px;
        height: 420px;
        box-sizing: border-box;
        border: 1px solid var(--colorBorder1);

        /*box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);*/
    }

    div.colorpicker-knob
    {
        position:absolute;
        width: 10px; 
        height: 10px;
        border: 2px solid rgba(255, 255, 255, 1.0);
        /*box-shadow: 0 1px 3px rgba(0,0,0,.7);*/
        border-radius: 2px;
        transform: translate(-6px, -6px);
        pointer-events:none;
    }

    div.colorpicker-tonebar
    {
        position:relative;
        width: 32px;
        height: 420px;
        box-sizing: border-box;
        border: 1px solid var(--colorBorder1);
        /*box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);*/
        cursor:pointer;
    }

    div.colorpicker-tonebar-knob
    {
        position:absolute;
        left:-1px;
        right:-2px;
        height:3px;
        background: rgba(255, 255, 255, 1.0);
        box-sizing: border-box;
        border: 1px solid var(--colorBorder1);
        /*box-shadow: 0 1px 2px rgba(0,0,0,.8);*/
        transform: translateY(-1px);
        pointer-events:none;
    }
