/*------------Forms-------------------------------------*/

a {
    color: #0078d7;
}

form {
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

.formRegistration, 
.formLogin {
    margin: 20px auto 20px auto;
    text-align: center;
}

.formRegistration {
    width: 100%;
    text-align: left;
}

.formRegistration 
#Destination {
    width: 100%;
}

.formLogin h2 {
    text-align: center;
}

.formRegistration h2 {
    text-align: left;
}

input, 
textarea, 
select, 
.inputSubmit, 
.BlockClientInfo, 
.inputTextRead, 
.BlockClientInfoName, 
.BlockClientInfoDescritio {
    border: 1px solid #c0c0c0;
    padding: 10px;
    color: #333333;
}

input, 
textarea, 
.BlockClientInfoName {
    width: 280px;
}

select{
    width: 302px;
    padding: 9px;
}


input[type=text]:invalid, 
input[type=date]:invalid, 
input[type=password]:invalid, 
textarea:invalid, 
select:invalid {
    border: 1px solid #e31e24;
}

input[type=checkbox], input[type=radio] {
    min-width: 20px;
    width: 20px;
}

input[type=file] {
    border: 0px;
}

.BlockClientInfo, .inputTextRead, .BlockClientInfoName, .BlockClientInfoDescritio {
    font-size: small;
}

.inputTitle {
    font-size: small;
    font-weight: bold;
    color: #333333;
    padding-top: 10px;
    padding-bottom: 5px;
}

.inputSubmit {
    margin: 0px 4px;
    cursor: pointer;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    padding: 8px 15px;
}

.inputSubmit:hover {
    background-color: #73231c;
    color: white;
}

.inputFile, .inputText, .inputAdress, .inputName, .inputDescription, .inputWorkTime {
    width: 98%;
}

.inputDescription {
    height: 300px;
}

.inputWorkTime {
    height: 150px;
}

.inputName {
    height: 100px;
}

.inputLogin, .inputDate, .inputPrice, .inputCode, input[type=email] {
    width: 230px;
}

.itemImageBlock {
    position: relative;
}

.inputSubmitImageDelete {
    color: white;
    background: none;
    background-image: url('/template/images/delete.png');
    background-size: auto 30px;
    background-repeat: no-repeat;
    border: 0px;
    width: 30px;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1000;
    cursor: pointer;
}

.itemImage {
    border: 1px solid #999999;
    height: 300px;
}

.inputErrore {
    border: 2px solid #73231c;
}

.inputSelectAdress {
    width: 100%;
}

.messageErrore {
    text-align: center;
    color: #73231c;
    font-weight: bold;
    font-size: small;
}

.messageErrore form, .messageErrore p {
    text-align: left;
}

/*------------Список записей--------------------------------*/

.containerContent {
    background-color: white;
    padding: 10px 20px 20px 20px;
    margin: 20px 0px;
    box-shadow: 0px 0px 10px #666666;
}

.containerContentTitle {
    margin: 20px 0px;
}

.containerContentTitle span {
    font-size: x-large;
    font-weight: bold;
    text-transform: uppercase;
}

.FindPanelTitle {
    font-size: small;
    font-weight: bold;
}

.FindPanel {
    border: 0px solid #cfcfcf;
    padding: 10px 0px;
    margin-bottom: 20px;
}

.FindPanelItemTitle {
    font-weight: bold;
    text-align: right;
}

.FindPanelItem {
    border: 2px solid black;
    padding: 10px 10px;
    color: #333333;
    width: 280px;
    font-size: 16px;
}

.tdTitle, .tdData {
    vertical-align: top;
    border: 0px;
}

.tdTitle {
    vertical-align: top;
    text-align: right;
    font-size: small;
    width: 120px;
    color: #333333;
}

.tdData {
    text-align: left;
}

.tdButton {
    width: 20px;
    margin-right: 2px;
    cursor: pointer;
}

.tdButtons, .tdUnit, .tdCode, .tdImg, .tdName, .tdCategory, .tdImage, .tdQuantity {
    text-align: left;
}

.tdButtons {
    width: 60px;
}

.tdName img {
    cursor: none;
}

.tdImg {
    width: 25px;
}

.tdImg img {
    width: 100%;
}

.tdId, .tdCode {
    width: 80px;
}

.tdCategory {
    width: 200px;
}

.tdUnit {
    width: 50px;
}

.tdPrice, .tdQuantity {
    width: 120px;
}

.tdImage {
    width: 150px;
}

.tableList {
    width: 100%;
    border-spacing: 0;
    margin-bottom: 20px;
}

.tableList td {
    border: 0px;
    padding: 7px 5px;
    border-bottom: 1px dashed #cccccc;
}

.tableList th {
    border: 0px;
    font-size: small;
    vertical-align: middle;
    color: #999999;
    padding: 10px 5px;
    border-bottom: 1px solid #cccccc;
}

.tableList th input, .tableList th select {
    border: 1px solid #cfcfcf;
    padding: 5px;
    margin: 0px;
    width: 80%;
}

.tableList td {
    vertical-align: top;
    text-align: justify;
}

.tableList tr:nth-child(even) {
    background-color: #eaeaea;
}

.trDelete td, .trDelete td a {
    text-decoration: line-through;
    color: #e31e24;
}

/*---Find-----------------------------------------------------*/

.PanelFind {
    position: relative;
}

.PanelFind .GroupPanelFind {
    display: inline-block;
    vertical-align: top;
    margin:  0px 5px 10px 5px;
}

.PanelFind .ElementPanelFind {
    margin-bottom: 10px;
}


/*---Cart-----------------------------------------------------*/

.CartItem {
    position: relative;
    float: left;
    border: 1px dashed #cccccc;
    margin-bottom: 10px;
}

.CartItemBlockImage, .CartItemBlockProduct, .CartItemBlockPriceDelete, .CartItemBlockPrice, .CartItemBlockDelete {
    position: relative;
    vertical-align: top;
    float: left;
    padding: 10px;
}

.CartItemBlockImage {
    width: 110px;
}

.CartItemBlockProduct {
    width: 400px;
}

.CartItemBlockPrice {
    text-align: center;
    padding: 0px;
}

.CartItemBlockPrice div {
    margin-bottom: 5px;
}

.CartItemBlockPrice .CartSumma {
    margin: 0px;
}

.CartItemQuantity {
    display: inline-block;
    width: 100px;
}

.CartItemName {
    width: 100%;
}

.CartItemBlockDelete {
    text-align: center;
    vertical-align: middle;
    margin-top: 20px;
    cursor: pointer;
}

.CartItemBlockDelete img {
    cursor: pointer;
}

.SaleAllSumm {
    text-align: right;
    padding: 10px;
}

.ProductCode {
    font-size: smaller;
    color: #999999;
}

.ProductName {
    font-size: large;
}

.ProductImage {
    width: 100%;
}

.totalPrice {
    text-align: left;
    padding: 10px;
}

.checkoutBlock {
    text-align: left;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px dashed #cccccc;
}

.ConfirmSalesBlock {
    float: left;
    width: 45%;
    margin: 10px;
    vertical-align: top;
    height: 120px;
}

.buttonsCheckout {
    cursor: pointer;
    border: 0px;
    text-align: center;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    padding: 15px 30px;
    background-color: #fecc00;
    color: #73231c;
    font-weight: bold;
    font-size: 20px;
    -webkit-box-shadow: 0 1px 3px #666666;
    -moz-box-shadow: 0 1px 3px #666666;
    box-shadow: 0 1px 3px #666666;
}

.buttonsCheckout:hover {
    background-color: #73231c;
    color: white;
    -webkit-box-shadow: 0 3px 5px #666666;
    -moz-box-shadow: 0 3px 5px #666666;
    box-shadow: 0 3px 5px #666666;
}

/*------orders--------------------------------------------------------*/

.orderItems {
    position: relative;
}

.orderItemsItem {
    float: left;
    font-size: small;
    width: 30%;
    border: 1px solid #cccccc;
    padding: 1%;
    margin-bottom: 1%;
    margin-right: 1%;
}

.orderItem {
    margin-bottom: 0px;
}

.orderItem td {
    padding: 5px;
    font-size: small;
}

.orderItemTitle {
    text-align: right;
    width: 150px;
    font-weight: bold;
}

.orderItemProduction {
    position: relative;
    margin-top: 0px;
    padding: 10px 0px;
    border: 0px;
    border-top: 1px solid #73231c;
}

.orderItemProduct {
    position: relative;
    border: 0px;
    border: 1px dashed #cccccc;
    padding: 10px;
    margin: 10px 0px;
}

.orderItemProductName, .orderItemProductImage, .orderItemProductPrice {
    float: left;
    padding-right: 20px;
    margin-bottom: 5px;
}

.orderItemProductName {
    width: 300px;
}

.orderItemProductImage {
    width: 120px;
}

.orderItemProductPrice {
    font-size: larger;
}

.orderItemTotal {
    font-size: large;
    font-weight: bold;
    text-align: left;
    padding: 10px;
}

.orderItemName {
    font-size: small;
}

.orderinputSubmit {
    margin: 0px 4px;
    cursor: pointer;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    border: 1px solid #c0c0c0;
    padding: 10px 20px;
    color: white;
    background-color: #73231c;
    font-size: 16px;
}

.orderinputSubmit:hover {
    background-color: #fecc00;
    color: #73231c;
    border: 1px solid #fecc00;
}

/*---Sales-----------------------------------------------------*/

.Window {
    display: none;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background-color: white;
    padding: 10px 20px;
    border: 2px solid #fecc00;
    box-shadow: 0 0 10px #999999;
}

.Window h3 {
    text-align: center;
}

.Window p {
    text-align: right;
}

/*---Tabs-----------------------------------------------------*/

.tabs {
    padding: 10px 0px 0px 0px;
    overflow: hidden;
    border-bottom: 1px solid #73231c;
}

/* Style the buttons inside the tab */

.tabs button {
    margin: 0px;
    padding: 10px 20px;
    background-color: inherit;
    border: 0px;
    font-size: 15px;
    cursor: pointer;
}

/* Change background color of buttons on hover */

.tabs button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */

.tabs button.active {
    background-color: #fecc00;
}

/* Style the tab content */

.tabcontent {
    display: none;
    padding: 5px;
}

@media (max-width: 400px) {
    th, td, tr:nth-child(even) {
        display: inline-block;
        border: 0px;
        background-color: white;
        text-align: left;
    }
    .tdTitle, .tdData {
        text-align: center;
        width: 100%;
    }
    form p {
        text-align: left;
    }
    .orderItemTitle {
        text-align: left;
        width: auto;
    }
}