﻿html, body, form {
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    height: auto !important;
    height: 100%;
    font-size: 12px;
    background-color: #F8FAFC;
}

/* Базовый шрифт */
body, input, textarea {
    font-family: Tahoma;
}

textarea {
    resize: none;
    overflow: auto;
    overflow-x: auto;
}

.MainLinkStyle {
    color: #5D7B9D;
    text-decoration: none;
    font-weight: normal;
    font-size: 12px;
}

.MainLinkStyle:hover {
    text-decoration: underline;
    color: #8098B3;
}

/* Стиль выключенных элементов в Chromium */
a[disabled="disabled"] {
    -webkit-text-fill-color: #a0a0a0;
}

tr[disabled="disabled"] {
    -webkit-text-fill-color: #a0a0a0;
}

/*----------------------------------*
 *                                  *
 * Кнопки                           *
 *                                  *
 *----------------------------------*/

.btn {
    /*position: relative;*/
    display: inline-block;
    color: #3c3c3c;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
    font-weight: bold;
    padding: .5em 1em;
    background: -moz-linear-gradient(top, #f1f1f1 0, #acacac);
    background: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#acacac));
    background: linear-gradient(to bottom, #f1f1f1, #acacac);
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    border: 1px solid #9c9c9c;
    -moz-box-shadow: 0 1px 3px -1px;
    -webkit-box-shadow: 0 1px 3px -1px;
    box-shadow: 0 1px 3px -1px #000000;
}

.btn:hover {
    background: -moz-linear-gradient(top, #acacac 0, #f1f1f1);
    background: -webkit-gradient(linear, left top, left bottom, from(#acacac), to(#f1f1f1));
    background: linear-gradient(to bottom, #acacac, #f1f1f1);
}

.btn:active {
    top: 1px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.btn * {
    vertical-align: middle;
}

.btn-small {
    font-size: 12px;
    padding: .3em .8em;
}

.btn-blue {
    background: -moz-linear-gradient(top, #8ca2b8 0, #3e6181);
    background: -webkit-gradient(linear, left top, left bottom, from(#8ca2b8), to(#3e6181));
    background: linear-gradient(to bottom, #8ca2b8, #3e6181);
    border-color: #4c7599;
    color: #fff;
    box-shadow: 0 1px 3px #000000;
}

.btn-blue:hover {
    background: -moz-linear-gradient(top, #3e6181 0, #8ca2b8);
    background: -webkit-gradient(linear, left top, left bottom, from(#3e6181), to(#8ca2b8));
    background: linear-gradient(to bottom, #3e6181, #8ca2b8);
}

.btn-red {
    background: -moz-linear-gradient(top, #d63f3f 0, #8e2121);
    background: -webkit-gradient(linear, left top, left bottom, from(#d63f3f), to(#8e2121));
    background: linear-gradient(to bottom, #d63f3f, #8e2121);
    border-color: #994c4c;
    color: #fff;
    box-shadow: 0 1px 3px #000000;
}

.btn-red:hover {
    background: -moz-linear-gradient(top, #8e2121 0, #d63f3f);
    background: -webkit-gradient(linear, left top, left bottom, from(#8e2121), to(#d63f3f));
    background: linear-gradient(to bottom, #8e2121, #d63f3f);
}

.btn-green {
    background: -moz-linear-gradient(top, #1fa81c 0, #177d15);
    background: -webkit-gradient(linear, left top, left bottom, from(#1fa81c), to(#177d15));
    background: linear-gradient(to bottom, #1fa81c, #177d15);
    border-color: #136611;
    color: #fff;
    box-shadow: 0 1px 3px #000000;
}

.btn-green:hover {
    background: -moz-linear-gradient(top, #177d15 0, #1fa81c);
    background: -webkit-gradient(linear, left top, left bottom, from(#177d15), to(#1fa81c));
    background: linear-gradient(to bottom, #177d15, #1fa81c);
}

.left {
    float: left;
}

.right {
    float: right;
}

.btn-group {
    margin: 15px;
    clear: both;
}

.btn-group .btn.left {
    margin-right: 15px;
}

.btn-group .btn.right {
    margin-left: 15px;
}

.icon-search {
    vertical-align: baseline;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: .5em;
    margin-bottom:-4px;
}

.icon-search {
    background-image: url(../Images/report_magnify.png);
}

/*----------------------------------*
 *                                  *
 * Поиск                            *
 *                                  *
 *----------------------------------*/
.MainGridTableStyle {
    border-width: 1px;
    border-style: Ridge;
    border-collapse: collapse;
}

.MainGridHeaderStyle {
    text-align: center;
    vertical-align: middle;
    background-color: #5D7B9D;
    font-weight: bold;
    color: White;
}

.MainGridHeaderLinkStyle {
    font-weight: bold;
    color: White;
}

.MainGridRowStyle {
    background-color: #f8f8f8;
}

.MainGridRowAlternateStyle {
    background-color: #ffffff;
}

.MainGridRowStyle:hover {
    background-color: #ffe4e1 !important;
}

.MainGridRowAlternateStyle:hover {
    background-color: #ffe4e1 !important;
}

/*----------------------------------*
 *                                  *
 * Стили для RPWebControl.Preloader *
 *                                  *
 *----------------------------------*/
.rpwc-preloader .bg {
    position: absolute;
    z-index: 1000009;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    /* Цвет, паттерн и прозрачность фона */
    background-color: #fff;
    background-image: url(../Images/BgLock.png);
    opacity: 0;
    filter: alpha(opacity=0);
}

.rpwc-preloader.showed .bg {
    opacity: .3;
    filter: alpha(opacity=30);
}

.rpwc-preloader .lay {
    display: none;
}

.rpwc-preloader.showed .lay {
    display: block;
    z-index: 1000010;
    top: 0;
    left: 0;
    width: 100%;
    /* Прозрачность сообщения */
    opacity: .7;
    filter: alpha(opacity=70);
}

.rpwc-preloader .box {
    margin: 0 auto;
    /* Цвет фона и ширина сообщения */
    background-color: #666;
    width: 40%;
}

.rpwc-preloader .msg {
    padding: 20px 40px;
    text-align: center;
    /* Цвет и размер текста сообщения */
    color: #fff;
    font-size: 14px;
}

.rpwc-preloader .spnr {
    padding-bottom: 10px;
    /* Крутилка */
    background-image: url(../Images/Spinner.gif);
    background-position: center top;
    background-repeat: no-repeat;
    height: 32px;
}