/* CSS Document */

html,body
{
height: 100%;

background: #630 url(img/bg.jpg) center top repeat;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: 0;
padding: 0;
}


div[right] {
    float:right;
}

[resources] {
    display:none;
}

[manager-mode] {
    border:4px solid #ffff00;
}
[debug-mode] {
    border:4px solid #ff0000;
}

[manager-mode][debug-mode] {
    border:4px solid #ff8800;
}

#header-main h1 {
	margin-bottom: 20px;
}

#header-tip {
	max-width: 250px;
}

@media (max-width: 900px) {
	#header-main {
		flex-direction: column;
		justify-content: stretch;
		flex-wrap: wrap;
	}

	#header-tip {
		max-width: 100%;
	}
}

.progress {
    display:block;
    width:100%;
    background: rgba(128,255,128,0.1);
}
.progress .bar {
    height: 4px;
    background: green;
}

#orderBody
{
    display: block;
    margin: 20px;
    padding: 0px;
    box-shadow: 2px 2px 10px rgba(0,0,0,1);
    /* background: rgba(74,132,116,0.5); */
    background: rgba(180,180,180,0.5) url(img/leaf.png) left top no-repeat;
    border-radius: 30px 0 0 0;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
}

#orderBody > table

{
width: 100%;
height: 100%;
padding: 0;
empty-cells: show;
margin-bottom: 20px;
}


#workingAreaNew
{
	padding:20px;
	vertical-align:top;
}


#materialsBody > table,
#replaceMatWindow > table
{
	position:relative;
	width:100%;
	height:100%;
	max-height:100%;
}

#materialsBody > table td,
#replaceMatWindow > table td
{
	
}
#materialsBody > table td div.container,
#replaceMatWindow > table td div.container
{
	display:block;
	position:relative;
	top:0;
	left:0;right:0;bottom:0;
	max-height:100%;
	overflow:auto;
	vertical-align:middle;
}

table#orderDetails
{
	
	padding:0;
	margin:0;
	display:table;
	width:100%;
	height:100%;
	max-height:100%;
	overflow:hidden;	
	position:relative;
	
}

table#orderDetails h2
{
	padding:0;
	margin:0;
	
}

table#orderDetails input,
table#orderDetails textarea
{
	width:100%;
	padding:2pt;
	margin:0;
	border:1px solid rgba(0,0,0,0.1);
}
table#orderDetails input
{
}
table#orderDetails textarea
{
	height:100px;
	font-size:large;
}

h1#orderId
{
	padding:20px 40px;
	margin:10px;
	background:#fff;
	border:1px solid #ccc;
	color:#030;
	display:inline-block;
	clear:both;
}

.okMessage
{
	border:1px solid #cccccc; border-width:1px 0;
	padding-top:140px;
	padding-bottom:50px;
	background:#eeeeee url(img/ok-big.png) center 20px no-repeat;
}

#warningPopup
{
	position:fixed;
	display:block;
	left:0; top:0; right:0; bottom:0;
	background:rgba(0,0,0,0.5);
	text-align:center;
	vertical-align:middle;
}
#warningPopup > div
{
	display:inline-block;
	text-align:center;
	vertical-align:middle;
	background: #fff;
	border:1px solid #aaa;
	box-shadow:2px 2px 30px rgba(0,0,0,0.5);
	margin-top:20%;
	padding:20px;
}
#warningPopup > div > h1
{
	color:#C00;
	text-shadow:none;
	margin:20px;
}
#warningPopup > div > button
{
	margin:20px;	
}

[hidden], [resources] {
	display:none;
}

[mat-filter]
{
	vertical-align:top;
	overflow-y:auto;
	max-width:250px;
	min-width:100px;
	width:10%;
	padding:10px;
}

[mat-filter] input[type="text"],
[mat-filter] input[type="date"]
{
	display:block;
	font-size:20px;
}

[size] > * 
{
	display:inline !important;
}
[size] > *:before
{
	content : '\D7';
	opacity : 0.5;
	margin:0 2px;
}
[size] > *:nth-child(1):before
{
	content : none;
	margin:0;
}

[detail-preview]
{
	width:300px;
	height:300px;
	display:inline-block; 
	padding:0;
	margin:10px 10px 10px 30px;
	border-left:1px solid rgba(0,0,0,0.53); 
	vertical-align:middle;
	border-radius:0 50% 50% 0;
	background:rgba(0,0,0,0.01) url(img/d1.png) left top repeat;
}

[highlight="1"]
{
	transition: background-color none 0s !important;
	background-color:rgba(255,214,0,0.37) !important;
}

[highlight="0"]
{
	transition: background-color ease 2s !important;
	background-color:inherit;
}

@media all and (max-width:1400px)
{
#orderBody
{
	margin:10px;
}	
#tabsRow td.noTabs 
{
	vertical-align:middle;
}
#tabsRow h1#title
{
	font-size: 20px;
}

#orderBody
{
	margin:0px;
	border-radius: 0;
}	


}

#orderBody [delivery][address] 
{
    width: 99%;
}

#btnSendOrder 
{
    position : fixed;
    bottom: 40px;
    right: 40px;
    box-shadow: 0 0 30px 20px white;
}

#btnHistory {
    background-image: url(img/history-w.svg);
    background-position: center center;
    background-repeat : no-repeat;
    background-size: 80%;
    min-width:50px;
    
}

[pay-type-item] {
    display:inline-block;
}
[pay-type-item] > small {
    opacity:0.5;
    font-size : smaller;
}

#orderDetailsUser [pay-type-item] {
    background-color: rgba(0,200,0, 0.05);
    padding:10px;
    vertical-align: middle;
    font-size: smaller;
    cursor : pointer;
}

#orderDetailsUser [pay-type-item] > small {
    opacity:0.5;
    font-size : smallest;
}

[attachment-filename][uid] {
    background-color: rgba(0,200,0, 0.05);
    padding:10px;
    vertical-align: middle;
    font-size: smaller;
    cursor : default;
    font-style:italic;
    max-width: 50%;
    min-width:100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display:inline-block;
}

[attachment-filename][uid=""]:before {
    content: ' ??? ';
    font-style:italic;
    opacity:0.5;
}

[map-container] button {
    min-width:0;
    min-height:0;
}

.materialBody select {
     -moz-appearance: none;
     -webkit-appearance:none;
    text-align:center;
    text-overflow:ellipsis;
    padding:0 20px 0 2px;
    background: url(img/down.png) 200% center no-repeat;
    background-size:20px;
    cursor:pointer;
    transition: all ease 0.5s;
}

.materialBody select::-ms-expand {
    display: none;
}
.materialBody select:hover,
.materialBody select:focus {
    background-position : right center;
    background-size:10px;
}
.materialBody select > option:disabled {
    display:none;
}

.materialBody select[force-strategy] {
    margin-left:30px;
    font-size:14pt;
    padding:4px 20px;
    background-color : rgba(0,0,0,0.05);
    float:left;
}

a:hover{
text-decoration: underline !important;
}