﻿/*----------------------------------------------------------
The base color for this template is #5c87b2. If you'd like
to use a different color start by replacing all instances of
#5c87b2 with your new color.
----------------------------------------------------------*/
body {
    background-color: #5c87b2;
    font-size: .85em;
    font-family: "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
    margin: 0;
    padding: 0;
    color: #696969;
    min-width: 1280px;
    -webkit-font-smoothing: subpixel-antialiased;
}

/*a:link {
    color: #034af3;
    text-decoration: underline;
}

a:visited {
    color: #505abc;
}

a:hover {
    color: #1d60ff;
    text-decoration: none;
}

a:active {
    color: #12eb87;
}*/

header,
footer,
nav,
section {
    display: block;
}

input, table, textarea, select, div, tr, td, th
{
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
    box-sizing: border-box !important;
}

textarea
{
    display: block;
}

ul
{
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.ui-tabs-active a {
    outline: none !important;
}

/* HEADINGS   
----------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
    color: #000;
}

h1 {
    font-size: 2em;
    padding-bottom: 0;
    margin-bottom: 0;
}

h2 {
    padding: 0 0 10px 0;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/

/* you can specify a greater or lesser percentage for the 
page width. Or, you can specify an exact pixel width. */
.page {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

select.x-disabled {
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   border: none;
}

header, #header 
{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 50px;
    color: #000;
    padding: 0;
}

header h1, #header h1 {
    font-weight: bold;
    color: #fff;
    border: none;
    line-height: 2em;
    display: inline;
    margin-left: 10px;
    font-size: 32px !important;
    text-shadow: 1px 1px 2px #111;
}

header nav 
{
    top: 0px;
}

#main {
    position: fixed;
    left: 10px;
    top: 60px;
    right: 10px;
    bottom: 50px;
    
    background-color: #eee;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

.fullsize
{
    bottom: 10px !important;
}

#main-static
{
    /*position: fixed;
    left: 10px;
    top: 60px;
    right: 10px;
    height: 30px;*/
    width: 100%;
    height: 30px;
    
    overflow: hidden;
    /*border-bottom: 1px solid #bbb;*/
    display: table;
}

.toolbar
{
    padding: 3px;
    min-height: 30px;
}

.toolbar.borderless
{
    border: none;
    height: 34px;
}

.toolbar div
{
    vertical-align: middle;
    display: inline-block;
}

.toolbar.borderless div
{
    margin: 3px;
}

#main-toolbar
{
    padding: 5px;
    display: table-cell;
    height: 36px !important;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    border-top: none !important;
    
    border-radius: 4px 4px 0 0;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
}

#main-toolbar .x-label, #main-toolbar select
{
    font-size: 0.9em;
    height: 2.2em;
}

.toolbar .x-label
{
    color: #777;
}

.toolbar div
{
    display: inline-block;
    vertical-align: middle;
}

.toolbar .separated
{
    margin-left: 15px;
}

.ui-datepicker
{
    z-index: 1111 !important;
}

.ui-button img, .ui-button .icon
{
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
    width: 16px;
    height: 16px;
    vertical-align: bottom;
    display: inline-block;
}

#main-scroll
{
    padding: 5px;
    position: fixed;
    left: 10px;
    top: 100px;
    right: 10px;
    bottom: 50px;
    overflow: hidden;
}

.content-frame
{
    background-color: #fff;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

footer, 
#footer {
    background-color: #5c87b2;
    color: #999;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 30px;
}

footer input[type=text]
{
    width: 100%;
    height: 100%;
    margin: 0;
    font-size: 1.1em;
    border-radius: 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
}

/* TAB MENU   
----------------------------------------------------------*/

nav, 
#menucontainer {
    position: fixed;
    left: 100px;
    top: 0;
    height: 60px;
    display: table;
}

ul#menu 
{
    display: table-row;
    text-align: left;
}

ul#menu li {
    display: table-cell;
    border-width: 0;
    padding-bottom: 0;
    list-style: none;
    vertical-align: bottom;
    padding: 2px;
    padding-bottom: 0;
}

ul#menu li#greeting {
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    line-height: 2.8em;
    color: #fff;
}

ul#menu li a
{
    display: inline-block;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    background-color: white;
    color: black;
    border-bottom: 1px solid #999;
    border-radius: 4px 4px 0 0;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
}

ul#menu li a.selected
{
    background-color: #e9e9e9;
    border-bottom-color: #e9e9e9;
    color: #034af3;
}

ul#menu li a:hover {
    background-color: #fff;
    text-decoration: none;
}

ul#menu li a:active {
    background-color: #a6e2a6;
    text-decoration: none;
}

/* FORM LAYOUT ELEMENTS   
----------------------------------------------------------*/

fieldset {
    border: 1px solid #ddd;
    padding: 0 1.4em 1.4em 1.4em;
    margin: 0 0 1.5em 0;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
}

textarea {
    min-height: 25px;
    resize: none;
}

input[type="text"], 
input[type="password"] {
    border: 1px solid #ccc;
    padding: 2px;
    color: #444;
}

input[type="checkbox"]
{
    margin: 0px;
}

select {
    border: 1px solid #ccc;
    padding: 2px;
    color: #444;
}

input[type="submit"] {
    padding: 5px;
}

/* TABLE
----------------------------------------------------------*/

table {
    border: solid 1px #ccc;
    border-collapse: collapse;
}

table td {
    padding: 5px;
    border: solid 1px #ccc;
    color: black;
}

table th {
    padding: 6px 5px;
    text-align: left;
    background-color: #e8eef4;
    border: solid 1px #ccc;
}

table.layout-table
{
    width: 100%;
    border: none;
}

table.layout-table td
{
    border: none;
}

table.layout-table td.no-padding
{
    padding: 0 !important;
}

table.layout-table input[type="text"], 
table.layout-table input[type="password"], 
table.layout-table select, 
table.layout-table textarea
{
    font-size: 1em;
}

table.layout-table input[type="text"]:only-child,
table.layout-table input[type="password"]:only-child,
table.layout-table select:only-child,
table.layout-table textarea:only-child
{
    width: 100%;
}

table.grid-table
{
    width: 100%;
}

table.grid-table input[type="text"]:only-child, 
table.grid-table input[type="password"]:only-child, 
table.grid-table select:only-child, 
table.grid-table textarea:only-child
{
    width: 100%;
    font-size: 1em;
}

table.layout-table > tbody > tr > td
{
    border: none;
}

table.layout-table > tbody > tr > td.text
{
    padding-right: 0;
}

table.nowrap-table > tbody > tr > td
{
    white-space: nowrap;
}

td.cell-label
{
    color: #888;
    text-align: right;
    vertical-align: top;
    padding-bottom: 0;
    padding-top: 0;
    min-width: 100px !important;
    line-height: 1.5em;
}

td.cell-value
{
    color: black;
    padding-right: 35px;
    vertical-align: top;
    padding-bottom: 0;
    padding-top: 0;
    line-height: 1.5em;
}

table.bordered-layout-table
{
    border-collapse: separate;
    border-spacing: 5px 0;
    border: none;
    margin: 0;
    width: 100%;
    height: 100%;
}

table.bordered-layout-table > tbody > tr > td
{
    border: 1px #999 solid;
    vertical-align: top;
}

table.bordered-layout-table-thin
{
    border-collapse: collapse;
    margin: 0;
    width: 100%;
    height: 100%;
}

table.bordered-layout-table-thin > tbody > tr > td
{
    border: 1px #999 solid;
    vertical-align: top;
}

td.checkbox-column 
{
    text-align: center;
}

/* DIALOGS
----------------------------------------------------------*/

.ui-dialog
{
    max-height: 600px;
    max-width: 900px;    
}

.ui-dialog.wide
{
    min-width: 500px;
}

.ui-dialog .ui-dialog-title
{
    font-size: 0.8em;
    white-space: nowrap;
    overflow: hidden;
}

.ui-dialog .ui-dialog-content
{
    width: 100%;
    font-size: 0.9em;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 500px;
    max-width: 900px;
    padding: 5px;
}

.notitle .ui-dialog-titlebar
{
    display: none;
}

.ui-tabs .ui-tabs-panel
{
    padding: 0;
}

/* MISC  
----------------------------------------------------------*/
.clear {
    clear: both;
}

.error {
    color: Red;
}

div#title {
    /*display: block;
    position: fixed;
    left: 0px;
    top: 0px;
    width: auto;
    height: 35px;*/
}

#logindisplay {
    font-size: 1.1em;
    display: block;
    position: fixed;
    right: 10px;
    top: 10px;
    width: auto;
    height: auto;
    margin: 10px;
    color: White;
}

#logindisplay a:link {
    color: white;
    text-decoration: underline;
}

#logindisplay a:visited {
    color: white;
    text-decoration: underline;
}

#logindisplay a:hover {
    color: white;
    text-decoration: none;
}

/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error {
    color: #ff0000;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

.validation-summary-errors {
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid {
    display: none;
}

/* Styles for editor and display helpers
----------------------------------------------------------*/
.display-label, 
.editor-label {
    margin: 1em 0 0 0;
}

.display-field, 
.editor-field {
    margin: 0.5em 0 0 0;
}

.text-box {
    width: 30em;
}

.text-box.multi-line {
    height: 6.5em;
}

.tri-state {
    width: 6em;
}


/* Styles for interface elements
----------------------------------------------------------*/

.ellipsis
{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

#updater, 
.updater
{
    background-color: #fff;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    overflow: hidden;
    padding: 20px;
    text-align: center;
    
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -110px;
    margin-top: -33px;
    width:240px;
    height:86px;
    
    border: 2px solid gray;
    z-index: 9999;
}

#updater .img,
.updater .img
{
    vertical-align: middle;
}

#updater .text,
.updater .text
{
    display: inline-block;
    font-size: 16pt;
    font-weight: bold;
    vertical-align: middle;
}

#zerorecords
{
    background-color: #fff;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    overflow: hidden;
    padding: 20px 15px;
    text-align: center;
    
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -110px;
    margin-top: -33px;
    width:240px;
    height:86px;
    
    border: 2px solid gray;
}

#zerorecords span
{
    vertical-align: middle;
    display: block;
    margin-top: 8px;
}

#zerorecords .text
{
    display: inline-block;
    font-size: 16pt;
    font-weight: bold;
    vertical-align: middle;
}

#contentHost
{
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
}

#clientsList
{
    margin: 0;
    padding: 0;
}

li.client
{
    display: inline-block;
    position: relative;
    width: 300px !important;
    height: 150px !important;
    background-color: #fff;
    border: 1px solid #a5acb5;
    margin: 10px !important;
    color: Black;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    box-shadow: rgba(0,0,0,0.3) 0 0 4px;
    -webkit-box-shadow: rgba(0,0,0,0.3) 0 0 4px;
    -moz-box-shadow: rgba(0,0,0,0.3) 0 0 4px;
}

li.client.nda:before
{
    content: ' ';
    display: block;
    position: absolute;
    width: 300px !important;
    margin-top: 30px;
    height: 120px !important;
    opacity: 0.25;
    background-image: url(nda.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 50%;
    pointer-events: none;
}

.client-nda > table {
    position: relative;
}

.client-nda > table:before
{
    content: ' ';
    display: block;
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.25;
    background-image: url(nda.png);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 150px;
}

li.client .dataHost
{
    /*display: table;*/
}

li.client .header
{
    display: table;
    width: 300px !important;
    height: 27px;
    border: none;
    border-bottom: 1px solid #a5acb5;
    background: #e1e3e5;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 6px 6px 0 0;
    -webkit-border-radius: 6px 6px 0 0;
    -moz-border-radius: 6px 6px 0 0;
}

li.client .header.status1 {
    background-color: #D9F8B6;
}

li.client .header.status4 {
    background-color: #D3B2AC;
}

li.client .header .caption
{
    display: table-cell;
    height: 27px;
    overflow: hidden;
    vertical-align: middle;
    position: relative;
}

li.client .header .caption a {
    text-decoration: none;
}

li.client .header .caption a span
{
    display: block;
    margin: 3px;
    width: 230px !important;
    -moz-margin-top: 8px;
    text-shadow: 0 0 2px #aaa;
    -webkit-text-shadow: 0 0 2px #aaa;
}

li.client .header .caption > span 
{
    display: block;
    margin: 3px;
    width: 270px !important;
    -moz-margin-top: 8px;
    text-shadow: 0 0 2px #aaa;
    -webkit-text-shadow: 0 0 2px #aaa;
}

li.client .header .icon
{
    display: table-cell;
    width: 20px;
    padding-right: 0;
    padding-left: 4px;
}

li.client .header .icon div
{
    width: 16px;
}

li.client .content
{
    padding: 3px;
    display: table;
    width: 300px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.95em;
    line-height: 1.1em;
}

li.client .content .first-line
{
    min-height: 22px;
    padding-top: 5px;
    padding-bottom: 3px;
    margin-bottom: 3px;
    border-bottom: 1px #aaa dashed;
}

li.client .content .balance
{
    margin-left: 1px;
}

li.client .content .balance .positive
{
    color: green;
}

li.client .content .balance .negative
{
    color: red;
}

li.client .content .balance .details
{
    font-size: 0.9em;
}

li.client .content .manager
{
    float: right;
    margin-bottom: 3px;
    margin-top: 0;
    margin-right: 1px;
}

li.client .content .manager .manager-name
{
    /*font-weight: bold;*/
}

li.client .content .rests
{
    width: 294px;
    margin-bottom: 5px;
}

li.client .content .rests table
{
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
}

li.client .content .rests tr.red
{
    color: red;
}

li.client .content .rests tr.yellow
{
    color: orange;
}

li.client .content .rests table td
{
    border: none;
    padding: 1px;
    margin: 0;
}

li.client .content .rests .icon
{
    width: 20px;
    cursor: pointer;
}

li.client .content .rests .icon img
{
    width: 16px;
    height: 16px;
    vertical-align: middle;
    border: none;
}

li.client .content .rests .rest
{
    width: 40%;
    text-align: center;
}

li.client .content .rests .days
{
    width: 40%;
    text-align: center;
}

li.client .content .rests .campaigns
{
    width: 20%;
    text-align: right;
}

table.client-rests
{
    width: 100%;
}

table.client-rests tr.gray td
{
    color: gray;
}

table.client-rests tr.red td
{
    color: red;
}

table.client-rests tr.yellow td
{
    color: orange;
}

table.client-rests tr .text
{
    width: 400px;
    white-space: normal;
    text-align: left;
    word-break: break-all;
    word-wrap: break-word;
}

table.client-rests tr .number
{
    white-space: nowrap;
    text-align: right;
}

table.client-rests tr.group td
{
    /*padding-top: 9px; 
    padding-bottom: 2px;*/
    padding: 0;
    font-weight: bold;
    line-height: 32px;
}

table.client-rests tr.group img
{
    vertical-align: text-bottom;
}

.favorite-button
{
    background-position: center center;
    background-image: url(favorite-off.png);
    background-repeat: no-repeat;
}

.favorite-button.favorite
{
    background-image: url(favorite.png);
}

.client-info-button
{
    background-position: center center;
    background-image: url(info.gif);
    background-repeat: no-repeat;
}

.client-links-button
{
    background-position: center center;
    background-image: url(Resources/UI/Link2.png);
    background-repeat: no-repeat;
}

.client-actions-button
{
    background-position: center center;
    background-image: url(dropdown.gif);
    background-repeat: no-repeat;
}

.client-popup
{
    position: relative;
    right: 0;
    left: auto;
    outline: none;
}

.client-popup::-moz-focus-inner
{
    border: none;
}

.client-popup div.highlight
{
    position: absolute;
    width: 20px;
    height: 23px;
    margin-top: 2px;
    background-color: white;
    border-style: solid;
    border-color: black;
    border-width: 1px;
    border-bottom-width: 0;
    z-index: 2;
}

.client-popup div.area
{
    position: absolute;
    right: 0;
    margin-top: 24px;
    background: white;
    z-index: 1;
    border: 1px black solid;
    font-size: 9pt;
    padding: 5px 6px 5px 5px;
}

.client-popup ul
{
    list-style-type: none;
    padding: 2px 0;
}

.client-popup li
{
    padding: 2px;
}

.client-popup a
{
	box-sizing: border-box;
    width: 100%;
}

.client-popup a > span
{
    padding: 1px 2px;
}

.client-popup a:hover
{
    text-decoration: underline;
}

thead th
{
    border: 1px solid #aaa;
}

td.center, th.center
{
    text-align: center;
    vertical-align: middle;
}

.banner .lowctr
{
    color: red;
}

.banner.stopped td
{
    color: #aaa;
}

.banner
{
    max-height: 30px !important;
}

.banner td.nowrap
{
    overflow: hidden;
}

.banner .strategy-type
{
    float: left;
    font-weight: bold;
}

.banner .keywords
{
    height: 1.2em;
    display: inline-block;
    overflow: hidden;
}

.banner .keywords,
.banner .keywords-full
{
    font-size: 0.9em;
}

.strategy-type-inline
{
    float: left;
    width: 75px;
    text-align: left;
    font-size: 0.95em;
    padding: 0 !important;
    margin: 0;
}


.strategy-price-inline
{
    width: 55px !important;
    text-align: right;
    font-size: 0.9em !important;
    margin: 0;
}

#auto-refund-dlg input[type=text]
{
    width: 50px;
}

#auto-refund-source-campaigns
{
    border: 1px solid #aaa;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.auto-refund-source-campaign
{
    display: block;
    padding-left: 3px;
    padding-right: 3px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.auto-refund-source-campaign input
{
    margin-left: 3px;
    margin-right: 3px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.auto-refund-source-campaign input:checked 
{
    background-color: Navy;
}

.ui-button.dangerous
{
    background-color: #ff7d91 !important;
    background-image: none !important;
}

.ui-dialog-buttonpane
{
    padding-left: 13px !important;
}

.ui-dialog-buttonset
{
    width: 100%;
    text-align: right;
}

.ui-dialog-buttonpane .ui-button.dangerous,
.ui-dialog-buttonpane .ui-button.preview-button
{
    float: left;
    margin-left: 3px;
}

.ui-dialog-buttonpane .ui-button.default span
{
    
}

.x-buttonset label
{
    line-height: 1.1em;
}

.x-buttonset-bold label.ui-state-active
{
    font-weight: bold;
}

table .row.selected td,
table.selectable .row.selected td
{
    background-color: #5c87b2 !important;
    color: white !important;
}

table .row.selected a,
table.selectable .row.selected a
{
    color: white !important;
}

.yadis-table .group td
{
    font-size: 1.1em;
    font-weight: bold;
    padding-top: 7px;
    padding-bottom: 7px;
    border-top: 2px solid #ddd;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
}

.yadis-table .group .toggle
{
    display: inline-block;
    width: 16px;
    height: 16px;
    
    background-position: center center;
    background-image: url(collapse.png);
    background-repeat: no-repeat;
}

.yadis-table .group .toggle.closed
{
    background-position: center center;
    background-image: url(expand.png);
    background-repeat: no-repeat;
}

.yadis-table .row:hover
{
    background-color: #ccddff !important;
}

.yadis-table .campaign .set-strategy > span.hover
{
    display: none;
}

.yadis-table .campaign:hover .set-strategy > span.content
{
    display: none;
}

.yadis-table .campaign:hover .set-strategy > span.hover
{
    display: inline;
}

.yadis-table .campaign > a
{
    z-index: 1;
    position: relative;
    top: 0;
}

.yadis-table .campaign .analyze-link,
.yadis-table .campaign .refund-link
{
    display: none;
    float: right;
    font-weight: bold;
    position: relative;
    z-index: 2;
    width: 1px;
}

.yadis-table .campaign .analyze-link > a,
.yadis-table .campaign .refund-link > a
{
    display: block;
    position: relative;
    float: right;    
    padding-left: 15px;
    
    background: url(Gradient.ashx?startColor=ccddff&endColor=ccddff&median=25%); /* SVG background (mostly IE9) */
    background: -moz-linear-gradient(left,  rgba(204,221,255,0) 0%, rgba(204,221,255,1) 15px, rgba(204,221,255,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(204,221,255,0)), color-stop(15px,rgba(204,221,255,1)), color-stop(100%,rgba(204,221,255,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  rgba(204,221,255,0) 0%,rgba(204,221,255,1) 15px,rgba(204,221,255,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  rgba(204,221,255,0) 0%,rgba(204,221,255,1) 15px,rgba(204,221,255,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  rgba(204,221,255,0) 0%,rgba(204,221,255,1) 15px,rgba(204,221,255,1) 100%); /* IE10+ */
    background: linear-gradient(to right,  rgba(204,221,255,0) 0%,rgba(204,221,255,1) 15px,rgba(204,221,255,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#70ccddff', endColorstr='#ccddff',GradientType=1 )\9; /* IE6-8 */
}

.yadis-table .campaign.selected .analyze-link > a,
.yadis-table .campaign.selected .refund-link > a
{
    background: url(Gradient.ashx?startColor=5c87b2&endColor=5c87b2&median=25%); /* SVG background (mostly IE9) */
    background: -moz-linear-gradient(left,  rgba(92,135,178,0) 0%, rgba(92,135,178,1) 15px, rgba(92,135,178,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(92,135,178,0)), color-stop(15px,rgba(92,135,178,1)), color-stop(100%,rgba(92,135,178,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  rgba(92,135,178,0) 0%,rgba(92,135,178,1) 15px,rgba(92,135,178,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  rgba(92,135,178,0) 0%,rgba(92,135,178,1) 15px,rgba(92,135,178,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  rgba(92,135,178,0) 0%,rgba(92,135,178,1) 15px,rgba(92,135,178,1) 100%); /* IE10+ */
    background: linear-gradient(to right,  rgba(92,135,178,0) 0%,rgba(92,135,178,1) 15px,rgba(92,135,178,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#705c87b2', endColorstr='#5c87b2',GradientType=1 )\9; /* IE6-8 */
}

.yadis-table .campaign:hover .analyze-link,
.yadis-table .campaign:hover .refund-link
{
    display: inline-block;
}

td.small
{
    font-size: 0.85em;
}

.breadcrumb
{
    vertical-align: middle;
    display: inline-block;
    list-style: none;
    margin-left: 3px;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-right: 15px;
    padding: 0;
}

.breadcrumb li
{
    display: inline-block;
    margin: 0;
}

.breadcrumb li:before
{ 
    margin: 3px;
    margin-right: 6px;
    content: "►";
    font-size: 0.8em;
    color: #999;
}

.breadcrumb li.root:before
{
    content: none;
}

.breadcrumb li a
{
    text-decoration: none;
}

.breadcrumb li a:hover
{
    color: blue;
}

table.records-table
{
    border-collapse: collapse;
    width: 100%;
}

table.records-table th
{
    border: 1px #ccc solid;
    padding: 1px 3px;
}

table.records-table td
{
    background: white;
    border: 1px #ccc solid;
    padding: 3px;
    vertical-align: top;
}

table.records-table td.icon
{
    padding: 2px 1px 1px 2px;
}

table.records-table td.icon img
{
    width: 16px;
    height: 16px;
    margin: 0;
}

.scroll-area-host
{
    width: 100%;
    height: 100% !important;
    overflow: hidden;
    overflow-y: auto;
    position: relative;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    border: none;
}

.scroll-area
{
    overflow: auto;
    overflow-x: hidden;
    overflow-y: auto;
    left: 0;
    top: 0;
    width: 100%;
    position: absolute;
    /*height: 100% !important;*/
}

.scroll-overflow
{
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-height: 450px;
}

input[type="text"].date
{
    width: 100px !important;
    min-width: 100px;
}

input[type="text"].date.small
{
    width: 80px !important;
    min-width: 80px;
}


input[type="text"].small
{
    font-size: 0.8em;
    height: 1.6em;
}

.scroll-tab
{
    overflow-y: auto;
}

.edit-table tr .edit-link
{
    display: none;
    float: right;
    font-weight: bold;
    position: relative;
    z-index: 2;
    width: 0;
}

.edit-table tr .edit-link > a
{
    display: block;
    position: relative;
    float: right;    
    padding-left: 15px;
    cursor: pointer;
    
    background: url(Gradient.ashx?startColor=ccddff&endColor=ccddff&median=25%); /* SVG background (mostly IE9) */
    background: -moz-linear-gradient(left,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 15px, rgba(255,255,255,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(15px,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 15px,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 15px,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 15px,rgba(255,255,255,1) 100%); /* IE10+ */
    background: linear-gradient(to right,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 15px,rgba(255,255,255,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#70ffffff', endColorstr='#ffffff',GradientType=1 )\9; /* IE6-8 */
}

.edit-table tr.selected edit-link > a
{
    background: url(Gradient.ashx?startColor=5c87b2&endColor=5c87b2&median=25%); /* SVG background (mostly IE9) */
    background: -moz-linear-gradient(left,  rgba(92,135,178,0) 0%, rgba(92,135,178,1) 15px, rgba(92,135,178,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(92,135,178,0)), color-stop(15px,rgba(92,135,178,1)), color-stop(100%,rgba(92,135,178,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left,  rgba(92,135,178,0) 0%,rgba(92,135,178,1) 15px,rgba(92,135,178,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left,  rgba(92,135,178,0) 0%,rgba(92,135,178,1) 15px,rgba(92,135,178,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left,  rgba(92,135,178,0) 0%,rgba(92,135,178,1) 15px,rgba(92,135,178,1) 100%); /* IE10+ */
    background: linear-gradient(to right,  rgba(92,135,178,0) 0%,rgba(92,135,178,1) 15px,rgba(92,135,178,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#705c87b2', endColorstr='#5c87b2',GradientType=1 )\9; /* IE6-8 */
}

.edit-table tr td:hover .edit-link
{
    display: inline-block;
}

.edit-table tr td .payed-payment
{
    float: right;
    color: green;
}

.edit-table tr.Bold .content
{
    font-weight: bold;
}

.market-table td
{
    background-color: White;
}

.select-time
{
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    -o-appearance: textfield;
    -ms-appearance: textfield;
    border-width: 1px;
    padding: 2px;
    white-space: nowrap;
    display: inline-block;
}

.select-time.disabled,
.select-time .hour:disabled,
.select-time .minute:disabled,
.alldaylong.disabled
{
    color: #999;
    text-decoration: none;
    cursor: auto;
}

.select-time .hour,
.select-time .minute
{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    -ms-appearance: none;
    border: none;
    margin: 1px;
    padding: 0;
    outline: none;
}

.select-time .hour
{
    direction: rtl;
}

.alldaylong, 
.works24x7
{
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}


.template-phrases-table td
{
    border: none !important;
    /*padding: 1px 2px !important;*/
    vertical-align: middle;
    background-color: inherit;
}

.template-phrases-table tr.row:nth-child(odd) td, 
.template-phrases-table tr.row:nth-child(odd) td input[type=text]
{
    border: none;
    background-color: white;
}

.template-phrases-table tr.row:nth-child(even) td, 
.template-phrases-table tr.row:nth-child(even) td input[type=text] 
{
    border: none;
    background-color: #f5f5f5;
}

.template-phrases-table .x-button
{
    margin: 0;
}

.template-phrases-table .x-button .ui-button-text
{
    padding: 1px 8px;
}

.template-replacement-page 
{
    width: 100% !important;
}

.template-replacement-page .scroll-area-host 
{
    height: 398px !important;
    border: 1px #ccc solid;
}

.template-replacement-table 
{
    width: 100% !important;
}

.template-replacement-table td
{
    border: none !important;
    padding: 1px 2px !important;
    vertical-align: middle;
}

.template-replacement-table .x-button
{
    margin: 2px;
}

.template-replacement-table .x-button .ui-button-text
{
    padding: 2px 8px;
}

.template-replacement-footer 
{
    height: 27px !important;
    border: none;
    margin: 0;
    text-align: right;
}

.template-replacement-footer .x-button
{
    margin: 2px 4px 2px 2px;
}

.template-replacement-footer .x-button .ui-button-text
{
    padding: 2px 8px;
}

.template-filter-page 
{
    width: 100% !important;
}

.template-filter-page .scroll-area-host 
{
    height: 427px !important;
    border: 1px #ccc solid;
}

.template-filter-table 
{
    width: 100% !important;
}

.template-filter-table td
{
    padding: 2px;
}

.template-filter-table tr.row:nth-child(odd) td input[type=text]
{
    border: none;
    background-color: white;
}

.template-filter-table tr.row:nth-child(even) td input[type=text] 
{
    border: none;
    background-color: #f5f5f5;
}

.template-filter-page .filter input[type=checkbox]
{
    margin: 3px;
}

.invalid-value
{
    background-color: pink !important;
}

.currency
{
    display: inline-block;
    margin: 3px;
}

.ui-widget-header .x-datepicker:disabled
{
    background: #eee;
}

.ui-tabs-nav li
{
    outline: hidden;
}

.validation-summary
{
    position: static;
    z-index: 1;
    background: white;
    left: 0;
    right: 0;
    top: 0;
    padding: 5px 10px;
}

.validation-summary ul
{
    list-style-type: none;
    padding: 0;
}

.modal-background
{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #000000;
    filter: alpha(opacity=10);
    opacity: 0.1;
    -moz-opacity:0.1;
    z-index:1111;
}

.minus-phrase-part
{
    background-color: Green;
    color: White;
}

.minus-phrase-part.invalid
{
    background-color: Pink;
}

.strategy-insufficient
{
    color: Red;
}

.clients-feed
{
    right: 0;
    float: right;
    width: 250px;
    height: 100%;
    background-color: white;
    border: 1px solid gray;
    margin-left: 5px;
    position: relative;
    
    padding-bottom: 23px;
}

.clients-feed .scroll-area-host
{
    margin-top: 23px;
}

.clients-feed ol
{
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#feed-updater
{
    overflow: hidden;
    padding: 20px;
    text-align: center;
    
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -43px;
    margin-top: -43px;
    width:86px;
    height:86px;
    
    z-index: 9999;
}

#clientsFeedFilter
{
    position: absolute;
    margin: 0;
    z-index: 1;
    width: 248px;
    height: 23px;
}

.feed-item
{
    min-height: 30px;
    position: relative;
    display: block;
    margin: 0;
    padding: 2px;
}

.feed-item:nth-child(odd)
{
    background-color: #f5f5f5;
}

.feed-item .feed-item-icon
{
    position: absolute;
    height: 100%;
    left: 0;
    float: left;
    width: 22px;
    margin-top: -2px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 3px;
}

.feed-item .feed-item-icon.today
{
    background: #ffd2d9;
}

.feed-item:nth-child(odd) .feed-item-icon.today
{
    background: #ffbfc9;
}

.feed-item .feed-item-icon img
{
    margin: 3px;
    margin-top: 5px;
}

.feed-item .feed-item-header
{
    margin: 3px;
    margin-left: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

.feed-item .feed-item-header .feed-item-time
{
    display: inline-block;
    margin-right: 6px;
    font-size: 9pt;
    color: Black;
}

.feed-item .feed-item-content
{
    margin: 3px;
    margin-top: 5px;
    margin-left: 25px;
    font-size: 9pt;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

.feed-item .feed-item-content .payed-payment
{
    color: green;
}

.client-commission
{
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
    background-color: red;
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 0;
    padding-bottom: 1px;
}

.client-reserved-amount
{
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
    background-color: limegreen;
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 0;
    padding-bottom: 1px;
}

.client-contact td,
.client-legal td,
.client-login td,
.client-tabula-user td,
.client-user td,
.client-link td
{
    padding: 2px;
    vertical-align: middle !important;
    line-height: 20px;
}

.client-legal.unmatched td
{
    color: #ccc;
}

.client-login td img {
    vertical-align: text-top;
}

.client-login.request label {
    color: #aaa;
}

.client-login.request label {
    color: #aaa;
}

.client-contact td input[type=radio] 
{
    margin-top: 6px;
}

.client-tabula-user-add,
.client-user-add
{
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    color: #777;
}

.client-contact td .x-button .ui-button-text,
.client-legal td .x-button .ui-button-text,
.client-login td .x-button .ui-button-text,
.client-tabula-user td .x-button .ui-button-text,
.client-user td .x-button .ui-button-text,
.client-link td .x-button .ui-button-text
{
    padding: 2px 10px;
}

.client-contact-mc 
{
    background-image: url(Resources/WorkPhone.png) !important;
    background-position: 98% center !important;
    background-repeat: no-repeat !important;
}

.client-payment td.amount
{
    white-space: nowrap;
}

.client-payment.selected td.amount
{
    background-color: #5c87b2 !important;
    color: White !important;
}

.client-payment.request td
{
    color: #999;
}

.client-payment.request td .edit-link
{
    color: black;
}

.analyze-price.excellent
{
    color: green;
    font-weight: bold;
}

.analyze-price.good
{
    color: yellowgreen;
    font-weight: bold;
}

.analyze-price.awful
{
    color: red;
    font-weight: bold;
}

.analyze-price.bad
{
    color: orange;
    font-weight: bold;
}

.dropdown-menu
{
    position: fixed;
    z-index: 999;
    outline: none;
    padding: 3px;
    background-color: #fafafa;
    
    border: 1px solid #888;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
}

.dropdown-menu::-moz-focus-inner
{
    border: none;
}

.dropdown-menu a
{
    margin: 5px;
    display: block;
    font-size: 0.9em;
}

.ui-dialog.busy
{
    cursor: wait !important;   
}

.yandex-cert .name
{
    font-size: 1.1em;
}

.yandex-cert .cert-info
{
    font-size: 0.9em;
}

.rests-title
{
    display: inline-block;
    font-weight: bold;
    vertical-align: top;
    margin-top: 3px;
}

.rests-info
{
    display: inline-block;
}

.rests-info .client-system-rest
{
    display: inline-table;
    margin-right: 10px;
}

.send-request 
{
    position: relative;
}

.send-request:before
{
    content:"?";
    font-size: 10px;
    display: block;
    border: 1px solid gray;
    padding: 0;
    width: 12px;
    text-align: center;
    background-color: #fff9bd;
    position: absolute;
    margin-left: -20px;
    margin-top: 5px;
}

.send-request .has-request
{
    color: #777;
    background-color: #eee;
}

.requests-counter,
.fincontrol-counter,
.stopped-counter
{
    position: relative;
    display: inline-block;
    vertical-align: text-top;
    height: 1px;
    width: 5px;
}

.requests-counter div,
.fincontrol-counter div,
.stopped-counter div
{
    position: absolute;
    z-index: 1;
    
    background: red;
    border: 1px solid #ccc;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    padding-left: 4px;
    padding-right: 4px;
    padding-top: 1px;
    padding-bottom: 0px;
    
    margin-top: -5px;
    margin-left: -4px;
    
    font-size: 10px;
    font-weight: bold;
    line-height: 12px;
    color: White;
}

.strategy-help
{
    display: block;
    font-size: 0.8em;
    width: 14px;
    background-color: #fff9bd;
    color: black;
    float: right;
    text-align: center;
    border: 1px solid gray;
    cursor: pointer;
}

#strategy-help-dlg .link
{
    font-weight: bold;
    outline: none;
}

#strategy-help-dlg .link::-moz-focus-inner
{
    border: none;
}


.orders-table tr
{
    background-color: white;
}

.orders-table tr.alternate
{
    background-color: #f5f5f5;
}

.orders-table tr.order-group
{
    font-weight: bold;
}

.orders-table tr.order-group .order-group-sum
{
    color: #aaa;
}

.orders-table tr.order.payed-partial {
    background-color: darkorange;
}

.orders-table tr.order.payed.update {
    background-color: #ceefaa;
}

.orders-table td
{
    border-color: #ccc;
}

.alternate-table tr.row:nth-child(odd)
{
    background-color: white;
}

.alternate-table tr.row:nth-child(even)
{
    background-color: #f5f5f5;
}

.alternate-table tr.row td
{
    border: 1px solid #ccc;
}

.alternate-table tr.group td
{
    border: none;
}

.smallfont-table td
{
    font-size: 0.85em;
}

.requests-table .approved
{
    color: green;
}

.requests-table .rejected
{
    color: red;
}

.requests-table .value
{
    width: 180px;
}

.report-group
{
    margin: 10px;
    font-size: 1.5em;
}

.report-block
{
    margin: 10px;
    background: white;
    border: 1px solid gray;
    padding: 5px;
    width: 400px;
    height: 80px;
    display: inline-block;
    vertical-align: top;
}

.report-block .header
{
    font-size: 1.3em;
    font-weight: bold;
    margin: 3px;
}

.report-block .description
{
    font-size: 0.9em;
    color: Gray;
    margin: 3px;
}

.report-block .button
{
    position: relative;
    float: right;
    font-size: 0.8em;
}

#report-parameters .parameter
{
    padding: 5px;
    vertical-align: baseline;
}

#report-parameters .parameter .label-column
{
    min-width: 130px;
    max-width: 200px;
}

#report-parameters .parameter .value-column select
{
    max-width: 380px;
}

#report-parameters .parameter .value-column select.predefined
{
    appearance: textfield;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    -o-appearance: textfield;
    -ms-appearance: textfield;
}

#report-parameters .parameter .value-column .fast-dates
{
    margin-top: 5px;
}

#report-parameters .parameter .value-column .fast-dates .set-date
{
    margin-right: 10px;
}

.user-item > .expand-children
{
    visibility: hidden;
    display: inline-block;
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle;
    background-image: url(collapse.png);
    background-position: center center;
    background-repeat: no-repeat;
}

.user-item > .content
{
    display: inline-block;
    position: relative;
    padding: 2px;
}

.user-item.root > .content
{
    margin-left: 16px;
}

.user-item > .child-users
{
    display: block;
    margin-left: 16px;
}

.user-item.collapsed > .expand-children
{
    background-image: url(expand.png);
}

.user-item.collapsed > .child-users
{
    display: none;
}

.user-item > .content.drop-here
{
    background-color: navy;
    color: white;
}

.user-item > .content a
{
    color: blue;
}

.user-item > .content.drop-here a
{
    color: white;
}

.user-item > .content.drag
{
    background-color: #eee;
    z-index: 1000;
    border: 1px dotted black;
    padding-bottom: 1px;
    padding-top: 1px;
}

.user-item.user-disabled > .content > a
{
    color: #888;
}

.user-item.search-result-parent > .content > a
{
    color: #ccc;
}

/*#client-payments 
{
    table-layout: fixed;
}*/

.client-payment td.text-info,
.client-event td.text-info {
    vertical-align: top;
    padding-right: 5px;
}

.client-payment td.text-info .content,
.client-event td.text-info .content {
    word-break: break-word;
}

.client-payment td.text-info .content.large
{
    display: block;
    height: 1.1em;
    line-height: 1.1em;
    overflow: hidden;
}


.account.row .name {
    color: black;
}

.account.row.disabled .name {
    color: #aaa;
}

.account.row.disabled img {
    opacity: 0.4;
}

.account.row .enable-button {
    width: 100%;
}

.account.row .enable-button .ui-button-text {
    padding: 3px;
    font-size: 0.9em;
    color: red;
}

.account.row.disabled .enable-button .ui-button-text {
    color: green;
}

.account .cert-info {
    font-size: small;
    color: #aaa;
}

.account .cert-info.error {
    color: red;
}

.table-fixed-header {
    width: auto !important;
}

.table-header {
    margin: 0;
}

.adpro .summary-block {
    margin-top: 10px;
    margin-bottom: 12px;
}

.payment-context-box td {
    padding-top: 0;
    padding-bottom: 2px;
    font-size: 80%;
}

/* ======= Added for PaymentDialog3 ========= */

.payment-dlg select,
.payment-dlg textarea {
    display: block;
    width: 100%;
}
.payment-dlg select,
.payment-dlg textarea,
.payment-dlg input {
    outline: none;
    padding: 3px 8px;
    border-radius: 3px;
    height: 1.8em;
}

.payment-dlg select[disabled] {
    color: #aaa;
}

.payment-dlg select.date-period {
    width: auto !important;
}

.payment-dlg input[type=checkbox],
.payment-dlg input[type=radio] {
    width: 16px;
    height: 14px;
}

.payment-dlg td > label {
    display: block;
    margin: 8px 0;
}

/* amount details */

.payment-dlg .payment-amount.with-legend .payment-amount-details,
.payment-dlg .payment-amount.with-legend .payment-amount-total {
    padding: 0;
}

.payment-dlg .payment-amount.with-legend .details-block {
    display: inline-block;
    position: relative;
    padding: 5px;
}

.payment-dlg .payment-amount.with-legend .payment-amount-total .details-block.product {
    border-radius: 4px;
    /* fix visual misalignment of inputs */
    transform: translateY(-1px);
}

.payment-dlg .payment-amount .payment-amount-details {
    padding-left: 12px !important;
}

.payment-dlg .payment-amount:not(.with-legend) .payment-amount-details {
    visibility: hidden;
}

.payment-dlg .payment-amount .details-block:not(:last-child) {
    margin-right: 8px;
}

.payment-dlg .payment-amount .details-block.currency {
    margin-left: -14px;
    font-family: sans-serif;
    font-size: 14px;
    top: 1px;
}

.payment-dlg .payment-amount .details-block.multiplier-value input {
    width: 150px !important;
}

.payment-dlg .payment-amount .details-block .text {
    position: absolute;
    font-family: sans-serif;
    font-size: 14px;
    left: -9px;
    top: -3px;
    color: #777;
}

.payment-dlg .payment-amount .details-block input {
    display: block;
}

.payment-dlg .payment-amount .details-block::before {
    display: block;
    margin-bottom: 5px;
    font-size: 80%;
    font-weight: bolder;
    color: #555;
}

.payment-dlg .payment-max .max-sum {
    display: block;
    margin-top: -3px;
}

.payment-dlg .payment-max .max-sum .value {
    font-weight: bold;
}

/* ===== end of changes ===== */

.payment-amount.with-legend {
    border-top: 8px solid white;
}

.payment-amount.with-legend table td:last-child {
    width: 100%;
}

.payment-amount.with-legend .text {
    padding-top: 1.8em;
}

.payment-amount.with-legend td::before {
    display: block;
    margin-bottom: 5px;
    font-size: 80%;
}

.payment-amount .product input {
    width: 100px !important;
}

.payment-amount.with-legend .product {
    background-color: #aaa;
}

.payment-amount.with-legend .product::before {
    content: "В ArrowSys:";
    color: white;
}

.payment-amount .amount input {
    width: 100px !important;
}

.payment-amount.with-legend .amount::before {
    content: "На площадке:";
}

.payment-amount .currency-rate input {
    width: 70px !important;
}

.payment-amount.with-legend .currency-rate::before {
    content: "Курс:";
}

.payment-amount .vat input {
    width: 42px !important;
}

.payment-amount.with-legend .vat::before {
    content: "НДС:";
}

.payment-amount .commission input {
    width: 110px !important;
}

.payment-amount.with-legend .commission::before {
    content: "Комиссия:";
}

.payment-amount .multiplier-value input {
    width: 100px !important;
}

.payment-amount.with-legend .multiplier-value::before {
    content: "НДС и комиссия:";
}

.payment-max td {
    font-size: 80%;
    padding-top: -5px;
}

.payment-context-box .payment-max-sum,
.payment-max .max-sum {
    color: #777;
}

.payment-context-box .payment-max-sum.overflow,
.payment-max .max-sum.overflow {
    color: red;
}

.payment-context-box.legend td {
    padding-top: 5px;
    padding-bottom: 0px;
}

.payment-manual-box.disabled label {
    color: #aaa;
}

.payment-manual-box.disabled a {
    color: #aaa !important;
    pointer-events: none;
}

#available-legals-table tbody tr {
    cursor: pointer;
}

#available-legals-table tbody tr:hover {
    background-color: #eee;
}

.client-contract-1c .info {
    font-size: 0.9em;
    vertical-align: top;
}

.client-contract-1c .history {
    font-size: 0.9em;
    vertical-align: top;
}

.client-contract-1c .history table {
    margin-top: 1em;
}

.client-contract-1c .history table td {
    padding: 0px;
    line-height: 1.4em;
}

.client-contract-1c .history table tr.warning td:last-child {
    color: red;
}

.quick-set-credit-limit-popup input {
    width: 100px;
    height: 2em;
    vertical-align: middle;
    padding: 4px 3px;
}

.quick-set-credit-limit-popup button {
    height: 2em;
    vertical-align: middle;
}

.quick-set-credit-limit-popup .will-create-request {
    margin-top: 3px; 
    font-size: 0.85em;
}

.bill-service-content input, 
.bill-service-content select,
.act-service-content input,
.act-service-content select {
    display: inline-block;
    width: auto !important;
}

.bill-service-website,
.act-service-website {
    min-width: 100px;
    max-width: 170px;
} 

.bill-service-comment,
.act-service-comment {
    min-width: 200px;
} 

.closure-service-content input,
.act-service-content textarea {
    display: block;
    width: 100%;
    border: 1px solid #ddd;
}

.act-service-content textarea {
    resize: vertical;
}

.act-service-name {
    font-weight: 500;
    margin-bottom: 3px;
    color: #777;
}

.bill-service-content, 
.bill-service-vat,
.act-service-content,
.act-service-vat {
    vertical-align: middle !important;
}

.bill-service-sum,
.act-service-sum,
.closure-service-sum {
    border-right: none !important;
    vertical-align: middle !important;
}

.bill-service-delete,
.act-service-delete,
.closure-service-delete {
    border-left: none !important;
    vertical-align: middle !important;
    padding-top: 2px;
}

.bill-service-delete button,
.act-service-delete button,
.closure-service-delete button {
    display: inline-block;
    background-color: red;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 1.2em;
    padding: 0;
    margin-top: 3px;
    cursor: pointer;
}

.bill-service-add,
.act-service-add,
.closure-service-add {
    border: none !important;
}

.client-contract-1c .button {
    padding: 5px 10px;
}

.contract-archive:not(.ui-state-active) a {
    color: #aaa !important;
}

.act-group td {
    font-size: 1.1em;
}

.act-group .act-group-name,
.act-group .act-group-sum {
    font-weight: bold;
}


.commission-block {
    background-color: #f8c2c8;
    padding: 10px !important;
    font-weight: normal;
}

.commission-block div + div {
    margin-top: 5px;
}

.commission-block .commission-comment:empty {
    display: none;
}

.commission-block .commission-comment::before {
    content: '(';
}

.commission-block .commission-comment::after {
    content: ')';
}

.commission-block .commission-value {
    font-weight: bold;
}