
    .form-inline
    {
        .checkbox
        {
            margin-right: 12px;
        }
    }

    #addEdge
	{
    	display: none;
    }

    #addVertex
    {
        display: none;
        width: auto;
        min-width: 300px;
    }

    #GroupRenameDialog
    {
        width: auto;
        min-width: 250px;
    }

    #GroupRenameDialog textarea
    {
        width: 100%;
    }

    #adjacencyMatrix
       {
    	display: none;
    }	

    #incidenceMatrix
    {
    	display: none;
    }

    #floidMatrix
    {
    	display: none;
    }

    #saveDialog
    {
    	display: none;
    }

    #saveImageDialog
    {
        display: none;
    }

	#AdjacencyMatrixField
	{
		overflow: scroll;
		width : 100%;
        height: 300px;
        min-width: 400px;
		overflow-wrap: normal;
	}

	#IncidenceMatrixField
	{
		overflow: scroll;
		width : 100%;
		height: 300px;
        min-width: 400px;
		overflow-wrap: normal;
	}

    #FloidMatrixField
    {
		overflow: scroll;
		width : 100%;
		height: 300px;
        min-width: 400px;
		overflow-wrap: normal;
    }

    #NeedAlgorithmMessage
    {
		width : 100%;
    }

    #EdgeWeightControls
    {
        width: 100%;
    }

    #EdgeWeight
    {
        width: 100%;
    }

    #EdgeWeightSlider
    {
        width: 100%;
        max-width: 100%;
        display: inline-block;
    }

    #MainEdgeWeightControl
    {
        border-width: 1px;
        border-radius: 4px;
        border-color: lightgray;
        border-style: solid;
        margin: 4px;
        padding: 6px;
    }

    #EdgeLable {
        width: 100%;
    }

    #sentAlgorithm
    {
    	display: none;
    }

    .SelectVertexInput
    {
        width: 64px;
    }

    .ui-dialog.EdgeDialog
       {
      font-size: 15px;
      font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    }

    .ui-dialog-titlebar-close
    {
 	border: 1px solid #c5dbec;
/*	background: #dfeffc url("./images/ui-bg_glass_85_dfeffc_1x400.png") 50% 50% repeat-x; */
        background-image: url("./images/ui-icons_6da8d5_256x240.png");
	background-position: -96px -128px;
	font-weight: bold;
	color: #2e6e9e;
    }

    .ui-dialog-buttonset button 
    {
  	border: 1px solid #c5dbec;
  	background: #dfeffc url("images/ui-bg_glass_85_dfeffc_1x400.png") 50% 50% repeat-x;
  	font-weight: bold;
  	color: #2e6e9e;
 	margin: .5em .4em .5em 0;
	cursor: pointer;
    }

  #BadMatrixFormatMessage
  {
      background: #f8b74b;
      padding: 8px;
  }

  #BadIncidenceMatrixFormatMessage
  {
      background: #f8b74b;
      padding: 8px;
  }

  .defaultWeigth
  {
	padding: 2px 4px 2px 4px;
	margin: 2px 2px 2px 0;
	text-decoration: none;
	white-space: nowrap;
	display: inline-block;
	border: 2px solid #1c94c4;
  }

  .inputBox
  {
	padding-left: 4px;
  }

  #GraphName
  {
    width: 100%;
    font-size: 12px;	
    padding-left: 8px;
    padding-right: 8px;
    display:inline-block; 
    vertical-align:middle;
  }

  #CopyGraphLink
  {
    display:inline-block; 
    margin-left:2px; 
    width: 32px; 
    height:32px; 
    padding:0; 
    vertical-align:middle;
  }

    #GraphImageName
{
    width: 100%;
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
}

.share-buttons{
	list-style: none;
	padding: 0;
}

.share-buttons li{
	display: inline;
}

.btn-submenu {
	width: 100%;
	border: none;
	text-align: left;
}

#canvas
{
  width: auto;
  height: 100%;
}

#canvasSection
{
    position: relative;
}

.content {
  padding-bottom: 8px;
}

#SaveImageLinks a {
    text-decoration: underline;
}

#developerTools
{
    display : none;
    position: absolute;
    right: 0px;
    top : 0px;
    z-index: 1;
    width  : 30%;
    height : 470px;
    float: right;
}

#developerTools textarea
{
    width: 100%;
    height: 350px;
    padding: 4px;
    overflow: scroll;
    resize: none;
    overflow-wrap: normal;
    white-space: pre;
}

#Fullscreen
{
    position: absolute;
    right: 0px;
    z-index: 10;
}

#CanvasMessage
{
    position: absolute;
    left: 4px;
    z-index: 10;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

#CanvasSearchText
{
    width: 120px; 
    position: absolute; 
    top: 6px; 
    right: 38px; 
    z-index: 10;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 2px;
    padding-bottom: 2px;
    min-height: 1em;
}

#ShowArrow
{
    position: absolute;
    top: 60px;
    right: 60px;
    width: 32px;
    z-index: 10;
    font-size: 32px;
    padding: 0;
    border: none;
    margin: 0;
    pointer-events: none;
    display: none;
}

.MarginLeft
{
    margin-right: 32px !important;
}

::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
}

.leftTopPosition
{
    position: absolute;
    top    : 9px;
    right  : 9px;
    cursor : pointer
}

    .ProgresssBarLink
    {
        text-decoration:none;
        color:#459ef8;
    }

    .ProgressBar
    {
        width:100%;
        height:32px;
        background-color:#b9e3ff!important;
        font-size:16px;
        line-height:1;
    }

    .ProgressBarFill
    {
        height:100%;
        background-color:#459ef8!important
    }

    .ProgressBarText
    {
        position: relative;
        left: 0px;
        z-index: 1;
        width:100%;
        text-align: center;
        color: #0649a6!important;
    }

    .showShareImage
    {
        max-width:100%;
        max-height:200px;
        max-width:350px;
    }

@media only screen and (max-width: 650px) {
    #canvasSection
    {
        margin-left: 12px;
    }
	#AdjacencyMatrixField
	{
        height: 200px;
        min-width: 200px;
	}
    #IncidenceMatrixField
    {
        height: 200px;
        min-width: 200px;
    }
    #IncidenceMatrixField
    {
        height: 200px;
        min-width: 200px;
    }
    
    #addVertex
    {
        min-width: 0px;
    }
}

.InlineStyle
{
    display:inline;
}

.PaddingRight
{
    padding-right: 8px;
}

#NewEdgeAction
{
    padding-top: 8px;
}

#EdgeLabelControls
{
    padding-top: 4px;   
}

#message
{
    overflow-wrap: break-word;
}

.small-bottom-marging
{
    margin-bottom: 4px;
}

.small-top-marging
{
    margin-top: 4px;
}

.categoryButton {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 0px    
}

#contextMenu {
    position: absolute;
    display: none;
    border: 2px solid #CCCCCC;
}


#switcher input[type=checkbox]{
	height: 0;
	width: 0;
	visibility: hidden;
}

#switcher label {
	cursor: pointer;
	text-indent: 32px;
	width: 28px;
	height: 1.1em;
	background: grey;
	display: inline-block;
	border-radius: 4px;
	position: relative;
    margin-bottom: 0;
    top: 2px;    
}

#switcher label:after {
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 4px;
	transition: 0.3s;
}

#switcher input:checked + label {
	background: #337ab7;
}

input:checked + label:after {
	left: calc(100% - 5px);
	transform: translateX(100%);
}

#switcher label:active:after {
	width: auto;
}

label.switcherText {
    font-weight: normal;
    margin-bottom: 0;   
    cursor: pointer; 
}

.messageSwitcher {
    border-radius: 4px;
    padding: 4px;
    background-color: #FFFFFF;
}

#autoSaveOrOriginalGraph .btn-xs{
    font-size: 12px;
}

/* Common matrix parameters */
.ui-widget textarea.matrix,
.top-text,
.side-text {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre;
  box-sizing: border-box;
}

/* GRID 2×2 */
.matrix-wrapper {
  display: grid;
  grid-template-columns: max-content auto;
  grid-template-rows: auto auto;
  width: 100%;
}

/* Empty corner */
.corner {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}

/* Top text */
.top-text-wrap {
  /* width: 120px; */  /* ← Set in JS */
  width: 10px;
  height: 40px;
  overflow: hidden;
}

.top-text {
  padding: 6px;
}

/* Left text */
.side-text-wrap {
  width: 40px;
  height: 300px; /* ← Same as textarea */
  overflow: hidden;
}

@media only screen and (max-width: 650px) {
    .side-text-wrap {
        height: 200px; /* ← Same as textarea */
    }
}

.side-text {
  padding: 6px;
}

/* TEXTAREA */
.ui-widget textarea.matrix {
  padding: 6px;
  overflow: auto;
  resize: both;
}