html, body {
    margin-top: 0px;
    font-size: 19px;
    background: #FFF;
}
table{
    border-color:#66488D;
    border-collapse:collapse;
}
caption{
    margin:15px 5px 15px 5px;
    font-weight:bold;
    font-size:22px;
}
caption i{
    font-weight:normal;
    font-size:19px;
    color:#666;
}
select, input, button {
    font-size: 16px;
}
.header {
    background-color: #66488D;
    color: #FFF;
}
.internet {
    background-color: #b3f0b3;
}
.probationer {
    background-color: #ffda6a;
}
.decline {
    background-color: skyblue;
    text-decoration: line-through;
}
.red {
    background-color:  #ffb0b0;
}
.green {
    background-color:  #b0ffb0;
}
.warn {
    background-color:  #ffda6a;
}
.even {
    background-color: #e6dfee;
}
.over{
    background-color: #C4E2ED;
}
img {
    vertical-align: middle;
    border: none;
}
/* validator */
label.error {
    margin-left: 10px;
    color: red;
}
.valid {
    background: url("/images/icons/tick.png") no-repeat right transparent;
}
.pending {
    border-color: orange;
}
.required:after {
    content: " *";
    color: red;
}

.container {
    display: flex;
    justify-content: space-around;
}

@media (mix-width: 1000px) {
    .container {
        flex-direction: row;
    }
}

@media (max-width: 1000px) {
    .container {
        flex-direction: column;
    }
}

a.button {
    font-family: arial, tahoma;
    font-size: 16px;
    background-color: #F2F2F2;
    border: 1px solid #003C74;
    border-radius: 3px;
    display: inline-block;
    box-sizing: border-box;
    padding: 2px 7px 4px;
    line-height: normal;
    text-decoration: none;
    vertical-align: middle;
    text-align: center;
    overflow: visible; /* removes extra width in IE */
    color: buttontext;
    /* -webkit-appearance: button; */
    -webkit-writing-mode: horizontal-tb;
    -webkit-align-items: flex-start;
    -moz-user-select: none;
    -khtml-user-select: none;
    /* user-select: none; */
}
a.button:active {
    background-color: #E2E1DA;
    padding: 2px 7px 4px;
}
a.button img {
    margin-top: 2px;
    margin-bottom: 2px;
    vertical-align: middle;
}
.box {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    margin-left: -300px;
    display: none;
    border: 1px solid;
    background: #E5F3FE;
}
table.waybill {
    border: 1px solid;
    border-collapse: separate;
}
table.waybill tr td {
    border-top: 1px solid;
}
table.waybill tr th {
    border-bottom: 1px solid;
}
.station {
    font-weight: bold;
    border-bottom: 1px solid;
}
.bordered {
    border-right: 1px solid;
    border-left: 1px solid;
}
.main {
    position: relative;
    padding-bottom: 10px;
}
.footer {
    position: absolute;
    width: 100%;
    height: 20px;
    padding-top: 10px;
    left: 0px;
    bottom: 10px;
    background-color: #FFF;
    text-align: center;
    border-top: 1px solid;
}
.rw {
    text-align: right;
    white-space: nowrap;
}

/* навигационное меню */
#nav {
    display:inline-block;
    margin:0;
    padding:0;
    list-style:none;
    background:#A58EC6;
}
#nav li {
    float: left;
    display: block;
    width: 130px;
    background: #A58EC6;
    position:relative;
    border: solid 1px;
    border-top: none;
    z-index: 5;
}
/* this is the parent menu */
#nav li a {
    display:block;
    padding:8px;
    font-size: 19px;
    font-weight: bold;
    text-decoration:none;
    color:#FFF;
}
#nav li a:hover {
    background: #66488D;
}
/* Popup */
.popup-box {
    position:fixed;
    max-height:70%;
    max-width:70%;
    overflow:auto;
    top:50%;
    left:50%;
    border:2px solid #66488D;
    border-radius:7px;
    background:#FFF;
    display:none;
    z-index:10;
    padding:3px;
}
.popup-box ul{
    list-style:none;
    margin:10px;
    padding:0;
}
.popup-box ul li{
    padding:5px;
}
.popup-box .close {
    float:right;
    border-radius:5px;
    border:2px solid #FFF;
    background-color:#E42;
    color:#FFF;
    cursor:pointer;
    font-family:Arial,sans-serif;
    font-weight:bold;
    margin-top:-2px;
    margin-left:10px;
    padding-left:5px;
    padding-right:5px;
}
.popup-box .close:hover{
    background-color:#F65;
}
.popup-box .header{
    background-color:#66488D;
    padding:6px 4px 6px;
    font-family:Arial,sans-serif;
    font-size:20px;
    color:#FFF;
    border-radius:3px;
    margin-bottom:5px;
}
#blackout {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    overflow: hidden;
    display: none;
    z-index: 9;
}

/* Для кнопок с иконками */
.isave:before {
    content: '';
    background: url("/images/icons/tick.png") no-repeat left center transparent;
    margin-right: 6px;
    top: 2px;
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.iadd:before {
    content: '';
    background: url("/images/icons/add.png") no-repeat left center transparent;
    margin-right: 6px;
    top: 2px;
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.idelete:before {
    content: '';
    background: url("/images/icons/delete.png") no-repeat transparent;
    margin-right: 6px;
    top: 2px;
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.istop:before {
    content: '';
    background: url("/images/icons/drop.png") no-repeat transparent;
    margin-right: 6px;
    top: 2px;
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.ifind:before {
    content: '';
    background: url("/images/icons/find.png") no-repeat transparent;
    margin-right: 6px;
    top: 2px;
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.ifilter:before {
    content: '';
    background: url("/images/icons/filter.png") no-repeat transparent;
    margin-right: 6px;
    top: 2px;
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-block;
}

@media print {
    body{
        background:#FFF;
        margin:0;
    }
    h2{
        margin-top:5px;
        margin-bottom:5px;
        font-size:18px;
    }
    caption{
        margin:0;
        font-size:16px;
    }
    .noprint{
        display:none;
    }
    .spoiler-hidden{
        display:inherit;
    }
    @page:left{
        margin:1px;
    }
    @page:right{
        margin:1px;
    }
    @page:bottom{
        margin:1px;
    }
    @page:top{
        margin:1px;
    }
}
