/* #dialog-configurable .container{
    padding: 20px;
}

#dialog-configurable .container .labelAndInput,
#dialog-configurable .container .labelAndInput>*{
    width: 98%;
}


#dialog-configurable .container .columns-container > * {
    width: 48%;
    display: flex;
    flex-direction: column;
}

#dialog-configurable .container .columns-container,
#dialog-configurable .container .columns-container .column-row{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}
*/

.plus-doc-group{
    background-color: rgb(2, 111, 64);
} 

.mdg-new-action.rondo .ui-icon{
    top: 3px;
}

#machine-doc-layout .add-action-ctrl{
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: #6570a5;
    padding: 2px 8px 2px 1px;
    color: white;
    border-radius: 15px;
    cursor : pointer;
}

#machine-doc-layout .doc-group .plum-ctrl-group{
    position: absolute;
    right: 10px;
    top: 10px;
}

#machine-doc-layout .machine-doc-list .plum-ctrl-group{
    display: flex;
}

#machine-doc-layout .machine-doc-list .plum-ctrl-group .status-pie{
    margin: 0 1px;
}

#machine-doc-layout .add-action-ctrl>span{
    color: var(--primary-font-color);
    font-size: 15px;
}

#dialog-machine-doc input {
    box-sizing: border-box;
}

#dialog-machine-doc .container.upload-document{
    padding: 0;
}

#dialog-machine-doc .container.delivery-protocol{
    padding: 10px;
}

#dialog-machine-doc .container{
    min-width: 680px;
}

#dialog-machine-doc .labelAndInput,
#dialog-machine-doc .labelAndInput>*{
    width: 100%;
}

#dialog-machine-group input,
#dialog-machine-group textarea{
    width: 100%;
    box-sizing: border-box;
}

#dialog-create-action .labelAndInput>*{
    width: 93%;
}

#dialog-machine-doc .container.upload-document .labelAndInput input,
#dialog-machine-doc .container.action-document .labelAndInput input{
    width: 100%;
    box-sizing: border-box;
}

#dialog-machine-doc .columns-container > * {
    width: 49%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#dialog-machine-doc .labeled-checkbox {
    display: flex;
    justify-content: end;
    align-items: baseline;
}

#dialog-machine-doc .labeled-checkbox label {
    margin-right: 6px;
}

#dialog-machine-doc .columns-container .column-row>*{
    width: 47%;
}

#dialog-machine-doc .columns-container .column-row{
    align-items: end;
}

#dialog-machine-doc .columns-container .column-row>*:not(:last-child){
    margin-right: 15px;
}

#dialog-machine-doc .columns-container,
#dialog-machine-doc .column-row{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}

#dialog-machine-doc .delivery-protocol-header .short-inputs input {
    width: 137px;
} 

#dialog-machine-doc .delivery-protocol-header .column.short-inputs{
    align-items: baseline;
}

#dialog-machine-doc .delivery-protocol-header .short-inputs .columns-container {
    justify-content: flex-start;
}

#dialog-machine-doc .delivery-protocol-header .short-inputs .columns-container>* {
    width: auto;
    align-items: start;
}

#dialog-machine-doc .delivery-protocol-header .short-inputs .columns-container>*:not(:last-child) {
    margin-right: 16px;
}

#dialog-machine-doc .delivery-protocol-header .group{
    border: 1px solid #ffffff2b;
    margin: 20px 0 10px;
    padding: 3px 20px 16px 16px;
}

#dialog-machine-doc .delivery-protocol-header .group input {
    box-sizing: border-box;
}

#dialog-machine-doc .part-row{
    width: auto;
    flex-grow: 1;
    margin-right: 40px;
}

#dialog-machine-doc table{
    margin: 0 auto;
}

#dialog-machine-doc table.actions .deadline{
    white-space: nowrap;    
    color: rgb(64, 64, 94);
}

#dialog-machine-doc table.actions .deadline input,
#dialog-machine-doc table.actions .comment input{
    width: 110px;
    box-sizing: content-box;
}

#dialog-machine-doc .no-data{
    text-align: center;
}

/*
common doc dialog 
*/
/* #dialog-machine-doc .page-break-after {
	display: inline-block;
	float: right;
	background-color: #465079;
} */

#dialog-machine-doc .top-container {
    display: flex;
    /* align-items: center; */
    align-items: flex-end;
}

#dialog-machine-doc .upload-document .top-container {
    flex-direction: column-reverse;
}

#dialog-machine-doc label.toggle {
    margin: 16px 0 10px 28px;
}

#dialog-machine-doc table.oms-data {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#dialog-machine-doc table .header-ctrl {
    width: 28px;
}

#dialog-machine-doc table td {
    vertical-align: top;
    padding: 4px;
}

#dialog-machine-doc table td.description {
    padding-left: 10px;
}

#dialog-machine-doc .f-ctrl > * {
    position: relative;
    top: -16px;
}

#dialog-machine-doc .oms-data a {
    margin: 0 0 4px 4px;
}

#dialog-machine-doc textarea {
    width: 100%;
    box-sizing: border-box;
    font-weight: bold;
    color: #605874;    
    border: 1px solid #dcd9de;
    background: #dcd9de url(images/ui-bg_highlight-soft_100_dcd9de_1x100.png) 50% 0 repeat-x;
    font-size: 1em;
    padding: 4px 10px;
}

#dialog-machine-doc .dropzone {
    margin-bottom: 1rem;
}

#dialog-machine-doc .envelopes {
    display: inline-block;
    min-width: 500px;
    min-height: 80px;
}

#dialog-machine-doc .pic-envelope{
    display: inline-block;
    background-color: rgb(66, 76, 116);
    margin: 8px 8px 1rem 8px;
    min-width: 20px;
    min-height: 20px;
    position: relative;
}

#dialog-machine-doc .pic-envelope .doc-thumb{
    margin: 0 auto;
    height: 120px;
    width: 180px;
	background-repeat: no-repeat;
	background-position: center center;
}

/* !!! should be pic allowed also??? should thumb be in case of pic???? */
#dialog-machine-doc .pic-envelope .doc-thumb.pic{
	background-image:  url("../images/pic.png");
}

#dialog-machine-doc .pic-envelope .doc-thumb.doc{
	background-image:  url("../images/doc.png");
}

/*!!!experiment with smaller inputs*/
#dialog-machine-doc .pic-envelope input{
    width: 100px;
    box-sizing: content-box;
}

#dialog-machine-doc .pic-envelope .pic-ctrl {
	position: absolute;
	top: 8px;
}

#dialog-machine-doc .pic-envelope .pic-rem-ctrl {right: 6px;}


#dialog-machine-doc .oms-data > tbody > tr.film {
    border-bottom: 4px solid rgb(47, 55, 85);
}

#dialog-machine-doc .oms-data .add-oms {
    background-color: rgb(2, 100, 80);
}

#dialog-machine-doc .oms-data .copy-oms,
#dialog-machine-doc .oms-data .paste-oms {
    background-color: rgb(114, 136, 3);
}

#dialog-machine-doc .oms-data .expand-area {
    background-color: rgb(62, 54, 108);
}

#dialog-machine-doc .oms-data .rem-oms {
    background-color: rgb(190, 38, 84);
}

#dialog-machine-doc .oms-data .move-up,
#dialog-machine-doc .oms-data .move-down {
    background-color: rgb(5, 103, 136);
}

#dialog-machine-doc .pie-container{
    padding: 5px;
    margin-left:16px;
    margin-bottom:-1px;
    /* !!!should be updated when light topic will be connected */
    background-color: #dcd9de;
    display: inline-flex;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
}

#dialog-machine-doc .pie-container .status-pie{
    margin: 0;
    cursor: pointer;
}

#dialog-machine-doc .pie-container .center{
    background: #dcd9de;
}

.status-pie{
    width: 20px;
    height: 20px;
    /* margin: 10px; */
    border:2px solid rgb(2, 100, 80);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.status-pie > div{
    display: flex;
    height: 50%;
}

.status-pie > div > span{
    display: inline-block;
    width: 50%;
    height: 100%;
    background-color: green;
}

.status-pie > div > span.empty{
    background-color: transparent;
}

/* maybe extra!!! delete in future */
.status-pie .center{
    position: absolute;
    left: 22%;
    top: 22%;
    /* #dcd9de */
    background: #eae6e3;
    width: 56%;
    height: 56%;
    border-radius: 50%;
    display: none; 
    font-size: 4px;
    color: #605874;
    /* display: flex; */
    justify-content: center;
    align-items: center;
}

/* 
.status-pie .top .left {
    border-top-left-radius: 100%;
}

.status-pie .top .right {
    border-top-right-radius: 100%;
}

.status-pie .bottom .left {
    border-bottom-left-radius: 100%;
}

.status-pie .bottom .right {
    border-bottom-right-radius: 100%;
} */

#dialog-machine-doc h3{
    text-align: center;
}

#dialog-docs-group-link{
    padding: 1.5em 3em;
}

#dialog-docs-group-link .doc-container{
	display: flex;
	padding: 5px 0;
	align-items: flex-start;
}

#dialog-docs-group-link .doc-type-name{
	margin-left: 10px
}

#machine-doc-layout .doc-group.plum{
    width: 280px;
    padding-left: 96px;
    /* !!!should be come back to cursor: move when group reordering is implemented */
    cursor: unset; 
} 

/* !!!temporary hidden. Should be shown when group filtering is implemented */
#machine-doc-layout .doc-group.plum .instant-filter{
    display: none;
}

#machine-doc-layout .doc-group.plum, 
#machine-doc-layout .machine-doc-list{
    margin-bottom: 30px;
    color: rgb(42, 49, 74);
}

#machine-doc-layout .doc-group.plum .doc-group-name{
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

#machine-doc-layout .machine-doc-list .plum {
    padding-right: 35px;
    cursor: unset;
}

#machine-doc-layout .doc-sign,
#dialog-machine-doc .doc-sign{
    color: grey;
    font-size: .5rem;
    display: block;
}

#dialog-machine-doc .doc-sign{
    color: #c4c4c4;
}

#machine-doc-layout .machine-doc-list .doc-sign{
    position: absolute;
    left: 0px;
    bottom: 0px;
    margin: 2px 16px;
}

/* data contains 2024, so put delimiter if there is some data */
#machine-doc-layout .machine-doc-list .action-deadline{
    border-left: 1px rgb(42 49 74 / 17%) solid;
    padding-left: 4px;
}
#machine-doc-layout .machine-doc-list .action-deadline.empty{
    border: none;
}

#dialog-create-doc-group .container{
    padding: 0 6px;
}

#dialog-create-doc-group select{
    width: 100%;
}

#dialog-create-doc-group input{
    width: 94.5%; /*!!!should be fixed in more nice way*/
}

#machine-doc-layout .machine-doc-list .plum{
    transition: opacity .5s ease;
}

#machine-doc-layout .machine-doc-list .shaded{
	opacity: 0.1
}

/* #dialog-machine-doc .columns-container .column * {
    width: 98%;
} */

/* 
#dialog-machine-doc .columns-container > .column.stretched {
    justify-content: stretch;
} */

@media all and (min-width: 1550px) {
    .machine-doc-list .plum-ctrl-group{
       margin-right: 8px;
    }
}