body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #FFFFFF;
}

.card-body {
    padding-bottom: 0;
}

.main-tool {
    width: 4.5rem;
    right: 2rem;
    top: 5.5rem;
    opacity: 0.9;
    position: absolute;
    background-color: white;
    border-radius: 1em;
    z-index: 900;
}

.line-tool {
    width: 15rem;
    right: 6.5rem;
    top: 8.7rem;
    opacity: 0.9;
    position: absolute;
    background-color: white;
    display: none;
    z-index: 700;
}

.img-control:hover {
    opacity: 0.5;
    cursor: pointer;
}

.text-control{
    padding: 0px 5px;
}

.magic-wand-tool {
    width: 15rem;
    right: 6.5rem;
    top: 11.7rem;
    opacity: 0.9;
    position: absolute;
    background-color: white;
    display: none;
    z-index: 700;
}

.a_file {
    cursor: pointer;
}

.file {
    opacity: 0;
    position: absolute;
    z-index: -1;
    width: 100px;
}

.navbar {
    width: 100%;
    padding: 0px 1rem;
    font-size: 15px;
    justify-content: flex-start !important;
    background-color: #171D29;
    color: white;
}

.top-menu-opener{
    transition: 0.6s ease background-color; 
    cursor: pointer;
    padding: 5px 12px;
    user-select: none;
}

.top-menu-opener:hover{
    background-color: #CCCCCC;
}

.top-menu-opener:active{
    background-color: #a8b4e6;
    transition: 0.2s ease background-color; 
}

.img-control{
    padding: 5px;
    display: inline-block;
}

.top-toolbar{
    display: flex;
    user-select: none;
    background-color: #5C77FF;
    height: 128px;
    padding: 8px;
    width: 100%;
}

.top-toolbar-group{
    border: 1px solid #7F99FF;
    border-radius: 4px;
    background: linear-gradient(180deg, #7893FF 0%, #5678FF 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.top-toolbar .top-toolbar-group:not(:first-child) {
    margin-left: 8px;
}

.top-toolbar-group .group-bottom{
    text-align: center;
    font-family: Inter;
    font-style: normal;
    font-weight: bold;
    font-size: 12px;
    line-height: 15px;
    height: 24px;
    color: white;
    background: #7792FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-content{
    display: flex;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: center;
    padding: 0px 5px;
}

.group-content .icon{
    width: 72px;
    height: 76px;
    border-radius: 4px;
    padding: 5px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.group-content .big-icon{
    width: 84px;
}

.group-content .icon:hover, .group-content .icon.active{
    background-color: #5873FB;
}

.group-content .icon img{
    width: 48px;
    height: 48px;
}

.group-content .icon .label{
    font-size: 12px;
    font-family: Inter;
    color: white;
    white-space: nowrap;
}

.top-toolbar-sep{
    width: 1px;
    margin: 0px 5px;
    background-color: lightgray;
}

.top-toolbar-button{
    margin: 0px 5px;
}

.top-toolbar-button img{
    width: 15px;
}

.top-toolbar-button:hover{
    background-color: #CCCCCC;
}

.top-toolbar-button:active{
    background-color: #a8b4e6;
}

input.scale {
    margin-right: 10px;
    padding-left: 10px;
    padding-right: 0px;
}

.btn-unit {
    margin-right: 10px;
    width: 140px;
}

div.card-header-div {
    padding-left: 3px;
}

img.background {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img.img-logo {
    margin-bottom: 0;
    margin-right: 0.5rem;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
    margin-top: 5px;
}

img.header {
    margin-bottom: 3px;
}

.up-down-img {
    padding: 1px 1px 1px 1px;
    margin-bottom: 0px;
    border-style: solid;
    border-color: white;
    border-top-width: 1px;
    border-right-width: 1px;
    border-left-width: 1px;
    border-bottom-width: 1px;
    margin-right: 10px;
}

.scale-span {
    color: white;
    padding-top: 5px;
    margin-right: 10px;
}

.canvas-area {
    z-index: 12;
}

.canvas-background {
    z-index: 10;
}

.canvas-grid {
    z-index: 8;
}

.hide-image {
    position: absolute;
    top: 5.5rem;
    left: 2rem;
    width: 9rem;
    z-index: 900;
}

.hide-canvas {
    position: absolute;
    top: 8.5rem;
    left: 2rem;
    width: 9rem;
    z-index: 900;
}

.area-panel {
    position: absolute;
    right: 1rem;
    bottom: 0;
    z-index: 700;
}

.list-group {
    flex-direction: row;
}

.area_info {
    padding: 15px 5px 0 5px;
    background-color: #435776;
}

svg {
    margin-right: 5px;
    margin-left: 5px;
}

.area-index {
    color: red;
    font-weight: bold;
}

#area_panel .list-group-item{
    cursor: pointer;
}


/* Context menu color menu item */
.context-menu-item.labels{
    transform: translate(0px, 3.5px);
}

.custom-menu-icon{
    transform: translate(-18px, -2px);
    width: 20px;
}

.labels{
    background-color: white !important;
}
.labels > span > ul {
        margin: 0; 
        padding: 0;
        list-style: none;
        display: block;
        float: none;
}
.labels > span > ul > li {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #CCC;
    overflow: hidden;
    text-indent: -2000px;
    margin-top: -3px;
}
.labels > span > ul > li.selected,
.labels > span > ul > li:hover { border: 1px solid #000; }
.labels > span > ul > li + li { margin-left: 5px; }
.labels > span > ul > li.label1 { background: red; }
.labels > span > ul > li.label2 { background: green; }
.labels > span > ul > li.label3 { background: blue; }
.labels > span > ul > li.label4 { background: #ee00ee; }
.labels > span > ul > li.label5 { background: #eeee00; }
.labels > span > ul > li.label6 { background: #00eeee; }
.labels > span > ul > li.label7 { background: #888888; }

.context-menu-root{
    margin: 0 !important;
}

.context-menu-item {
    padding: 0.1em 2em !important;
}

.name-with-shortcut{
    display: flex;
    justify-content: space-between;
}
.menu-shortcut{
    transform: translate(22px, 4px);
    font-size: 10pt;
    font-family: 'Helvetica';
}

#main-container{
    display: flex;
    flex-grow: 1;
}

#main-toolbar{
    width: 250px;
    border-right: 2px solid lightgray;
    background-color: #FBFBFB;
    user-select: none;
}

#canvas-container{
    /*width: calc(100vw - 250px);*/
}

.toolbar-section-title{
    border-bottom: 1px solid lightgray;
    padding: 5px;
    font-weight: bold;
    font-size: 14px;
}

.toolbar-section-title.with-icon{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toolbar-section-title.with-icon .icon{
    cursor: pointer;
    border: 1px solid #E3E3E6;
    border-radius: 4px;
    width: 32px;
}

.toolbar-section-title.with-icon .hover{
    background-color: #eeeeee;
}

.toolbar-content{
    padding-left: 5px;
    padding-right: 5px;
}

.flex-between{
    display: flex;
    align-items: center;
    justify-content: space-between; 
}

.page-title{
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 1px 5px;
}

.page-title.name{
    flex-grow:1; 
    text-align: right;
}

.page-title.selected{
    font-style: italic;
}

.page-info{
    text-align: right;
    padding-right: 5px;
    padding-left: 5px;
}

.page-info > div{
    font-size: 14px;
}

.area-name{
    cursor: pointer;
    display: flex;
}

.area-name img{
    margin-right: 3px;
}

.area-info{
    display: flex;
    align-items: center;
}

.area-info .light{
    height: 14px;
    transform: translate(0px, 2px);
}


.drawn-object-color{
    width: 15px;
    height: 15px;
    border-radius: 2px;
    margin-left: 5px;
    transform: translate(0px, 1px);
}

.drawn-object-points-type{
    width: 15px;
    height: 15px;
    margin-left: 5px;   
    transform: translate(2px, 0px);
}

.page-drawn-objects{
    text-align: left;
}

.page-drawn-objects-info{
    text-align: right;
}

.page-drawn-objects > div{
    cursor: pointer;
}

.page-drawn-objects.hidden{
    opacity: 0.3;
}

.page-perimeter{
    padding-right: 6px;
}

.page-perimeter .label, .page-area .label{
    font-weight: bold;
}

.sub-section{
    padding-left: 15px;
}

.side-panel-toggle{
    width: 30px;
    text-align: left;
}

.toolbar-section{

}

.toolbar-section img{
    width: 20px;
}

.toolbar-section img.page-icon{
    width: 13px;
}

[v-cloak] {
    display: none;
}

#full-page-container{
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.config-table{
    width: 100%;
}

.config-table .form-inline{
    flex-wrap: initial;
}

.config-table tr{
    height: 45px;
}

.config-table input[type="radio"]{
    margin-left: 10px;
    margin-right: 10px;
}

.config-table .has-margin{
    margin-left: 10px;
    margin-right: 10px;
}

.config-table input[type="text"], .config-table select{
    display: inline-block;
    width: auto;
}

.context-menu-item.context-menu-icon-arc:before {
    content: "";
    height: 16px;
    background-repeat: no-repeat;
    background-position-x: 8px;
    background-image: url(../assets/icons/arc.png);
}

.context-menu-item.context-menu-icon-line:before {
    content: "";
    height: 16px;
    background-repeat: no-repeat;
    background-position-x: 8px;
    background-image: url(../assets/icons/line.png);
}

#main-toolbar .selectable{
    transition: 0.2s ease background-color;
    cursor: pointer;
}

#main-toolbar .selectable:hover{
    background-color: #eeeeee;
    transition: 0.2s ease background-color;
}

@media (min-width: 720px){
    .modal-dialog {
        max-width: 700px;
        margin: 1.75rem auto;
    }
}

#zoom-label{
    font-size: 14px;
}

.down-arrow-icon{
    width: 12px !important;
    margin-left: 5px;
}

.label-with-icon{
    display: flex;
    align-items: center;
}

.group-content .icon-with-label{
    width: auto;
    display: flex;
    flex-direction: row;
}

.group-content .icon-with-label .label{ 
    margin-left: 10px;
}

#pages-list .separator{
    margin: 2px 5px;
    border-top: 1px solid #E3E3E6;
}

#pages-list-container{
    height: calc(100vh - 203px);
    overflow-y: auto;
}

.context-menu-item.icon-diamond {
    background-image: url(assets/design/count/svg/diamond.png);
}
